/* AUZYN v3 — Señal
   De noche, el negocio sigue atendiendo. Fondo casi negro, la marca como luz:
   cian para la señal, lima para la acción, el violeta solo vive en el logo.
   Ritmo: objetos 3D brillantes flotando (hero), tipografía enorme y ligera,
   marcos de trabajo grandes y una rueda de casos fijada con el scroll. */

@font-face {
  font-family: "Geologica";
  src: url("assets/fonts/geologica-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("assets/fonts/hanken-grotesk-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #06070B;
  --bg-2: #0C0E16;
  --bg-3: #141826;
  --line: #232838;
  --line-2: #343B52;
  --text: #EEF2F8;
  --mute: #A3ABBE;
  --dim: #858EA3;
  --cyan: #00E5FF;
  --cyan-soft: #7DF1FF;
  --violet: #7C5CFF;
  --lime: #C8FF3D;
  --lime-ink: #10140A;
  --error: #FF8A7A;

  --f-display: "Geologica", system-ui, sans-serif;
  --f-body: "Hanken Grotesk", system-ui, sans-serif;

  --edge: clamp(20px, 4vw, 64px);
  --maxw: 1440px;
  --r-s: 10px;
  --r-l: 28px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --chrome-h: 76px;
  --gutter: max(var(--edge), calc((100vw - var(--maxw)) / 2 + var(--edge)));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; scrollbar-color: var(--line-2) var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; margin: 0; text-wrap: balance; }
p { margin: 0; }
::selection { background: var(--lime); color: var(--lime-ink); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--edge); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: fixed; left: 16px; top: 16px; z-index: 100;
  background: var(--lime); color: var(--lime-ink); padding: 12px 18px; border-radius: 999px;
  font-weight: 600; text-decoration: none; transform: translateY(-160%);
}
.skip:focus { transform: none; }

/* ─── Botones y enlaces ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font: 600 1rem/1 var(--f-body); text-decoration: none; cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .35s var(--ease);
}
.btn:active { transform: scale(.97); }
.btn--lime { background: var(--lime); color: var(--lime-ink); }
.btn--lime:hover { background: #E2FF8A; }
.btn--ghost { border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); background: rgba(238, 242, 248, .06); }

.link {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--text); font-weight: 600; text-decoration: none;
  background: linear-gradient(var(--lime), var(--lime)) left 82% / 0 2px no-repeat;
  transition: background-size .45s var(--ease), color .2s;
}
.link::after { content: "→"; margin-left: 10px; transition: transform .35s var(--ease); }
.link:hover { background-size: calc(100% - 26px) 2px; }
.link:hover::after { transform: translateX(4px); }

/* ─── Cromo fijo en las esquinas ────────────────────────────────── */
.chrome {
  position: fixed; inset: 0 0 auto; z-index: 40; height: var(--chrome-h);
  display: flex; align-items: center; gap: 24px; padding-inline: var(--gutter);
  pointer-events: none;
}
.chrome > * { pointer-events: auto; }
.chrome { background: var(--bg); border-bottom: 1px solid var(--line); transition: background-color .4s var(--ease), border-color .4s; }
.at-hero .chrome, .menu-open .chrome { background: transparent; border-color: transparent; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 1.15rem/1 var(--f-display); letter-spacing: .14em; min-height: 44px; }
.chrome__meta { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.chrome__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(200, 255, 61, .14); }
.chrome__clock b { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 600; }
.menu-pill {
  display: inline-flex; align-items: center; gap: 22px; min-height: 44px; padding: 0 9px 0 20px;
  border-radius: 999px; border: 0; background: var(--text); color: var(--bg);
  font: 700 .8125rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  transition: background-color .25s, transform .35s var(--ease);
}
.menu-pill:hover { background: var(--lime); }
.menu-pill:active { transform: scale(.96); }
.menu-pill__dot { width: 26px; height: 26px; border-radius: 50%; background: var(--bg); position: relative; }
.menu-pill__dot::before, .menu-pill__dot::after { content: ""; position: absolute; left: 8px; right: 8px; height: 2px; background: var(--text); top: 12px; transition: transform .45s var(--ease); }
.menu-pill__dot::before { transform: translateY(-3px); }
.menu-pill__dot::after { transform: translateY(3px); }
.menu-open .menu-pill__dot::before { transform: rotate(45deg); }
.menu-open .menu-pill__dot::after { transform: rotate(-45deg); }

