/* ==========================================================================
   CATV — sitio
   Letras alojadas en este servidor (licencia OFL, fonts/OFL.txt): ninguna
   visita le pasa datos a terceros para cargar la letra.
   ========================================================================== */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Plus Jakarta Sans: la letra de los títulos de la app. Su coma y su punto
   quedan despegados a tamaño grande, así que se excluyen (U+002C y U+002E)
   y salen de Inter 800. */
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-002B, U+002D, U+002F-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/plus-jakarta-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Arial ajustada a las medidas de Inter: el texto no salta al llegar la letra. */
@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 106.2%; ascent-override: 91.3%; descent-override: 22.6%; line-gap-override: 0%;
}

/* ---------- Diseño: valores comunes ---------- */
:root {
  color-scheme: dark;
  --bg: #000;
  --surface-1: #0b0b0d;
  --surface-2: #141416;
  --surface-3: #1c1c1e; /* CatvPalette.surface */
  --surface-4: #2c2c2e; /* CatvPalette.surfaceElevated */
  --text-1: #f5f5f7;
  --text-body: rgba(255, 255, 255, 0.80);
  --text-2: rgba(255, 255, 255, 0.64);
  --text-3: rgba(255, 255, 255, 0.50); /* 5,3:1 sobre negro: el mínimo */
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --accent: #00bfff;
  --accent-hover: #33ccff;
  --accent-12: rgba(0, 191, 255, 0.12);
  --accent-24: rgba(0, 191, 255, 0.24);
  --accent-50: rgba(0, 191, 255, 0.5);
  --tile-bg: linear-gradient(180deg, #121214, #0a0a0c);
  --tile-ring: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 0 1px rgba(255, 255, 255, 0.08);
  --tile-ring-hover: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.18), 0 18px 40px rgba(0, 0, 0, 0.55);
  --shadow-dialog: 0 40px 120px rgba(0, 0, 0, 0.8);
  --r-xs: 8px; --r-sm: 12px; --r-md: 16px; --r-lg: 22px; --r-xl: 28px; --r-pill: 999px;
  --font-display: "Plus Jakarta Sans", "Inter", "Inter Fallback", system-ui, sans-serif;
  --font-text: "Inter", "Inter Fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --fs-h2: clamp(2rem, 1.35rem + 2.6vw, 3.5rem);        /* 32 → 56 */
  --fs-h3: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);     /* 17 → 20 */
  --fs-lead: clamp(1.0625rem, 0.98rem + 0.45vw, 1.1875rem);
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);                     /* en celulares, 16 px */
  --section-y: clamp(72px, 9vw, 128px);
  --head-gap: clamp(32px, 4.5vw, 64px);
  --nav-h: 64px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --d-press: 120ms; --d-hover: 200ms; --d-exit: 220ms; --d-enter: 520ms; --d-reveal: 700ms;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
/* Con una ventana abierta, la página de fondo no se desplaza. */
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-1);
  font: 400 17px/1.55 var(--font-text);
  -webkit-font-smoothing: antialiased;
  /* clip y no hidden: con hidden el body pasa a desplazarse solo y la barra
     fija salta al abrir una ventana. */
  overflow-x: clip;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

.wrap {
  width: min(var(--max), 100% - 2 * max(var(--gutter), env(safe-area-inset-left), env(safe-area-inset-right)));
  margin-inline: auto;
}

h1, h2, h3 { font-family: var(--font-display); }
h1, h2 { text-wrap: balance; }
h2 { margin: 0; font-size: var(--fs-h2); font-weight: 800; line-height: 1.06; letter-spacing: -0.03em; }
h3 { font-weight: 700; line-height: 1.25; letter-spacing: -0.012em; }
p { text-wrap: pretty; }

/* Rótulo pequeño en mayúsculas (Paso 1, Cómo instalar CATV en…). */
.step-num, .install-kicker, .shotview-kicker {
  font: 700 12px/1.2 var(--font-display);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}

:where(a, button, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Saltar al contenido: solo aparece al llegar con el teclado. */
.skip-link {
  position: absolute; z-index: 30; top: 12px; left: 12px;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--accent); color: #000; font-size: 14px; font-weight: 600;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; outline-color: #fff; border-radius: var(--r-pill); text-decoration: none; }

/* ==========================================================================
   Barra superior: transparente sobre la portada, vidrio al bajar.
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 0;
  /* La línea va por dentro: la barra mide exactamente 64 px. */
  box-shadow: inset 0 -1px 0 var(--line);
  transition: background-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.js .nav--overlay:not(.is-solid) {
  background: transparent; box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); }
.brand { display: flex; align-items: center; padding-block: 12px; }
.brand:hover { text-decoration: none; }
.brand .wordmark { width: auto; height: 20px; border-radius: 0; box-shadow: none; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 500; }
.nav-links a { color: rgba(255, 255, 255, 0.72); padding-block: 11px; margin-block: -11px; transition: color var(--d-hover) var(--ease-out); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text-1); text-decoration: none; }
.nav-links .nav-cta {
  position: relative; display: inline-flex; align-items: center;
  height: 34px; padding: 0 16px; margin: 0;
  border-radius: var(--r-pill); background: var(--accent); color: #000; font-weight: 600;
  transition: background-color var(--d-hover) var(--ease-out), transform var(--d-press) var(--ease-out);
}
/* Zona táctil de 44 px alrededor de la píldora. */
.nav-cta::before { content: ""; position: absolute; inset: -5px -4px; }
.nav-links .nav-cta:hover { background: var(--accent-hover); color: #000; }
.nav-links .nav-cta:active { transform: scale(0.96); }
.nav-links .nav-cta:focus-visible { outline-color: #fff; border-radius: var(--r-pill); }

@media (max-width: 900px) {
  .nav-links { gap: 20px; }
}
@media (max-width: 640px) {
  .brand .wordmark { height: 18px; }
  .hide-sm { display: none; }
}

/* ==========================================================================
   Portada: icono, título, la tele con el celular, texto e insignias.
   ========================================================================== */
.hero {
  /* Tamaño del título: también entra en el cálculo de la composición. */
  --h1fs: min(68px, 4.7vw, 7.6svh);
  position: relative; overflow: hidden; text-align: center;
  margin-top: calc(-1 * var(--nav-h));
  padding: calc(var(--nav-h) + 28px) 0 48px;
}
/* Luz azul de fondo. */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(48% 34% at 50% 0%, rgba(0, 191, 255, 0.18), transparent 70%),
    radial-gradient(60% 40% at 50% 62%, rgba(0, 191, 255, 0.08), transparent 70%);
}
/* Fundido a negro hacia la sección siguiente (queda debajo del contenido). */
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 160px; pointer-events: none;
  background: linear-gradient(transparent, #000);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-icon {
  width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 15px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 16px 48px rgba(0, 191, 255, 0.26);
}
.hero h1 {
  margin: 0 auto; max-width: none;
  font-size: var(--h1fs); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em;
}
/* La frase azul siempre entera en su propia línea. */
.hero h1 .accent { display: block; color: var(--accent); }
.hero .lead { margin: 28px auto 0; max-width: 34em; font-size: 19px; line-height: 1.5; color: var(--text-2); }

/* Insignias oficiales de las tiendas: el dibujo no se toca, solo su tamaño. */
.badges { --bh: 44px; margin-top: 24px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }
.badges img, .stores img { height: var(--bh); width: auto; }
.badges img.gplay, .stores img.gplay { height: calc(var(--bh) * 250 / 192); margin-block: calc(var(--bh) * -29 / 192); }
.badges img[src*="microsoft"], .stores img[src*="microsoft"] { height: calc(var(--bh) * 44 / 42); margin-block: calc(var(--bh) * -1 / 42); }
.badge-link { display: inline-flex; border-radius: 10px; transition: transform var(--d-press) var(--ease-out); }
.badge-link:active { transform: scale(0.97); }
.badge-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }

