/* ── HOME (EN / y ES /es) ───────────────────────────────────────────────────
   Hoja única de la home: antes eran ~3.000 líneas inline duplicadas en cada
   idioma, con la coreografía de scroll vieja ya apagada por debajo.

   Sistema: editorial y tranquilo, con material real. Titulares grandes a dos
   tonos (tinta y gris), medios redondeados, nada de iconos. El scroll nunca se
   fija ni se bloquea: cada sección se lee a la primera y las animaciones solo
   acompañan la entrada.
   ──────────────────────────────────────────────────────────────────────── */

/* ── Fuentes ── */
@font-face {
  font-family: 'Forma DJR Text';
  src: url('/assets/fonts/FormaDJRText-Regular-Testing.woff2') format('woff2'),
       url('/assets/fonts/FormaDJRText-Regular-Testing.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Forma DJR Text';
  src: url('/assets/fonts/FormaDJRText-Medium-Testing.woff2') format('woff2'),
       url('/assets/fonts/FormaDJRText-Medium-Testing.ttf') format('truetype');
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Forma DJR Text';
  src: url('/assets/fonts/FormaDJRText-Bold-Testing.woff2') format('woff2'),
       url('/assets/fonts/FormaDJRText-Bold-Testing.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Forma DJR Text';
  src: url('/assets/fonts/FormaDJRText-ExtraBold-Testing.woff2') format('woff2'),
       url('/assets/fonts/FormaDJRText-ExtraBold-Testing.ttf') format('truetype');
  font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Forma DJR Banner';
  src: url('/assets/fonts/FormaDJRBanner-Medium-Testing.woff2') format('woff2'),
       url('/assets/fonts/FormaDJRBanner-Medium-Testing.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Forma DJR Banner';
  src: url('/assets/fonts/FormaDJRBanner-Black-Testing.woff2') format('woff2'),
       url('/assets/fonts/FormaDJRBanner-Black-Testing.ttf') format('truetype');
  font-weight: 900; font-style: normal; font-display: swap;
}

/* ── Tokens ── */
:root {
  --ink: #0a0a0a;
  --ink-2: #3c424e;          /* cuerpo: 10:1 sobre blanco */
  --mute: #868c98;           /* segunda voz de los titulares: 3,4:1, solo en display */
  --mute-text: #5f6571;      /* gris para texto pequeño: 5,9:1 en blanco, 4,9:1 en azul suave */
  --line: rgba(10, 10, 10, 0.1);
  --paper: #fff;
  --soft: #f3f5f8;
  --blue: #2b5fd9;
  --blue-soft: #e8eefc;
  --night: #060b16;
  --night: oklch(0.135 0.025 252);
  --gutter: clamp(16px, 4.4vw, 56px);
  --maxw: 1240px;
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 18px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --display: 'Forma DJR Banner', 'Forma DJR Text', system-ui, sans-serif;
  --text: 'Forma DJR Text', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
@media (min-width: 900px) {
  :root { --r-xl: 40px; --r-lg: 26px; --r-md: 20px; }
}

/* ── Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
/* clip y no hidden: hidden convierte a body en contenedor de scroll y rompe
   cualquier sticky de la página. */
html { overflow-x: clip; scrollbar-gutter: stable; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video, canvas { display: block; }
/* Solo en el contenido: en el nav, un max-width en % dentro de la fila flex
   encogía el logo hasta cero en móvil. */
main img, main video { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
/* Sobre vídeo, noche o azul, el anillo azul no se ve: blanco. */
#hero-flow :focus-visible, #join-card :focus-visible, .h-globe-panel :focus-visible,
.h-launch-panel :focus-visible, #access-popup :focus-visible, .h-case-media :focus-visible,
#demo-video-frame :focus-visible { outline-color: #fff; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
#site-root { position: relative; z-index: 0; isolation: isolate; }
main > section, main > div[id] { scroll-margin-top: 88px; }

/* ── Piezas comunes ── */
.h-wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.h-sec { padding-block: clamp(96px, 12vw, 176px); }

.h-display {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.25rem, 1.15rem + 4.3vw, 5rem);
  line-height: 1.02;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-wrap: balance;
}
.h-display .m { color: var(--mute); }
.h-lede {
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 38ch;
  text-wrap: pretty;
}
.h-label {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--mute-text);
}
.nw { white-space: nowrap; }

.h-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px;
  border-radius: 999px; border: 0;
  font-family: var(--text); font-size: 1rem; font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.25s var(--ease-out), background-color 0.2s ease;
}
.h-btn:active { transform: scale(0.96); }
.h-btn-dark { background: var(--ink); color: #fff; }
.h-btn-light { background: #fff; color: var(--ink); }
/* Hover solo con ratón: en táctil se quedaba pegado tras el toque. */
@media (hover: hover) {
  .h-btn:hover { transform: translateY(-2px); }
  .h-btn:active { transform: scale(0.96); }
  .h-btn-dark:hover { background: #262a33; }
  .h-btn-light:hover { background: #eef1f6; }
}

/* Saltar al contenido: primer elemento tabulable, visible solo con foco. */
.h-skip {
  position: fixed; top: 12px; left: 12px; z-index: 4000;
  padding: 12px 18px; border-radius: 999px;
  background: var(--ink); color: #fff;
  font-weight: 600; text-decoration: none;
  transform: translateY(-160%);
}
.h-skip:focus-visible { transform: none; outline-color: #fff; }

/* Reveal de entrada: solo con JS (sin él todo se ve) y una sola vez. */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
html.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Marquesina: dos pistas iguales, la segunda solo decorativa. Se para fuera de
   pantalla (clase .is-off desde JS) y con reduced-motion. */
.h-marquee {
  --gap: clamp(12px, 1.6vw, 20px);
  --dur: 48s;
  display: flex; gap: var(--gap);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.h-marquee-track {
  display: flex; align-items: center; gap: var(--gap); flex-shrink: 0;
  list-style: none;
  animation: h-marquee var(--dur) linear infinite;
}
.h-marquee.is-off .h-marquee-track { animation-play-state: paused; }
/* Pausa al pasar el ratón, solo con ratón: en táctil el toque deja un
   :hover pegado y la fila se quedaba parada. */
@media (hover: hover) and (pointer: fine) {
  .h-marquee:hover .h-marquee-track { animation-play-state: paused; }
}
@keyframes h-marquee { to { transform: translateX(calc(-100% - var(--gap))); } }

/* ════════════════════════════════════════════════════════════════════════
   HERO: vídeo a pantalla completa, titular abajo a la izquierda, join card.
   ════════════════════════════════════════════════════════════════════════ */
#hero-flow {
  position: relative;
  height: 100vh; height: 100svh;
  min-height: 560px;
  background: #05050a;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  /* Nada de overflow:hidden aquí: Safari recorta contra ese clip a los hijos
     position:fixed (el join card en móvil). El recorte lo hace #vid-fixed. */
}
#vid-fixed {
  position: absolute; inset: 0; z-index: 1;
  overflow: hidden;
  border-radius: inherit;
  contain: layout paint;
}
#vid-fixed .vid-fixed-media { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; background: #05050a; }

/* ── Relato: el vídeo del hero acaba dentro de una tele ──
   Solo con JS (html.has-tv). El escenario mide el hero más el recorrido del
   relato; el hero se queda fijo con sticky, que es scroll nativo. */
.has-tv .h-hero-stage { height: 190svh; }
.has-tv #hero-flow {
  position: sticky; top: 0;
  background: transparent;
  border-radius: 0;
}
.has-tv #vid-fixed { border-radius: 0; overflow: visible; contain: none; }
.has-tv #vid-fixed .vid-fixed-media { border-radius: 0; transform-origin: 50% 50%; will-change: transform, clip-path; }
.has-tv .h-channels { display: none; }
/* Titular, línea y plataformas, ya dentro de la escena de la tele. */
.h-tv-copy { display: none; }
.has-tv .h-tv-copy {
  display: block;
  position: absolute; z-index: 3;
  left: var(--cp-x, 16px); top: var(--cp-y, 60%); width: var(--cp-w, auto);
  text-align: center;
}
.h-tv-copy .h-channels-title {
  font-size: clamp(1.6rem, 0.85rem + 1.9vw, 3rem);
  line-height: 1.14;
  max-width: 22ch;
  margin: 0 auto;
}
.h-tv-copy .h-channels-sub { margin: clamp(12px, 1.4vw, 18px) auto 0; font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.125rem); max-width: 40ch; }
.is-split .h-tv-copy { transform: translateY(-50%); }
.is-split .h-tv-copy .h-channels-title { font-size: clamp(2rem, 0.8rem + 1.9vw, 3.2rem); max-width: none; }
.h-tv-plats { display: none; }
.has-tv .h-tv-plats {
  display: block;
  position: absolute; z-index: 3;
  left: var(--pl-x, 16px); top: var(--pl-y, 85%); width: var(--pl-w, auto);
}
.h-tv-plats .h-platforms { margin-top: 0; }
.h-tv-plats .h-platforms .h-label { margin-bottom: 12px; }
.h-tv-plats .h-plat { --s: clamp(62px, 5.6vw, 88px); }
.is-short .h-tv-plats .h-label { display: none; }
.is-short .h-tv-plats .h-plat { --s: 54px; }
.is-short .h-tv-copy .h-channels-title { font-size: 1.5rem; }
.is-short .h-tv-copy .h-channels-sub { font-size: 0.875rem; margin-top: 8px; }
.h-tv {
  /* Rectángulo exterior, grosor del marco y radio los pone home.js en cada
     fotograma: el marco crece desde el canto del vídeo mientras encoge. */
  position: absolute; z-index: 2;
  left: var(--tv-x, 0px); top: var(--tv-y, 0px);
  width: var(--tv-w, 0px); height: var(--tv-h, 0px);
  border: var(--bz, 0px) solid #0c0e13;
  border-radius: var(--tv-r, 0px);
  pointer-events: none;
}
.h-tv:not(.has-tv *) { display: none; }
/* Peana: cuello corto y base fina. Crecen al final (--stand de 0 a 1). */
.h-tv::before,
.h-tv::after { content: ''; position: absolute; left: 50%; background: #0c0e13; }
.h-tv::before {
  top: calc(100% + var(--bz, 0px)); width: 7%; height: clamp(12px, 1.6vw, 22px);
  transform: translateX(-50%) scaleY(var(--stand, 0)); transform-origin: 50% 0;
}
.h-tv::after {
  top: calc(100% + var(--bz, 0px) + clamp(12px, 1.6vw, 22px)); width: 30%; height: clamp(4px, 0.45vw, 7px);
  border-radius: 999px;
  transform: translateX(-50%) scaleX(var(--stand, 0));
}
/* La pantalla: aquí pasan los barridos de cada plataforma. */
.h-tv-screen {
  position: absolute; inset: 0; border-radius: var(--sr, 10px); overflow: hidden;
  /* Safari no recorta con border-radius a un hijo con transform (el barrido):
     el clip-path sí redondea las esquinas en todos. */
  clip-path: inset(0 round var(--sr, 10px));
}
.h-tv:not(.is-formed) .h-tv-screen { visibility: hidden; }
.h-tv-wipe {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: #1a98ff;
  visibility: hidden; /* GSAP la saca fuera (xPercent) y la hace visible */
}
.h-tv-wipe img { width: 30%; max-width: 180px; height: auto; aspect-ratio: 1; opacity: 0; }
#vid-fixed video { width: 100%; height: 100%; object-fit: cover; }
/* Velo: el vídeo de Times Square es muy luminoso. Oscurece abajo a la
   izquierda, que es donde vive el texto, y deja la escena viva arriba. */
#vid-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(110% 80% at 0% 100%, rgba(4, 6, 14, 0.62) 0%, rgba(4, 6, 14, 0) 62%),
    linear-gradient(to top, rgba(4, 6, 14, 0.82) 0%, rgba(4, 6, 14, 0.48) 34%, rgba(4, 6, 14, 0.1) 64%, rgba(4, 6, 14, 0) 100%);
}

#mobile-hero-join-cluster {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: stretch; gap: 14px;
  /* Hueco para el join card, que en móvil flota fijo abajo (~230px). */
  /* Hueco justo para el join card fijo de abajo (su alto lo pone home.js). */
  padding: 0 var(--gutter) calc(var(--jc-h, 160px) + 30px + env(safe-area-inset-bottom, 0px));
  color: #fff;
}
/* El texto clave va encima del titular como una línea discreta; en el DOM
   sigue detrás, dentro del h1, para no tocar el SEO. */
#hero-title {
  display: flex; flex-direction: column-reverse;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.125rem, 1.1rem + 4.6vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.012em;
  color: #fff;
  text-wrap: balance;
  max-width: 16ch;
}
#hero-title .hero-title-kw {
  display: block;
  margin-bottom: 14px;
  font-family: var(--text);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.005em;
  color: rgba(255, 255, 255, 0.82);
  max-width: 34ch;
}
#hero-subtitle {
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  max-width: 40ch;
  text-wrap: pretty;
}

@media (min-width: 900px) {
  #mobile-hero-join-cluster {
    align-items: flex-start;
    gap: 18px;
    padding: 0 6% clamp(56px, 9vh, 104px);
  }
  /* Que el texto nunca pise el join card (320px a la derecha, con el 6% de
     margen a cada lado y aire entre medias). */
  #mobile-hero-join-cluster > #hero-title,
  #mobile-hero-join-cluster > #hero-subtitle { max-width: min(var(--mw), calc(100vw - 12vw - 368px)); }
  #hero-title { --mw: 12.5ch; font-size: clamp(3rem, 1.4rem + 3.6vw, 5.25rem); }
  #hero-subtitle { --mw: 40ch; }
  #hero-title .hero-title-kw { font-size: 1rem; margin-bottom: 18px; }
  #hero-subtitle { font-size: clamp(1.0625rem, 0.9rem + 0.35vw, 1.25rem); }
}

