/* MyTube · mytube.n3osolutions.com
   "Cine de noche": casi negro con un tinte del rojo de la marca; el rojo es la
   luz de la pantalla en un cuarto a oscuras. Ver PRODUCT.md. */

:root {
  --bg: oklch(0.13 0.012 22);
  --bg-deep: oklch(0.095 0.01 22);
  --surface: oklch(0.18 0.016 22);
  --surface-2: oklch(0.23 0.018 22);
  --line: oklch(0.3 0.02 22 / 0.7);
  --ink: oklch(0.965 0.006 22);
  --ink-2: oklch(0.82 0.016 22);
  --muted: oklch(0.72 0.02 22);
  --red: oklch(0.63 0.235 26);
  --red-hot: oklch(0.7 0.22 30);
  --red-deep: oklch(0.38 0.15 24);
  --glow: oklch(0.6 0.24 26 / 0.45);

  --font-display: "Big Shoulders Display", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, sans-serif;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 18px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;

  /* z-index semantico */
  --z-raised: 1;
  --z-device: 2;
  --z-float: 3;
  --z-sticky: 10;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0; text-wrap: pretty; }

.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.lede { color: var(--ink-2); font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.25rem); max-width: 56ch; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ───────── Nav: la gramatica de cristal de la familia N3O ───────── */
.nav {
  position: sticky; top: 12px; z-index: var(--z-sticky);
  width: min(var(--max), 100% - 2 * var(--gutter));
  margin: 12px auto 0;
  display: flex; align-items: center; gap: 18px;
  padding: 10px 12px 10px 16px;
  border: 1px solid oklch(1 0 0 / 0.08);
  border-radius: 999px;
  background: oklch(0.14 0.012 22 / 0.72);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
}
.nav__back {
  font-size: 0.85rem; color: var(--muted); text-decoration: none; white-space: nowrap;
}
.nav__back:hover { color: var(--ink); }
.nav__brand {
  display: flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; letter-spacing: 0.01em;
}
.nav__brand img { width: 26px; height: 26px; border-radius: 7px; }
.nav__links { display: flex; gap: 22px; margin-left: auto; font-size: 0.9rem; }
.nav__links a { color: var(--ink-2); text-decoration: none; }
.nav__links a:hover { color: var(--ink); }
.lang {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px;
}
.lang button {
  font: 600 0.75rem/1 var(--font-body); color: var(--muted);
  background: none; border: 0; padding: 7px 10px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--surface-2); color: var(--ink); }
.nav__cta {
  font-size: 0.85rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  padding: 9px 14px; border-radius: 999px;
  background: var(--red); color: white;
}
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__brand { margin-right: auto; }
}
@media (max-width: 520px) {
  .nav__back { display: none; }
  .nav__cta { display: none; }
}