.side-label {
  position: fixed; left: calc(var(--edge) * .5 - 6px); top: 50%; z-index: 30;
  writing-mode: vertical-rl; transform: rotate(180deg) translateY(50%);
  font: 700 .75rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--mute);
}
.corner-cta {
  position: fixed; left: var(--gutter); bottom: 24px; z-index: 30;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  padding: 0 18px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-2);
  font: 700 .8125rem/1 var(--f-body); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  transition: color .2s, border-color .2s, opacity .4s var(--ease);
}
.corner-cta:hover { color: var(--lime); border-color: var(--lime); }
.at-hero .corner-cta { opacity: 0; pointer-events: none; }

/* Panel del menú */
.menu-pill { display: none; }
.motion-ready .menu-pill { display: inline-flex; }
.menu-panel { padding: calc(var(--chrome-h) + 8px) var(--edge) 24px; background: var(--bg-2); }
.menu-panel ol { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.motion-ready .menu-panel {
  position: fixed; inset: 0; z-index: 35; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; justify-content: safe center; gap: 48px;
  padding: calc(var(--chrome-h) + 24px) var(--edge) 40px;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .7s var(--ease), visibility 0s .7s;
}
.menu-open .menu-panel { clip-path: inset(0); visibility: visible; transition: clip-path .7s var(--ease); }
.menu-panel ol { list-style: none; margin: 0; padding: 0; }
.motion-ready .menu-panel ol { display: block; }
.motion-ready .menu-panel li + li { border-top: 1px solid var(--line); }
.menu-panel ol a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; text-decoration: none; }
.motion-ready .menu-panel ol a {
  display: block; padding: .18em 0;
  font: 300 clamp(2.4rem, 7vw, 5.5rem)/1.05 var(--f-display); letter-spacing: -.03em;
  transition: color .25s, transform .45s var(--ease);
}
.menu-panel ol a:hover { color: var(--lime); transform: translateX(12px); }
.menu-panel__foot { display: none; }
.motion-ready .menu-panel__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; color: var(--mute); }
.menu-panel__foot a { text-decoration: none; color: var(--text); font-weight: 600; }
.menu-open body { overflow: hidden; }