/* ── Join card ── */
#join-card {
  position: fixed;
  left: var(--gutter); right: var(--gutter);
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  z-index: 950;
  background: rgba(6, 6, 10, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 1.75rem;
  padding: 22px 20px 16px;
  overflow: hidden;
  color: #fff;
  contain: layout paint;
  transition: transform 0.45s var(--ease-out), opacity 0.3s ease, border-radius 0.3s var(--ease-out);
}
#join-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(160, 100, 255, 0.6) 30%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 160, 60, 0.5) 70%, transparent 100%);
  background-size: 200% 100%;
  animation: jc-shimmer 4s linear infinite;
}
@keyframes jc-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
#join-card .jc-glow { display: none; } /* halo decorativo fuera: el card se lee igual sin él */
#join-card .jc-heading {
  position: relative;
  font-family: var(--text);
  font-size: clamp(1.6rem, 6vw, 2rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.014em;
  text-align: center;
  margin-bottom: 16px;
}
#join-card .jc-heading br { display: none; }
#join-card .jc-hint { display: none; }
#join-card .jc-divider { height: 1px; background: rgba(255, 255, 255, 0.06); margin-bottom: 16px; }
#join-card .jc-form { position: relative; }
#jc-email {
  display: block; width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 13px 20px;
  font-family: inherit; font-size: 1rem; color: #fff;
  outline: none;
  margin-bottom: 10px;
  transition: background 0.2s, border-color 0.2s;
}
#jc-email::placeholder { color: rgba(255, 255, 255, 0.42); }
#jc-email:focus { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.32); }
#jc-email.is-invalid { border-color: rgba(248, 113, 113, 0.7); }
#join-card .jc-btns { display: flex; gap: 9px; }
#join-card .jc-btns > * { flex: 1; }
#join-card .jc-btn-primary,
#join-card .jc-btn-ghost {
  display: flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 16px;
  border-radius: 999px;
  font-family: inherit; font-size: 0.9375rem; font-weight: 700;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.22s;
}
#join-card .jc-btn-primary { background: #fff; color: var(--ink); border: 0; }
#join-card .jc-btn-primary:hover { background: #ededed; transform: translateY(-2px); }
#join-card .jc-btn-ghost { background: transparent; color: rgba(255, 255, 255, 0.72); border: 1px solid rgba(255, 255, 255, 0.16); font-weight: 600; }
#join-card .jc-btn-ghost:hover { border-color: rgba(255, 255, 255, 0.36); color: #fff; transform: translateY(-2px); }
#join-card .jc-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
#join-card .jc-status { font-size: 0.8125rem; text-align: center; min-height: 18px; margin-top: 8px; line-height: 1.45; }
#join-card .jc-status.error { color: #f87171; }
#join-card .jc-status.success { color: #4ade80; }

