/* Fuentes autoalojadas (antes Google Fonts): dos conexiones de terceros
   menos, el texto llega con la letra definitiva mucho antes, y ningún
   visitante europeo manda su IP a Google (bonus para la revisión legal). */
@font-face {
  font-family: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/atkinson-400-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: 'Atkinson Hyperlegible';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/atkinson-700-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: 'Atkinson Hyperlegible';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/atkinson-italic-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: 'Fraunces';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/assets/fonts/fraunces-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;
}

:root {
    --paper: #faf5ee;
    --paper-raised: #ffffff;
    --ink: #2b2118;
    --ink-soft: #6e6258;
    --accent: #9c4221;
    --accent-deep: #7f3517;
    --accent-soft: #f3e4da;
    --leaf: #4a5d43;
    --leaf-soft: #e6ebe2;
    --line: #e7dccf;
    --shadow: 0 1px 2px rgb(43 33 24 / 0.06), 0 14px 40px -12px rgb(43 33 24 / 0.18);
    --strip-em: #e0a37f;
    --display: 'Fraunces', Georgia, serif;
    --text: 'Atkinson Hyperlegible', system-ui, sans-serif;
  }

  /* Mismo modo oscuro cálido que la app (ADR-0008): landing y web a juego.
     El selector de tema (spec 0031-V3) fuerza claro/oscuro vía data-theme:
     cada bloque oscuro existe dos veces — por sistema (guardado con
     :not([data-theme='light'])) y forzado ([data-theme='dark']). */
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) {
      --paper: #211c17;
      --paper-raised: #2a241e;
      --ink: #f2eae0;
      --ink-soft: #a99c8f;
      --accent: #e08a5c;
      --accent-deep: #eda172;
      --accent-soft: #3a2c22;
      --leaf: #8fa382;
      --leaf-soft: #2c332a;
      --line: #3a332b;
      --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 14px 40px -12px rgb(0 0 0 / 0.5);
      /* Sobre los fondos oscuros de franja y cierre, la arcilla clara sí contrasta (AA). */
      --strip-em: #e0a37f;
    }
    :root:not([data-theme='light']) .btn-primary { color: #211c17; }
  }
  :root[data-theme='dark'] {
    --paper: #211c17;
    --paper-raised: #2a241e;
    --ink: #f2eae0;
    --ink-soft: #a99c8f;
    --accent: #e08a5c;
    --accent-deep: #eda172;
    --accent-soft: #3a2c22;
    --leaf: #8fa382;
    --leaf-soft: #2c332a;
    --line: #3a332b;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 14px 40px -12px rgb(0 0 0 / 0.5);
    --strip-em: #e0a37f;
  }
  :root[data-theme='dark'] .btn-primary { color: #211c17; }

  * { box-sizing: border-box; margin: 0; }

  body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--text);
    font-size: 1.125rem;
    line-height: 1.65;
  }

  h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; }

  img { max-width: 100%; height: auto; display: block; }

  .wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }

  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--text);
    font-weight: 700;
    font-size: 1.05rem;
    padding: 0.85rem 1.9rem;
    border-radius: 999px;
    text-decoration: none;
    border: none;
    cursor: pointer;
  }
  .btn-primary { background: var(--accent); color: #fff; }
  .btn-primary:hover { background: var(--accent-deep); }
  .btn-ghost { color: var(--ink); border: 2px solid var(--line); }
  .btn-soon {
    border: 2px dashed var(--line);
    color: var(--ink-soft);
    cursor: default;
  }

  .eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
  }

  /* ---------- Nav ---------- */
  nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 0;
  }
  .brand {
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
    font-family: var(--display);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-decoration: none;
    line-height: 1;
  }
  .brand img { height: 1.4em; width: auto; display: block; flex-shrink: 0; }
  .nav-actions { display: inline-flex; align-items: center; gap: 1.25rem; flex-shrink: 0; }
  .nav-login { color: var(--ink); font-weight: 700; text-decoration: none; padding: 0.5rem 0; }
  .nav-login:hover { color: var(--accent); }

  /* Selector claro/oscuro (spec 0031-V3): en las tres versiones. */
  .theme-toggle {
    width: 40px; height: 40px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper-raised);
    color: var(--ink);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .theme-toggle:hover { border-color: var(--accent); }
  @media (max-width: 640px) {
    .brand { font-size: 1.25rem; }
    /* El CTA del hero está a la vista: en el nav solo Entrar. */
    .nav-actions .btn { display: none; }
    /* A 320px la nav desbordaba 3px (preexistente, cazado con el reproductor). */
    .nav-actions { gap: 0.85rem; }
  }

  /* ---------- Marcos de dispositivo ---------- */
  /* Un teléfono de verdad, en CSS puro: riel metálico con brillos, bisel de
     vidrio, isla dinámica, botones laterales y sombra en capas. Vectorial —
     nítido en toda pantalla, cero licencias, y sigue el tema claro/oscuro. */
  .phone {
    width: min(320px, 78vw);
    position: relative;
    padding: 4px;
    border-radius: 54px;
    background: linear-gradient(120deg,
      #e9e5df 0%, #b9b4ae 10%, #716c66 28%, #dcd8d2 48%,
      #7a756f 68%, #cdc9c3 86%, #8e8983 100%);
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.55),
      inset 0 0 3px rgba(0, 0, 0, 0.35),
      0 2px 6px rgba(43, 33, 24, 0.28),
      0 26px 50px -14px rgba(43, 33, 24, 0.4);
  }
  .phone::before {
    /* Botones laterales, asomando del riel: silencio y volumen a la
       izquierda, encendido a la derecha. */
    content: '';
    position: absolute;
    inset: 0 -3px;
    z-index: -1;
    border-radius: 56px;
    background:
      linear-gradient(#a49f99, #6d6862) no-repeat left 0 top 96px / 3px 24px,
      linear-gradient(#a49f99, #6d6862) no-repeat left 0 top 138px / 3px 46px,
      linear-gradient(#a49f99, #6d6862) no-repeat left 0 top 194px / 3px 46px,
      linear-gradient(#a49f99, #6d6862) no-repeat right 0 top 160px / 3px 74px;
  }
  .phone::after {
    /* El vidrio: una luz diagonal apenas insinuada sobre la pantalla. */
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 50px;
    background: linear-gradient(115deg,
      rgba(255, 255, 255, 0.13) 0%, rgba(255, 255, 255, 0.04) 20%,
      transparent 42%);
    pointer-events: none;
    z-index: 3;
  }
  .phone picture {
    /* La pantalla ES la caja redondeada: su overflow recorta la captura en
       las cuatro esquinas, y el bisel negro es un anillo (box-shadow) que
       sigue exactamente la misma curva — sin rectángulos a la vista. */
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 42px;
    background: var(--paper);
    box-shadow: 0 0 0 8px #0b0b0d;
    /* Está 12px adentro del riel (4 de metal + 8 del anillo negro). */
    margin: 8px;
    /* Aire bajo la isla, en el color de la app: la captura se lee continua. */
    padding-top: 30px;
  }
  .phone picture::after {
    /* La isla dinámica, flotando sobre la pantalla. */
    content: '';
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 78px;
    height: 20px;
    border-radius: 999px;
    background: #0b0b0d;
    z-index: 2;
  }
  .phone img {
    width: 100%;
    height: auto;
    display: block;
  }

  .browser {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    background: var(--paper-raised);
  }
  .browser-bar {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.55rem 0.9rem;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }
  .browser-bar span.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
  .browser-url {
    margin-left: 0.5rem;
    font-size: 0.78rem;
    color: var(--ink-soft);
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.15rem 0.9rem;
  }

  /* ---------- Hero ---------- */
  .hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
    /* padding-block: no pisar el padding lateral que hereda de .wrap */
    padding-block: 3.5rem 4.5rem;
  }
  .hero h1 { font-size: clamp(2.6rem, 5.5vw, 4rem); max-width: 14ch; }
  .hero .lead { font-size: 1.25rem; color: var(--ink-soft); margin: 1.25rem 0 2rem; max-width: 46ch; }
  .hero-ctas { display: flex; gap: 0.9rem; flex-wrap: wrap; align-items: center; }
  .hero-note { font-size: 0.95rem; color: var(--ink-soft); margin-top: 0.9rem; }

  /* La app y el libro, con el mismo nombre: el arco regalo → libro en una mirada. */
  .hero-stack { position: relative; display: flex; justify-content: center; padding: 1rem 0 1.5rem; }
  .hero-stack .phone { transform: rotate(2deg); z-index: 1; }
  .hero-book {
    position: absolute;
    right: max(0px, calc(50% - 290px));
    bottom: -1rem;
    width: min(190px, 42vw);
    transform: rotate(-5deg);
    border-radius: 6px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
  }

  @media (max-width: 840px) {
    .hero { grid-template-columns: 1fr; gap: 2rem; padding-block: 2rem 3.5rem; }
    .hero-stack { padding-bottom: 2rem; }
    .hero-stack .phone { width: min(270px, 68vw); }
    .hero-book { width: min(150px, 36vw); right: max(0.75rem, calc(50% - 240px)); }
  }

  /* ---------- Franja ---------- */
  .strip {
    background: var(--ink);
    color: var(--paper);
    text-align: center;
    padding: 1.4rem 1.5rem;
    font-family: var(--display);
    font-size: 1.2rem;
  }
  .strip em { color: var(--strip-em); font-style: normal; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .strip { background: var(--paper-raised); color: var(--ink); }
  }
  :root[data-theme='dark'] .strip { background: var(--paper-raised); color: var(--ink); }

  /* ---------- Secciones ---------- */
  section { padding: 4.5rem 0; }
  .section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
  .section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-top: 0.5rem; }
  .section-head p { color: var(--ink-soft); margin-top: 0.75rem; }

  .steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
  /* Capturas reales dentro del teléfono (2026-08-23): se entiende qué es la app. */
  .step-phone {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.25rem 1rem;
  }
  .step-phone .phone { width: min(190px, 52vw); }
  @media (max-width: 1080px) {
    .steps { grid-template-columns: repeat(2, 1fr); }
  }
  .step {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
  }
  .step-media {
    /* Relación fija = mismo encuadre en todo ancho: el recorte nunca corta un botón. */
    aspect-ratio: 780 / 482;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }
  .step-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
  /* El paso 2 muestra el momento de la onda de voz, no el encabezado. */
  .step-media.wave img { object-position: center 55%; }
  .step-media.book {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    aspect-ratio: auto;
    background: transparent;
    border-bottom: 0;
    padding: 1.5rem 1rem;
  }
  .step-media.book img {
    width: min(150px, 40vw);
    height: auto;
    border-radius: 3px 8px 8px 3px;
    transform: rotate(-2.5deg);
    box-shadow: 10px 16px 30px -10px rgba(43, 33, 24, 0.45);
  }
  .step-body { padding: 1.4rem 1.6rem 1.6rem; }
  .step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-family: var(--display);
    font-size: 1.2rem;
    font-weight: 600;
  }
  .step h3 { font-size: 1.3rem; margin: 0.7rem 0 0.35rem; }
  .step p { color: var(--ink-soft); font-size: 1rem; }
  @media (max-width: 840px) {
    .steps { grid-template-columns: 1fr; gap: 1rem; }
    .steps-app .step { flex-direction: row; align-items: center; }
    .steps-app .step-phone { flex: 0 0 124px; padding: 1.1rem 0 1.1rem 1.1rem; }
    /* El marco del teléfono, en miniatura: mismas capas, medidas a escala. */
    .steps-app .step-phone .phone { width: 100%; padding: 2px; border-radius: 24px; }
    .steps-app .step-phone .phone::before { display: none; }
    .steps-app .step-phone .phone::after { inset: 2px; border-radius: 22px; }
    .steps-app .step-phone .phone picture {
      border-radius: 18px;
      box-shadow: 0 0 0 4px #0b0b0d;
      margin: 4px;
      padding-top: 14px;
    }
    .steps-app .step-phone .phone picture::after { width: 36px; height: 9px; top: 3px; }
    .steps-app .step-media.book { flex: 0 0 124px; padding: 1.1rem 0 1.1rem 1.1rem; }
    .steps-app .step-media.book img { width: 88px; }
    .steps-app .step-body { padding: 1.1rem 1.2rem 1.2rem; }
    .steps-app .step-num { width: 30px; height: 30px; font-size: 1rem; }
    .steps-app .step h3 { font-size: 1.15rem; margin: 0.5rem 0 0.3rem; }
    .steps-app .step p { font-size: 0.95rem; }
  }

  /* ---------- Narrador / Organizador (splits) ---------- */
  .split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: center;
  }
  .split.reverse { grid-template-columns: 0.95fr 1.05fr; }
  .split h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin: 0.5rem 0 1rem; }
  .split .intro { color: var(--ink-soft); }
  .checks { list-style: none; padding: 0; margin-top: 1.25rem; display: grid; gap: 0.8rem; }
  .checks li { padding-left: 2rem; position: relative; color: var(--ink-soft); }
  .checks li::before {
    content: "✓";
    position: absolute; left: 0;
    color: var(--leaf);
    font-weight: 700;
  }
  @media (max-width: 840px) {
    .split, .split.reverse { grid-template-columns: 1fr; gap: 2rem; }
  }

  /* Dos teléfonos: el momento de grabar y la tarjeta de revisar asomando. */
  .duo { position: relative; display: flex; justify-content: center; padding: 1rem 0; }
  .duo .phone.front { transform: rotate(-2deg); z-index: 1; }
  .duo .phone.back {
    position: absolute;
    width: min(240px, 56vw);
    right: max(0px, calc(50% - 300px));
    top: 3rem;
    transform: rotate(4deg);
    opacity: 0.96;
  }
  @media (max-width: 500px) {
    .duo .phone.back { display: none; }
  }

  /* ---------- Libro ---------- */
  .book-section { background: var(--accent-soft); }
  .quote {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    text-align: center;
  }
  .quote blockquote {
    font-family: var(--display);
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    line-height: 1.4;
    color: var(--ink);
  }
  .quote figcaption { margin-top: 0.9rem; color: var(--ink-soft); font-size: 0.95rem; }
  /* El libro como objeto (spec 0048): un solo libro en 3D — tapa, canto de
     páginas y contratapa — más el libro abierto en dos páginas con su canal.
     Antes eran tres hojas sueltas con borde blanco y se notaba el truco. */
  .book-real {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3.5rem;
    flex-wrap: wrap;
    perspective: 1600px;
  }
  .book3d {
    position: relative;
    transform-style: preserve-3d;
    transform: rotateY(-26deg) rotateX(2deg);
  }
  .book3d img {
    position: relative;
    display: block;
    width: min(280px, 62vw);
    height: auto;
    border-radius: 3px 10px 10px 3px;
    transform: translateZ(24px);
    box-shadow: inset 4px 0 10px rgba(43, 33, 24, 0.08);
  }
  .book3d::before {
    /* El canto de las páginas, en el borde derecho. */
    content: '';
    position: absolute;
    top: 4px;
    bottom: 4px;
    right: 0;
    width: 48px;
    transform: translateX(24px) rotateY(90deg);
    background: repeating-linear-gradient(
      90deg,
      #f5efe4 0 2px,
      #e6dfd2 2px 3px
    );
    border-radius: 0 2px 2px 0;
  }
  .book3d::after {
    /* La contratapa, que además lleva la sombra del objeto. */
    content: '';
    position: absolute;
    inset: 0;
    transform: translateZ(-24px);
    background: #e9e1d3;
    border-radius: 3px 10px 10px 3px;
    box-shadow: 18px 30px 50px -12px rgba(43, 33, 24, 0.45);
  }
  .book-open {
    position: relative;
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    transform: rotate(1.2deg);
    box-shadow:
      0 2px 4px rgba(43, 33, 24, 0.12),
      0 18px 36px -10px rgba(43, 33, 24, 0.3),
      0 1px 0 1px #efe8db,
      0 3px 0 1px #e2dacb;
  }
  .book-open img {
    display: block;
    width: min(230px, 42vw);
    height: auto;
    border: none;
  }
  .book-open::before {
    /* El canal del medio: la sombra donde el libro se pliega. */
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 56px;
    transform: translateX(-50%);
    background: linear-gradient(
      90deg,
      rgba(43, 33, 24, 0) 0%,
      rgba(43, 33, 24, 0.1) 42%,
      rgba(43, 33, 24, 0.18) 50%,
      rgba(43, 33, 24, 0.08) 58%,
      rgba(43, 33, 24, 0) 100%
    );
    pointer-events: none;
  }
  @media (max-width: 840px) {
    .book-real { gap: 2.5rem; }
    .book-open img { width: min(180px, 38vw); }
  }

  /* El audiolibro como objeto (spec 0047): un reproductor dibujado, con la
     onda de voz de la marca. Estático a propósito: es una promesa, no un demo. */
  .audiobook-sell {
    max-width: 760px;
    margin: 3.5rem auto 0;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  .player {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.1rem 1.5rem;
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
    /* Nada de min-width: en móvil el padding + el gap ya lo desbordaban.
       La onda es flexible y se encoge sola. */
    max-width: 100%;
  }
  .player-play {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    padding-left: 3px;
  }
  .player-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
  }
  .player-info strong { font-family: var(--display); font-size: 1.1rem; }
  .player-chapter { color: var(--ink-soft); font-size: 0.9rem; }
  .player-wave {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 26px;
    margin: 0.25rem 0;
  }
  .player-wave i {
    flex: 0 1 4px;
    min-width: 2px;
    border-radius: 2px;
    background: var(--accent);
    height: 30%;
  }
  /* La onda: alturas "a mano", y ya escuchada hasta el 40% (las de después, apagadas). */
  .player-wave i:nth-child(4n+1) { height: 55%; }
  .player-wave i:nth-child(4n+2) { height: 90%; }
  .player-wave i:nth-child(4n+3) { height: 40%; }
  .player-wave i:nth-child(4n)   { height: 70%; }
  .player-wave i:nth-child(n+12) { opacity: 0.3; }
  .player-time { color: var(--ink-soft); font-size: 0.85rem; }
  .audiobook-copy {
    max-width: 34ch;
    margin: 0;
    color: var(--ink-soft);
  }
  .audiobook-copy strong { color: var(--ink); }

  .book-pages {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 1.5rem;
  }
  .book-pages img {
    width: min(300px, 44vw);
    border-radius: 6px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
  }
  .book-pages img:nth-child(1) { transform: rotate(-2deg); }
  .book-pages img:nth-child(2) { transform: rotate(1.5deg) translateY(1rem); }
  .book-pages img:nth-child(3) { transform: rotate(-1deg); }
  @media (max-width: 840px) {
    .book-pages { gap: 0.9rem; }
    .book-pages img:nth-child(3) { display: none; }
    .book-pages img { width: min(240px, 44vw); }
  }

  /* ---------- Organizador: browser + recuerdo ---------- */
  .media-mobile { display: none; }
  @media (max-width: 840px) {
    .media-desktop { display: none; }
    .media-mobile {
      display: block;
      max-width: 400px;
      margin: 0 auto;
      max-height: 540px;
      overflow: hidden;
      -webkit-mask-image: linear-gradient(#000 72%, transparent);
      mask-image: linear-gradient(#000 72%, transparent);
    }
    .media-mobile img { border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
  }

  /* ---------- Puente emocional ---------- */
  .puente { text-align: center; max-width: 680px; margin: 0 auto; }
  /* Variante B (fotos): el puente en dos columnas, la foto como ancla emocional. */
  .puente.con-foto {
    max-width: 1020px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 3rem;
    align-items: center;
    text-align: left;
  }
  .puente-foto { margin: 0; }
  .puente-foto img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow);
  }
  @media (max-width: 840px) {
    .puente.con-foto { grid-template-columns: 1fr; gap: 1.75rem; text-align: center; }
    .puente-foto img { max-width: 420px; margin: 0 auto; display: block; }
  }
  .puente p {
    font-family: var(--display);
    font-size: clamp(1.25rem, 2.8vw, 1.6rem);
    line-height: 1.5;
    margin-bottom: 1.4rem;
  }
  .puente p.remate { font-weight: 600; color: var(--accent); font-size: clamp(1.5rem, 3.4vw, 2rem); }
  .puente .btn { margin-top: 0.5rem; }

  /* ---------- Precios ---------- */
  /* 4 packs (spec 0026): 2×2 en escritorio, columna en móvil. */
  .plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; align-items: stretch; }
  .plan {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    display: flex;
    flex-direction: column;
    position: relative;
  }
  .plan.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
  .plan .tag {
    position: absolute; top: -0.85rem; left: 50%; transform: translateX(-50%);
    background: var(--accent); color: #fff;
    font-size: 0.8rem; font-weight: 700;
    padding: 0.25rem 1rem; border-radius: 999px;
    white-space: nowrap;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .plan .tag { color: #211c17; }
  }
  :root[data-theme='dark'] .plan .tag { color: #211c17; }
  .tag.soon { background: var(--accent-soft); color: var(--accent); }
  .plan h3 { font-size: 1.35rem; }
  .plan .price { font-family: var(--display); font-size: 2.4rem; font-weight: 600; margin: 0.5rem 0 1rem; }
  .plan .price small { font-size: 1rem; font-family: var(--text); color: var(--ink-soft); font-weight: 400; }
  .plan ul { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 0.6rem; }
  .plan ul li { padding-left: 1.6rem; position: relative; color: var(--ink-soft); font-size: 1rem; }
  .plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--leaf); font-weight: 700; }
  .plan .btn { margin-top: auto; }
  .plan .plan-mini {
    position: absolute; top: 1.2rem; right: 1.2rem;
    width: 64px; transform: rotate(-4deg);
    border-radius: 3px; box-shadow: var(--shadow); border: 1px solid var(--line);
  }
  .plan-keep { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.8rem; text-align: center; }
  .plans-note { text-align: center; color: var(--ink-soft); font-size: 0.98rem; margin-top: 1.5rem; }
  .plans-note a { color: var(--accent); font-weight: 700; }
  /* En móvil las dos notas se apilan (el punto separador desaparece):
     partidas por la mitad en dos renglones quedaban raras. */
  @media (max-width: 640px) {
    .plans-note .nota { display: block; }
    .plans-note .nota + .nota { margin-top: 0.45rem; }
    .plans-note .punto { display: none; }
  }
  @media (max-width: 840px) { .plans { grid-template-columns: 1fr; } }

  /* ---------- FAQ ---------- */
  .faq { max-width: 720px; margin: 0 auto; }
  details {
    background: var(--paper-raised);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.1rem 1.4rem;
    margin-bottom: 0.8rem;
  }
  summary { font-weight: 700; cursor: pointer; list-style-position: outside; margin-left: 1.1rem; }
  details p { color: var(--ink-soft); padding-top: 0.75rem; }

  /* ---------- CTA final ---------- */
  .final {
    background: var(--ink);
    color: var(--paper);
    border-radius: 28px;
    text-align: center;
    padding: 3.5rem 2rem 3rem;
    margin: 2rem 0 4rem;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .final { background: var(--paper-raised); color: var(--ink); }
  }
  :root[data-theme='dark'] .final { background: var(--paper-raised); color: var(--ink); }
  .final h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); max-width: 22ch; margin: 1.6rem auto; }
  .final .btn-primary { font-size: 1.15rem; padding: 1rem 2.4rem; }
  .final-note { margin-top: 0.9rem; font-size: 0.95rem; color: var(--strip-em); }

  /* Player simulado: la voz vuelta objeto que ya quieres tener. */
  .player {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    background: rgb(255 255 255 / 0.07);
    border: 1px solid rgb(255 255 255 / 0.18);
    border-radius: 999px;
    padding: 0.7rem 1.4rem 0.7rem 0.8rem;
    text-align: left;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) .player { background: var(--paper); border-color: var(--line); }
  }
  :root[data-theme='dark'] .player { background: var(--paper); border-color: var(--line); }
  .player-play {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--strip-em);
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
  }
  .player-play svg { display: block; margin-left: 2px; }
  .player-meta { line-height: 1.3; }
  .player-title { font-weight: 700; font-size: 0.98rem; }
  .player-sub { font-size: 0.85rem; opacity: 0.75; }
  .player-bars { display: inline-flex; align-items: center; gap: 3px; margin-left: 0.4rem; }
  .player-bars i {
    width: 3px; border-radius: 2px; background: var(--strip-em); display: inline-block;
  }

  footer { padding: 2rem 0 3rem; color: var(--ink-soft); font-size: 0.95rem; }
  footer a { }

