/* Landing Biblicuentos — muros de ilustración, teléfono fijo que cambia con el día, frases de revista. */
:root {
  --coral: #fa5457; --teal: #01b4bc; --gold: #f6d51f; --charcoal: #37474F;
  --bg: #F9F9F9; --surface: #ffffff; --sand: #F4ECDF; --fg: #37474F; --muted: #66767e;
  --line: rgba(55, 71, 79, .12); --veil: rgba(249, 249, 249, .86); --on-img: #ffffff;
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Figtree', 'Helvetica Neue', Arial, sans-serif;
  --read: 'Literata', Georgia, serif;
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #131c20; --surface: #1b262b; --sand: #1f2a2c; --fg: #eef2f3; --muted: #9fb0b7;
    --line: rgba(255, 255, 255, .12); --veil: rgba(19, 28, 32, .86); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #131c20; --surface: #1b262b; --sand: #1f2a2c; --fg: #eef2f3; --muted: #9fb0b7;
  --line: rgba(255, 255, 255, .12); --veil: rgba(19, 28, 32, .86); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
body { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.55; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--veil); }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.display { font-family: var(--display); font-weight: 650; font-variation-settings: 'SOFT' 50; letter-spacing: -.02em; line-height: 1.02; margin: 0; text-wrap: balance; }
.h2 { font-family: var(--display); font-weight: 600; font-size: clamp(30px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -.015em; margin: 0; text-wrap: balance; }
.h3 { font-family: var(--display); font-weight: 600; font-size: 24px; margin: 0; }
.lede { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 34ch; margin: 0; }
.fine { font-size: 14px; color: var(--muted); margin: 0; }
.hint { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.center { text-align: center; }
.sec-head { display: grid; gap: 10px; margin-bottom: 36px; }
.sec-head.row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; }

.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 12px 22px; font-weight: 700; text-decoration: none; border: 0; cursor: pointer; }
.btn-sm { padding: 9px 18px; font-size: 15px; }
.btn-coral { background: var(--coral); color: #fff; }
.btn-ghost { border: 2px solid var(--fg); }

/* Navegación */
.nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--veil); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 22px; text-decoration: none; }
.brand-dots { display: inline-grid; grid-template-columns: repeat(3, 8px); gap: 3px; }
.brand-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.brand-dots i:nth-child(2) { background: var(--gold); } .brand-dots i:nth-child(3) { background: var(--teal); }
.nav-r { display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang a { border: 0; background: none; padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; cursor: pointer; color: var(--muted); text-decoration: none; line-height: 1.2; }
.lang a[aria-current="true"] { background: var(--fg); color: var(--bg); }

/* Botones de tienda */
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store { display: inline-flex; align-items: center; gap: 10px; background: #111; color: #fff; text-decoration: none; border-radius: 14px; padding: 9px 18px 9px 14px; min-width: 168px; }
.store span { display: grid; line-height: 1.1; }
.store small { font-size: 11px; opacity: .85; } .store b { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }

/* Hero */
.hero { position: relative; overflow: hidden; padding-block: 56px 72px; isolation: isolate; }
.hero-wall, .cta-wall { position: absolute; inset: -10% -6% -10% 42%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; transform: rotate(-8deg); z-index: -2; opacity: .95; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 34%, color-mix(in srgb, var(--bg) 70%, transparent) 52%, transparent 75%); }
.wall-col { display: flex; flex-direction: column; gap: 14px; }
.wall-col:nth-child(even) { margin-top: 90px; }
.wall-col span { aspect-ratio: 3 / 4; border-radius: 18px; background-size: cover; background-position: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); flex: none; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero .display { font-size: clamp(44px, 6.6vw, 86px); }
.hero-device { display: grid; justify-items: center; }

/* Un día con la Palabra */
.day { padding-block: 96px; background: var(--sand); transition: background .6s; }
.day[data-mood="night"] { background: #172036; color: #eef1fb; }
.day[data-mood="night"] .step-p, .day[data-mood="night"] figcaption { color: #b6bfd8; }
.verse { margin: 0 auto 72px; max-width: 900px; text-align: center; }
.verse blockquote { margin: 0; font-family: var(--display); font-style: italic; font-weight: 450; font-size: clamp(28px, 3.8vw, 48px); line-height: 1.18; text-wrap: balance; }
.verse figcaption { margin-top: 18px; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.day-grid { display: grid; grid-template-columns: 1fr 320px; gap: 56px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18vh; padding-block: 8vh 22vh; }
.step { display: grid; grid-template-areas: "time" "h" "p"; text-align: left; width: 100%; background: none; border: 0; padding: 0; cursor: pointer; opacity: .38; transition: opacity .4s; }
.step.on { opacity: 1; }
.step-time { grid-area: time; font-weight: 700; font-size: 14px; letter-spacing: .1em; color: var(--coral); font-variant-numeric: tabular-nums; }
.step-h { grid-area: h; font-family: var(--display); font-weight: 650; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -.02em; }
.step-p { grid-area: p; font-size: 19px; color: var(--muted); max-width: 30ch; margin-top: 10px; }
.day-device { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 90px); display: grid; justify-items: center; }

/* Doble página de revista */
.spread { position: relative; min-height: min(86vh, 760px); display: grid; align-items: end; color: var(--on-img); overflow: hidden; }
.spread img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spread::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(20, 24, 26, .78)); }
.spread-copy { position: relative; z-index: 1; padding-block: 56px; width: 100%; }
.spread-title { font-size: clamp(40px, 6.4vw, 92px); color: var(--on-img); }
.caption { margin: 18px 0 0; font-size: 14px; letter-spacing: .06em; opacity: .85; }

/* iPad */
.ipad-sec { padding-block: 110px; }

/* iPad */
.ipad-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 48px; align-items: center; }
.ipad-grid .ipad { justify-self: end; }
.ipad-copy { display: grid; gap: 16px; min-width: 0; }
.ipad-copy .flow { justify-items: start; }
.ipad-copy .flow-steps { justify-content: flex-start; }