/* La tele y el celular juntos, como una sola imagen. La tele manda (es la
   más grande) y el celular va delante de su esquina inferior derecha. Todo
   va en unidades del contenedor (cqw): la pareja escala igual en PC y en
   celular. 1,97 es la proporción ancho/alto de la composición: el ancho se
   limita para que llegue justo al borde de la primera pantalla (lo de
   arriba mide 243 px + dos líneas de título). */
.devices {
  --tv-left: 3.5cqw; --tv-w: 80cqw;
  --ph-left: 79.5cqw; --ph-w: 17cqw;
  --tilt-max: 4deg;
  position: relative;
  width: min(1160px, 100%, max(560px, calc((100svh - 243px - 2.08 * var(--h1fs)) * 1.97)));
  margin: 36px auto 0;
  padding-bottom: 3cqw;
  container-type: inline-size;
  transform-origin: 50% 100%;
}
/* Reflejo de la luz en el suelo, bajo las patas. */
.devices::after {
  content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 1.2cqw; height: 5cqw; pointer-events: none;
  background: radial-gradient(50% 50% at 46% 50%, rgba(150, 200, 230, 0.14), transparent 70%);
}

/* Tele de 2026: marco casi invisible, vidrio y dos patas finas inclinadas. */
.devices-tv { position: relative; margin-left: var(--tv-left); width: var(--tv-w); }
/* La pantalla ilumina la habitación con sus propios colores. */
.devices-tv::before {
  content: ""; position: absolute; z-index: -1; inset: -22% -14% -12%; pointer-events: none;
  background: url("img/tv-ambient.webp") center / 100% 100% no-repeat;
  opacity: 0.7;
  -webkit-mask: radial-gradient(closest-side, #000 55%, transparent);
  mask: radial-gradient(closest-side, #000 55%, transparent);
}
.devices-screen {
  position: relative;
  padding: 0.42cqw 0.42cqw 0.55cqw; border-radius: 0.7cqw;
  background: #060607;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 4cqw 10cqw rgba(0, 0, 0, 0.8);
}
.devices-screen img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0.25cqw; background: #000; }
/* Brillo fijo del vidrio. */
.devices-screen::before {
  content: ""; position: absolute; inset: 0.42cqw; border-radius: 0.25cqw; z-index: 1; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 28%, transparent 42%);
}
/* Destello de luz que cruza la pantalla una vez, al entrar. */
.devices-screen::after {
  content: ""; position: absolute; inset: 0.42cqw; border-radius: 0.25cqw; z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.07) 45%, rgba(255, 255, 255, 0.16) 50%, rgba(255, 255, 255, 0.07) 55%, transparent 62%) no-repeat;
  background-size: 300% 100%; background-position: 100% 0; opacity: 0;
}
.devices-stand { position: relative; height: 2.6cqw; }
.devices-stand::before, .devices-stand::after {
  content: ""; position: absolute; top: 0; width: 4.6cqw; height: 100%;
  background: linear-gradient(90deg, #121214, #4a4a50 45%, #1a1a1d);
}
.devices-stand::before { left: 8%; clip-path: polygon(70% 0, 86% 0, 16% 100%, 0 100%); }
.devices-stand::after { right: 8%; clip-path: polygon(14% 0, 30% 0, 100% 100%, 84% 100%); }

/* iPhone: borde de metal, Dynamic Island y botones laterales. */
.devices-phone {
  position: absolute; z-index: 1;
  left: var(--ph-left); bottom: 0; width: var(--ph-w);
  padding: 0; background: none; box-shadow: none;
}
.devices-phone-body {
  position: relative; display: block;
  padding: 0.55cqw; border-radius: 2.9cqw;
  background: #050506;
  box-shadow: 0 0 0 0.16cqw #45454b, 0 0 0 0.28cqw #161618, -1.5cqw 2cqw 5cqw rgba(0, 0, 0, 0.85);
}
.devices-phone-body::before {
  content: ""; position: absolute; left: -0.42cqw; top: 21%; width: 0.22cqw; height: 9%;
  border-radius: 0.2cqw 0 0 0.2cqw; background: #2c2c30; box-shadow: 0 -5.2cqw 0 #2c2c30;
}
.devices-phone-body::after {
  content: ""; position: absolute; right: -0.42cqw; top: 27%; width: 0.22cqw; height: 13%;
  border-radius: 0 0.2cqw 0.2cqw 0; background: #2c2c30;
}
.devices-phone-screen { position: relative; overflow: hidden; border-radius: 2.35cqw; }
.devices-phone-screen::before {
  content: ""; position: absolute; z-index: 1; top: 1.35%; left: 50%; width: 31%; height: 3.9%;
  translate: -50% 0; border-radius: 999px; background: #000;
}
.devices-phone-screen img { display: block; width: 100%; }

/* En pantallas altas la composición ya no crece (llega al ancho de la
   página): el espacio que sobra se reparte arriba y entre el título y la
   tele, para que el borde de la pantalla no corte el texto de debajo. Si
   sobra tanto que el texto y las insignias caben, no se reparte nada. */
@media (min-width: 1101px) {
  .hero {
    --slack: max(0px, 100svh - 243px - 2.08 * var(--h1fs) - min(1160px, 100vw - 80px) / 1.97);
    --push: calc(var(--slack) - clamp(0px, (var(--slack) - 195px) * 1000, var(--slack)));
    padding-top: calc(var(--nav-h) + 28px + var(--push) * 0.55);
  }
  .devices { margin-top: calc(36px + var(--push) * 0.45); }
}
@media (max-width: 900px) {
  .hero { --h1fs: min(56px, 7.4vw); }
}
@media (max-width: 739px) {
  /* Las cuatro insignias en 2 × 2, pegadas a un canal central común. */
  .badges { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; gap: 10px 12px; }
  .badges > :nth-child(odd) { justify-self: end; }
  .badges > :nth-child(even) { justify-self: start; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding-top: calc(var(--nav-h) + 20px); }
  .hero-icon { width: 60px; height: 60px; border-radius: 14px; margin-bottom: 18px; }
  /* 10,9 = ancho medido de «en todas tus pantallas.» (10,17 em) con margen. */
  .hero h1 { font-size: min(40px, calc((100vw - 2 * var(--gutter)) / 10.9)); }
  /* Misma pareja a todo el ancho de la pantalla; la tele sigue siendo la
     grande y el celular un poco mayor para que se lea. */
  .devices {
    --tv-left: 2cqw; --tv-w: 79cqw; --ph-left: 77cqw; --ph-w: 20cqw;
    --tilt-max: 3deg;
    width: calc(100% + 2 * var(--gutter));
    margin-top: 26px; margin-inline: calc(-1 * var(--gutter));
  }
  .hero .lead { margin-top: 22px; font-size: 16.5px; }
  .badges { --bh: min(40px, 11vw); gap: 10px; margin-top: 22px; }
}

/* ==========================================================================
   Secciones
   ========================================================================== */
section { padding-block: var(--section-y); }
.section-head { max-width: 760px; margin: 0 auto var(--head-gap); text-align: center; }
.section-head p { max-width: 34em; margin: 16px auto 0; font-size: clamp(17px, 0.95rem + 0.35vw, 19px); color: var(--text-2); }
@media (min-width: 1024px) {
  /* Título a la izquierda y texto a la derecha, alineados por abajo. */
  .section-head--split {
    max-width: none; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 48px; align-items: end; text-align: left;
  }
  .section-head--split p { margin: 0; justify-self: end; max-width: 30em; }
}

/* ==========================================================================
   Funciones: mosaico con imágenes y, debajo, tres más en una franja.
   ========================================================================== */
.features { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.feature {
  grid-column: span 2; position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; min-height: 272px; padding: 28px;
  border: 0; border-radius: var(--r-xl);
  background: var(--tile-bg); box-shadow: var(--tile-ring);
}
.feature h3 { margin: 0 0 8px; font-size: var(--fs-h3); }
.feature p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--text-2); }
.feature .ico { color: var(--accent); }
.feature .ico svg { display: block; width: 22px; height: 22px; }