/* ─── Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  padding-bottom: clamp(72px, 10svh, 120px); padding-top: calc(var(--chrome-h) + 24px);
  background:
    radial-gradient(60% 70% at 78% 30%, rgba(0, 229, 255, .16), transparent 70%),
    radial-gradient(40% 50% at 95% 90%, rgba(124, 92, 255, .14), transparent 70%),
    radial-gradient(80% 60% at 20% 110%, rgba(200, 255, 61, .06), transparent 70%),
    var(--bg);
  isolation: isolate; overflow: hidden;
}
.hero__stage { position: absolute; inset: 0; z-index: -1; }
.hero__stage canvas { width: 100%; height: 100%; }
.hero__stage { background: url("assets/media/hero-still.jpg") 70% 40% / cover no-repeat; }
.hero__stage.is-live { background: none; }
.hero__stage::after {
  content: ""; position: absolute; inset: auto 0 0; height: 55%;
  background: linear-gradient(to top, var(--bg) 8%, rgba(6, 7, 11, .7) 45%, transparent);
  pointer-events: none;
}
.scene-toggle { display: none; }
.motion-ready .scene-toggle {
  display: block; position: absolute; right: var(--gutter); top: calc(var(--chrome-h) + 12px); z-index: 2;
  min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2);
  background: rgba(6, 7, 11, .72); color: var(--text); font: 600 .8125rem/1 var(--f-body); cursor: pointer;
  transition: border-color .2s, transform .3s var(--ease);
}
.motion-ready .scene-toggle:hover { border-color: var(--text); }
.motion-ready .scene-toggle:active { transform: scale(.96); }
@media (prefers-reduced-motion: reduce) { .motion-ready .scene-toggle { display: none; } }
@media (max-width: 759px) { .motion-ready .scene-toggle { top: calc(var(--chrome-h) + 4px); right: 16px; } }
.kicker { font-size: .875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan-soft); margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(2.7rem, min(7.4vw, 11svh), 6rem); line-height: .98; letter-spacing: -.04em; font-weight: 400;
  max-width: 14ch;
}
.hero h1 em { font-style: normal; color: var(--lime); }
.line { display: block; overflow: hidden; padding-bottom: .06em; }
.line > span { display: inline-block; }
.hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px 64px; margin-top: 32px; flex-wrap: wrap; }
.lead { max-width: 46ch; color: var(--mute); font-size: clamp(1.0625rem, 1.3vw, 1.25rem); }
.hero__act { display: flex; flex-wrap: wrap; gap: 12px; }

/* Entrada al cargar (motion.js pone .is-in) */
.motion-ready .hero [data-enter]:not(h1) { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.motion-ready .hero .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); }
.motion-ready .hero h1 .line:nth-child(2) > span { transition-delay: .08s; }
.motion-ready .hero h1 .line:nth-child(3) > span { transition-delay: .16s; }
.motion-ready .hero [data-enter].is-in { opacity: 1; transform: none; }
.motion-ready .hero h1.is-in .line > span { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .motion-ready .hero [data-enter]:not(h1), .motion-ready .hero .line > span { opacity: 1; transform: none; transition: none; }
}

/* ─── Frase que se enciende ─────────────────────────────────────── */
.statement { min-height: 100svh; display: flex; align-items: center; padding-block: 120px; }
h2.statement__text {
  font: 300 clamp(2rem, 4.6vw, 4.25rem)/1.12 var(--f-display); letter-spacing: -.03em; max-width: 22ch;
  color: var(--text);
}
.statement__text em { font-style: normal; color: var(--lime); }
.motion-ready .statement__text .w { color: #5A6380; transition: color .5s var(--ease); }
.motion-ready .statement__text em .w { color: #6E8A2A; }
.motion-ready .statement__text .w.is-on { color: var(--text); }
.motion-ready .statement__text em .w.is-on { color: var(--lime); }

/* ─── Casos: rueda fijada ───────────────────────────────────────── */
.cases { position: relative; height: calc(var(--steps) * 100svh); background: var(--bg-2); border-block: 1px solid var(--line); }
.cases__pin {
  position: sticky; top: 0; height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr) minmax(0, .8fr);
  grid-template-rows: auto 1fr; gap: 0 clamp(24px, 3vw, 48px);
  padding-top: calc(var(--chrome-h) + 24px); padding-bottom: 48px;
}
.cases__head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: baseline; }
.cases__title { font: 300 clamp(1.75rem, 2.4vw, 2.25rem)/1.1 var(--f-display); letter-spacing: -.03em; color: var(--text); }
.cases__count { font: 600 .9375rem/1 var(--f-body); color: var(--mute); font-variant-numeric: tabular-nums; }
.cases__count b { color: var(--lime); font-weight: 700; }

.cases__wheel {
  --row: clamp(56px, 8.2svh, 92px);
  list-style: none; margin: 0; padding: 0; align-self: center;
  height: calc(var(--row) * 3); overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
}
.cases__wheel li { height: var(--row); transform: translateY(calc((1 - var(--i, 0)) * var(--row))); transition: transform .8s var(--ease); }
.cases__wheel button {
  all: unset; cursor: pointer; display: flex; align-items: center; height: 100%; white-space: nowrap;
  font: 400 clamp(1.75rem, 3.2vw, 3.25rem)/1 var(--f-display); letter-spacing: -.035em; color: #5A6380;
  transition: color .5s var(--ease), transform .6s var(--ease); transform-origin: left center; transform: scale(.82);
}
.cases__wheel button:focus-visible { outline: 2px solid var(--cyan); outline-offset: -4px; border-radius: 8px; padding-inline: 8px; }
.cases__wheel li.is-active button { color: var(--text); transform: none; }
.cases__wheel li:not(.is-active) button:hover { color: var(--mute); }