/* Móvil: card compacto en el hero (título, email + Sign up en una fila y
   "Book a demo" debajo). Pasado el hero se pliega a una barra de una línea
   con GSAP (home.js) y desaparece al llegar al cierre y al pie. */
@media (max-width: 899px) {
  #join-card { padding: 16px 14px 12px; border-radius: 26px; transition: transform 0.45s var(--ease-out), opacity 0.3s ease; }
  #join-card .jc-heading { font-size: 1.375rem; margin-bottom: 12px; overflow: hidden; }
  #join-card .jc-divider { display: none; }
  #join-card .jc-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
  #jc-email { margin: 0; min-height: 46px; padding: 12px 18px; }
  #join-card .jc-btns { display: contents; }
  #join-card .jc-btn-primary { grid-column: 2; grid-row: 1; padding: 0 22px; }
  #join-card .jc-btn-ghost { grid-column: 1 / -1; grid-row: 2; min-height: 42px; overflow: hidden; }
  #join-card .jc-status { grid-column: 1 / -1; margin: 0; min-height: 0; }
  #join-card .jc-status:empty { display: none; }
  #join-card::before { transition: opacity 0.3s ease; }
  #join-card.is-compact::before { opacity: 0; }
  #join-card.is-compact .jc-status {
    position: absolute; left: 14px; right: 14px; bottom: calc(100% + 14px);
    text-align: left;
  }
  /* Sin GSAP (o con movimiento reducido) el plegado es un cambio de clase. */
  html:not(.has-fold) #join-card.is-compact { padding: 6px; border-radius: 32px; }
  html:not(.has-fold) #join-card.is-compact .jc-heading,
  html:not(.has-fold) #join-card.is-compact .jc-btn-ghost { display: none; }
  html:not(.has-fold) #join-card.is-compact .jc-form { row-gap: 0; }
  /* visibility, con retardo para que la salida se vea: oculto no es tabulable. */
  #join-card.is-hidden,
  .cookie-banner-visible #join-card {
    transform: translateY(calc(100% + 32px)); opacity: 0; pointer-events: none;
    visibility: hidden;
    transition: transform 0.45s var(--ease-out), opacity 0.3s ease, visibility 0s linear 0.45s;
  }
  /* Con el aviso de cookies abierto, el card espera: los dos juntos tapaban
     el hero entero. El texto del hero baja hasta encima del aviso. */
  .cookie-banner-visible #mobile-hero-join-cluster { padding-bottom: 20px; }
}
/* Móvil en horizontal: el card va plegado desde el principio. */
@media (max-width: 899px) and (max-height: 519px) {
  #mobile-hero-join-cluster { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  #hero-title { font-size: 2rem; }
  #hero-title .hero-title-kw { font-size: 0.75rem; margin-bottom: 6px; }
  #hero-subtitle { font-size: 0.9375rem; }
}
@keyframes jc-fold { from { opacity: 0.4; transform: translateY(10px) scale(0.98); } }