/* Imagen de fondo de una tarjeta. */
.feature-art { position: absolute; inset: 0; z-index: -1; }
.feature-art img { width: 100%; height: 100%; object-fit: cover; }

/* A · Calidad original: la tarjeta grande. Sintel arriba, casi en su
   proporción (sin ampliarla de más), y el texto sobre su fundido. */
.feature--hero { grid-column: span 4; grid-row: span 2; min-height: 0; justify-content: flex-end; padding: 0 40px 40px; }
.feature--hero .feature-art {
  position: relative; inset: auto; flex: 1 0 auto; overflow: hidden;
  aspect-ratio: 940 / 560; margin: 0 -40px -76px;
  -webkit-mask: linear-gradient(#000 52%, rgba(0, 0, 0, 0.45) 76%, transparent 97%);
  mask: linear-gradient(#000 52%, rgba(0, 0, 0, 0.45) 76%, transparent 97%);
}
.feature--hero .feature-art img { position: absolute; inset: 0; object-position: 10% 38%; }
/* Penumbra arriba a la izquierda, bajo la placa del icono. */
.feature--hero .feature-art::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(45% 55% at 0 0, rgba(0, 0, 0, 0.45), transparent 70%);
}
.feature--hero h3 { font-size: clamp(28px, 2.9vw, 40px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.feature--hero p { margin-top: 12px; max-width: 38ch; font-size: 18px; color: var(--text-body); }

/* C · Chromecast: la llama de Caminandes. */
.feature--art { justify-content: flex-end; }
.feature--art .feature-art img { object-position: 50% 4%; }
.feature--art .feature-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, #000 12%, rgba(0, 0, 0, 0.55) 45%, transparent 75%);
}
.feature--art p { color: var(--text-body); }

/* Icono en una placa de vidrio sobre la imagen (A y C). En C va a la
   derecha para no tapar la cara de la llama. */
.feature--hero .ico, .feature--art .ico {
  position: absolute; top: 24px; left: 24px;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  color: #fff;
}

.feature--art .ico { left: auto; right: 24px; }

/* B · Seguir viendo: una fila real de la app. */
.feature-visual { margin-bottom: auto; padding-bottom: 20px; display: grid; gap: 12px; }
.cw-row { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: center; }
.cw-row img { width: 76px; height: 43px; object-fit: cover; border-radius: var(--r-xs); }
.cw-row .cw-llama { object-position: 50% 22%; }
.cw-row b { display: block; font-size: 13.5px; font-weight: 600; color: var(--text-1); }
.cw-row small { display: block; font-size: 12.5px; color: var(--text-3); }
.cw-bar {
  display: block; height: 3px; margin-top: 7px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent) var(--p), rgba(255, 255, 255, 0.16) 0);
}
/* Icono encima del título, como en la franja de abajo. */
.feature--resume .feature-visual { padding-bottom: 16px; }
.feature--resume .ico { margin-bottom: 12px; }
.feature--resume .ico svg { width: 24px; height: 24px; }

