/* Gomez Design — "Del boceto a tu marca"
   Colores editables desde el panel: --violet, --marker, --marker-text, --paper, --ink */
:root {
  --violet: #5B2BC4;
  --marker: #EF5B3A;
  --marker-text: #C2401F;
  --paper: #FBF7F0;
  --ink: #1E1530;
  --muted: #4A4060;
  --line: #E5DCCB;
  --dash: #D6CBB6;
  --white: #FFFFFF;
  --f-display: 'Bricolage Grotesque', 'Arial Narrow', sans-serif;
  --f-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-hand: 'Caveat', 'Comic Sans MS', cursive;
  --gutter: 20px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--logo-h-m, 34px) + 52px); }
@media (min-width: 960px) { html { scroll-padding-top: calc(var(--logo-h, 44px) + 52px); } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 4px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: 72px; padding-bottom: 72px; }
.section--last { padding-bottom: 88px; }
.band { padding: 72px 0; }
.band--white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band--ink { background: var(--ink); color: var(--paper); }

/* ---------- Tipografía ---------- */
.h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(34px, 7.5vw, 58px); line-height: 1.02; letter-spacing: -0.02em; overflow-wrap: break-word; }
.h3 { font-family: var(--f-display); font-weight: 800; font-size: clamp(24px, 4vw, 30px); line-height: 1.1; }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); }
.band--ink .lead { color: #D7CFE6; }
.hand { font-family: var(--f-hand); font-weight: 700; font-size: 24px; line-height: 1.2; color: var(--marker-text); }
.hand--tilt { display: inline-block; transform: rotate(-2deg); align-self: flex-start; }
.hand--light { color: #FFB29D; }
.hand--peach { color: #FFD1C4; }

/* Marcador: círculo y subrayado dibujados a mano (elemento firma) */
.mk { position: relative; display: inline-block; white-space: nowrap; }
.mk svg { position: absolute; overflow: visible; pointer-events: none; }
.mk path { fill: none; stroke: var(--marker); stroke-linecap: round; }
.mk-circle { color: var(--violet); }
.mk-circle svg { left: -10%; top: -16%; width: 120%; height: 136%; }
.mk-circle path { stroke-width: 4; }
.mk-under svg { left: 0; bottom: -0.18em; width: 100%; height: 0.32em; }
.mk-under path { stroke-width: 5; }
@media (prefers-reduced-motion: no-preference) {
  .js .mk path { stroke-dasharray: 100; stroke-dashoffset: 100; }
  .js .mk.is-drawn path { animation: draw 1s .2s cubic-bezier(.2,.7,.2,1) forwards; }
  .js .mk-under.is-drawn path { animation-delay: .7s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 24px; border-radius: var(--radius); border: 0; font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease; text-align: center; line-height: 1.2; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--violet { background: var(--violet); color: var(--white); box-shadow: 0 3px 0 var(--ink); }
.btn--white { background: var(--white); color: var(--violet); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--xl { min-height: 62px; font-size: 21px; padding: 0 28px; }
.btn[disabled] { opacity: .55; cursor: progress; transform: none; }
.btn-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px; background: var(--paper); transition: background-color .15s ease, color .15s ease; }
.btn-pill:hover { background: var(--ink); color: var(--white); }
.link-strong { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--violet); }

/* ---------- Encabezado ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 240, 0.94); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand__logo { display: block; height: var(--logo-h-m, 34px); width: auto; max-width: min(56vw, 240px); object-fit: contain; object-position: left center; }
@media (min-width: 960px) { .brand__logo { height: var(--logo-h, 44px); max-width: 360px; } }
.brand__word { font-family: var(--f-display); font-weight: 800; font-size: 18px; letter-spacing: 0.02em; white-space: nowrap; }
.brand__word span { font-weight: 600; }
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; }
.menu-btn__close { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__open { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__close { display: inline-flex; }
.nav { position: fixed; left: 0; right: 0; top: var(--header-h, 68px); max-height: calc(100dvh - var(--header-h, 68px)); overflow-y: auto; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px; display: none; }
.nav.is-open { display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { display: flex; align-items: center; min-height: 52px; font-family: var(--f-display); font-weight: 800; font-size: 24px; text-decoration: none; border-bottom: 1px dashed var(--dash); }
.btn-pill span { display: none; }
@media (min-width: 420px) { .btn-pill span { display: inline; } }
@media (min-width: 960px) {
  .menu-btn { display: none; }
  .nav { position: static; display: block; background: none; border: 0; padding: 0; }
  .nav ul { display: flex; gap: 26px; }
  .nav a { min-height: 44px; font-family: var(--f-body); font-weight: 600; font-size: 15px; border: 0; position: relative; }
  .nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 8px; height: 3px; border-radius: 3px; background: var(--marker); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
  .nav a:hover::after { transform: scaleX(1); }
}

/* ---------- Portada ---------- */
.hero { display: flex; flex-direction: column; gap: 40px; padding-top: 28px; padding-bottom: 72px; }
.hero__copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero__kicker { font-size: 26px; }
.hero__title { font-family: var(--f-display); font-weight: 800; font-size: clamp(38px, 10.6vw, 84px); line-height: 1.0; letter-spacing: -0.03em; hyphens: manual; }
@media (min-width: 900px) { .hero__title { font-size: clamp(56px, 5.6vw, 84px); } }
.hero__title .mk { white-space: normal; }
.hero__text { font-size: 18px; line-height: 1.6; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.hero__actions .btn { width: 100%; }
.hero__more { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--ink); text-decoration-thickness: 1px; }
@media (min-width: 560px) { .hero__actions .btn { width: auto; } }

.hero__art { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 6px 4px 0; min-width: 0; width: 100%; max-width: 380px; margin: 0 auto; }
@media (min-width: 900px) { .hero__art { max-width: none; margin: 0; } }
.sketch { align-self: flex-start; width: min(76%, 330px); aspect-ratio: 1 / 1; background: var(--white); border: 1px solid var(--line); box-shadow: 0 2px 0 var(--line); transform: rotate(-4deg); padding: 16px; display: flex; flex-direction: column; justify-content: space-between; color: #6B6280; }
.sketch__label, .sketch__note { font-size: 20px; color: #6B6280; }
.sketch__svg { width: 100%; height: auto; flex: 1; min-height: 0; }
.sketch__img { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.hero__arrow { width: 96px; height: 64px; margin: -16px 0 0 44%; overflow: visible; }
.hero__arrow path { fill: none; stroke: var(--marker); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.final { align-self: flex-end; width: min(82%, 360px); aspect-ratio: 5 / 4; margin-top: -26px; background: var(--violet); border-radius: 8px; transform: rotate(2.5deg); color: var(--white); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; overflow: hidden; }
.final__img { width: 100%; height: 100%; object-fit: cover; }
.final__label { font-family: var(--f-display); font-weight: 800; font-size: 24px; text-align: center; padding: 0 12px; }
.hero__final-note { align-self: flex-end; transform: rotate(-3deg); }

@media (min-width: 900px) {
  .hero { flex-direction: row; align-items: center; gap: 64px; padding-top: 40px; padding-bottom: 96px; }
  .hero__copy { flex: 1.2 1 0; }
  .hero__art { flex: 1 1 0; }
}

/* ---------- Bloque dividido (título al costado) ---------- */
.split { display: flex; flex-direction: column; gap: 32px; }
.split__aside { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (min-width: 900px) {
  .split { flex-direction: row; gap: 72px; }
  .split__aside { flex: 1 1 0; position: sticky; top: 100px; align-self: flex-start; }
  .split > :last-child { flex: 2 1 0; min-width: 0; }
}

/* ---------- Servicios ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; column-gap: 40px; }
@media (min-width: 640px) { .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.checklist__item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px dashed var(--dash); }
.checklist__item strong { display: block; font-size: 19px; line-height: 1.3; }
.checklist__item span span { display: block; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.check { flex: none; margin-top: 2px; }
.check rect { fill: none; stroke: var(--ink); stroke-width: 2; }
.check path { fill: none; stroke: var(--marker); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Trabajos ---------- */
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 36px; }
.section__head > div { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; align-items: start; }
@media (min-width: 720px) { .works { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 36px 24px; } }
.work { margin: 0; display: flex; flex-direction: column; gap: 10px; transform: rotate(-1.5deg); }
.work:nth-child(3n+2) { transform: rotate(1deg); }
.work:nth-child(3n) { transform: rotate(-0.5deg); }
@media (min-width: 720px) { .work:nth-child(even) { margin-top: 28px; } }
.work figcaption { font-size: 19px; line-height: 1.15; }
@media (min-width: 720px) { .work figcaption { font-size: 22px; } }
.work__frame { display: block; border: 6px solid var(--white); box-shadow: 0 1px 0 var(--line), 0 10px 24px -18px rgba(30, 21, 48, .5); overflow: hidden; text-decoration: none; transition: transform .2s ease; }
a.work__frame:hover { transform: translateY(-3px) rotate(0.5deg); }
.work__frame img { width: 100%; height: 100%; object-fit: cover; }
.work--post .work__frame { aspect-ratio: 4 / 5; }
.work--story .work__frame { aspect-ratio: 9 / 16; max-height: 520px; }
.work--square .work__frame { aspect-ratio: 1 / 1; }
.work__ph { display: flex; flex-direction: column; justify-content: space-between; height: 100%; }
.work__ph-kind { align-self: flex-start; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.85); color: var(--ink); }
.work__ph { padding: 12px; }
.work__ph-title { font-family: var(--f-display); font-weight: 800; font-size: clamp(18px, 4.6vw, 34px); line-height: 1.02; }
@media (min-width: 720px) { .work__ph { padding: 18px; } .work__frame { border-width: 8px; } }
.tone-violet { background: var(--violet); color: var(--white); }
.tone-coral { background: var(--marker); color: var(--ink); }
.tone-cream { background: #EFE7D8; color: var(--ink); }
.tone-ink { background: var(--ink); color: var(--paper); }

/* ---------- Proceso ---------- */
.section__intro { display: flex; flex-direction: column; gap: 8px; margin-bottom: 40px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.step { display: flex; flex-direction: column; gap: 10px; }
.step h3 { font-size: 21px; }
.step p { color: #D7CFE6; }
.step__num { position: relative; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; font-family: var(--f-display); font-weight: 800; font-size: 26px; }
.step__num svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.step__num path { fill: none; stroke: var(--marker); stroke-width: 3; stroke-linecap: round; }

/* ---------- Paquetes (menú) ---------- */
.menu-card { list-style: none; margin: 0; padding: 4px 20px; background: var(--white); border: 1px solid var(--line); }
.menu-card li + li { border-top: 1px dashed var(--dash); }
.pkg { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; text-decoration: none; }
.pkg__row { display: flex; align-items: baseline; gap: 10px; }
.pkg__name { font-family: var(--f-display); font-weight: 800; font-size: 25px; line-height: 1.15; }
.pkg--featured .pkg__name { color: var(--violet); }
.pkg__dots { flex: 1; min-width: 16px; border-bottom: 2px dotted #B9AE98; transform: translateY(-6px); }
.pkg__price { font-weight: 700; font-size: 19px; text-align: right; }
.pkg__desc { color: var(--muted); line-height: 1.5; }
.pkg__cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; color: var(--violet); }
@media (hover: hover) {
  .pkg__cta { opacity: 0; transform: translateX(-4px); transition: opacity .15s ease, transform .15s ease; }
  .pkg:hover .pkg__cta, .pkg:focus-visible .pkg__cta { opacity: 1; transform: none; }
}
@media (min-width: 640px) { .menu-card { padding: 8px 28px; } }

/* ---------- Contacto ---------- */
.cta-card { background: var(--violet); color: var(--white); border-radius: 26px; padding: 36px 24px; display: flex; flex-direction: column; gap: 26px; }
.cta-card .lead { color: #EAE3FF; }
.cta-card__copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cta-card__action { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.cta-card__action .btn { width: 100%; }
@media (min-width: 560px) { .cta-card__action .btn { width: auto; } }
@media (min-width: 900px) {
  .cta-card { flex-direction: row; align-items: center; justify-content: space-between; gap: 48px; padding: 64px; }
  .cta-card__copy { flex: 1 1 0; }
}

.form-wrap { margin-top: 48px; max-width: 860px; display: flex; flex-direction: column; gap: 18px; }
.form { display: grid; grid-template-columns: 1fr; gap: 6px 20px; }
@media (min-width: 640px) { .form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-weight: 700; font-size: 15px; }
.field input, .field textarea { font: inherit; font-size: 16px; color: var(--ink); background: var(--white); border: 1.5px solid #CFC4B0; border-radius: 12px; padding: 12px 14px; min-height: 50px; width: 100%; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(91, 43, 196, .2); }
.field [aria-invalid="true"] { border-color: #B42318; }
.field__error { min-height: 20px; font-size: 14px; color: #B42318; font-weight: 600; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 4px; }
.form__hint { font-size: 14px; color: var(--muted); }
.notice { padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.notice--ok { background: #E7F6EC; color: #14532D; }
.notice--error { background: #FDECEA; color: #8A1C12; }

/* ---------- Pie ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 28px; font-size: 15px; color: var(--muted); }
.site-footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 32px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 2px; }
.site-footer__brand strong { color: var(--ink); font-family: var(--f-display); font-size: 20px; }
.site-footer__logo { display: inline-block; margin-bottom: 6px; }
.site-footer__logo img { display: block; height: var(--logo-footer-h, 48px); width: auto; max-width: min(80vw, 420px); object-fit: contain; object-position: left center; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer__links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); font-weight: 600; text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 18px; padding-top: 18px; padding-right: 64px; border-top: 1px dashed var(--dash); }
.dev-credit { color: var(--muted); text-decoration: none; }
.dev-credit:hover { color: var(--ink); text-decoration: underline; }

/* ---------- Ir arriba ---------- */
.to-top { position: fixed; right: 16px; bottom: 16px; z-index: 40; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px -8px rgba(30, 21, 48, .6); opacity: 0; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease; }
.to-top.is-on { opacity: 1; transform: none; }
.to-top[hidden] { display: none; }

/* ---------- Páginas simples (404, mantenimiento) ---------- */
.simple { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding-top: 48px; padding-bottom: 72px; max-width: 760px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .to-top, .form-wrap { display: none; }
}
