/* =========================================================================
   JUVENAI · v2 — banda inteligente
   Orden: tokens → base → chrome → banda 3D → secciones (en orden de la
   página) → responsive → reduced-motion.
   Sin build, sin framework. Todo lo que conduce el scroll son variables
   CSS que escribe main.js; el CSS decide qué hacer con ellas.
   ========================================================================= */

/* ------------------------------------------------------------------
   1 · Tokens
   ------------------------------------------------------------------ */
:root {
  /* color */
  --ink:      #06080D;   /* negro dominante */
  --ink-2:    #0A0E16;   /* oscuro secundario */
  --ink-3:    #10151F;   /* superficie sobre oscuro */
  --paper:    #FFFFFF;
  --mist:     #F3F4F6;   /* claro alterno */
  --text:     #0B0E14;
  --muted:    #697180;
  --muted-d:  rgba(255,255,255,.62);
  --line:     #E6E8EC;
  --line-d:   rgba(255,255,255,.12);

  /* Acento único, derivado del punto azul del logo. El tono se eligió por
     contraste: con blanco da 5,1:1, así que sirve tanto de fondo de botón
     como de color de rótulo sobre claro. Un azul más luminoso se quedaba
     en 3,8:1 y no pasaba AA en ninguno de los dos usos. */
  --acc:      #1A66E6;
  --acc-soft: #7FB0FF;   /* el acento sobre fondo oscuro */
  --acc-deep: #053C83;   /* azul institucional del logo */

  /* tipografía */
  --f-dis: 'Inter Tight', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --f-txt: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* espacio y forma */
  --gut: clamp(20px, 4.6vw, 72px);
  --sec: clamp(92px, 11vw, 190px);
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 28px;
  --pill: 999px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-io: cubic-bezier(.65,0,.35,1);

  /* dimensiones de la banda (px, escaladas por --sc) */
  --case-w: 140px;
  --case-h: 186px;
  --case-d: 26px;
  --strap-w: 112px;
  --strap-h: 62px;
  --strap-d: 12px;
}

/* ------------------------------------------------------------------
   2 · Base
   ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html.is-locked { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-txt);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, figure { margin: 0; }

[id] { scroll-margin-top: 96px; }

::selection { background: var(--acc); color: #fff; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; top: -80px; left: 16px; z-index: 200;
  padding: 10px 18px; border-radius: var(--pill);
  background: var(--acc); color: #fff; font-size: 14px;
  transition: top .2s var(--ease);
}
.skip:focus { top: 16px; }

:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gut); }

/* ---- escalas tipográficas ---- */
.h-xl, .h-lg, .h-md {
  font-family: var(--f-dis);
  font-weight: 600;
  text-wrap: balance;
}
.h-xl { font-size: clamp(46px, 8.6vw, 128px); line-height: .93; letter-spacing: -.042em; }
.h-lg { font-size: clamp(34px, 5.4vw, 82px);  line-height: .99; letter-spacing: -.034em; }

.h-xl em, .h-lg em, .h-md em {
  font-style: normal;
  color: var(--acc);
}
[data-theme="dark"] .h-xl em,
[data-theme="dark"] .h-lg em,
[data-theme="dark"] .h-md em { color: var(--acc-soft); }

.lead {
  font-size: clamp(16.5px, 1.35vw, 20px);
  line-height: 1.6;
  font-weight: 300;
  color: var(--muted);
  max-width: 56ch;
}
[data-theme="dark"] .lead { color: var(--muted-d); }