/* D, E, F: franja de tres separadas por líneas finas. */
.features-list {
  margin-top: 16px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border-radius: var(--r-xl); overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
}
.features-list .feature {
  grid-column: auto; min-height: 0; padding: 32px 32px 36px;
  border-radius: 0; background: linear-gradient(180deg, #0c0c0e, #09090b); box-shadow: none;
}
.features-list .ico { width: auto; height: auto; margin: 0 0 20px; background: none; color: var(--accent); }
.features-list .ico svg { width: 26px; height: 26px; }

/* Hasta 1199 px la tarjeta grande va a todo el ancho: en el mosaico de
   seis columnas su imagen tendría que ampliarse de más para igualar la
   altura de las dos de la derecha. */
@media (max-width: 1199px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { grid-column: span 1; }
  .feature--hero { grid-column: span 2; grid-row: auto; }
  .feature--hero .feature-art { max-height: 480px; }
}
/* Tablet acostada y PC chicas: la tarjeta es muy ancha, así que Sintel va a
   la derecha y el texto a la izquierda (la imagen no se amplía de más). */
@media (min-width: 901px) and (max-width: 1199px) {
  .feature--hero { min-height: 420px; padding: 40px; justify-content: flex-end; }
  .feature--hero .feature-art {
    position: absolute; inset: 0 0 0 auto; width: 66%; max-height: none; margin: 0; aspect-ratio: auto;
    -webkit-mask: linear-gradient(90deg, transparent, #000 42%);
    mask: linear-gradient(90deg, transparent, #000 42%);
  }
  .feature--hero .feature-art img { object-position: 20% 40%; }
  .feature--hero h3, .feature--hero p { max-width: 21em; }
  .feature--hero p { max-width: 24em; }
}
@media (max-width: 899px) {
  .features-list { grid-template-columns: 1fr; border-radius: var(--r-lg); }
  .features-list .feature { display: grid; grid-template-columns: 26px 1fr; column-gap: 16px; padding: 20px 18px; }
  .features-list .ico { grid-row: span 2; margin: 2px 0 0; }
  .features-list h3 { font-size: 17px; margin-bottom: 4px; }
  .features-list p { font-size: 15px; }
}
@media (max-width: 640px) {
  .features { grid-template-columns: 1fr; gap: 12px; }
  .features-list { margin-top: 12px; }
  .feature { padding: 22px; border-radius: var(--r-lg); }
  .feature--hero { grid-column: auto; padding: 0 22px 24px; }
  .feature--hero .feature-art { aspect-ratio: 3 / 2; margin: 0 -22px -44px; }
  .feature--hero .feature-art img { object-position: 8% 40%; }
  .feature--hero h3 { font-size: 28px; }
  .feature--hero p { font-size: 16px; }
  .feature--hero .ico { top: 20px; left: 20px; }
  .feature--art .ico { top: 20px; right: 20px; }
  .feature--art { min-height: 300px; }
}

/* ==========================================================================
   Galería del iPhone: escenario iluminado con tres pantallas iguales.
   ========================================================================== */
.section--gallery { position: relative; isolation: isolate; overflow: clip; }
/* Resplandor de Sintel ya desenfocado en el archivo: sin filtros en vivo. */
.gallery-glow {
  position: absolute; left: 50%; top: 56%; z-index: -1; pointer-events: none;
  width: min(1500px, 160%); aspect-ratio: 192 / 120; translate: -50% -50%;
  background: url("img/gallery-glow.webp") center / 100% 100% no-repeat;
  opacity: 0.5;
  -webkit-mask: radial-gradient(closest-side, #000 30%, transparent);
  mask: radial-gradient(closest-side, #000 30%, transparent);
}
.gallery { display: flex; justify-content: center; align-items: flex-start; gap: 56px; }
.gallery figure { flex: 0 0 240px; margin: 0; text-align: center; }

/* Marco de iPhone (también en la ventana de detalles). */
.phone {
  position: relative; display: block; width: 100%;
  padding: 7px; border-radius: 40px;
  background: #050506;
  box-shadow: 0 0 0 1.5px #45454b, 0 0 0 3px #161618, 0 40px 90px rgba(0, 0, 0, 0.9);
}
.phone img { border-radius: 33px; }
.phone::after {
  content: ""; position: absolute; left: 50%; top: 2.6%; width: 29%; height: 3.8%;
  translate: -50% 0; border-radius: 999px; background: #000;
}

.shot-btn {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  color: inherit; font: inherit; text-align: center; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.shot-btn:focus-visible { outline: none; }
.shot-btn:focus-visible .phone { box-shadow: 0 0 0 3px var(--accent), 0 40px 90px rgba(0, 0, 0, 0.9); }
/* El marco va posicionado (por la isla): los textos también, para quedar
   por encima de su sombra. */
.shot-label, .shot-sub, .shot-more { position: relative; }
.shot-label { display: block; margin-top: 22px; font: 700 17px/1.3 var(--font-display); color: var(--text-1); }
.shot-sub { display: block; margin: 4px auto 0; max-width: 24ch; min-height: calc(2em * 1.45); font-size: 14px; line-height: 1.45; color: var(--text-2); text-wrap: balance; }
.shot-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-size: 14px; font-weight: 600; color: var(--accent);
  transition: color var(--d-hover) var(--ease-out);
}
.shot-more::before {
  content: "+"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px currentColor; font-size: 14px; line-height: 1;
}
.shot-btn:hover .shot-more, .shot-btn:focus-visible .shot-more { color: var(--text-1); }
.gallery .phone { transition: transform var(--d-hover) var(--ease-out), box-shadow var(--d-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .gallery figure:hover .phone { transform: translateY(-8px); }
}
.shot-btn:active .phone { transform: scale(0.98); transition-duration: var(--d-press); }
.gallery-dots { display: none; }

@media (max-width: 900px) {
  .gallery { gap: 24px; }
  .gallery figure { flex: 0 1 220px; min-width: 0; }
}
@media (max-width: 640px) {
  /* Carrusel centrado que se desliza con el dedo, con las vecinas asomando. */
  .gallery {
    justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; gap: 16px;
    margin: -8px calc(-1 * var(--gutter)) 0;
    padding: 8px calc(50vw - min(32vw, 125px)) 8px;
    scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery figure { flex: 0 0 min(64vw, 250px); scroll-snap-align: center; }
  .gallery-glow { width: 220%; opacity: 0.4; }
  .shot-sub { font-size: 13px; }
  .gallery .phone { padding: 6px; border-radius: 32px; }
  .gallery .phone img { border-radius: 27px; }
  .gallery-dots { display: flex; justify-content: center; gap: 6px; margin-top: 16px; }
  .gallery-dots span {
    width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.25);
    transition: width 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
  }
  .gallery-dots span.is-on { width: 20px; background: var(--accent); }
}

/* ==========================================================================
   Cómo empezar: línea de tiempo abierta sobre una sola pista.
   ========================================================================== */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 24px; left: calc(100% / 6); right: calc(100% / 6); height: 1px; z-index: 0;
  transform-origin: left;
  background: linear-gradient(90deg, var(--accent-50), var(--accent-24) 50%, var(--accent-50));
}
.step { display: flex; flex-direction: column; align-items: center; padding: 0 28px; text-align: center; background: none; border: 0; border-radius: 0; }
.step .ico {
  position: relative; z-index: 1;
  width: 48px; height: 48px; margin: 0 auto 24px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--bg); color: var(--accent);
  /* El anillo negro de 10 px corta la pista limpiamente. */
  box-shadow: inset 0 0 0 1px var(--accent-50), 0 0 0 10px var(--bg), 0 0 24px rgba(0, 191, 255, 0.18);
}
.step .ico svg { width: 22px; height: 22px; }
.step-num { display: block; margin-bottom: 8px; }
.step h3 { margin: 0 0 8px; font-size: 21px; }
.step p { margin: 0 auto 18px; max-width: 30ch; font-size: 15.5px; color: var(--text-2); }
/* Las tres pistas de abajo, a la misma altura aunque los textos midan distinto. */
.step-link {
  position: relative; display: inline-flex; align-items: center; gap: 4px;
  height: 36px; margin-top: auto;
  font-size: 15px; font-weight: 600; color: var(--accent);
  transition: color var(--d-hover) var(--ease-out);
}
.step-link::before { content: ""; position: absolute; inset: -4px -8px; }
.step-link::after { content: "→"; transition: transform var(--d-hover) var(--ease-out); }
.step-link:hover { color: var(--accent-hover); text-decoration: none; }
.step-link:hover::after { transform: translateX(3px); }
/* Pequeñas pistas de la app. */
.step-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; margin-top: auto; padding: 0 14px; border-radius: 10px; font-size: 13.5px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-body);
}
.step-url { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
/* Un fragmento de la app, no un botón: no se ve como algo que se toca. */
.step-play { font-weight: 500; font-size: 14px; }
.step-play svg { color: var(--accent); }

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .step { position: relative; display: grid; grid-template-columns: 48px 1fr; column-gap: 20px; text-align: left; padding: 0 0 36px; }
  .step:last-child { padding-bottom: 0; }
  .step .ico { grid-row: 1 / span 5; margin: 0; }
  .step:not(:last-child)::after {
    content: ""; position: absolute; left: 24px; top: 58px; bottom: 10px; width: 1px;
    background: linear-gradient(180deg, var(--accent-50), var(--accent-24));
  }
  .step h3 { font-size: 19px; }
  .step p { margin: 0; max-width: none; }
  .step-link, .step-chip { justify-self: start; margin-top: 14px; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .steps { max-width: 560px; margin-inline: auto; }
}

/* ==========================================================================
   Plataformas: dos grupos, un mismo sistema de logotipos.
   ========================================================================== */
.pgroup + .pgroup { margin-top: 32px; }
.pgroup-label {
  margin: 0 0 14px 2px;
  font: 700 12px/1.2 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-3);
}
.platforms { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
/* Las teles son seis: misma anchura total que la fila de arriba. */
.platforms--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.platform {
  position: relative; width: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  min-height: 132px; padding: 24px 12px 20px;
  border: 0; border-radius: var(--r-lg);
  background: var(--tile-bg); box-shadow: var(--tile-ring);
  color: inherit; font: inherit; text-align: center; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: box-shadow var(--d-hover) var(--ease-out), transform var(--d-hover) var(--ease-out), background-color var(--d-hover) var(--ease-out);
}
.platform-mark { height: 44px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.platform-mark .glyph { width: 26px; height: 26px; flex: none; }
.platform-name { font: 700 19px/1 var(--font-display); letter-spacing: -0.01em; white-space: nowrap; }
.platform-sub { font-size: 13px; line-height: 1.35; color: var(--text-3); text-wrap: balance; }
/* Logotipos de texto por altura: todos con el mismo peso visual. */
.platform .wm { width: auto; max-width: 100%; }
.platform .wm-firetv { height: 30px; }
.platform .wm-lg { height: 26px; }
.platform .wm-roku { height: 20px; }
.platform .wm-samsung { height: 15px; }
/* Flecha: se puede tocar. */
.platform::after {
  content: ""; position: absolute; top: 14px; right: 14px; width: 14px; height: 14px;
  background: center / 14px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-opacity='.5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E");
  transition: translate var(--d-hover) var(--ease-out);
}
.platform:hover::after, .platform:focus-visible::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300bfff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E");
  translate: 2px 0;
}
@media (hover: hover) and (pointer: fine) {
  .platform:hover { box-shadow: var(--tile-ring-hover); transform: translateY(-2px); }
}
.platform:active { transform: scale(0.97); transition-duration: var(--d-press); }

@media (max-width: 1100px) {
  .platforms { gap: 10px; }
  .platform { min-height: 128px; padding: 20px 8px 18px; }
  .platform-mark { flex-direction: column; gap: 6px; height: 56px; }
  .platform-mark .glyph { width: 24px; height: 24px; }
  .platform-name { font-size: 14px; }
  .platform-sub { font-size: 12px; }
  .platform .wm-firetv { height: 25px; }
  .platform .wm-lg { height: 22px; }
  .platform .wm-roku { height: 16px; }
  .platform .wm-samsung { height: 12px; }
}
@media (max-width: 640px) {
  /* Lista agrupada, como los ajustes del iPhone. */
  .platforms {
    display: block; border-radius: var(--r-lg); overflow: hidden;
    background: var(--surface-1); box-shadow: 0 0 0 1px var(--line);
  }
  .platform {
    flex-direction: row; justify-content: flex-start; gap: 14px;
    min-height: 60px; padding: 12px 44px 12px 16px;
    border-radius: 0; background: none; box-shadow: none; text-align: left;
  }
  .platform + .platform { box-shadow: inset 0 1px 0 var(--line); }
  .platform:focus-visible { outline-offset: -3px; }
  .platform-mark { flex-direction: row; gap: 10px; height: 26px; justify-content: flex-start; flex: none; }
  .platform-mark .glyph { width: 22px; height: 22px; }
  .platform-name { font-size: 16px; }
  .platform .wm-firetv { height: 23px; }
  .platform .wm-lg { height: 20px; }
  .platform .wm-roku { height: 15px; }
  .platform .wm-samsung { height: 11.5px; }
  .platform-sub { margin-left: auto; max-width: 52%; text-align: right; font-size: 13px; color: var(--text-2); }
  .platform::after { top: 50%; right: 16px; translate: 0 -50%; }
  .platform:hover::after, .platform:focus-visible::after { translate: 2px -50%; }
  .platform:active { background: var(--surface-2); transform: none; }
}

/* Barra de descarga: tiendas oficiales y búsqueda en las teles. */
.stores-dock {
  margin-top: 40px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px 40px;
  padding: 24px 28px; border-radius: var(--r-xl);
  background: var(--tile-bg); box-shadow: var(--tile-ring);
}
.stores-dock .stores { --bh: 44px; margin: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 12px; }
.stores-dock .note { margin: 10px 0 0; text-align: left; font-size: 15px; color: var(--text-2); }
.search-pill {
  display: flex; width: max-content; align-items: center; gap: 8px;
  height: 36px; padding: 0 16px 0 12px; border-radius: var(--r-pill);
  background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--text-1); font: 700 15px/1 var(--font-display); letter-spacing: 0.02em;
}
.search-pill svg { color: var(--text-3); }
/* Cursor fijo (sin parpadeo). */
.search-pill::after { content: ""; width: 1.5px; height: 16px; background: var(--accent); }

@media (max-width: 1179px) {
  .stores-dock { grid-template-columns: 1fr; text-align: center; padding: 24px 18px; }
  .search-pill { margin-inline: auto; }
  .stores-dock .note { text-align: center; }
  .stores-dock .stores { justify-content: center; }
}
@media (max-width: 767px) {
  .stores-dock .stores { --bh: min(42px, 11.5vw); display: grid; grid-template-columns: repeat(2, auto); justify-content: center; align-items: center; gap: 12px 10px; }
  .stores-dock .stores > :nth-child(odd) { justify-self: end; }
  .stores-dock .stores > :nth-child(even) { justify-self: start; }
}

/* ==========================================================================
   Final: Tears of Steel de fondo.
   ========================================================================== */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; align-items: center;
  min-height: clamp(380px, 36vw, 480px); padding: clamp(40px, 6vw, 80px);
  text-align: left; border: 0; border-radius: var(--r-xl);
  background: #04070a; box-shadow: var(--tile-ring);
}
.cta-art {
  position: absolute; top: 0; right: 0; z-index: -2;
  width: 56%; height: 100%; object-fit: cover; object-position: 55% 60%;
  /* Sin borde duro donde empieza la imagen (ni a la izquierda ni arriba).
     El archivo ya viene con el tono frío de la marca. */
  -webkit-mask: linear-gradient(90deg, transparent, #000 35%), linear-gradient(transparent, #000 30%);
  -webkit-mask-composite: source-in;
  mask: linear-gradient(90deg, transparent, #000 35%), linear-gradient(transparent, #000 30%);
  mask-composite: intersect;
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, #04070a 40%, rgba(4, 7, 10, 0.72) 58%, rgba(4, 7, 10, 0.1) 100%),
    linear-gradient(0deg, rgba(4, 7, 10, 0.7), transparent 40%),
    radial-gradient(60% 90% at 0% 0%, rgba(0, 191, 255, 0.14), transparent 60%);
}
.cta-copy { max-width: 36rem; }
.cta-icon {
  width: 56px; height: 56px; border-radius: 13px; margin-bottom: 24px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 14px 40px rgba(0, 191, 255, 0.24);
}
.cta h2 { font-size: clamp(34px, 3.8vw, 52px); }
.cta p { margin: 16px 0 0; max-width: 42ch; font-size: var(--fs-lead); color: var(--text-2); }
/* La acción con la que termina la página. */
.cta-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 48px; margin-top: 28px; padding: 0 26px;
  border-radius: var(--r-pill); background: var(--accent); color: #000;
  font-size: 16px; font-weight: 600;
  transition: background-color var(--d-hover) var(--ease-out), transform var(--d-press) var(--ease-out);
}
.cta-btn:hover { background: var(--accent-hover); text-decoration: none; }
.cta-btn:active { transform: scale(0.97); }
.cta-btn:focus-visible { outline-color: #fff; border-radius: var(--r-pill); }

@media (max-width: 640px) {
  .cta { display: block; min-height: 0; padding: 0 0 32px; border-radius: var(--r-lg); }
  .cta-art {
    position: relative; width: 100%; height: 220px; object-position: 50% 62%;
    -webkit-mask: linear-gradient(#000 45%, transparent);
    mask: linear-gradient(#000 45%, transparent);
  }
  .cta::before { display: none; }
  .cta-copy { position: relative; margin-top: -48px; padding: 0 22px; max-width: none; }
  /* «tu servidor Emby.» va siempre entero en una línea (mide 8,06 em). */
  .cta h2 { font-size: min(34px, calc((100vw - 76px) / 8.2)); }
}

/* ==========================================================================
   Pie de página (compartido por las dos páginas)
   ========================================================================== */
.site-footer {
  padding: 56px 0 calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #050506, #000);
  color: var(--text-3); font-size: 14px;
}
.foot-top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
  padding-bottom: 28px; border-bottom: 1px solid var(--line);
}
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; font-weight: 500; }
.foot-nav a { color: var(--text-2); padding-block: 11px; margin-block: -11px; transition: color var(--d-hover) var(--ease-out); }
.foot-nav a:hover { color: var(--text-1); text-decoration: none; }
.foot-legal { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; padding-top: 28px; }
.foot-legal p { margin: 0; max-width: 78ch; font-size: 12px; line-height: 1.65; }
.foot-legal p:only-child { grid-column: 1 / -1; max-width: 110ch; }
.foot-copy { margin: 24px 0 0; font-size: 13px; color: var(--text-2); }

@media (max-width: 900px) {
  .foot-legal { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .foot-top { flex-direction: column; align-items: flex-start; }
  .foot-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; width: 100%; }
  .foot-nav a { padding-block: 12px; margin: 0; }
}

/* ==========================================================================
   Política de privacidad
   ========================================================================== */
.doc { padding: 56px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc-head { padding-bottom: 40px; margin-bottom: 48px; border-bottom: 1px solid var(--line); }
.doc h1 { margin: 0; font: 800 clamp(2.25rem, 1.5rem + 3vw, 3.5rem)/1.05 var(--font-display); letter-spacing: -0.03em; }
.doc .updated {
  display: inline-block; margin: 16px 0 0; padding: 6px 12px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.06); font-size: 13px; color: var(--text-2);
}
.doc .doc-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; list-style: none; margin: 32px 0 0; padding: 0; }
.doc .doc-summary li { margin: 0; padding: 18px; border-radius: var(--r-lg); background: var(--tile-bg); box-shadow: var(--tile-ring); max-width: none; }
.doc-summary svg { display: block; width: 24px; height: 24px; color: var(--accent); }
.doc-summary b { display: block; margin-top: 10px; font-family: var(--font-display); font-weight: 700; color: var(--text-1); }
.doc-summary span { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: var(--text-2); }
.doc h2 {
  margin: 48px 0 14px; padding-top: 40px; border-top: 1px solid var(--line);
  font: 800 clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem)/1.2 var(--font-display); letter-spacing: -0.02em;
}
.doc .doc-head + h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.doc p, .doc li { color: var(--text-body); font-size: 17px; line-height: 1.65; max-width: 68ch; }
.doc ul { padding-left: 22px; }
.doc li { margin: 8px 0; }
.doc strong { color: var(--text-1); font-weight: 600; }
.doc .nope-list { list-style: none; padding: 0; }
.nope-list li { position: relative; padding-left: 32px; }
.nope-list li::before {
  content: ""; position: absolute; left: 0; top: 0.25em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent-12) center / 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300bfff' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
}
.table-scroll { overflow-x: auto; margin: 18px 0; border: 0; border-radius: var(--r-md); box-shadow: 0 0 0 1px var(--line); }
.doc table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.doc th { background: var(--surface-2); color: var(--text-1); font-weight: 600; }
.doc tr:last-child td { border-bottom: 0; }
.doc td { color: var(--text-2); }
.doc td:first-child { color: var(--text-1); font-weight: 500; }
.doc-toc { display: none; }