/* ───────── Hero ───────── */
.hero {
  position: relative;
  padding: clamp(48px, 9vw, 120px) 0 clamp(64px, 10vw, 140px);
  isolation: isolate;
}
/* La luz de la pantalla que cae sobre el cuarto */
.hero::before {
  content: ""; position: absolute; inset: -20% -10% 0; z-index: -1;
  background:
    radial-gradient(42% 46% at 72% 46%, var(--glow), transparent 70%),
    radial-gradient(60% 40% at 72% 100%, oklch(0.4 0.16 24 / 0.35), transparent 70%);
  filter: blur(10px);
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(3.4rem, 2rem + 6vw, 6rem);
  text-transform: uppercase;
}
.hero h1 .glow { color: var(--red-hot); }
.hero .lede { margin-top: 24px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 32px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 20px 12px 16px; border-radius: 14px;
  border: 1px solid oklch(1 0 0 / 0.16); background: oklch(1 0 0 / 0.04);
  color: var(--ink); text-decoration: none;
}
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 0.72rem; color: var(--muted); line-height: 1.2; }
.store strong { display: block; font-size: 1.02rem; line-height: 1.25; }
.badge { display: inline-block; line-height: 0; border-radius: 10px; }
.badge img { height: 54px; width: auto; }
.badge:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 4px; }
.launch__grid { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; grid-template-columns: minmax(0, 300px) 1fr; }
.launch__video { width: 100%; aspect-ratio: 9 / 16; border-radius: 28px; background: #0b0b0b; box-shadow: 0 30px 80px oklch(0 0 0 / 0.5); }
.launch .lede { margin: 16px 0 28px; }
@media (max-width: 720px) { .launch__grid { grid-template-columns: 1fr; justify-items: center; text-align: center; } .launch__video { width: min(280px, 72vw); } }
.link-arrow { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.link-arrow:hover { color: var(--ink); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 28px; color: var(--muted); font-size: 0.92rem; }
.facts span::before { content: "●"; color: var(--red); font-size: 0.6em; margin-right: 8px; vertical-align: 2px; }

.hero__stage { position: relative; justify-self: center; width: min(330px, 78vw); }
.hero__stage .iphone { transform: rotate(-4deg); }
/* Imagen en imagen que "sale" del telefono */
.pip {
  position: absolute; z-index: var(--z-float);
  width: 62%; right: -30%; top: 10%;
  aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 60px -10px oklch(0 0 0 / 0.7), 0 0 0 1px oklch(1 0 0 / 0.12);
}
.pip__bar { position: absolute; left: 10px; right: 10px; bottom: 9px; height: 3px; border-radius: 3px; background: oklch(1 0 0 / 0.3); }
.pip__bar::after { content: ""; position: absolute; inset: 0 58% 0 0; border-radius: 3px; background: white; }
.pip__tag {
  position: absolute; left: 10px; top: 9px; font-size: 0.68rem; font-weight: 700;
  padding: 3px 7px; border-radius: 6px; background: oklch(0 0 0 / 0.5); backdrop-filter: blur(6px);
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage { margin-top: 24px; width: min(300px, 70vw); }
  .pip { right: -10%; width: 56%; }
}

/* ───────── Dispositivos ───────── */
/* Cada pantalla es un hueco para una captura real (img); si el archivo no
   existe, se quita y queda la interfaz de demostracion de debajo. */
.screen { position: absolute; overflow: hidden; background: #000; }
.screen > img.shot {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: var(--z-raised);
}

.iphone {
  position: relative; aspect-ratio: 1320 / 2868;
  border-radius: 15% / 7%;
  padding: 3.2%;
  background:
    linear-gradient(140deg, oklch(0.55 0.01 60) 0%, oklch(0.32 0.008 60) 18%, oklch(0.2 0.006 60) 50%, oklch(0.36 0.008 60) 82%, oklch(0.5 0.01 60) 100%);
  box-shadow:
    inset 0 0 0 1.5px oklch(1 0 0 / 0.2),
    0 50px 90px -30px oklch(0 0 0 / 0.9),
    0 0 120px -40px var(--glow);
}
.iphone::before { /* boton lateral */
  content: ""; position: absolute; right: -1.2%; top: 25%; width: 1.4%; height: 11%;
  border-radius: 0 4px 4px 0; background: oklch(0.38 0.008 60);
}
.iphone > .screen { inset: 3.2%; border-radius: 12.4% / 5.7%; }
.island {
  position: absolute; z-index: var(--z-float); left: 50%; top: 2.2%;
  width: 31%; height: 3.4%; transform: translateX(-50%);
  border-radius: 999px; background: #000;
}

/* iPhone Duo abierto: pantalla interior casi cuadrada (669x951 pt) con pliegue */
.duo {
  position: relative; aspect-ratio: 669 / 951;
  border-radius: 7% / 5%;
  padding: 2.2%;
  background: linear-gradient(120deg, oklch(0.5 0.01 60), oklch(0.24 0.006 60) 35%, oklch(0.2 0.006 60) 65%, oklch(0.46 0.01 60));
  box-shadow: inset 0 0 0 1.5px oklch(1 0 0 / 0.18), 0 50px 100px -30px oklch(0 0 0 / 0.9), 0 0 140px -50px var(--glow);
}
.duo > .screen { inset: 2.2%; border-radius: 5% / 3.6%; }
.duo .crease {
  position: absolute; z-index: var(--z-float); top: 2.2%; bottom: 2.2%; left: 50%; width: 10px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, oklch(1 0 0 / 0.07) 40%, oklch(0 0 0 / 0.25) 55%, transparent);
  pointer-events: none;
}
.duo .cam { position: absolute; z-index: var(--z-float); right: 7%; top: 3.6%; width: 2.2%; aspect-ratio: 1; border-radius: 50%; background: #000; box-shadow: 0 0 0 2px oklch(0.2 0 0); }
/* Cerrado: pantalla exterior 466x678 pt, cuerpo mas grueso */
.duo-cover {
  position: relative; aspect-ratio: 466 / 678;
  border-radius: 12% / 8.5%; padding: 3.6%;
  background: linear-gradient(140deg, oklch(0.52 0.01 60), oklch(0.26 0.006 60) 40%, oklch(0.42 0.01 60));
  box-shadow: inset 0 0 0 1.5px oklch(1 0 0 / 0.18), 14px 0 0 -4px oklch(0.24 0.006 60), 0 40px 80px -30px oklch(0 0 0 / 0.9);
}
.duo-cover > .screen { inset: 3.6%; border-radius: 9.6% / 6.6%; }
.duo-cover .island { top: 3.4%; height: 4.6%; width: 30%; }

/* ───────── Interfaz de demostracion (placeholder sin capturas) ─────────
   Generica a proposito: nada de la interfaz ni la marca de YouTube. */
.ui { position: absolute; inset: 0; display: flex; flex-direction: column; font-size: clamp(7px, 2.6cqi, 12px); color: var(--ink); background: oklch(0.11 0.008 22); container-type: inline-size; }
.screen { container-type: inline-size; }
.ui__status { display: flex; justify-content: space-between; padding: 5.5cqi 8cqi 0; font-weight: 700; font-size: 3.6cqi; }
.ui__video { position: relative; margin-top: 7cqi; aspect-ratio: 16 / 9; }
.ui__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 1.2cqi; background: oklch(1 0 0 / 0.25); }
.ui__progress::after { content: ""; position: absolute; inset: 0 40% 0 0; background: var(--red); }
.ui__body { padding: 5cqi 6cqi; display: grid; gap: 3.2cqi; }
.sk { height: 3.4cqi; border-radius: 2cqi; background: oklch(1 0 0 / 0.14); }
.sk--strong { height: 4.4cqi; background: oklch(1 0 0 / 0.75); }
.sk--w90 { width: 90%; } .sk--w70 { width: 70%; } .sk--w55 { width: 55%; } .sk--w40 { width: 40%; } .sk--w30 { width: 30%; }
.ui__row { display: flex; gap: 4cqi; align-items: center; }
.ui__avatar { width: 9cqi; aspect-ratio: 1; border-radius: 50%; flex: none; }
.ui__pill { padding: 1.6cqi 4cqi; border-radius: 999px; background: oklch(1 0 0 / 0.1); font-size: 3cqi; font-weight: 600; }
.ui__next { display: grid; grid-template-columns: 40% 1fr; gap: 4cqi; align-items: start; }
.ui__thumb { aspect-ratio: 16 / 9; border-radius: 2.4cqi; }
.ui__tabbar { margin-top: auto; display: flex; justify-content: space-around; padding: 4cqi 6cqi 8cqi; border-top: 1px solid oklch(1 0 0 / 0.08); }
.ui__tabbar i { width: 7cqi; aspect-ratio: 1; border-radius: 2cqi; background: oklch(1 0 0 / 0.22); }
.ui__tabbar i:first-child { background: var(--ink); }

/* Arte de "fotogramas": escenas abstractas en lugar de videos reales */
.art-dusk { background:
  radial-gradient(30% 40% at 68% 58%, oklch(0.88 0.13 70), transparent 70%),
  linear-gradient(180deg, oklch(0.35 0.12 300) 0%, oklch(0.62 0.19 30) 55%, oklch(0.25 0.06 280) 56%, oklch(0.16 0.04 270) 100%); }
.art-neon { background:
  radial-gradient(25% 50% at 25% 60%, oklch(0.7 0.25 350 / 0.9), transparent 70%),
  radial-gradient(30% 45% at 78% 40%, oklch(0.72 0.17 220 / 0.85), transparent 70%),
  linear-gradient(180deg, oklch(0.18 0.05 280), oklch(0.1 0.03 260)); }
.art-sea { background:
  radial-gradient(40% 30% at 50% 30%, oklch(0.95 0.05 90), transparent 70%),
  linear-gradient(180deg, oklch(0.75 0.08 230) 0%, oklch(0.6 0.12 235) 48%, oklch(0.4 0.1 240) 52%, oklch(0.25 0.07 245) 100%); }
.art-forest { background:
  radial-gradient(35% 35% at 30% 30%, oklch(0.9 0.1 110 / 0.7), transparent 70%),
  linear-gradient(180deg, oklch(0.45 0.09 160), oklch(0.22 0.06 170)); }
.art-stage { background:
  radial-gradient(18% 70% at 50% 0%, oklch(0.95 0.06 80 / 0.9), transparent 70%),
  radial-gradient(60% 30% at 50% 100%, oklch(0.5 0.2 26 / 0.8), transparent 70%),
  linear-gradient(180deg, oklch(0.12 0.02 22), oklch(0.08 0.01 22)); }

/* Pantalla bloqueada */
.lock { position: absolute; inset: 0; container-type: inline-size; color: white;
  background: radial-gradient(80% 50% at 50% 100%, oklch(0.35 0.14 24 / 0.9), transparent 70%), oklch(0.07 0.01 22); }
/* Con la Live Activity la Isla Dinamica se ensancha: icono a la izquierda,
   cuenta atras a la derecha (por eso ese telefono oculta su .island). */
.iphone--live > .island { display: none; }
.lock__activity { position: absolute; left: 50%; top: 1.4%; transform: translateX(-50%);
  width: 56%; height: 4.2%; display: flex; align-items: center; justify-content: space-between;
  padding: 0 4.5cqi; border-radius: 999px; background: #000;
  font: 700 3.8cqi/1 var(--font-body); font-variant-numeric: tabular-nums; color: var(--red-hot); }
.lock__activity::before { content: ""; width: 4.6cqi; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--red-hot) 0 70%, oklch(1 0 0 / 0.2) 0); }
.lock__date { text-align: center; margin-top: 22cqi; font-size: 4.4cqi; font-weight: 600; opacity: 0.85; }
.lock__time { text-align: center; font: 800 24cqi/1 var(--font-display); letter-spacing: 0.01em; }
.np { position: absolute; left: 5cqi; right: 5cqi; bottom: 18cqi; padding: 5cqi; border-radius: 7cqi;
  background: oklch(0.28 0.02 22 / 0.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.np__top { display: grid; grid-template-columns: 14cqi 1fr auto; gap: 4cqi; align-items: center; }
.np__art { aspect-ratio: 1; border-radius: 3cqi; }
.eq { display: flex; gap: 1cqi; align-items: end; height: 7cqi; }
.eq i { width: 1.4cqi; background: var(--red-hot); border-radius: 1cqi; height: 40%; animation: eq 1.1s var(--ease-out) infinite alternate; }
.eq i:nth-child(2) { animation-delay: -0.4s; } .eq i:nth-child(3) { animation-delay: -0.8s; } .eq i:nth-child(4) { animation-delay: -0.2s; }
@keyframes eq { from { height: 25%; } to { height: 100%; } }
.np__bar { margin-top: 5cqi; height: 1.2cqi; border-radius: 1cqi; background: oklch(1 0 0 / 0.25); position: relative; }
.np__bar::after { content: ""; position: absolute; inset: 0 62% 0 0; border-radius: inherit; background: white; }
.np__ctrls { display: flex; justify-content: center; gap: 12cqi; margin-top: 4cqi; }
.np__ctrls svg { width: 7cqi; height: 7cqi; fill: white; }

/* Duo: barra vertical a un lado con las pestanas */
.ui--duo { flex-direction: row; }
.ui--duo .ui__main { flex: 1; display: flex; flex-direction: column; }
.ui--duo .ui__status { font-size: 2.4cqi; padding-inline: 5cqi; }
.ui--duo .ui__video { margin-top: 0; }
.vbar { width: 9cqi; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6cqi; }
.vbar i { width: 3.4cqi; aspect-ratio: 1; border-radius: 1cqi; background: oklch(1 0 0 / 0.3); }
.vbar i:first-child { background: white; }
.ui__grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqi; padding: 0 4cqi 4cqi; }
.ui__grid2 .ui__thumb { border-radius: 1.6cqi; }

/* ───────── Secciones ───────── */
section { position: relative; }
.chapter { padding: clamp(80px, 12vw, 160px) 0; }
.chapter h2 { font-size: clamp(2.6rem, 1.6rem + 4vw, 4.6rem); text-transform: uppercase; }
.chapter .lede { margin-top: 20px; }

/* Pantalla apagada: el capitulo mas oscuro de la pagina */
.dark-room { background: var(--bg-deep); }
.dark-room__grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 7vw, 100px); align-items: center; }
.dark-room__phone { width: min(290px, 70vw); justify-self: center; }
.notes { margin: 36px 0 0; padding: 0; list-style: none; display: grid; gap: 18px; max-width: 52ch; }
.notes li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; color: var(--ink-2); }
.notes svg { width: 22px; height: 22px; margin-top: 3px; stroke: var(--red-hot); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notes strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .dark-room__grid { grid-template-columns: 1fr; } .dark-room__phone { order: 2; } }