@media (min-width: 900px) {
  #join-card {
    position: absolute;
    left: auto; right: 6%; bottom: clamp(56px, 9vh, 104px);
    z-index: 3;
    width: 320px;
    padding: 32px 32px 22px;
    border-radius: 2rem;
    background: rgba(6, 6, 10, 0.82);
    -webkit-backdrop-filter: blur(28px);
            backdrop-filter: blur(28px);
    contain: none;
  }
  #join-card .jc-heading { font-size: clamp(2rem, 2.6vw, 2.5rem); text-align: left; margin-bottom: 14px; }
  #join-card .jc-heading br { display: inline; }
  #join-card .jc-hint {
    display: block;
    font-size: 0.875rem; line-height: 1.5;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 18px;
  }
}

/* ════════════════════════════════════════════════════════════════════════
   1 · CANALES: titular con chips de material real + plataformas de TV
   ════════════════════════════════════════════════════════════════════════ */
.h-channels { text-align: center; padding-bottom: clamp(72px, 9vw, 128px); }
.h-channels-title {
  font-size: clamp(2rem, 1rem + 3.7vw, 4.4rem);
  line-height: 1.12;
  max-width: 19ch;
  margin: 0 auto;
}
/* Chip: va pegado a su palabra (dentro de .nw) y mide en em para escalar con
   el titular. La foto se inclina un poco, como una pegatina; los logos van en
   fila solapada. */
.chip {
  display: inline-flex;
  vertical-align: -0.08em;
  margin-left: 0.14em;
}
.chip-photo {
  width: 1.5em; height: 0.92em;
  border-radius: 0.2em;
  overflow: hidden;
  transform: rotate(var(--tilt, -4deg));
  outline: 1px solid rgba(0, 0, 0, 0.1); outline-offset: -1px;
}
.chip-photo img { width: 100%; height: 100%; object-fit: cover; }
.chip-stack { align-items: center; }
.chip-stack img {
  width: 0.86em; height: 0.86em;
  border-radius: 0.24em;
  object-fit: cover;
  box-shadow: 0 0 0 0.05em #fff; /* separa los logos solapados */
}
.chip-stack img + img { margin-left: -0.26em; }
.chip-stack.is-round img {
  /* Logos de IA en círculos con borde fino: sobre fondo blanco el círculo
     blanco no se veía y parecían iconos sueltos con hueco delante. */
  border-radius: 50%; background: #fff; padding: 0.15em; object-fit: contain;
  box-shadow: 0 0 0 0.05em #fff, 0 0 0 calc(0.05em + 1px) rgba(10, 10, 10, 0.14);
}
.h-channels-sub { margin: clamp(24px, 3vw, 36px) auto 0; text-align: center; max-width: 34ch; }

.h-platforms { margin-top: clamp(56px, 7vw, 96px); }
.h-platforms .h-label { text-align: center; margin-bottom: 18px; }
.h-platforms .h-marquee { --dur: 40s; }
.h-plat {
  /* Ancho y alto explícitos (no aspect-ratio): Safari estiraba la ficha al
     alto de la fila y los logos salían alargados. */
  --s: clamp(76px, 8vw, 104px);
  width: var(--s); height: var(--s);
  border-radius: 24%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--soft);
  outline: 1px solid rgba(0, 0, 0, 0.1); outline-offset: -1px;
}
.h-plat img { width: 100%; height: 100%; object-fit: cover; }

/* ════════════════════════════════════════════════════════════════════════
   2 · PASOS: tres tarjetas solapadas y el film del dashboard
   ════════════════════════════════════════════════════════════════════════ */
