/* Quiet Lynx: estilos de la landing.
   Tokens tomados del diseño en design/quiet-lynx.pen. Tema oscuro fijo (identidad de marca).
   Escala z-index: contenido 1 · mobile-menu 40 · nav 50 · grano 60. */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0A0B0D;
  --surface: #121418;
  --surface-2: #191C21;
  --line: #24282F;
  --hair: rgba(255, 255, 255, 0.08);
  --ink: #F2F1EE;
  --ink-2: #A4A7AD;
  --ink-3: #6B6F76;
  --accent: #FFB547;
  --accent-hi: #FFC56E;
  --on-accent: #1A1206;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --gutter: clamp(20px, 6.6vw, 96px);
  --maxw: 1248px;
  --radius: 20px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Grano de película: fijo y sin eventos para no repintar al hacer scroll */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 70; padding: 10px 16px; background: var(--accent); color: var(--on-accent); border-radius: 999px; font-weight: 600; }
.skip:focus { top: 16px; }

/* ---------- Tipografía compartida ---------- */
.h2 {
  font-size: clamp(34px, 3.4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.033em;
  line-height: 1.08;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

/* ---------- Botones ---------- */
.btn {
  --tx: 0px; --ty: 0px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  translate: var(--tx) var(--ty);
  transition: background-color 0.25s var(--ease-out), color 0.25s var(--ease-out), border-color 0.25s var(--ease-out),
              scale 0.2s var(--ease-out), box-shadow 0.4s var(--ease-out), translate 0.5s var(--ease-out);
}
.btn:active { scale: 0.97; }
.btn--accent { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 0 rgba(255, 181, 71, 0); }
.btn--accent:hover { background: var(--accent-hi); box-shadow: 0 10px 40px -8px rgba(255, 181, 71, 0.45); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); font-weight: 500; background: rgba(18, 20, 24, 0.4); }
.btn--ghost:hover { border-color: #3A3F48; background: var(--surface); }
.btn--light { height: 38px; padding: 0 16px; font-size: 14px; font-weight: 500; background: var(--ink); color: var(--bg); }
.btn--light:hover { background: #fff; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 17px; }
.btn__arrow { width: 16px; height: 16px; transition: transform 0.35s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Navegación ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color 0.4s var(--ease-out), border-color 0.4s var(--ease-out), translate 0.5s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(10, 11, 13, 0.72);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
}
.nav.is-hidden { translate: 0 -100%; }
.nav__inner {
  width: min(var(--maxw), 100% - 2 * var(--gutter));
  margin-inline: auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 22px; height: 28px; fill: var(--accent); transition: transform 0.6s var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.08); }
.brand__name { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 36px; font-size: 14px; color: var(--ink-2); }
.nav__links a { position: relative; transition: color 0.25s; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px;
  background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease-out);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
/* Acceso al área privada /app: visible arriba a la derecha en todos los tamaños */
.nav__actions { display: flex; align-items: center; gap: 24px; }
.nav__signin { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink); transition: color 0.25s; }
.nav__signin svg { width: 14px; height: 14px; fill: none; stroke: var(--ink-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke 0.25s; }
.nav__signin:hover { color: var(--accent); }
.nav__signin:hover svg { stroke: var(--accent); }
.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); cursor: pointer; place-items: center; }
.nav__bars, .nav__bars::before, .nav__bars::after {
  display: block; width: 20px; height: 1.5px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform 0.35s var(--ease-out), background-color 0.2s;
}
.nav__bars::before, .nav__bars::after { content: ""; position: absolute; left: 0; }
.nav__bars::before { top: -6px; }
.nav__bars::after { top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__bars::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__bars::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu {
  display: grid;
  gap: 4px;
  padding: 8px var(--gutter) 28px;
  background: rgba(10, 11, 13, 0.96);
  border-bottom: 1px solid var(--line);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 14px 0; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 20px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(100dvh, 940px);
  display: flex;
  align-items: flex-end;
  padding-top: 72px;
  padding-bottom: clamp(64px, 11.5vh, 104px);
  overflow: clip;
}
.hero__media {
  /* Encuadre del diseño v2: 920x900 desde x=520 en 1440, recorte centrado */
  position: absolute;
  top: 0;
  right: 0;
  width: 54%;
  height: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 55%),
                      linear-gradient(to bottom, #000 62%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0%, #000 55%),
              linear-gradient(to bottom, #000 62%, transparent 100%);
  mask-composite: intersect;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 60% at 58% 45%, rgba(10, 11, 13, 0) 45%, rgba(10, 11, 13, 0.7) 100%);
  pointer-events: none;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 41%;
}
.hero__copy { position: relative; z-index: 2; }
.hero__title {
  max-width: 11ch;
  font-size: clamp(48px, 5.15vw, 74px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 0.98;
}
.hero__sub { max-width: 480px; margin-top: 28px; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--ink-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

/* Palabras del título (las arma main.js) */
.w { display: inline-block; overflow: clip; overflow-clip-margin: 0.1em; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.w > span { display: inline-block; }

/* ---------- Franja de tecnologías ---------- */
.stack {
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 26px 0 26px var(--gutter);
  border-block: 1px solid var(--line);
}
.stack__label { flex: none; font-size: 14px; color: var(--ink-3); }
.marquee {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 88%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; }
.marquee__track li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 48px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink-2);
  white-space: nowrap;
  transition: color 0.3s;
}
.marquee__track i {
  width: 22px;
  height: 22px;
  flex: none;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  transition: background-color 0.3s;
}
.marquee__track li:hover { color: var(--ink); }
.marquee__track li:hover i { background-color: var(--brand); }

/* ---------- Casos ---------- */
.h2--xl { font-size: clamp(38px, 4vw, 56px); font-weight: 500; letter-spacing: -0.036em; line-height: 1.02; }
.work { padding: clamp(104px, 10vw, 140px) 0 clamp(112px, 11vw, 160px); }
.section-head { margin-bottom: 56px; max-width: 720px; }
.case {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--hair);
  border-radius: 28px;
  background: #0D0E11;
}
.case__bg { position: absolute; inset: 0; z-index: -1; }
.case__bg img { width: 100%; height: 100%; object-fit: cover; }
.case__bg::after { content: ""; position: absolute; inset: 0; }
.case__context { font-size: 14px; color: var(--ink-3); }
.case__title { margin-top: 14px; font-size: clamp(24px, 2.1vw, 30px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.16; }
.case__text { margin-top: 16px; max-width: 40ch; font-size: 16px; line-height: 1.55; color: var(--ink-2); }

.case--parity {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 700px);
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  min-height: 620px;
  padding: 64px;
}
.case--parity .case__bg img { opacity: 0.85; }
.case--parity .case__bg::after {
  background:
    linear-gradient(to right, rgba(10, 11, 13, 0.98) 0%, rgba(10, 11, 13, 0.88) 30%, rgba(10, 11, 13, 0.08) 64%),
    linear-gradient(to bottom, transparent 55%, rgba(10, 11, 13, 0.7));
}

.cases-row { display: grid; grid-template-columns: 712fr 512fr; gap: 24px; margin-top: 24px; }
.case--replay, .case--shield {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 640px;
  padding: 48px 40px 44px;
}
.case--replay .case__bg img { object-position: 53% 50%; }
.case--replay .case__bg::after, .case--shield .case__bg::after {
  background: linear-gradient(to bottom, rgba(10, 11, 13, 0) 30%, rgba(10, 11, 13, 0.97) 76%);
}
.case--shield .case__bg img { opacity: 0.75; }
.case--shield .case__bg::after { background: linear-gradient(to bottom, rgba(10, 11, 13, 0.2) 0%, rgba(10, 11, 13, 0.97) 70%); }
.case__copy--bottom { max-width: 560px; }

/* Paneles de herramienta: material de vidrio sobre la foto */
.panel {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: rgba(21, 23, 28, 0.8);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  backdrop-filter: blur(28px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 30px 80px -10px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  font-size: 13px;
}
.panel--replay { width: min(100%, 360px); border-radius: 20px; }
.panel--shield { width: 100%; border-radius: 20px; }
.panel__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 20px; border-bottom: 1px solid var(--hair); }
.panel__tool { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.panel svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.panel__mono, .panel__dim, .panel time { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--ink-3); }
.panel__mono { margin-left: 4px; }
.panel__bar > .panel__mono { margin-left: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(255, 181, 71, 0.12); color: var(--accent); font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill svg { width: 13px; height: 13px; }
.panel__scroll { overflow-x: auto; padding: 4px 20px 16px; }
.ptable { width: 100%; min-width: 520px; border-collapse: collapse; }
.ptable th, .ptable td { padding: 13px 0; border-bottom: 1px solid var(--hair); text-align: right; white-space: nowrap; }
.ptable th { font-size: 12px; font-weight: 400; color: var(--ink-3); }
.ptable th:first-child, .ptable td:first-child { text-align: left; color: var(--ink-2); }
.ptable th:first-child { color: var(--ink-3); }
.ptable td { font-family: var(--mono); font-size: 13px; }
.ptable td:first-child { font-family: var(--font); }
.ptable td + td, .ptable th + th { padding-left: 16px; }
.match { font-family: var(--font); color: var(--ink-2); }
.match::first-letter { color: var(--accent); }
.panel__foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; background: rgba(255, 255, 255, 0.02); font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.panel__foot--line { font-family: var(--font); background: none; border-top: 1px solid var(--hair); margin: 0 20px; padding: 16px 0 18px; }
.panel__body { padding: 18px 20px 16px; }
.panel__title { font-size: 17px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; }
.steps-mini { display: grid; gap: 12px; margin-top: 16px; color: var(--ink-2); }
.steps-mini li { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; }
.steps-mini li::before { content: ""; width: 12px; height: 7px; border-left: 1.6px solid var(--ink-2); border-bottom: 1.6px solid var(--ink-2); transform: translateY(-2px) rotate(-45deg); }
.findings { padding: 4px 20px 8px; }
.findings li { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--hair); color: var(--ink-2); }
.findings li:last-child { border-bottom: 0; }
.sev { font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.sev--crit { color: var(--ink); }
.findings em { font-style: normal; font-size: 12px; font-weight: 500; color: var(--accent); white-space: nowrap; }
.findings em::before { content: "\2713\00a0"; }

/* ---------- Franja del ojo ---------- */
.band {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: clip;
}
.band__media {
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(to right, transparent 14%, #000 58%),
                      linear-gradient(to bottom, transparent 0%, #000 20%, #000 80%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 14%, #000 58%),
              linear-gradient(to bottom, transparent 0%, #000 20%, #000 80%, transparent 100%);
  mask-composite: intersect;
}
.band__img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.band__copy { position: relative; z-index: 1; }
.band__title { max-width: 19ch; font-size: clamp(40px, 4.2vw, 60px); font-weight: 500; letter-spacing: -0.037em; line-height: 1.02; }
.band__text { max-width: 26em; margin-top: 24px; font-size: 18px; line-height: 1.5; color: var(--ink-2); }

/* ---------- Productos ---------- */
.products { padding: clamp(112px, 11vw, 160px) 0; }
.products__title { max-width: 22ch; }
.products__body { display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 72px; margin-top: 72px; }
.products__media { position: relative; margin: 0; min-height: 500px; border: 1px solid var(--hair); border-radius: 28px; overflow: hidden; background: #0D0E11; }
.products__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.products__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 60%, rgba(10, 11, 13, 0.7)); }
.products__grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; row-gap: 56px; align-content: space-between; }
.products__grid li { padding-top: 28px; border-top: 1px solid var(--line); }
.products__grid h3 { display: flex; align-items: center; gap: 12px; font-size: 24px; font-weight: 500; letter-spacing: -0.025em; }
.products__grid svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.products__grid p { margin-top: 14px; max-width: 36ch; font-size: 16px; line-height: 1.55; color: var(--ink-2); }

/* ---------- Enfoque ---------- */
.approach { --progress: 0; padding: clamp(24px, 3vw, 40px) 0 clamp(112px, 11vw, 160px); }
.steps { position: relative; margin-top: 64px; }
.steps__rail { position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.steps__fill { position: absolute; inset: 0; background: var(--accent); transform: scaleX(var(--progress)); transform-origin: left; }
.steps__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.step { padding-top: 30px; }
.motion .step { opacity: 0.4; transform: translateY(8px); transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.motion .step.is-active { opacity: 1; transform: none; }
html:not(.motion) .steps__fill { transform: none; }
.step__title { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.step__text { margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.step__out { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.step__out::before {
  content: "";
  width: 11px;
  height: 13px;
  border: 1.4px solid currentColor;
  border-radius: 2px;
}

/* ---------- CTA final ---------- */
.cta {
  position: relative;
  min-height: 820px;
  display: flex;
  align-items: flex-end;
  padding: 0 0 72px;
  overflow: clip;
  text-align: center;
}
.cta__media { position: absolute; inset: 0; }
.cta__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.cta__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg) 0%, rgba(10, 11, 13, 0) 20%, rgba(10, 11, 13, 0.35) 50%, rgba(10, 11, 13, 0.95) 85%);
}
.cta__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta__title { font-size: clamp(48px, 5vw, 72px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; }
.cta__text { margin-top: 24px; font-size: clamp(17px, 1.4vw, 18px); color: var(--ink-2); }
.cta__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px; margin-top: 40px; }
.cta__mail { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 5px; transition: color 0.25s, text-decoration-color 0.25s; }
.cta__mail:hover { color: var(--ink); text-decoration-color: var(--accent); }

/* ---------- Pie ---------- */
.footer { border-top: 1px solid var(--line); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px 0; font-size: 14px; }
.footer__brand { display: flex; align-items: center; gap: 10px; color: var(--ink-3); }
.footer__brand .brand__mark { width: 18px; height: 23px; }
.footer__links { display: flex; gap: 28px; color: var(--ink-2); }
.footer__links a:hover { color: var(--ink); }

/* =========================================================
   Movimiento. Todo vive bajo .motion (lo agrega main.js si el
   sistema no pide movimiento reducido). Sin JS, todo visible.
   ========================================================= */
@keyframes breathe { 0%, 100% { opacity: 0.75; } 50% { opacity: 1; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes rise { from { transform: translateY(108%); } to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
/* Las imágenes no se desplazan ni escalan: sólo aparecen con un fundido */
@keyframes mediaIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes markIn { from { opacity: 0; transform: translateY(10px) scale(0.6) rotate(-12deg); } to { opacity: 1; transform: none; } }

.motion .marquee__track { animation: marquee 48s linear infinite; }
.motion .marquee:hover .marquee__track { animation-play-state: paused; }

/* Entrada del hero */
.motion .hero__media { opacity: 0; }
.motion .hero__sub, .motion .hero__ctas { opacity: 0; }
.motion .hero .w > span { transform: translateY(108%); }
.motion.is-loaded .hero__media { animation: mediaIn 2.2s var(--ease-out) forwards; }
.motion.is-loaded .hero .w > span { animation: rise 1.1s var(--ease-out) forwards; animation-delay: calc(0.15s + var(--i) * 0.07s); }
.motion.is-loaded .hero__sub { animation: fadeUp 1s var(--ease-out) 0.6s forwards; }
.motion.is-loaded .hero__ctas { animation: fadeUp 1s var(--ease-out) 0.75s forwards; }
.motion .brand__mark { opacity: 0; }
.motion.is-loaded .nav .brand__mark { animation: markIn 0.9s var(--ease-out) 0.1s forwards; }
.motion.is-loaded .footer .brand__mark { opacity: 1; }

/* Aparición al entrar en pantalla */
.motion [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 0.09s);
}
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion [data-reveal="fade"] { transform: none; transition-duration: 1.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .step { opacity: 1; transform: none; }
  .steps__fill { transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: grid; }
  .nav__actions { gap: 8px; }
  .nav:has(.nav__toggle[aria-expanded="true"]) { background: rgba(10, 11, 13, 0.96); border-bottom-color: var(--line); }
  .hero__media { width: 78%; opacity: 0.9; }
  .case--parity { grid-template-columns: 1fr; padding: 48px; }
  .case--parity .case__bg::after { background: linear-gradient(to bottom, rgba(10, 11, 13, 0.97) 0%, rgba(10, 11, 13, 0.85) 34%, rgba(10, 11, 13, 0.2) 70%, rgba(10, 11, 13, 0.8)); }
  .cases-row { grid-template-columns: 1fr; }
  .products__body { grid-template-columns: 1fr; gap: 48px; }
  .products__media { min-height: 0; aspect-ratio: 16 / 9; }
  .steps__list { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
}

@media (max-width: 767px) {
  .hero { align-items: flex-end; min-height: 100svh; padding-bottom: 56px; }
  .hero__media {
    inset: 0 0 auto 0;
    width: 100%;
    height: 72%;
    opacity: 1;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 55%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 55%, transparent 100%);
  }
  .hero__img { object-position: 50% 30%; }
  .hero__title { font-size: clamp(44px, 12.5vw, 60px); }
  .hero__ctas .btn { flex: 1 1 auto; }
  .stack { flex-direction: column; align-items: flex-start; gap: 16px; padding: 22px 0; }
  .stack__label { padding-left: var(--gutter); }
  .marquee { width: 100%; }
  .section-head { margin-bottom: 36px; }
  .case { border-radius: 22px; }
  .case--parity { padding: 32px 20px 20px; gap: 32px; min-height: 0; }
  .case--replay, .case--shield { min-height: 0; padding: 20px 20px 28px; gap: 120px; }
  .panel--replay { width: 100%; }
  .panel__bar .panel__mono { display: none; }
  .band { min-height: 0; padding: 280px 0 72px; align-items: flex-end; }
  .band__media {
    inset: 0 0 auto 0;
    height: 380px;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 60%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 25%, #000 60%, transparent 100%);
  }
  .band__img { object-position: 78% 50%; }
  .products__grid { grid-template-columns: 1fr; row-gap: 40px; }
  .products__body { margin-top: 48px; }
  .steps__rail { inset: 0 auto 0 0; width: 2px; height: auto; }
  .steps__fill { transform: scaleY(var(--progress)); transform-origin: top; }
  .steps__list { grid-template-columns: 1fr; gap: 36px; padding-left: 24px; }
  .step { padding-top: 0; }
  .ptable { min-width: 0; font-size: 12px; }
  .ptable th:last-child, .ptable td:last-child { display: none; }
  .ptable td { font-size: 11px; }
  .ptable td:first-child { white-space: normal; font-size: 12px; line-height: 1.35; }
  .ptable td + td, .ptable th + th { padding-left: 10px; }
  .panel__scroll { padding: 4px 16px 12px; }
  .panel .panel__dim { display: none; }
  .cta { min-height: 780px; padding-bottom: 56px; }
  .cta__media { bottom: 34%; }
  .cta__media img { object-position: 62% 50%; }
  .cta__media::after { background: linear-gradient(to bottom, var(--bg) 0%, rgba(10, 11, 13, 0) 22%, rgba(10, 11, 13, 0) 60%, var(--bg) 100%); }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