.mono, .kicker {
  font-family: var(--f-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.kicker { color: var(--muted); margin-bottom: 22px; }
[data-theme="dark"] .kicker { color: var(--muted-d); }
.kicker--acc { color: var(--acc); }
[data-theme="dark"] .kicker--acc { color: var(--acc-soft); }

/* ---- botones ---- */
.btn {
  --bg: var(--acc);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px;
  border-radius: var(--pill);
  background: var(--bg);
  color: #fff;
  font-family: var(--f-dis);
  font-size: 15px; font-weight: 500; letter-spacing: -.01em;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.btn::after {
  content: "→";
  font-family: var(--f-txt);
  transition: transform .35s var(--ease);
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120px 60px at var(--mx,50%) var(--my,50%), rgba(255,255,255,.28), transparent 70%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(26,102,230,.62); }
.btn:hover::after { transform: translateX(4px); }
.btn:hover::before { opacity: 1; }
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--ghost {
  background: transparent;
  color: currentColor;
  box-shadow: inset 0 0 0 1px var(--line-d);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 1px currentColor; }
[data-theme="dark"] .btn--ghost { color: #fff; }

.link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-dis); font-size: 15px; font-weight: 500;
  padding-bottom: 3px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .4s var(--ease);
}
.link::after { content: "→"; transition: transform .35s var(--ease); }
.link:hover { background-size: 100% 1px; }
.link:hover::after { transform: translateX(4px); }

/* ---- revelado base ---- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------
   3 · Chrome: progreso, header, menú
   ------------------------------------------------------------------ */

.prog {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120;
  background: transparent; pointer-events: none;
}
.prog i {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--acc-deep), var(--acc));
}

/* Barra a ancho completo con la marca centrada y la navegación repartida a
   los dos lados. A diferencia de la referencia, aquí el fondo del sitio
   alterna claro y oscuro, así que la barra se invierte con `.on-dark`. */
.hdr {
  position: fixed; top: 0; left: 0; right: 0; z-index: 110;
  transition: transform .5s var(--ease);
}
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__in {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 var(--gut);
  height: 74px;
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  box-shadow: inset 0 -1px 0 var(--line);
  transition: background .5s var(--ease), box-shadow .5s var(--ease),
              color .5s var(--ease), height .4s var(--ease);
}
.hdr.on-dark .hdr__in {
  background: rgba(6,8,13,.72);
  color: #fff;
  box-shadow: inset 0 -1px 0 var(--line-d);
}
.hdr.is-small .hdr__in { height: 62px; }

.hdr__logo {
  grid-column: 2;
  display: flex; align-items: center; gap: 9px;
  flex: none;
  justify-self: center;
}
.hdr__logo img { display: block; width: auto; }
/* el logotipo "Juvenai" lleva descendente en la u: la caja del SVG (708×208)
   incluye ese trazo, por eso se sube un pelo para centrar la x-altura */
.hdr__word { height: 34px; transform: translateY(-1px); }
.hdr.is-small .hdr__word { height: 30px; }
/* la pareja blanca sobre fondo oscuro, la navy sobre fondo claro */
.hdr .l-light { display: none; }
.hdr:not(.on-dark) .l-dark  { display: none; }
.hdr:not(.on-dark) .l-light { display: block; }

.hdr__side { display: flex; align-items: center; gap: 26px; min-width: 0; }
.hdr__side--l { grid-column: 1; justify-content: flex-start; }
.hdr__side--r { grid-column: 3; justify-content: flex-end; gap: 18px; }

.hdr__link {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--f-txt);
  font-size: 14.5px; font-weight: 400; white-space: nowrap;
  opacity: .74;
  transition: opacity .3s var(--ease);
}
.hdr__link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px;
  height: 1px; background: currentColor;
  transition: right .4s var(--ease);
}
.hdr__link:hover { opacity: 1; }
.hdr__link:hover::after, .hdr__link.is-on::after { right: 0; }
.hdr__link.is-on { opacity: 1; }
/* el subrayado del enlace no pega en un disparador de menú */
.drop__btn::after { display: none; }