.h-steps { padding-top: clamp(48px, 6vw, 96px); }
.h-steps-grid { display: grid; gap: clamp(40px, 5vw, 64px); }
.h-steps-head .h-lede { margin-top: 22px; }
.h-frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #0b0f1a;
  box-shadow: 0 0 0 1px var(--line);
  aspect-ratio: 16 / 10;
}
.h-frame video { width: 100%; height: 100%; object-fit: cover; }
.h-steps-list { list-style: none; display: grid; padding-top: 8px; max-width: 560px; }
.h-step {
  position: relative;
  border-radius: var(--r-lg);
  padding: 26px 26px 44px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
  transform: translateX(var(--x, 0)) rotate(var(--r, 0deg));
  transform-origin: 30% 50%;
}
.h-step + .h-step { margin-top: -22px; }
.h-step:nth-child(1) { --r: -2.2deg; --x: 0px; z-index: 1; }
.h-step:nth-child(2) { --r: 1.6deg; --x: 14px; z-index: 2; background: var(--blue-soft); box-shadow: none; }
.h-step:nth-child(3) { --r: -1deg; --x: 4px; z-index: 3; background: var(--blue); color: #fff; box-shadow: none; padding-bottom: 30px; }
.h-step-n { font-size: 0.875rem; font-weight: 600; color: var(--mute-text); }
.h-step:nth-child(3) .h-step-n { color: rgba(255, 255, 255, 0.9); }
.h-step h3 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.625rem, 1.3rem + 1vw, 2.25rem);
  line-height: 1.05; letter-spacing: -0.01em;
  margin: 10px 0 10px;
}
.h-step p { font-size: 1.0625rem; line-height: 1.5; color: var(--ink-2); max-width: 36ch; }
.h-step:nth-child(3) p { color: rgba(255, 255, 255, 0.88); }
/* Entrada: llegan rectas y se abren en abanico. */
html.js .h-steps-list .h-step {
  opacity: 0;
  transform: translate(var(--x, 0), 48px) rotate(0deg);
  transition: opacity 0.7s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 120ms);
}
html.js .h-steps-list.is-in .h-step { opacity: 1; transform: translateX(var(--x, 0)) rotate(var(--r, 0deg)); }

@media (min-width: 1024px) {
  .h-steps-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas: "head media" "list media";
    column-gap: clamp(48px, 6vw, 96px);
    row-gap: 48px;
    align-items: start;
  }
  .h-steps-head { grid-area: head; }
  /* El vídeo acompaña el scroll mientras se leen los pasos, igual que el
     título del FAQ: sticky dentro de su columna, sin fijar la página. */
  .h-steps-media { grid-area: media; align-self: start; position: sticky; top: max(112px, calc(50vh - 18vw)); }
  .h-steps-list { grid-area: list; }
}

/* ════════════════════════════════════════════════════════════════════════
   3 · CASOS: logos de clientes y tres spots que ya se han emitido
   ════════════════════════════════════════════════════════════════════════ */