/* Recuerda: tira horizontal de "habitos" */
.habits { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; margin-top: 56px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.habit { background: var(--bg); padding: 28px 24px 30px; }
.habit b { display: block; font: 800 1.9rem/1 var(--font-display); color: var(--red-hot); letter-spacing: 0.01em; }
.habit h3 { font: 600 1.05rem/1.3 var(--font-body); margin-top: 14px; }
.habit p { margin-top: 6px; color: var(--muted); font-size: 0.95rem; }

/* Duo */
.duo-sec { overflow: hidden; }
.duo-sec::before { content: ""; position: absolute; inset: 10% -20% auto; height: 70%; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, oklch(0.45 0.18 24 / 0.35), transparent 70%); }
.duo-sec { isolation: isolate; }
.duo-sec__head { max-width: 760px; }
.duo-sec__stage { display: flex; align-items: flex-end; justify-content: center; gap: clamp(20px, 5vw, 64px); margin-top: 64px; }
.duo-sec__stage .duo { width: min(430px, 58vw, 62svh); }
.duo-sec__stage .duo-cover { width: min(210px, 26vw, 30svh); }
.caption { margin-top: 16px; text-align: center; color: var(--muted); font-size: 0.88rem; }
.badge-duo { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid oklch(0.63 0.235 26 / 0.5); color: var(--ink); font-size: 0.85rem; font-weight: 600; }
.badge-duo::before { content: ""; width: 14px; height: 18px; border-radius: 3px; border: 2px solid var(--red-hot); box-shadow: 6px 0 0 -2px var(--red-hot); }
@media (max-width: 640px) {
  .duo-sec__stage { flex-direction: column; align-items: center; }
  .duo-sec__stage .duo { width: 86vw; }
  .duo-sec__stage .duo-cover { width: 46vw; }
}