/* Series */
.series { padding-block: 20px 110px; }
.series-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.serie { display: grid; border-radius: 24px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.serie-cover { aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.serie-b { padding: 18px 20px 20px; display: grid; gap: 4px; }
.serie h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.1; }
.serie p { margin: 0; color: var(--muted); font-size: 15px; }
.serie-thumbs { display: flex; gap: 8px; margin-top: 12px; }
.serie-thumbs span { flex: 1; aspect-ratio: 3 / 4; border-radius: 10px; background-size: cover; background-position: center; }

/* Elenco */
.cast { padding-block: 90px 80px; background: var(--sand); }
.cast-scroll { overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory; }
.cast-stage { position: relative; width: min(1400px, 100%); margin-inline: auto; padding-bottom: 48px; }
.cast-stage > img { display: block; width: 100%; height: auto; max-width: none; }
.cast-veil { position: absolute; inset: 0 0 48px; background: var(--sand); opacity: .72; pointer-events: none; transition: -webkit-mask-position .35s, mask-position .35s;
  --l: 46%; --r: 54%;
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--l) - 2.5%), transparent var(--l), transparent var(--r), #000 calc(var(--r) + 2.5%));
  mask-image: linear-gradient(90deg, #000 calc(var(--l) - 2.5%), transparent var(--l), transparent var(--r), #000 calc(var(--r) + 2.5%)); }
.cast-who { position: absolute; top: 0; bottom: 0; width: 7%; transform: translateX(-50%); border: 0; background: none; padding: 0; cursor: pointer; scroll-snap-align: center; display: flex; align-items: flex-end; justify-content: center; }
.cast-who span { height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; font-family: var(--display); font-weight: 600; font-size: clamp(12px, 1.1vw, 16px); line-height: 1.1; text-align: center; color: var(--muted); padding-top: 8px; transition: color .25s; }
.cast-who.on span { color: var(--fg); }
.cast-who.on span::after { content: ""; display: block; width: 18px; height: 3px; border-radius: 2px; background: var(--coral); margin: 6px auto 0; }
.cast-caption { display: grid; justify-items: center; gap: 2px; margin-top: 18px; text-align: center; min-height: 92px; }
.cast-caption strong { font-family: var(--display); font-weight: 650; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; }
.cast-caption span { font-size: 19px; }
.cast-caption small { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--teal); text-transform: uppercase; }

/* Llamado final */
.cta { position: relative; overflow: hidden; isolation: isolate; padding-block: 130px; background: var(--charcoal); color: #fff; text-align: center; }
.cta-wall { inset: -20% -10%; opacity: .4; grid-template-columns: repeat(8, 1fr); }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at center, rgba(30, 40, 45, .9) 20%, rgba(30, 40, 45, .55) 70%); }
.cta-in { display: grid; justify-items: center; gap: 22px; }
.cta .display { font-size: clamp(48px, 8vw, 110px); }
.cta .lede, .cta .fine { color: #d9e1e4; max-width: 40ch; }
.cta .store { background: #fff; color: #111; }

.legacy { padding-block: 48px; border-bottom: 1px solid var(--line); }
.legacy-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.legacy p { margin: 6px 0 0; color: var(--muted); }
.foot { padding-block: 28px; font-size: 14px; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.foot nav { display: flex; gap: 18px; }

/* Teléfono y pantallas angostas */
@media (max-width: 899px) {
  .hero-in, .day-grid, .ipad-grid, .series-grid { grid-template-columns: 1fr; }
  .hero-wall { inset: 46% -30% -10% -30%; opacity: .55; }
  .hero::after { background: linear-gradient(180deg, var(--bg) 40%, color-mix(in srgb, var(--bg) 40%, transparent) 70%); }
  .steps { display: flex; gap: 10px; overflow-x: auto; padding: 0 0 8px; scroll-snap-type: x mandatory; }
  .steps li { flex: 0 0 78%; scroll-snap-align: start; }
  .step { background: var(--surface); padding: 16px; border-radius: 18px; opacity: .6; }
  .day[data-mood="night"] .step { background: #222d4a; }
  .step-h { font-size: 26px; } .step-p { font-size: 15px; }
  .day-device { position: static; }
  .verse { margin-bottom: 40px; }
  .brand { font-size: 19px; gap: 8px; }
  .nav-r { gap: 8px; }
  .btn-sm { padding: 8px 14px; font-size: 14px; white-space: nowrap; }
  .cast-stage { width: 1500px; max-width: none; }
}
@media (max-width: 420px) {
  .brand-dots { display: none; }
  .brand { font-size: 18px; }
  .nav-r { gap: 6px; }
  .lang a { padding: 5px 8px; }
  .btn-sm { padding: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .day { transition: none; }
}