.h-proof { padding-top: clamp(32px, 4vw, 64px); }
.h-proof-head { display: flex; flex-direction: column; gap: 16px; }
.h-logos { margin-top: clamp(36px, 4vw, 56px); --dur: 44s; --gap: clamp(28px, 4vw, 56px); }
.h-logo { display: flex; align-items: center; height: 44px; flex-shrink: 0; }
.h-logo img { height: 100%; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: 0.72; }
.h-cases {
  list-style: none;
  margin-top: clamp(36px, 4vw, 56px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px 20px;
  padding-inline: var(--gutter);
  max-width: var(--maxw);
  margin-inline: auto;
}
@media (min-width: 640px) { .h-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.h-case { min-width: 0; }
.h-case-media {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #0b0f1a;
  outline: 1px solid rgba(0, 0, 0, 0.1); outline-offset: -1px;
}
.h-case-media video { width: 100%; height: 100%; object-fit: cover; }
.h-glass {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px 6px 8px;
  border-radius: 999px;
  background: rgba(12, 14, 22, 0.5);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
          backdrop-filter: blur(14px) saturate(160%);
  color: #fff;
  font-size: 0.8125rem; font-weight: 600; line-height: 1;
}
/* Al pasar el ratón, las plataformas donde se emitió asoman por detrás del
   vídeo: la de la izquierda por la izquierda, la del centro por arriba y la
   de la derecha por la derecha. En reposo quedan ocultas tras el vídeo. */
.h-case-frame { position: relative; }
/* Cada vídeo lleva a la página de casos: /use-cases (ES: /es/casos-de-uso). */
a.h-case-frame { display: block; color: inherit; text-decoration: none; border-radius: var(--r-md); }
.h-case-frame .h-case-media { position: relative; z-index: 1; }
.h-case-peek { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.h-case-peek img {
  position: absolute;
  width: clamp(44px, 4vw, 56px); height: auto; aspect-ratio: 1;
  border-radius: 26%;
  outline: 1px solid rgba(0, 0, 0, 0.1); outline-offset: -1px;
  opacity: 0;
  transform: translate(0, 0) rotate(0deg);
  transition: transform 0.55s var(--ease-out), opacity 0.25s ease;
  transition-delay: calc(var(--i, 0) * 45ms);
}
.h-case-frame[data-peek="left"] img,
.h-case-frame[data-peek="right"] img { top: calc(6% + var(--i, 0) * 22%); }
.h-case-frame[data-peek="left"] img { left: 6px; }
.h-case-frame[data-peek="right"] img { right: 6px; }
.h-case-frame[data-peek="up"] img { top: 6px; left: calc(12% + var(--i, 0) * 20%); }
@media (hover: hover) {
  .h-case-frame:hover .h-case-peek img { opacity: 1; }
  .h-case-frame[data-peek="left"]:hover img { transform: translateX(-72%) rotate(var(--r)); }
  .h-case-frame[data-peek="right"]:hover img { transform: translateX(72%) rotate(var(--r)); }
  .h-case-frame[data-peek="up"]:hover img { transform: translateY(-72%) rotate(var(--r)); }
}
.h-case h3 {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.375rem, 1.2rem + 0.5vw, 1.625rem);
  line-height: 1.1; letter-spacing: -0.005em;
  margin: 18px 0 8px;
}
.h-case p { font-size: 1rem; line-height: 1.5; color: var(--ink-2); max-width: 38ch; }

@media (min-width: 1024px) {
  .h-cases { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
}


/* ════════════════════════════════════════════════════════════════════════
   4 · GLOBO: el globo de puntos del dashboard, saliendo como un horizonte
   ════════════════════════════════════════════════════════════════════════ */
.h-globe { padding: clamp(24px, 4vw, 56px) clamp(8px, 1vw, 14px) 0; }
.h-globe-panel {
  position: relative;
  overflow: hidden;
  min-height: clamp(640px, 100svh, 980px);
  border-radius: var(--r-xl);
  background: var(--night);
  color: #fff;
  isolation: isolate;
}
.h-globe-copy {
  position: relative; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: clamp(24px, 3vw, 36px);
  padding: clamp(88px, 12vh, 140px) var(--gutter) 0;
  text-align: center;
}
.h-globe-title { color: #fff; font-size: clamp(2.75rem, 1.3rem + 5.6vw, 6.5rem); line-height: 0.98; }
.h-globe-title .m { color: #7f8fb8; }
.h-globe-cta { position: relative; }
.h-globe-cta.is-hit { animation: h-hit 0.42s var(--ease-out); }
@keyframes h-hit {
  0% { box-shadow: 0 0 0 0 rgba(168, 228, 255, 0); }
  35% { box-shadow: 0 0 0 6px rgba(168, 228, 255, 0.28); transform: scale(1.03); }
  100% { box-shadow: 0 0 0 12px rgba(168, 228, 255, 0); transform: scale(1); }
}
/* La caja es la esfera; el lienzo la desborda (BLEED en JS) para que quepa
   el halo. Se coloca para que asome solo la mitad de arriba. */
.h-globe-stage {
  --gs: min(150vw, 680px);
  position: absolute; z-index: 1;
  left: 50%; top: 44%;
  width: var(--gs); height: var(--gs);
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center;
  touch-action: pan-y;
  opacity: 0;
  transition: opacity 1s ease-out;
}
.h-globe-stage.is-ready { opacity: 1; }
.h-globe-stage canvas { flex-shrink: 0; cursor: grab; touch-action: pan-y; }
.h-globe-stage canvas[data-dragging] { cursor: grabbing; }
.h-globe-feed { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
/* Sin WebGL (o con ahorro de datos): una esfera en CSS con el mismo degradado. */
.h-globe.is-fallback .h-globe-stage { opacity: 1; }
.h-globe.is-fallback .h-globe-stage::before {
  content: '';
  width: 100%; height: 100%;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 26%, #2b39dd 0%, #18197a 38%, #0a0930 70%);
  box-shadow: 0 0 0 1px rgba(168, 228, 255, 0.35);
}
@media (min-width: 900px) {
  .h-globe-stage { --gs: min(92vw, 1180px); top: 46%; }
}

/* ════════════════════════════════════════════════════════════════════════
   5 · MISIÓN: el vídeo de producto a lo ancho
   ════════════════════════════════════════════════════════════════════════ */
.h-demo-title {
  margin-inline: auto; text-align: center;
  /* "advertise like big brands." en una sola línea: el tamaño baja con el
     ancho de pantalla para que quepa también en móvil. */
  font-size: min(clamp(2.25rem, 1.15rem + 4.3vw, 5rem), 7.4vw);
}
.h-demo-title .m { display: block; transition: color 0.9s ease; }
.is-night .h-demo-title .m { color: #fff; }
.h-demo-title .nw { white-space: nowrap; transition: color 0.9s ease; }
/* Con la noche, la frase es del mismo color que el fondo (invisible) y se
   revela en negro cuando se enciende la luz. */
.is-night .h-demo-title .nw { color: #060b16; }
.h-demo { overflow-x: clip; }
/* A sangre, con el mismo margen que los paneles del globo y del cierre. El
   recorte inicial (una ventana pequeña) lo pone GSAP; sin JS se ve entero. */
.h-demo-stage { margin-top: clamp(40px, 5vw, 72px); padding-inline: clamp(8px, 1vw, 14px); }
#demo-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #05050a;
  will-change: clip-path;
}
/* Que nunca se recorte el vídeo (lleva subtítulos abajo): 16:9 siempre y,
   si la pantalla es baja, más estrecho en vez de cortarlo. */
#demo-video-frame { max-height: none; max-width: calc(92svh * 16 / 9); margin-inline: auto; }
#demo-video-frame video { width: 100%; height: 100%; object-fit: cover; cursor: pointer; will-change: transform; }
.demo-timeline {
  position: absolute; left: clamp(12px, 2vw, 24px); right: clamp(12px, 2vw, 24px); bottom: clamp(14px, 2vw, 24px);
  display: flex; align-items: center; gap: 12px;
}
.demo-tl-track {
  position: relative; flex: 1; height: 3px;
  background: rgba(255, 255, 255, 0.28);
  border-radius: 3px;
  cursor: pointer;
}
.demo-tl-track::before { content: ''; position: absolute; inset: -10px 0; } /* zona táctil */
.demo-tl-track:focus-visible { outline-offset: 8px; }
.demo-tl-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: #fff; border-radius: 3px; }
.demo-tl-head { position: absolute; top: 50%; left: 0; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; border-radius: 50%; background: #fff; }
.demo-tl-time { font-size: 0.8125rem; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; min-width: 3ch; }

/* ════════════════════════════════════════════════════════════════════════
   6 · FAQ: título fijo a la izquierda en escritorio, acordeón a la derecha
   ════════════════════════════════════════════════════════════════════════ */
.h-faq { padding-top: clamp(48px, 6vw, 96px); }
.h-faq-grid { display: grid; gap: clamp(32px, 4vw, 48px); }
.h-faq-title { font-size: clamp(2rem, 1.2rem + 3vw, 3.75rem); max-width: 12ch; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 22px 48px 22px 0;
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
/* Más hecho con dos trazos: gira y se queda en menos al abrir. */
.faq-item summary::before,
.faq-item summary::after {
  content: '';
  position: absolute; right: 6px; top: 50%;
  width: 14px; height: 1.6px; margin-top: -0.8px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-out), opacity 0.25s ease;
}
.faq-item summary::after { transform: rotate(90deg); }
.faq-item[open] summary::after { transform: rotate(0deg); opacity: 0; }
.faq-item.is-closing summary::after { transform: rotate(90deg); opacity: 1; }
.faq-a { overflow: hidden; }
.faq-item summary:hover { color: var(--blue); }
.faq-item p {
  padding: 0 0 24px;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
}
.faq-item p a { color: var(--blue); text-underline-offset: 3px; }
@media (min-width: 1024px) {
  .h-faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); column-gap: clamp(48px, 7vw, 120px); }
  .h-faq-head { position: sticky; top: 112px; align-self: start; }
}

/* ════════════════════════════════════════════════════════════════════════
   7 · CIERRE
   ════════════════════════════════════════════════════════════════════════ */
.h-launch { padding: 0 clamp(8px, 1vw, 14px) clamp(8px, 1vw, 14px); }
.h-launch-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--r-xl);
  color: #fff;
  text-align: center;
  padding: clamp(88px, 12vw, 168px) var(--gutter);
  display: flex; flex-direction: column; align-items: center; gap: clamp(20px, 2.4vw, 28px);
  /* Azul cobalto profundo con un resplandor cian que entra por la izquierda,
     de canto irregular como luz de spray (launch-glow.svg), y grano encima. */
  background:
    url("/assets/images/home/launch-glow.svg") left center / 100% 100% no-repeat,
    linear-gradient(90deg, #1a62d8 0%, #1052cc 38%, #0c45c0 65%, #0a3ab2 100%);
}
@media (max-width: 767px) {
  /* En vertical el resplandor ocupa menos ancho para que el texto blanco
     quede siempre sobre azul. */
  .h-launch-panel { background-size: 62% 100%, auto; }
}
/* Grano: dos capas de ruido (fino y algo más grueso), en overlay. */
.h-launch-panel::before,
.h-launch-panel::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  mix-blend-mode: overlay;
}
.h-launch-panel::before {
  opacity: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.25' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}
.h-launch-panel::after {
  opacity: 0.8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.55' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}
.h-launch-panel .h-display { color: #fff; font-size: clamp(2.75rem, 1.3rem + 5.6vw, 6.5rem); }
.h-launch-panel p { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.55; color: rgba(255, 255, 255, 0.92); max-width: 36ch; }
.h-launch-panel .h-btn { margin-top: 8px; }

/* ════════════════════════════════════════════════════════════════════════
   POPUP de acceso (lo abren los "Launch now")
   ════════════════════════════════════════════════════════════════════════ */
#access-popup-overlay {
  position: fixed; inset: 0; z-index: 3000;
  background: rgba(0, 0, 0, 0.58);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
}
#access-popup {
  position: relative;
  width: min(460px, calc(100vw - 24px));
  background: rgba(6, 6, 10, 0.92);
  -webkit-backdrop-filter: blur(36px);
          backdrop-filter: blur(36px);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 2rem;
  padding: 42px 40px 36px;
  overflow: hidden;
  color: #fff;
}
#access-popup::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(160, 100, 255, 0.6) 30%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 160, 60, 0.5) 70%, transparent 100%);
  background-size: 200% 100%;
  animation: jc-shimmer 4s linear infinite;
}
#access-popup .ap-glow { display: none; }
#ap-close {
  position: absolute; top: 18px; right: 20px;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.15rem; line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
#ap-close:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }
#access-popup .ap-heading {
  position: relative;
  font-size: clamp(1.9rem, 3.2vw, 2.5rem); font-weight: 700;
  line-height: 1; letter-spacing: -0.014em;
  white-space: nowrap;
  margin-bottom: 24px;
}
#ap-toggle {
  position: relative;
  display: flex;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 16px;
}
#ap-toggle .at-pill {
  position: relative; z-index: 2;
  flex: 1; padding: 10px 0;
  text-align: center;
  font-size: 0.8125rem; font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  cursor: pointer; user-select: none;
  transition: color 0.3s;
}
#ap-toggle .at-pill.active { color: var(--ink); }
#ap-toggle .at-slider {
  position: absolute; z-index: 1;
  top: 4px; left: 4px;
  width: calc(50% - 4px); height: calc(100% - 8px);
  background: #fff; border-radius: 999px;
  transition: transform 0.42s var(--ease-out);
}
#access-popup.adv-mode #ap-toggle .at-slider { transform: translateX(100%); }
#access-popup .ap-hint {
  font-size: 0.875rem; line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 22px; min-height: 36px;
  transition: opacity 0.25s;
}
#access-popup .ap-hint.fade-out { opacity: 0; }
#access-popup .ap-divider { height: 1px; background: rgba(255, 255, 255, 0.06); margin-bottom: 20px; }
#ap-email {
  display: block; width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 14px 22px;
  font-family: inherit; font-size: 1rem; color: #fff;
  outline: none;
  margin-bottom: 10px;
  transition: background 0.2s, border-color 0.2s;
}
#ap-email::placeholder { color: rgba(255, 255, 255, 0.42); }
#ap-email:focus { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.3); }
#ap-submit {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 50px;
  background: #fff; color: var(--ink);
  border: 0; border-radius: 999px;
  font-family: inherit; font-size: 0.9375rem; font-weight: 700;
  white-space: nowrap; cursor: pointer;
  margin-bottom: 9px;
  transition: background 0.2s, transform 0.22s;
}
#ap-submit:hover { background: #ededed; transform: translateY(-2px); }
#ap-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
#ap-status { font-size: 0.8125rem; text-align: center; min-height: 18px; margin-top: 6px; line-height: 1.5; }
#ap-status.success { color: #4ade80; }
#ap-status.error { color: #f87171; }
@media (max-width: 767px) {
  #access-popup { padding: 40px 28px 30px; }
  #ap-toggle, #access-popup .ap-hint { display: none; }
}