.cases__media { position: relative; align-self: center; aspect-ratio: 4 / 5; height: min(100%, calc(100svh - var(--chrome-h) - 140px)); max-width: 100%; justify-self: center; }
.cases__media figure {
  position: absolute; inset: 0; margin: 0; border-radius: var(--r-l); overflow: hidden; background: var(--bg-3);
  clip-path: inset(100% 0 0 0 round var(--r-l)); transition: clip-path .9s var(--ease);
}
.cases__media figure.is-before, .cases__media figure.is-active { clip-path: inset(0 0 0 0 round var(--r-l)); }
.cases__media figure.is-active { z-index: 2; }
.cases__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.4s var(--ease); filter: saturate(.85) brightness(.82); }
.cases__media figure.is-active img { transform: scale(1); }
.cases__media figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6, 7, 11, .85), rgba(6, 7, 11, .1) 55%); pointer-events: none; }

.chat { position: absolute; inset: auto 18px 18px; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .9375rem; line-height: 1.35; }
.chat li { max-width: 84%; padding: 10px 14px; border-radius: 16px; opacity: 0; transform: translateY(10px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.chat .in { background: rgba(238, 242, 248, .95); color: #0B0D14; border-bottom-left-radius: 4px; justify-self: start; }
.chat .out { background: #1B2133; color: var(--text); border: 1px solid var(--line-2); border-bottom-right-radius: 4px; justify-self: end; }
.chat .out.ok { background: var(--lime); color: var(--lime-ink); border-color: transparent; font-weight: 600; }
.is-active .chat li { opacity: 1; transform: none; }
.is-active .chat li:nth-child(2) { transition-delay: .35s; }
.is-active .chat li:nth-child(3) { transition-delay: .7s; }
.is-active .chat li:nth-child(4) { transition-delay: 1.05s; }
.tag {
  position: absolute; top: 16px; left: 16px; z-index: 1; padding: 7px 12px; border-radius: 999px;
  background: rgba(6, 7, 11, .72); color: var(--text);
  font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}

.cases__copy { position: relative; align-self: center; min-height: 260px; }
.cases__copy article { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(16px); visibility: hidden; transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s .5s; }
.cases__copy article.is-active { opacity: 1; transform: none; visibility: visible; transition: opacity .6s var(--ease) .15s, transform .7s var(--ease) .15s; }
.cases__copy h3 { font-size: 1.5rem; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 14px; }
.cases__copy p { color: var(--mute); margin-bottom: 18px; max-width: 38ch; }

/* Sin fijado (móvil o sin JS): las cuatro historias apiladas */
.cases-static .cases, html:not(.motion-ready) .cases { height: auto; }
.cases-static .cases__pin, html:not(.motion-ready) .cases__pin { position: static; height: auto; display: grid; grid-template-columns: 1fr; gap: 0; padding-block: 96px; }
.cases-static .cases__wheel, html:not(.motion-ready) .cases__wheel,
.cases-static .cases__count, html:not(.motion-ready) .cases__count { display: none; }
.cases-static .cases__media, html:not(.motion-ready) .cases__media,
.cases-static .cases__copy, html:not(.motion-ready) .cases__copy { display: contents; }
.cases-static .cases__head, html:not(.motion-ready) .cases__head { order: -1; margin-bottom: 8px; }
.cases-static .cases__media figure, html:not(.motion-ready) .cases__media figure { position: relative; inset: auto; aspect-ratio: 4 / 5; clip-path: none; order: calc(var(--o) * 2); margin-top: 40px; }
.cases-static .cases__copy article, html:not(.motion-ready) .cases__copy article { position: static; opacity: 1; transform: none; visibility: visible; order: calc(var(--o) * 2 + 1); padding-top: 20px; }
.cases-static .chat li, html:not(.motion-ready) .chat li { opacity: 1; transform: none; }
.cases [data-step="0"] { --o: 0; }
.cases [data-step="1"] { --o: 1; }
.cases [data-step="2"] { --o: 2; }
.cases [data-step="3"] { --o: 3; }

/* ─── Encabezados de sección ────────────────────────────────────── */
h2 { font-size: clamp(2.4rem, 5.6vw, 5rem); line-height: 1; letter-spacing: -.04em; font-weight: 300; }
.sec-lead { color: var(--mute); max-width: 44ch; font-size: clamp(1.0625rem, 1.25vw, 1.1875rem); }

/* ─── Servicios: marcos grandes ─────────────────────────────────── */
.svc { padding-block: clamp(96px, 14svh, 160px); }
.svc__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(56px, 8svh, 96px); }
.work + .work { margin-top: clamp(80px, 12svh, 140px); }
.frame {
  position: relative; margin: 0; border-radius: var(--r-l); overflow: hidden; background: var(--bg-3);
  aspect-ratio: 16 / 9; max-height: 72svh; width: 100%;
}
.frame video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.frame:hover video { transform: scale(1.025); }
.motion-ready .frame[data-reveal] { clip-path: inset(10% 5% 10% 5% round var(--r-l)); transition: clip-path 1.3s var(--ease); }
.motion-ready .frame[data-reveal].is-in { clip-path: inset(0 0 0 0 round var(--r-l)); }
@media (prefers-reduced-motion: reduce) { .motion-ready .frame[data-reveal] { clip-path: none; } }
.frame__toggle { display: none; }
.motion-ready .frame__toggle {
  display: block;
  position: absolute; right: 16px; bottom: 16px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid rgba(238, 242, 248, .25); background: rgba(6, 7, 11, .72);
  color: var(--text); font: 600 .8125rem/1 var(--f-body); cursor: pointer; transition: background-color .2s, transform .3s var(--ease);
}
.frame__toggle:hover { background: rgba(6, 7, 11, .9); }
.frame__toggle:active { transform: scale(.96); }
.work__text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 64px; margin-top: 28px; }
.work__text h3 { font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.1; }
.work__tags { grid-column: 1; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.work__text > p:last-child { grid-column: 2; grid-row: 1 / span 2; color: var(--mute); max-width: 48ch; }

/* ─── Proceso ───────────────────────────────────────────────────── */
.steps { padding-block: clamp(96px, 14svh, 160px); background: var(--bg-2); border-top: 1px solid var(--line); min-height: 100svh; display: flex; align-items: center; }
.steps__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(56px, 9svh, 104px); }
.track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; position: relative; --progress: 1; }
/* Línea base y línea encendida (motion.js escribe --progress con el scroll) */
.track::before, .track::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-2); }
.track::after {
  height: 2px; top: -.5px; transform-origin: left center; transform: scaleX(var(--progress));
  background: linear-gradient(90deg, var(--cyan), var(--cyan) 70%, var(--lime));
  box-shadow: 0 0 14px rgba(0, 229, 255, .45);
}
.track li { padding-top: 28px; position: relative; }
.track li::before {
  content: ""; position: absolute; left: 0; top: -6px; z-index: 1; width: 11px; height: 11px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 0 0 rgba(0, 229, 255, .5);
}
.track li:last-child::before { background: var(--lime); }
.track__n { display: block; font: 200 clamp(3.5rem, 6vw, 5.5rem)/1 var(--f-display); letter-spacing: -.04em; color: var(--text); margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.track h3 { font-size: 1.5rem; letter-spacing: -.015em; margin-bottom: 10px; }
.track p { color: var(--mute); font-size: 1rem; }

/* Coreografía: cada paso se enciende cuando la línea lo alcanza */
.motion-ready .track { --progress: 0; }
.motion-ready .track li::before { background: var(--bg-2); border: 2px solid var(--line-2); transition: background-color .4s var(--ease), border-color .4s var(--ease), transform .5s var(--ease); transform: scale(.8); }
.motion-ready .track__n { color: #6A7390; transform: translateY(.18em); transition: color .6s var(--ease), transform .8s var(--ease); }
.motion-ready .track h3, .motion-ready .track p { opacity: .82; transform: translateY(14px); transition: opacity .7s var(--ease), transform .8s var(--ease); }
.motion-ready .track p { transition-delay: .08s; }
.motion-ready .track li.is-lit::before { background: var(--cyan); border-color: var(--cyan); transform: scale(1); animation: node-ping 1.1s var(--ease) 1; }
.motion-ready .track li.is-lit:last-child::before { background: var(--lime); border-color: var(--lime); animation-name: node-ping-lime; }
.motion-ready .track li.is-lit .track__n { color: var(--text); transform: none; }
.motion-ready .track li.is-lit h3, .motion-ready .track li.is-lit p { opacity: 1; transform: none; }
.motion-ready .track li:last-child.is-lit .track__n { color: var(--lime); }
/* Al completarse: un destello recorre la línea una sola vez */
.motion-ready .track.is-done::after {
  background: linear-gradient(90deg, var(--cyan), var(--cyan) 70%, var(--lime)), linear-gradient(90deg, transparent, rgba(255, 255, 255, .95), transparent);
  background-size: 100% 100%, 18% 100%; background-repeat: no-repeat; background-blend-mode: screen;
  animation: line-sweep 1.4s var(--ease) 1 both;
}
@keyframes node-ping { from { box-shadow: 0 0 0 0 rgba(0, 229, 255, .55); } to { box-shadow: 0 0 0 16px rgba(0, 229, 255, 0); } }
@keyframes node-ping-lime { from { box-shadow: 0 0 0 0 rgba(200, 255, 61, .6); } to { box-shadow: 0 0 0 18px rgba(200, 255, 61, 0); } }
@keyframes line-sweep { from { background-position: 0 0, -20% 0; } to { background-position: 0 0, 120% 0; } }

/* ─── Preguntas ─────────────────────────────────────────────────── */
.faq { padding-block: clamp(96px, 14svh, 160px); min-height: 100svh; }
.faq__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px 64px; align-items: start; }
.faq h2 { position: sticky; top: calc(var(--chrome-h) + 24px); }
.faq__list { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  min-height: 76px; padding: 18px 0; font: 400 clamp(1.25rem, 1.7vw, 1.5rem)/1.25 var(--f-display); letter-spacing: -.015em;
  transition: color .2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq summary:hover { color: var(--lime); }
.faq details p { color: var(--mute); padding: 0 48px 26px 0; max-width: 60ch; }

/* ─── Contacto ──────────────────────────────────────────────────── */
.contact {
  padding-block: clamp(96px, 14svh, 160px); min-height: 100svh; display: flex; align-items: center;
  background: radial-gradient(60% 60% at 10% 100%, rgba(0, 229, 255, .1), transparent 70%), var(--bg-2);
  border-top: 1px solid var(--line);
}
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px 80px; align-items: start; }
.contact h2 { margin-bottom: 24px; }
.contact__list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 14px; }
.contact__list li { display: flex; gap: 20px; flex-wrap: wrap; }
.contact__list span { min-width: 92px; font-size: .8125rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); padding-top: 4px; }
.contact__list a { font-weight: 600; text-decoration-color: var(--lime); text-underline-offset: 5px; }