@media (min-width: 1100px) {
  /* Mismo ancho que la barra: el índice empieza donde empieza el logo. */
  .doc .wrap { max-width: var(--max); }
  .doc-layout { display: grid; grid-template-columns: 220px minmax(0, 760px); gap: 72px; }
  .doc-toc {
    position: sticky; top: calc(var(--nav-h) + 32px); align-self: start;
    display: grid; gap: 2px; font-size: 14px; margin-left: -12px;
  }
  .doc-toc a { padding: 7px 12px; border-radius: var(--r-xs); color: var(--text-2); transition: color var(--d-hover) var(--ease-out), background-color var(--d-hover) var(--ease-out); }
  .doc-toc a:hover { color: var(--text-1); background: rgba(255, 255, 255, 0.05); text-decoration: none; }
  .doc-toc a[aria-current] { color: var(--text-1); background: rgba(255, 255, 255, 0.06); box-shadow: inset 2px 0 0 var(--accent); }
}
@media (max-width: 640px) {
  .doc { padding-top: 40px; }
  .doc p, .doc li { font-size: 16px; }
  .doc .doc-summary { grid-template-columns: 1fr; }
  /* Cada fila de tabla como una tarjeta con sus etiquetas. */
  .table-scroll { overflow: visible; border-radius: 0; box-shadow: none; }
  .doc table { min-width: 0; }
  .doc table, .doc tbody, .doc tr, .doc td { display: block; width: 100%; }
  .doc thead { display: none; }
  .doc tr { margin-bottom: 10px; padding: 14px 16px; border: 0; border-radius: var(--r-md); background: var(--tile-bg); box-shadow: var(--tile-ring); }
  .doc td { padding: 3px 0; border: 0; }
  .doc td:first-child { font-weight: 700; font-size: 16px; padding-bottom: 6px; }
  .doc td:not(:first-child)::before { content: attr(data-label) " · "; color: var(--text-3); }
}