/* ════════════════════════════════════════════════════════════════════════
   FOOTER (sin cambios de diseño)
   ════════════════════════════════════════════════════════════════════════ */
#site-footer { position: relative; z-index: 1; background: #fff; }
.ft-separator {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(37, 99, 235, 0.85) 22%, rgba(59, 130, 246, 0.55) 50%, rgba(37, 99, 235, 0.85) 78%, transparent 100%);
  background-size: 200% 100%;
  animation: ft-sep-shimmer 6s linear infinite;
}
@keyframes ft-sep-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.ft-inner { max-width: 1100px; margin: 0 auto; padding: 64px 6% 48px; }
.ft-links-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px 32px; margin-bottom: 52px; }
.ft-logo { height: 16px; opacity: 0.92; display: block; margin-bottom: 20px; }
.ft-tagline { font-size: 0.78rem; color: rgba(17, 17, 17, 0.52); line-height: 1.8; max-width: 220px; }
.ft-col-title { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(17, 17, 17, 0.38); margin-bottom: 18px; }
.ft-links { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ft-links a { font-size: 0.82rem; color: rgba(17, 17, 17, 0.62); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s; letter-spacing: -0.01em; }
.ft-links a:hover { color: #0c1442; }
.ft-socials { display: flex; gap: 8px; margin-top: 24px; }
.ft-social-icon { width: 32px; height: 32px; border-radius: 8px; border: 1px solid rgba(0, 0, 0, 0.1); display: flex; align-items: center; justify-content: center; color: rgba(17, 17, 17, 0.45); text-decoration: none; transition: border-color 0.2s, color 0.2s, background 0.2s; }
.ft-social-icon:hover { border-color: rgba(43, 95, 217, 0.35); color: #2b5fd9; background: rgba(43, 95, 217, 0.06); }
.ft-funding { display: flex; justify-content: center; padding: 8px 0 32px; }
.ft-funding img { max-width: 100%; width: 720px; height: auto; display: block; opacity: 0.92; }
.ft-tcf-badge { display: block; width: auto; height: 48px; margin-top: 18px; }
.ft-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; border-top: 1px solid rgba(0, 0, 0, 0.08); flex-wrap: wrap; gap: 10px; }
.ft-copy, .ft-made { font-size: 0.71rem; color: rgba(17, 17, 17, 0.42); letter-spacing: 0.01em; }
@media (max-width: 900px) {
  .ft-links-grid { grid-template-columns: 2fr 1fr 1fr; }
  .ft-col:last-child { grid-column: span 3; }
}
@media (max-width: 768px) {
  .ft-inner { padding: 48px 5% 36px; }
  .ft-links-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .ft-col-brand { grid-column: span 2; }
  .ft-col:last-child { grid-column: auto; }
  .ft-funding { padding: 4px 0 24px; }
  .ft-funding img { width: 100%; }
}
@media (max-width: 420px) {
  .ft-links-grid { gap: 24px 14px; }
  .ft-tagline { max-width: 100%; }
  .ft-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ── Movimiento reducido ── */
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal],
  html.js .h-steps-list .h-step { opacity: 1; transition: none; }
  html.js [data-reveal] { transform: none; }
  html.js .h-steps-list .h-step { transform: translateX(var(--x, 0)) rotate(var(--r, 0deg)); }
  .h-marquee { flex-wrap: wrap; justify-content: center; -webkit-mask-image: none; mask-image: none; }
  .h-marquee-track { animation: none; flex-wrap: wrap; justify-content: center; }
  .h-marquee-track[aria-hidden="true"] { display: none; }
  #join-card::before, #access-popup::before, .ft-separator { animation: none; }
  .h-globe-cta.is-hit { animation: none; }
  .h-case-peek img { transition: opacity 0.2s ease; transition-delay: 0s; }
  .h-btn, #join-card { transition: none; }
}

/* "All from one dashboard." siempre en su propia línea junto a la tele. */
.h-tv-copy .h-channels-title > .m:last-child { display: block; }

/* "On <país>": el país va rotando (home.js), más grande y en azul. */
.h-on {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.375rem, 1.05rem + 1.1vw, 2.125rem);
  line-height: 1.15; letter-spacing: -0.008em;
  color: var(--ink);
}
.h-tv-copy .h-on { font-size: clamp(1.375rem, 1.05rem + 1.1vw, 2.125rem); margin-top: clamp(14px, 1.6vw, 22px); max-width: none; }
.is-short .h-tv-copy .h-on { font-size: 1.25rem; }
.h-on .m { color: var(--mute); }
/* Las palabras se apilan en la misma celda de una rejilla (sin posición
   absoluta) y el recorte va con clip-path: Safari dejaba la palabra en
   blanco con overflow:hidden + transform. */