/* Galeria con scroll-snap */
.gallery { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 240px); gap: 28px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  /* alineada con .wrap en pantallas anchas, sangra hasta el borde al desplazar */
  padding: 48px max(var(--gutter), (100% - var(--max)) / 2) 28px;
  scroll-padding-inline: max(var(--gutter), (100% - var(--max)) / 2);
  scrollbar-width: thin; scrollbar-color: var(--surface-2) transparent; }
.gallery figure { margin: 0; scroll-snap-align: center; }
.gallery figcaption { margin-top: 18px; font-weight: 600; }
.gallery figcaption span { display: block; color: var(--muted); font-weight: 400; font-size: 0.92rem; }

/* Creditos finales: las funciones como el cierre de una pelicula */
.credits { text-align: center; background: var(--bg-deep); }
.credits h2 { font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem); text-transform: uppercase; }
.roll { margin: 56px auto 0; max-width: 760px; display: grid; gap: 34px; }
.roll div { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; align-items: baseline; }
.roll dt { text-align: right; color: var(--muted); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; }
.roll dd { margin: 0; text-align: left; font: 700 clamp(1.15rem, 1rem + 0.6vw, 1.45rem)/1.35 var(--font-display); letter-spacing: 0.02em; }
.roll dd span { display: block; }
.credits .fin { margin-top: 64px; font: 800 1.1rem/1 var(--font-display); letter-spacing: 0.4em; color: var(--red-hot); }