/* ==========================================================================
   Ventanas: pasos de instalación y detalles de cada pantalla.
   ========================================================================== */
.install, .shotview { padding: 0; border: 0; background: transparent; color: var(--text-1); max-width: none; overflow: visible; }
.install { width: min(560px, calc(100% - 32px)); max-height: calc(100dvh - 48px); }
.shotview { width: min(940px, calc(100% - 32px)); max-height: calc(100dvh - 40px); }
.install::backdrop, .shotview::backdrop {
  background: rgba(0, 0, 0, 0.68);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
@media (pointer: coarse) {
  /* En pantallas táctiles, sin desenfoque: más fluido. */
  .install::backdrop, .shotview::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(0, 0, 0, 0.74); }
}
.install-panel, .shotview-panel {
  position: relative; overflow-y: auto; overscroll-behavior: contain;
  background:
    radial-gradient(70% 80% at 22% 30%, rgba(0, 191, 255, 0.12), transparent 65%),
    linear-gradient(180deg, var(--surface-3), #151517);
  border: 1px solid var(--line-2); border-radius: var(--r-xl);
  box-shadow: var(--shadow-dialog);
}
.install h3, .shotview h3 { font-family: var(--font-display); font-weight: 800; }
.install-close, .shotview-close {
  position: absolute; z-index: 1; width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: var(--surface-4); color: var(--text-1);
  display: grid; place-items: center; cursor: pointer;
  transition: background-color var(--d-hover) var(--ease-out), transform var(--d-press) var(--ease-out);
}
/* Zona táctil de 44 px. */
.install-close::before, .shotview-close::before { content: ""; position: absolute; inset: -4px; }
.install-close svg, .shotview-close svg { width: 18px; height: 18px; }
.install-close:hover, .shotview-close:hover { background: #3a3a3c; }
.install-close:active, .shotview-close:active { transform: scale(0.92); }
.install-close:focus-visible, .shotview-close:focus-visible { border-radius: 50%; }

/* Pasos de instalación. */
.install-panel { max-height: calc(100dvh - 48px); padding: 32px 32px 28px; }
.install-close { top: 14px; right: 14px; }
.install-head { display: flex; align-items: center; gap: 16px; padding-right: 40px; margin-bottom: 24px; }
.install-logo {
  flex: none; width: 64px; height: 64px; border-radius: var(--r-md);
  display: grid; place-items: center; background: var(--surface-4); border: 0;
}
.install-logo img, .install-logo svg { width: 32px; height: 32px; object-fit: contain; }
.install-logo.is-wordmark img { width: 42px; height: 28px; }
.install-kicker { margin: 0; }
.install h3 { margin: 4px 0 0; font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.install-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.install-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; }
.install-num {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-12); color: var(--accent); font: 800 15px/1 var(--font-display);
}
.install-steps p { margin: 4px 0 0; color: var(--text-body); font-size: 16px; line-height: 1.5; }
.install-steps b { color: var(--text-1); font-weight: 700; }
.install-store { --bh: 44px; margin-top: 26px; display: flex; justify-content: center; }
.install-store img { height: var(--bh); width: auto; }
.install-store img.gplay { height: calc(var(--bh) * 250 / 192); margin-block: calc(var(--bh) * -29 / 192); }
.install-store img[src*="microsoft"] { height: calc(var(--bh) * 44 / 42); margin-block: calc(var(--bh) * -1 / 42); }
.install-store p { margin: 0; color: var(--text-2); font-size: 15px; text-align: center; }
.install-tip { margin: 12px 0 0; color: var(--text-2); font-size: 14px; text-align: center; }
.install-note {
  margin: 22px 0 0; padding: 14px 16px; border-radius: var(--r-md);
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text-2); font-size: 14px; line-height: 1.5;
}
.install-note span { color: var(--text-1); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

/* Detalles de cada pantalla: imagen a la izquierda, información a la derecha. */
.shotview-panel {
  display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center; gap: 44px;
  max-height: calc(100dvh - 40px);
  padding: 44px 56px 44px 44px;
}
.shotview-close { top: 16px; right: 16px; }
.shotview-media { display: flex; justify-content: center; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.shotview-media .phone { width: min(290px, 100%, calc((100dvh - 172px) * 0.46)); }
.shotview-media img { -webkit-user-drag: none; }
.shotview-kicker { margin: 0; }
.shotview h3 { margin: 8px 0 0; font-size: clamp(28px, 3.4vw, 38px); line-height: 1.08; letter-spacing: -0.025em; }
.shotview-lede { margin: 14px 0 0; color: var(--text-2); font-size: 18px; line-height: 1.5; }
.shotview-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.shotview-points li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; color: var(--text-body); font-size: 16px; line-height: 1.5; }
.shotview-points svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--accent-12); color: var(--accent); }
.shotview-nav { display: flex; align-items: center; gap: 10px; margin-top: 32px; }
.shotview-arrow {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.05); color: var(--text-1);
  transition: border-color var(--d-hover) var(--ease-out), background-color var(--d-hover) var(--ease-out), transform var(--d-press) var(--ease-out);
}
.shotview-arrow svg { width: 20px; height: 20px; }
.shotview-arrow:hover { border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.1); }
.shotview-arrow:active { transform: scale(0.92); }
.shotview-arrow:focus-visible { border-radius: 50%; }
.shotview-dots { display: flex; align-items: center; }
.shotview-dot {
  width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center; -webkit-tap-highlight-color: transparent;
  transition: width 0.3s var(--ease-out);
}
.shotview-dot::before {
  content: ""; width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.25);
  transition: width 0.3s var(--ease-out), background-color 0.3s var(--ease-out);
}
.shotview-dot.is-on { width: 28px; }
.shotview-dot.is-on::before { width: 20px; background: var(--accent); }