.form { display: grid; gap: 20px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(24px, 3vw, 40px); }
.field { display: grid; gap: 8px; }
.field label { font-size: .9375rem; font-weight: 600; }
.field__opt { font-weight: 400; color: var(--dim); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 56px; padding: 14px 16px; border-radius: var(--r-s);
  border: 1px solid #4A5370; background: var(--bg-2); color: var(--text);
  font: 400 1rem/1.4 var(--f-body); caret-color: var(--lime); transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #6A7390; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); background: var(--bg-3); box-shadow: 0 0 0 3px rgba(0, 229, 255, .2); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%), linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { color: var(--error); font-size: .9375rem; }
.form .btn { justify-self: start; }
.form__status { color: var(--mute); font-size: .9375rem; }
.form__status:empty { display: none; }

/* ─── Pie ───────────────────────────────────────────────────────── */
.foot { padding: 64px 0 120px; border-top: 1px solid var(--line); }
.foot__word {
  font: 600 clamp(5rem, 24vw, 22rem)/.8 var(--f-display); letter-spacing: -.06em;
  color: #161A28; user-select: none;
}
.foot__row { display: flex; flex-wrap: wrap; gap: 12px 40px; justify-content: space-between; align-items: center; margin-top: 40px; color: var(--mute); }
.foot__row a { text-decoration: none; font-weight: 600; color: var(--text); min-height: 44px; display: inline-flex; align-items: center; }
.foot__row a:hover { color: var(--lime); }
.foot__credits { margin-top: 24px; font-size: .75rem; color: var(--dim); max-width: 120ch; }
.foot__credits a { color: var(--mute); }

.dock { display: none; }

/* ─── Respuesta ─────────────────────────────────────────────────── */
@media (max-width: 1023px) {
  .cases__pin { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; }
  .cases__wheel { grid-column: 1 / -1; --row: 64px; height: calc(var(--row) * 1.6); }
  .cases__media { height: min(100%, 52svh); }
}
@media (max-width: 759px) {
  :root { --chrome-h: 64px; }
  .chrome__meta, .side-label, .corner-cta { display: none; }
  .menu-pill { margin-left: auto; }
  .hero { padding-bottom: 40px; padding-top: 30svh; }
  .hero__row { margin-top: 22px; gap: 20px; }
  .hero__act .btn { min-height: 52px; }
  .kicker { margin-bottom: 14px; }
  .hero__stage::after { height: 72%; background: linear-gradient(to top, var(--bg) 30%, rgba(6, 7, 11, .75) 70%, transparent); }
  .hero h1 { font-size: clamp(2.5rem, 11.5vw, 3.6rem); }
  .hero__act { width: 100%; }
  .hero__act .btn { flex: 1 1 100%; }
  .svc__head, .steps__head, .work__text, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .work__text > p:last-child { grid-column: 1; grid-row: auto; }
  .frame { aspect-ratio: 4 / 3; }
  .faq h2 { position: static; }
  .form .btn { justify-self: stretch; }
  .statement { min-height: 100svh; }
  .cases-static .cases__media figure { aspect-ratio: 3 / 4; }
  .chat { font-size: .875rem; inset: auto 12px 12px; gap: 6px; }
  .chat li { padding: 8px 12px; }
  .tag { top: 12px; left: 12px; }
  .dock {
    display: flex; position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 30;
    min-height: 56px; align-items: center; justify-content: center; border-radius: 999px;
    background: var(--lime); color: var(--lime-ink); font-weight: 700; text-decoration: none;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .45);
    transform: translateY(140%); transition: transform .5s var(--ease);
  }
  .dock.is-on { transform: none; }
}

/* Proceso en columna (tablet y móvil): la línea baja por la izquierda */
@media (max-width: 1023px) {
  .track { grid-template-columns: 1fr; gap: 40px; padding-left: 32px; }
  .track::before, .track::after { left: 5px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .track::after { width: 2px; left: 4.5px; transform-origin: center top; transform: scaleY(var(--progress)); background: linear-gradient(180deg, var(--cyan), var(--cyan) 70%, var(--lime)); }
  .motion-ready .track.is-done::after { background: linear-gradient(180deg, var(--cyan), var(--cyan) 70%, var(--lime)); animation: none; }
  .track li { padding-top: 0; }
  .track li::before { left: -32px; top: 10px; }
  .track__n { font-size: 3rem; margin-bottom: 12px; }
}

/* Movimiento reducido: estados finales al instante */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .frame:hover video { transform: none; }
}