.drop__panel {
  position: absolute; top: calc(100% + 14px); left: -14px;
  display: grid; gap: 2px;
  width: max-content; max-width: 330px;
  padding: 10px;
  border-radius: var(--r-lg);
  /* opaco de verdad: si el navegador no compone el backdrop-filter, el
     texto de detrás se transparenta y el menú se vuelve ilegible */
  background: rgba(255,255,255,.985);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -30px rgba(11,14,20,.45);
  opacity: 0; transform: translateY(-8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.hdr.on-dark .drop__panel {
  background: rgba(9,12,19,.985);
  box-shadow: inset 0 0 0 1px var(--line-d), 0 30px 60px -30px #000;
}
.drop__panel a {
  display: grid; gap: 2px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  transition: background .25s var(--ease);
}
.drop__panel a:hover { background: rgba(26,102,230,.08); }
.hdr.on-dark .drop__panel a:hover { background: rgba(255,255,255,.07); }
.drop__panel b {
  font-family: var(--f-dis); font-size: 15px; font-weight: 500; letter-spacing: -.015em;
}
.drop__panel i {
  font-style: normal; font-size: 13px; line-height: 1.35;
  color: var(--muted);
}
.hdr.on-dark .drop__panel i { color: var(--muted-d); }
.lang { display: flex; align-items: center; gap: 5px; flex: none; font-family: var(--f-mono); font-size: 11.5px; }

/* flex:none, o en pantallas estrechas el botón se encoge, las barras se
   salen de su caja y la hamburguesa desaparece */
.burger { display: none; flex: none; width: 40px; height: 34px; position: relative; }
.burger i {
  position: absolute; left: 9px; right: 9px; height: 1.5px; background: currentColor;
  transition: transform .4s var(--ease), opacity .3s;
}
.burger i:first-child { top: 13px; }
.burger i:last-child { top: 20px; }
.burger[aria-expanded="true"] i:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 105;
  background: var(--ink); color: #fff;
  display: grid; place-content: center;
  opacity: 0; transition: opacity .5s var(--ease);
}
/* [hidden] del navegador es display:none, y la regla de arriba lo gana:
   hay que devolvérselo o el panel tapa la página entera y come los clics */
.menu[hidden] { display: none; }
.menu.is-open { opacity: 1; }
/* mismos dos grupos que en escritorio, uno debajo del otro */
.menu {
  place-content: start stretch;
  padding: 104px var(--gut) 48px;
  overflow-y: auto;
}
.menu__nav { display: grid; gap: 2px; width: 100%; max-width: 520px; margin: 0 auto; }
.menu__t {
  margin: 26px 0 10px;
  color: rgba(255,255,255,.42);
}
.menu__t:first-child { margin-top: 0; }
.menu__nav a {
  font-family: var(--f-dis); font-weight: 500;
  font-size: clamp(22px, 6vw, 30px); letter-spacing: -.03em;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-d);
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .3s;
}
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu__nav a:hover { color: var(--acc-soft); }
.menu__nav a:nth-of-type(1) { transition-delay: .04s; }
.menu__nav a:nth-of-type(2) { transition-delay: .08s; }
.menu__nav a:nth-of-type(3) { transition-delay: .12s; }
.menu__nav a:nth-of-type(4) { transition-delay: .16s; }
.menu__nav a:nth-of-type(5) { transition-delay: .2s; }
.menu__nav a:nth-of-type(6) { transition-delay: .24s; }
.menu__nav a:nth-of-type(7) { transition-delay: .28s; }
.menu__nav a:nth-of-type(8) { transition-delay: .32s; }
.menu__nav a:nth-of-type(9) { transition-delay: .36s; }
.menu__cta {
  margin-top: 34px;
  padding: 15px 28px !important;
  border: 0 !important;
  border-radius: var(--pill);
  background: var(--acc);
  color: #fff;
  text-align: center;
  font-size: 16px !important;
}
@keyframes ledPulse { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

/* ------------------------------------------------------------------
   5 · Fondos oscuros
   ------------------------------------------------------------------ */
[data-theme="dark"] { background: var(--ink); color: #fff; }
[data-theme="dark"] .lead, [data-theme="dark"] p { color: var(--muted-d); }
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3 { color: #fff; }

/* ------------------------------------------------------------------
   6 · HERO
   ------------------------------------------------------------------ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 130px var(--gut) 90px;
  overflow: hidden;
  /* se ve mientras el vídeo carga, y por debajo de él siempre */
  background: var(--ink);
}

/* ---- el render del producto, a sangre ---- */
.hero__media { position: absolute; inset: 0; z-index: 1; }
.hero__video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 62% center;   /* las bandas quedan a la derecha del titular */
  transform: scale(var(--vz, 1.06));
  transform-origin: 62% 50%;
  will-change: transform;
}
/* El render viene sobre gris claro y el hero es negro: sin este velo el
   titular no se lee y el corte del vídeo cantaría. Fuerte a la izquierda,
   donde cae el texto; suave a la derecha, donde está el producto. */
.hero__veil {
  position: absolute; inset: 0;
  background:
    /* El render pasa por planos casi blancos (la correa arena a contraluz).
       El velo se calibra para ese fotograma, no para el más oscuro. */
    linear-gradient(100deg,
      rgba(6,8,13,.97) 0%,
      rgba(6,8,13,.94) 30%,
      rgba(6,8,13,.78) 46%,
      rgba(6,8,13,.42) 68%,
      rgba(6,8,13,.5) 100%),
    /* funde con la sección siguiente y asienta el borde superior */
    linear-gradient(to bottom, rgba(6,8,13,.55) 0%, transparent 22%, transparent 74%, var(--ink) 100%),
    /* un rastro del azul de marca, lo justo para que no sea un vídeo pegado */
    radial-gradient(60% 50% at 78% 42%, rgba(26,102,230,.16) 0%, transparent 70%);
}

.hero__in {
  position: relative; z-index: 3;
  width: 100%; max-width: 1320px; margin: 0 auto;
  will-change: transform, opacity;
  /* red de seguridad: el velo se calcula para el fotograma más claro, pero
     el vídeo es un elemento vivo y esto garantiza el contraste en todos */
  text-shadow: 0 1px 30px rgba(4,6,11,.6);
}
.hero__lead { max-width: 44ch; margin-bottom: 42px; }

.hero__foot {
  position: absolute; left: var(--gut); bottom: 34px; z-index: 3;
  display: flex; align-items: center; gap: 14px;
  color: var(--muted-d);
}
.hero__line { display: block; width: 54px; height: 1px; background: rgba(255,255,255,.2); overflow: hidden; }
.hero__line i {
  display: block; width: 40%; height: 100%; background: var(--acc);
  animation: slide 2.4s var(--ease-io) infinite;
}
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(250%); } }