/* Toggle de idioma del nav (spec 0017). */
.nav-lang {
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0.5rem 0;
}
.nav-lang:hover { color: var(--accent); }


/* ---------- Mobile-first (spec 0019) ---------- */

/* Titulares sin palabras huérfanas. */
h1, h2 { text-wrap: balance; }

/* Área táctil real para el toggle de idioma y los links del footer. */
.nav-lang { padding: 0.5rem 0.75rem; margin: 0 -0.25rem; }
footer a { display: inline-block; padding: 0.4rem 0.2rem; }

/* El recorte del paso 2 en inglés: la ventana baja para no cortar el botón. */
html[lang="en"] .step-media.wave img { object-position: center 62%; }

@media (max-width: 640px) {
  /* Ritmo de scroll de mobile: menos aire muerto entre secciones. */
  section { padding: 3rem 0; }
  .section-head { margin-bottom: 2rem; }

  /* El player del cierre respira: solo play + texto. */
  .player-bars { display: none; }
  .player-meta { flex: 1; min-width: 0; }

  /* Menos aire vertical donde el apilado alarga: dúo, precios y FAQ. */
  .duo .phone.front { width: min(240px, 62vw); }
  .plans { gap: 0.9rem; }
  .plan { padding: 1.4rem 1.3rem; }
  .plan .price { font-size: 2rem; margin: 0.35rem 0 0.75rem; }
  .plan ul { gap: 0.45rem; margin-bottom: 1.15rem; }
  details { padding: 0.95rem 1.1rem; margin-bottom: 0.6rem; }
}

@media (max-width: 480px) {
  /* Las páginas del libro aprovechan todo el ancho. */
  .book-pages { gap: 0.5rem; }
  .book-pages img { width: 47vw; }
}