.h-rot { display: inline-grid; justify-items: start; vertical-align: bottom; overflow: clip; clip-path: inset(0 -0.2em); text-align: start; }
.h-rot-word { grid-area: 1 / 1; display: inline-block; color: var(--blue); white-space: nowrap; }

/* Demo: los controles (sonido, pantalla completa, línea de tiempo) solo se
   ven con el ratón encima, con foco dentro o tras tocar el vídeo en móvil. */
.demo-fs, .demo-timeline { opacity: 0; transition: opacity 0.3s ease; }
#demo-video-frame:hover .demo-fs, #demo-video-frame:hover .demo-timeline,
#demo-video-frame:focus-within .demo-fs, #demo-video-frame:focus-within .demo-timeline,
#demo-video-frame.is-ui .demo-fs, #demo-video-frame.is-ui .demo-timeline { opacity: 1; }
.demo-fs {
  position: absolute; right: clamp(12px, 2vw, 24px); bottom: clamp(40px, 5vw, 64px);
  border: 0; cursor: pointer; padding: 10px 14px; font-size: 0.875rem;
}
#demo-video-frame:fullscreen { border-radius: 0; aspect-ratio: auto; max-height: none; clip-path: none !important; }
#demo-video-frame:fullscreen video { object-fit: contain; background: #000; }

.h-step:nth-child(2) { background: #e8eefc; }

/* ── FAQ sobre una trama de puntos ──
   Puntos finos cada 22 px que se desvanecen hacia los bordes de la sección
   (máscara elíptica): textura, no cuadrícula. */
.h-faq { position: relative; isolation: isolate; }
.h-faq::before {
  content: '';
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(10, 10, 10, 0.16) 1px, transparent 1.4px);
  background-size: 22px 22px;
  background-position: center;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 35%, transparent 100%);
          mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 35%, transparent 100%);
}
/* La trama queda alrededor: detrás de las preguntas, fondo blanco limpio. */
.h-faq .faq-list { background: #fff; box-shadow: 0 0 0 24px #fff; }

/* Preguntas del FAQ en <h3> dentro de <summary> (estructura para buscadores);
   se ven igual que antes. */
.faq-q { font: inherit; margin: 0; letter-spacing: inherit; color: inherit; }
/* En español la frase de la misión es más larga: algo más pequeña para que
   siga cabiendo en una línea. */
html[lang="es"] .h-demo-title { font-size: min(clamp(2rem, 1rem + 4vw, 4.25rem), 5.6vw); }