@media (max-height: 560px) and (min-width: 641px) {
  /* Celular acostado o ventana baja: todo entra sin desplazarse. */
  .shotview-panel { padding: 20px 56px 20px 24px; gap: 28px; }
  .shotview-media .phone { width: calc((100dvh - 80px) * 0.46); }
  .shotview h3 { font-size: 26px; }
  .shotview-lede { font-size: 15px; margin-top: 8px; }
  .shotview-points { margin-top: 12px; gap: 8px; }
  .shotview-points li { font-size: 14px; }
  .shotview-nav { margin-top: 14px; }
}

@media (max-width: 640px) {
  /* Celular: hojas que suben desde abajo. */
  .install, .shotview { width: 100%; max-width: 100%; margin: auto 0 0; }
  .install { max-height: 92dvh; }
  .shotview { max-height: 94dvh; }
  .install-panel, .shotview-panel { border-radius: var(--r-xl) var(--r-xl) 0 0; border-bottom: 0; }
  .install-panel { max-height: 92dvh; padding: 26px 20px calc(24px + env(safe-area-inset-bottom)); }
  .install h3 { font-size: 22px; }
  .install-logo { width: 54px; height: 54px; }
  /* La imagen sigue a la izquierda y la información a la derecha. */
  .shotview-panel {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; gap: 16px;
    max-height: 94dvh; padding: 56px 16px calc(20px + env(safe-area-inset-bottom));
  }
  .shotview-close { top: 12px; right: 12px; }
  .shotview-media .phone { padding: 5px; border-radius: 22px; }
  .shotview-media .phone img { border-radius: 18px; }
  .shotview-kicker { font-size: 11px; }
  .shotview h3 { margin-top: 4px; font-size: 21px; }
  .shotview-lede { margin-top: 8px; font-size: 14.5px; }
  .shotview-points { margin-top: 14px; gap: 10px; }
  .shotview-points li { grid-template-columns: 20px 1fr; gap: 8px; font-size: 13.5px; line-height: 1.45; }
  .shotview-points svg { width: 20px; height: 20px; padding: 4px; }
  .shotview-nav { margin-top: 18px; gap: 4px; }
}