/* Privacidad */
.privacy-sec__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.facts-list { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts-list div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.facts-list dt { color: var(--ink-2); }
.facts-list dd { margin: 0; font-weight: 600; text-align: right; }
.btn-line { display: inline-block; margin-top: 28px; padding: 12px 18px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.btn-line:hover { border-color: var(--ink-2); }
@media (max-width: 860px) { .privacy-sec__grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq > * { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative; font-weight: 600; font-size: 1.08rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--red-hot); transition: transform 0.4s var(--ease-out); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 68ch; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0 56px; color: var(--muted); font-size: 0.9rem; }
.footer__row { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--ink); }
.footer .disclaimer { margin-top: 24px; max-width: 80ch; font-size: 0.82rem; }

/* ───────── Paginas legales ───────── */
.doc { padding: clamp(48px, 8vw, 96px) 0; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(2.6rem, 1.8rem + 3vw, 3.8rem); text-transform: uppercase; }
.doc h2 { font: 700 1.6rem/1.15 var(--font-display); text-transform: uppercase; margin: 44px 0 12px; letter-spacing: 0.01em; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.2em; }
.doc li + li { margin-top: 8px; }
.doc .meta { color: var(--muted); margin-top: 16px; }
.doc a { color: var(--red-hot); }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: 64px 0; }
.doc [lang] > h1 + .meta { margin-bottom: 8px; }