/* ------------------------------------------------------------------
   6b · LA APP — mosaico de capturas + propuesta
   Estructura tomada del bloque de producto de whoop.com: mosaico oscuro
   a un lado, titular grande, lista con marcas y CTA al otro.
   ------------------------------------------------------------------ */
.appx { padding: var(--sec) 0; background: var(--mist); }
/* Las dos columnas casan de alto por composición, no estirando las piezas:
   estirarlas obliga a `cover` a recortar por los lados y se comen los
   rótulos. Cuatro piezas apaisadas a la izquierda ≈ anillo + teléfono. */
.appx__col {
  display: grid; gap: 18px; align-content: start;
  /* --py lo escribe el scroll: las dos columnas derivan en sentidos opuestos.
     El recorrido (±16px) cabe dentro del padding del panel, así que nunca
     asoma un hueco por los bordes. */
  transform: translate3d(0, var(--py, 0px), 0);
}
@keyframes sheen {
  0%   { opacity: 0; transform: translateX(-60%); }
  35%  { opacity: 1; }
  100% { opacity: 0; transform: translateX(60%); }
}
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ------------------------------------------------------------------
   9 · SMART TECHNOLOGY
   ------------------------------------------------------------------ */
.tech {
  position: relative;
  padding: var(--sec) 0;
  background: #04060B;
  overflow: hidden;
}
.tech .wrap { position: relative; z-index: 2; }