/* ==========================================================================
   Movimiento
   Corto, en orden y solo con transform/opacity (fluido también en celulares
   modestos). Nada si el sistema pide reducir el movimiento.
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  /* Entrada de la portada (unos 2,2 s). La tele, el celular y lo que sigue
     esperan a que la imagen de la tele esté decodificada (.is-ready). */
  .js .hero-icon { animation: catv-pop 600ms var(--ease-out) both; }
  .js .hero h1 { animation: catv-rise 800ms var(--ease-out) 80ms both; }
  .js .devices-tv { animation: catv-tv 1100ms var(--ease-out) 200ms both; }
  .js .devices-phone { animation: catv-phone 1000ms var(--ease-out) 420ms both; }
  .js .hero .lead { animation: catv-rise 700ms var(--ease-out) 620ms both; }
  .js .badges { animation: catv-rise 700ms var(--ease-out) 700ms both; }
  .js .devices-screen::after { animation: catv-glare 1300ms var(--ease-in-out) 900ms both; }
  .js .devices-phone-body { animation: catv-float 8s var(--ease-in-out) 1500ms infinite; }
  .js .hero::before { animation: catv-breathe 9s var(--ease-in-out) infinite; }
  .js .hero:not(.is-ready) :is(.devices-tv, .devices-phone, .devices-phone-body, .lead, .badges),
  .js .hero:not(.is-ready) .devices-screen::after { animation-play-state: paused; }
  /* Fuera de la pantalla, lo que se repite se detiene. */
  .hero.is-off .devices-phone-body, .hero.is-off::before { animation-play-state: paused; }

  /* La tele empieza algo inclinada hacia atrás y se endereza al bajar
     (sin JS donde el navegador lo sabe hacer; si no, motion.js). */
  @supports (animation-timeline: scroll()) {
    .devices {
      animation: catv-straighten linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 40vh;
    }
  }

  /* Al bajar: cada bloque entra al aparecer (motion.js marca data-reveal y
     lo quita al terminar, así los :hover vuelven a sus transiciones). */
  .js [data-reveal] {
    opacity: 0; transform: translateY(16px);
    transition: opacity var(--d-reveal) var(--ease-out), transform var(--d-reveal) var(--ease-out);
    transition-delay: calc(var(--i, 0) * 60ms);
  }
  .js [data-reveal].is-in { opacity: 1; transform: none; }

  /* Las imágenes del mosaico se asientan al aparecer. */
  .feature-art img { transition: transform 1.6s var(--ease-out); }
  .js .feature[data-reveal]:not(.is-in) .feature-art img { transform: scale(1.06); }

  /* Íconos que se dibujan solos al aparecer. */
  .js :is(.feature, .step)[data-reveal] .ico :is(path, rect, circle) { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js :is(.feature, .step).is-in .ico :is(path, rect, circle) { animation: catv-draw 900ms var(--ease-in-out) calc(var(--i, 0) * 60ms + 200ms) forwards; }

  /* La pista de los pasos se traza de izquierda a derecha. */
  .steps::before { transition: transform 1s var(--ease-in-out) 0.15s; }
  .js .steps:not(.is-drawn)::before { transform: scaleX(0); }

  /* Ventanas: entran con --d-enter y salen con --d-exit. */
  .install[open] .install-panel, .shotview[open] .shotview-panel { animation: catv-sheet-in var(--d-enter) var(--ease-out) both; }
  .install[open]::backdrop, .shotview[open]::backdrop { animation: catv-fade 300ms var(--ease-out) both; }
  .install[open] .install-steps li { animation: catv-rise 400ms var(--ease-out) calc(120ms + var(--n, 0) * 50ms) both; }
  .install.is-closing .install-panel, .shotview.is-closing .shotview-panel { animation: catv-sheet-out var(--d-exit) var(--ease-in) both; }
  .install.is-closing::backdrop, .shotview.is-closing::backdrop { animation: catv-fade-out var(--d-exit) var(--ease-in) both; }
  .shotview[open] .shotview-media .phone { animation: catv-shot-in 600ms var(--ease-out) 50ms both; }
  .shotview[open] .shotview-body > * { animation: catv-rise 500ms var(--ease-out) both; }
  .shotview[open] .shotview-body > :nth-child(2) { animation-delay: 40ms; }
  .shotview[open] .shotview-body > :nth-child(3) { animation-delay: 80ms; }
  .shotview[open] .shotview-body > :nth-child(4) { animation-delay: 120ms; }
  .shotview[open] .shotview-body > :nth-child(5) { animation-delay: 160ms; }
  .shotview[open] .shotview-media .phone.is-swapping { animation: catv-swap-in 380ms var(--ease-out) both; }
  .shotview[open] .shotview-body.is-swapping { animation: catv-swap-in 380ms var(--ease-out) 40ms both; }
}
@media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
  .js .hero h1 { animation-name: catv-focus; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  /* Paralaje con el ratón (motion.js escribe translate directamente). */
  .devices-tv, .devices-phone { will-change: translate; }
}
@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  .install[open] .install-panel, .shotview[open] .shotview-panel { animation-name: catv-sheet-up; }
  .install.is-closing .install-panel, .shotview.is-closing .shotview-panel { animation-name: catv-sheet-down; }
}
/* Galería en PC: los celulares de los extremos y el del centro se mueven a
   distinta velocidad con el scroll (simétrico, solo CSS). Solo el marco:
   los textos quedan en una misma línea. */
@supports (animation-timeline: view()) {
  @media (min-width: 901px) and (prefers-reduced-motion: no-preference) {
    .gallery .phone { animation: catv-depth linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    .gallery figure:nth-child(odd) { --d: 18px; }
    .gallery figure:nth-child(2) { --d: -10px; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery figure:hover .phone, .platform:hover { transform: none; }
}

@keyframes catv-pop { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes catv-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes catv-focus { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes catv-tv { from { opacity: 0; transform: translateY(40px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes catv-phone { from { opacity: 0; transform: translate(36px, 28px) rotate(4deg); } to { opacity: 1; transform: none; } }
@keyframes catv-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-0.6cqw); } }
@keyframes catv-glare {
  0% { opacity: 0; background-position: 100% 0; }
  15%, 85% { opacity: 1; }
  100% { opacity: 0; background-position: 0% 0; }
}
@keyframes catv-breathe { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; } }
@keyframes catv-straighten {
  from { transform: perspective(2200px) rotateX(var(--tilt-max)); }
  to { transform: perspective(2200px) rotateX(0deg); }
}
@keyframes catv-depth { from { translate: 0 var(--d, 0px); } to { translate: 0 calc(var(--d, 0px) * -1); } }
@keyframes catv-draw { to { stroke-dashoffset: 0; } }
@keyframes catv-sheet-in { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes catv-sheet-out { to { opacity: 0; transform: translateY(16px) scale(0.98); } }
@keyframes catv-sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes catv-sheet-down { to { transform: translateY(100%); } }
@keyframes catv-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes catv-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes catv-shot-in { from { opacity: 0; transform: translateY(30px) scale(0.94) rotate(-2deg); } to { opacity: 1; transform: none; } }
@keyframes catv-swap-in { from { opacity: 0; transform: translateX(calc(var(--dir, 1) * 28px)); } to { opacity: 1; transform: none; } }

/* Celulares muy estrechos: el menú cabe junto al logotipo. */
@media (max-width: 359px) {
  .nav-links { gap: 16px; }
  /* En la propia página de privacidad su enlace sobra: el título lo dice. */
  .nav-links a[aria-current="page"][href="privacidad.html"] { display: none; }
}