/* ───────── Movimiento ───────── */
/* Entrada del hero: el telefono se enciende y la ventana de imagen en
   imagen sale de el. El estado final es el visible por defecto. */
@media (prefers-reduced-motion: no-preference) {
  .hero__stage .iphone { animation: rise 1.2s var(--ease-out) both; }
  .hero::before { animation: lights 1.6s var(--ease-out) both; }
  .pip { animation: pip-out 1s 0.7s var(--ease-out) both; }
  .hero h1, .hero .lede, .hero__actions, .facts { animation: fade-up 0.9s var(--ease-out) both; }
  .hero .lede { animation-delay: 0.08s; } .hero__actions { animation-delay: 0.16s; } .facts { animation-delay: 0.24s; }

  @supports (animation-timeline: view()) {
    .reveal { animation: fade-up linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    .duo-sec__stage .duo { animation: unfold linear both; animation-timeline: view(); animation-range: entry 10% cover 40%; }
  }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .eq i { animation: none; height: 70%; }
}
@keyframes rise { from { opacity: 0; transform: translateY(40px) rotate(-4deg); filter: brightness(0.3); } }
@keyframes lights { from { opacity: 0; } }
@keyframes pip-out { from { opacity: 0; transform: translate(-40%, 20%) scale(0.7); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } }
@keyframes unfold { from { transform: perspective(1400px) rotateY(-28deg) scale(0.92); opacity: 0.4; } }