.flow { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.flow__i {
  position: relative;
  padding: 32px 30px 30px;
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  box-shadow: inset 0 0 0 1px var(--line-d);
  color: #fff;
}
.flow__i:not(:last-child)::after {
  content: "";
  position: absolute; top: 50%; left: 100%; width: 28px; height: 1px;
  background: linear-gradient(90deg, var(--acc), rgba(26,102,230,.12));
}
.flow__n { display: block; color: var(--acc-soft); margin-bottom: 20px; }
.flow__i h3 {
  font-family: var(--f-dis); font-size: 27px; font-weight: 600;
  letter-spacing: -.025em; margin-bottom: 12px;
}
.flow__i p { font-size: 15.5px; color: var(--muted-d); margin-bottom: 26px; }
@keyframes dash { to { stroke-dashoffset: 0; } }
@keyframes cell { 0%,100% { background: rgba(26,102,230,.14); } 45% { background: rgba(26,102,230,.6); } }
/* la pista da el recorrido de scroll; el sticky es lo que se queda quieto.
   420vh = una pantalla de entrada más un tramo por cada una de las cinco lecturas */
.ft__track { height: 420vh; }
.ft__list { border-top: 1px solid var(--line); }
.ft__i {
  display: grid; grid-template-columns: auto 1fr; gap: 0 22px;
  padding: clamp(11px, 2.2svh, 26px) 4px;
  border-bottom: 1px solid var(--line);
  cursor: default;
  transition: padding-left .5s var(--ease);
}
.ft__i:hover, .ft__i.is-on { padding-left: 14px; }
.ft__i h3 {
  font-family: var(--f-dis); font-size: clamp(24px, 2.6vw, 36px); font-weight: 600;
  letter-spacing: -.03em; line-height: 1.1;
  color: var(--muted); transition: color .4s var(--ease);
}
.ft__i.is-on h3 { color: var(--text); }
.ft__i p {
  grid-column: 2;
  max-width: 42ch; font-size: 15.5px; color: var(--muted);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .6s var(--ease), opacity .4s var(--ease), margin .6s var(--ease);
}
.ft__i.is-on p { max-height: 120px; opacity: 1; margin-top: 12px; }
.ft__card {
  position: absolute; inset: 0;
  display: grid; align-content: center; gap: 4px;
  padding: clamp(28px, 3.4vw, 48px);
  color: #fff;
  opacity: 0; transform: scale(1.03);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  pointer-events: none;
}
.ft__card.is-on { opacity: 1; transform: none; }
.curve { stroke-dasharray: 600; stroke-dashoffset: 600; }
.is-on .curve { animation: dash 1.8s var(--ease) .1s forwards; }
.tb__track { height: 330vh; }
.tb__i {
  padding: 12px 0 12px 26px;
  border-left: 2px solid var(--line-d);
  transition: border-color .5s var(--ease);
}
.tb__i.is-on { border-color: #fff; }
.tb__i h3 {
  font-family: var(--f-dis); font-weight: 600;
  font-size: clamp(19px, 2.1vw, 28px); letter-spacing: -.028em; line-height: 1.15;
  color: rgba(255,255,255,.42);
  transition: color .5s var(--ease);
}
.tb__i.is-on h3 { color: #fff; }
.tb__i p {
  max-width: 44ch; font-size: 15.5px; line-height: 1.55;
  color: var(--muted-d);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .6s var(--ease), opacity .45s var(--ease), margin .6s var(--ease);
}
.tb__i.is-on p { max-height: 190px; opacity: 1; margin-top: 12px; }
.tb__shot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 40px 46px rgba(0,0,0,.65));
  opacity: 0; transform: scale(.965);
  transition: opacity .7s var(--ease), transform .9s var(--ease);
}
.tb__shot.is-on { opacity: 1; transform: none; }

/* ------------------------------------------------------------------
   13 · ALL DAY — recorrido horizontal, de la luz a la noche
   ------------------------------------------------------------------ */
.day { --p: 0; position: relative; height: 100vh; }
/* 300vh = pantalla de entrada más un tramo por cada uno de los tres pasos */
.app__track { height: 300vh; }
.phone {
  width: min(clamp(210px, 20vw, 268px), calc((100svh - clamp(150px, 22svh, 220px)) * 0.462));
  aspect-ratio: 620 / 1342;
  border-radius: 40px;
  padding: 9px;
  background: linear-gradient(150deg, #333B4A, #14181F 46%, #2A313D);
  box-shadow: 0 50px 90px -50px #000, inset 0 0 0 1px rgba(255,255,255,.14);
}
.ph {
  position: absolute; inset: 0;
  color: #fff;
  opacity: 0; transform: translateY(16px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.ph.is-on { opacity: 1; transform: none; }
.app__s {
  padding-left: 24px;
  border-left: 2px solid var(--line-d);
  opacity: .34;
  transition: opacity .5s var(--ease), border-color .5s var(--ease);
}
.app__s.is-on { opacity: 1; border-color: var(--acc); }
.app__s h3 {
  font-family: var(--f-dis); font-size: clamp(21px, 2.1vw, 28px); font-weight: 600;
  letter-spacing: -.028em; margin-bottom: 10px; color: #fff;
}
.app__s p { font-size: 15.5px; color: var(--muted-d); max-width: 40ch; }

/* ------------------------------------------------------------------
   16 · PRIVACY
   ------------------------------------------------------------------ */
.pv { padding: var(--sec) 0; background: var(--ink-2); }
.pv .lead { margin-bottom: 40px; }

/* ------------------------------------------------------------------
   17 · CTA FINAL
   ------------------------------------------------------------------ */
.end {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  padding: 140px var(--gut);
  overflow: hidden;
  background: radial-gradient(75% 60% at 50% 44%, #101827 0%, #06080D 62%, #04050A 100%);
  text-align: center;
}
.end__halo {
  position: absolute; top: 42%; left: 50%;
  width: 60vw; height: 60vw; max-width: 820px; max-height: 820px;
  transform: translate(-50%,-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(26,102,230,.28) 0%, rgba(26,102,230,.06) 44%, transparent 68%);
  filter: blur(38px);
}
.end__stage {
  position: absolute; top: 50%; left: 50%; z-index: 1;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
/* el producto queda detrás del titular: sólo se atenúa. Ya viene recortado,
   así que una máscara radial aquí le comería los bordes */
.end__prod {
  width: min(78vh, 700px); height: auto;
  opacity: .38;
  filter: drop-shadow(0 40px 50px rgba(0,0,0,.7));
}
.end__in { position: relative; z-index: 3; display: grid; justify-items: center; }
.end__h { margin-bottom: 26px; }
.end__lead { margin-bottom: 40px; max-width: 42ch; }

.lines .ln { display: block; overflow: hidden; }
.lines .ln > span {
  display: block;
  transform: translateY(105%);
  transition: transform .9s var(--ease);
}
.lines.is-in .ln > span { transform: none; }
.lines.is-in .ln:nth-child(2) > span { transition-delay: .1s; }
.lines.is-in .ln:nth-child(3) > span { transition-delay: .2s; }

.end__form { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 34px; position: relative; }
.end__form input {
  width: min(340px, 74vw);
  padding: 15px 22px;
  border: 0; border-radius: var(--pill);
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px var(--line-d);
  color: #fff; font-family: var(--f-txt); font-size: 15px;
  transition: box-shadow .3s var(--ease);
}
.end__form input::placeholder { color: rgba(255,255,255,.46); }
.end__form input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--acc); }
.end__msg {
  position: absolute; top: 100%; left: 0; right: 0;
  margin-top: 12px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em;
  color: var(--acc-soft);
  min-height: 18px;
}
.end__msg.is-err { color: #FF7A7A; }

/* ------------------------------------------------------------------
   18 · FOOTER
   ------------------------------------------------------------------ */
.foot { background: #04050A; color: #fff; padding: 88px var(--gut) 40px; }
.foot__in {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 46px;
  max-width: 1320px; margin: 0 auto 70px;
}
.foot__word {
  display: block;
  height: clamp(44px, 5.2vw, 68px); width: auto;
  margin-bottom: 20px;
}
.foot__claim { color: var(--muted-d); font-size: 15px; max-width: 30ch; }
.foot__t { color: rgba(255,255,255,.4); margin-bottom: 18px; }
.foot__col { display: grid; gap: 10px; align-content: start; }
.foot__col a {
  font-size: 14.5px; color: var(--muted-d);
  justify-self: start;
  transition: color .3s var(--ease);
}
.foot__col a:hover { color: #fff; }

.foot__bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px;
  max-width: 1320px; margin: 0 auto;
  padding-top: 26px;
  border-top: 1px solid var(--line-d);
  font-size: 13px; color: rgba(255,255,255,.55);
}
.foot__legal { display: flex; gap: 20px; }
.foot__legal a:hover { color: #fff; }
.foot__disc { margin-left: auto; max-width: 46ch; font-size: 11.5px; }

/* ------------------------------------------------------------------
   19 · Responsive
   ------------------------------------------------------------------ */
@media (max-width: 1180px) {
  .hero__video { object-position: 66% center; }
}

@media (max-width: 1120px) {
  .hdr__side { gap: 18px; }
  .hdr__link { font-size: 14px; }
}

@media (max-width: 960px) {
  /* la marca sigue centrada: a su lado sólo queda la hamburguesa. El idioma
     se va al menú, o en 375 px el logotipo se le echa encima. */
  .hdr__side--l { display: none; }
  .hdr__side--r .drop,
  .hdr__side--r .lang { display: none; }
  .burger { display: block; }
  .btn--sm { display: none; }

  /* en vertical el producto va arriba y el texto abajo: el velo pasa de
     lateral a horizontal para no tapar las bandas */
  .hero { align-items: flex-end; padding-top: 120px; padding-bottom: 110px; }
  .hero__in { max-width: 640px; }
  .hero__video { object-position: center 34%; }
  .hero__veil {
    background:
      linear-gradient(to bottom,
        rgba(6,8,13,.72) 0%,
        rgba(6,8,13,.34) 26%,
        rgba(6,8,13,.72) 52%,
        rgba(6,8,13,.95) 72%,
        var(--ink) 100%),
      radial-gradient(70% 40% at 50% 30%, rgba(26,102,230,.14) 0%, transparent 70%);
  }
  .hero__foot { display: none; }
  .appx__col { gap: 14px; }

  .flow { grid-template-columns: 1fr; gap: 16px; }
  .flow__i:not(:last-child)::after { display: none; }

  .ft__track { height: auto; }
  .ft__i { padding: 26px 4px; }
  .ft__i p { max-height: 120px; opacity: 1; margin-top: 12px; }
  .ft__i h3, .ft__i .ft__n { color: var(--text); }

  /* el producto pasa arriba y la lista debajo */
  .tb__track { height: auto; }
  .tb__i p { max-height: 190px; opacity: 1; margin-top: 12px; }
  .tb__i h3 { color: #fff; }
  .tb__i { border-color: var(--line-d); }

  .app__track { height: auto; }
  .phone { width: clamp(230px, 46vw, 292px); }
  .app__s { opacity: 1; border-color: var(--line-d); }

  .end__prod { width: min(62vh, 420px); }

  .foot__in { grid-template-columns: 1fr 1fr; gap: 40px; }
  .foot__brand { grid-column: 1 / -1; }
  .foot__disc { margin-left: 0; }
}

/* Bajo 760px el JS suelta el recorrido horizontal (measure() en main.js).
   El CSS tiene que soltarlo también o las tarjetas se salen del recorte. */
@media (max-width: 760px) {

  .day { height: auto; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .end__form input { width: 100%; }
  .end__form .btn { width: 100%; justify-content: center; }
  .foot__bar { flex-direction: column; align-items: flex-start; }
}

/* pantallas bajas: que el hero quepa entero */
@media (max-height: 720px) and (min-width: 961px) {
  .hero__lead { margin-bottom: 28px; }
}

/* ------------------------------------------------------------------
   20 · Reduced motion — la página sigue completa, sin movimiento
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ft__track { height: auto; }
  .ft__i { padding: 26px 4px; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  /* el vídeo del hero lo pausa main.js; aquí se quita sólo su zoom */
  .hero__video { transform: none !important; }
  .appx__col { transform: none !important; }
  .reveal, .words .w, .eco__n { opacity: 1 !important; transform: none !important; }
  .lines .ln > span { transform: none !important; }
  .day { height: auto; }
  .app__track { height: auto; }
  .phone { width: clamp(230px, 22vw, 292px); }
  .ecg, .curve, .wire, .dv__spark { stroke-dashoffset: 0 !important; }
}
