/* holaluzy.com · luzy.css v1.2 · la casa de Luzy para mamás, papás y quien cuida (Fotón Cero, 2026-10-21)
   v1.1: el selector de tres idiomas, la nota de la hora de dormir y los botones del primer episodio.
   v1.2: la página viva (al final, «la vida»: la luz de Luzy que respira, estrellas que titilan, luciérnagas, la estrella
   fugaz, el cielo que va más lento al bajar, entradas suaves) y el botón del sonido.
   El estilo de la serie (Docs/MUNDO.md): la noche tibia de libro ilustrado con su cielo violeta y estrellas, el papel crema,
   los pasteles tibios, la tira de película y la luz de Luzy. Secciones de noche y de papel, como las páginas de un libro. */

@font-face { font-family: "Nunito"; src: url("/fuentes/nunito-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Fraunces Suave"; src: url("/fuentes/fraunces-suave-600-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
    /* el cielo, de arriba al horizonte */
    --noche: #17163f; --noche-2: #1d1946; --cielo: #261f5c; --violeta: #3d2f7c; --violeta-2: #5e4594;
    --lila: #93699f; --rosa: #c98d9c; --horizonte: #e8ab9f;
    /* los acentos */
    --crema: #fff4df; --durazno: #ffcfb0; --rosa-suave: #f6b8c4; --profundo: #4a2f86; --profundo-2: #35215f;
    --dorado: #f2c46b; --oro: #ffd98a; --tinta: #33284f;
    /* la luz del pecho */
    --luz-nucleo: #fffaf0; --luz: #ffe2a4; --luz-orilla: #ffb874;
    /* la tira de película */
    --tira: #21173f; --tira-oro: #e9c27a; --tira-linea: #fff1d6;
    /* el papel (secciones claras) */
    --papel: #fbf2e4; --papel-texto: #3a2f55; --papel-suave: #65597e; --papel-titulo: #35215f; --papel-enlace: #6b3fa0;
    --papel-borde: #d9c6e0; --campo-fondo: #fffdf8; --campo-borde: #cdb9d8; --campo-texto: #33284f; --error-papel: #a3264f;
    --error-noche: #ffc4d2;
    /* letra y medidas */
    --letra: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
    --titular: "Fraunces Suave", "Iowan Old Style", Georgia, serif;
    --margen: 16px; --ancho: 1120px; --radio: 16px;
    color-scheme: light;
}
@media (min-width: 640px) { :root { --margen: 28px; } }
@media (min-width: 1024px) { :root { --margen: 40px; } }
/* de noche y con el teléfono en modo oscuro, el papel también se vuelve noche (la serie es para antes de dormir) */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --papel: #221c4c; --papel-texto: #f1e6d6; --papel-suave: #cbbfdc; --papel-titulo: #fff0d9; --papel-enlace: #ffd98a;
        --papel-borde: #4b3f86; --campo-fondo: #1a1640; --campo-borde: #5b4d99; --campo-texto: #fff4df; --error-papel: #ffc4d2;
        color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --papel: #221c4c; --papel-texto: #f1e6d6; --papel-suave: #cbbfdc; --papel-titulo: #fff0d9; --papel-enlace: #ffd98a;
    --papel-borde: #4b3f86; --campo-fondo: #1a1640; --campo-borde: #5b4d99; --campo-texto: #fff4df; --error-papel: #ffc4d2;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; background: var(--noche); }
body { margin: 0; background: var(--noche); color: var(--crema); font-family: var(--letra); font-size: 1.0625rem; line-height: 1.62;
    -webkit-font-smoothing: antialiased; overflow-x: hidden; }
/* al llegar arriba de todo, el navegador «rebota» y deja ver el fondo de la página: en pantallas acostadas (donde arriba va
   la pintura ancha) no rebota, y si algún navegador rebota igual, detrás queda el violeta del cielo de la pintura
   (en el celular de pie, arriba va el azul noche liso de la portada, que es el mismo del fondo) */
@media (orientation: landscape) and (min-width: 560px) { html { overscroll-behavior-y: none; background: #2d2749; } }
img, video, svg, picture { display: block; max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
h1, h2 { font-family: var(--titular); letter-spacing: -0.01em; }
h3 { font-family: var(--letra); font-weight: 800; font-size: 1.18rem; line-height: 1.3; }
:focus-visible { outline: 3px solid var(--oro); outline-offset: 3px; border-radius: 6px; }
.oculto { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.saltar { position: absolute; left: var(--margen); top: -100px; z-index: 20; background: var(--crema); color: var(--tinta); padding: 10px 16px;
    border-radius: 999px; font-weight: 800; text-decoration: none; }
.saltar:focus { top: 12px; }

/* ── la barra de arriba ── */
.barra { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
    padding: 14px var(--margen); }
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--crema); }
.marca svg { width: 34px; height: 34px; flex: none; filter: drop-shadow(0 0 10px rgba(255, 196, 120, 0.35)); }
.marca span { font-family: var(--titular); font-size: 1.55rem; line-height: 1; letter-spacing: 0.01em; }
.idioma { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; text-decoration: none;
    font-weight: 700; font-size: 0.95rem; color: var(--crema); border: 1.5px solid rgba(255, 244, 223, 0.4); background: rgba(23, 22, 63, 0.35); }
.idioma:hover { border-color: rgba(255, 244, 223, 0.8); }
/* los tres idiomas: ES · EN · PT, el de la página encendido */
.idiomas { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px;
    border: 1.5px solid rgba(255, 244, 223, 0.4); background: rgba(23, 22, 63, 0.4); }
.idiomas a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 38px; padding: 0 10px;
    border-radius: 999px; text-decoration: none; font-weight: 800; font-size: 0.9rem; letter-spacing: 0.04em; color: var(--crema); }
.idiomas a:hover { background: rgba(255, 244, 223, 0.12); }
.idiomas a[aria-current="page"] { background: var(--crema); color: var(--tinta); }
.barra.papel-barra { position: static; background: var(--noche); }
.barra a { color: var(--crema); }

/* ── botones ── */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 0.55em; min-height: 54px; padding: 0 1.5em;
    border-radius: 999px; font: 800 1.05rem/1.2 var(--letra); text-decoration: none; text-align: center; cursor: pointer;
    border: 0; transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease; -webkit-tap-highlight-color: transparent; }
.boton svg { width: 1.25em; height: 1.25em; flex: none; }
.boton:hover { transform: translateY(-1px); }
.boton:active { transform: translateY(1px); }
.boton-luz { color: #3b2346; background: radial-gradient(120% 140% at 50% 0%, #fff6dc 0%, #ffe2a4 45%, #f6c06e 100%);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.45) inset, 0 8px 26px rgba(255, 184, 116, 0.38); }
.boton-luz:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6) inset, 0 10px 34px rgba(255, 184, 116, 0.55); }
.boton-borde { color: var(--crema); background: rgba(23, 22, 63, 0.35); box-shadow: 0 0 0 2px rgba(255, 244, 223, 0.55) inset; }
.boton-borde:hover { box-shadow: 0 0 0 2px rgba(255, 244, 223, 0.9) inset; }
.papel .boton-borde { color: var(--papel-titulo); background: transparent; box-shadow: 0 0 0 2px var(--papel-borde) inset; }
.boton[disabled] { opacity: 0.65; cursor: progress; transform: none; }

/* ── secciones ── */
.seccion { position: relative; padding: clamp(64px, 11vw, 120px) var(--margen); }
.contenido { max-width: var(--ancho); margin: 0 auto; }
.antetitulo { display: inline-block; margin: 0 0 0.7em; font-weight: 800; font-size: 0.95rem; letter-spacing: 0.02em; color: var(--oro); text-wrap: balance; }
.seccion h2 { font-size: clamp(2rem, 6.4vw, 3rem); line-height: 1.1; margin-bottom: 0.45em; }
.entrada-seccion { font-size: clamp(1.08rem, 2.6vw, 1.22rem); max-width: 40rem; }
.centrado { text-align: center; margin-left: auto; margin-right: auto; }

/* la noche: el cielo violeta con estrellas que titilan despacio (menos de una vuelta por segundo; nunca parpadean) */
.noche { background: linear-gradient(180deg, var(--noche-2) 0%, var(--cielo) 58%, #30266c 100%); color: var(--crema); isolation: isolate; }
.noche::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.75;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='340'%3E%3Cg fill='%23fff3d6'%3E%3Ccircle cx='24' cy='38' r='1.2'/%3E%3Ccircle cx='118' cy='14' r='0.9'/%3E%3Ccircle cx='205' cy='66' r='1.4'/%3E%3Ccircle cx='300' cy='30' r='1'/%3E%3Ccircle cx='70' cy='150' r='0.9'/%3E%3Ccircle cx='166' cy='190' r='1.1'/%3E%3Ccircle cx='262' cy='160' r='0.8'/%3E%3Ccircle cx='320' cy='246' r='1.3'/%3E%3Ccircle cx='40' cy='280' r='1'/%3E%3Ccircle cx='140' cy='300' r='0.8'/%3E%3Ccircle cx='228' cy='326' r='1.1'/%3E%3C/g%3E%3Cg fill='%23ffd98a'%3E%3Cpath d='M250 104l1.4 4.6 4.6 1.4-4.6 1.4-1.4 4.6-1.4-4.6-4.6-1.4 4.6-1.4z'/%3E%3Ccircle cx='96' cy='238' r='1.3'/%3E%3C/g%3E%3Cpath fill='%23fff3d6' d='M60 82l1.2 3.8 3.8 1.2-3.8 1.2-1.2 3.8-1.2-3.8-3.8-1.2 3.8-1.2z'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='460'%3E%3Cg fill='%23ffe9c4'%3E%3Ccircle cx='60' cy='90' r='0.8'/%3E%3Ccircle cx='380' cy='60' r='1'/%3E%3Ccircle cx='470' cy='300' r='0.8'/%3E%3Ccircle cx='200' cy='400' r='0.9'/%3E%3Ccircle cx='300' cy='230' r='0.7'/%3E%3C/g%3E%3Cpath fill='%23ffd0dc' d='M150 210l1 3.2 3.2 1-3.2 1-1 3.2-1-3.2-3.2-1 3.2-1z'/%3E%3C/svg%3E");
    background-size: 340px 340px, 520px 460px; background-position: 0 0, 90px 40px; }
.noche::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.55;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='430' height='390'%3E%3Cg fill='%23fff8e6'%3E%3Ccircle cx='88' cy='54' r='1.6'/%3E%3Ccircle cx='330' cy='120' r='1.4'/%3E%3Ccircle cx='190' cy='300' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 430px 390px; animation: titila 7s ease-in-out infinite alternate; }
@keyframes titila { from { opacity: 0.2; } to { opacity: 0.85; } }

/* el papel: crema con grano, como la hoja de un libro ilustrado; su orilla de arriba es una loma suave */
.papel { background: var(--papel) url("/media/grano.webp") repeat; background-size: 256px 256px; color: var(--papel-texto); }
.papel h2, .papel h3 { color: var(--papel-titulo); }
.papel .antetitulo { color: var(--papel-enlace); }
.papel a:not(.boton) { color: var(--papel-enlace); text-underline-offset: 3px; }
.loma-borde { position: absolute; left: 0; right: 0; top: -46px; height: 48px; background: inherit; pointer-events: none;
    clip-path: ellipse(72% 100% at 50% 100%); }
.noche > .loma-borde { background: var(--noche-2); }

/* ── la portada ── */
/* En el celular la pintura vertical va a lo ancho y anclada abajo (Luzy y la loma ocupan su 48 % de abajo: 72.5 % del
   ancho); arriba sigue el mismo cielo, así que el saludo nunca tapa a Luzy. En pantallas acostadas va la pintura ancha. */
.portada { position: relative; min-height: clamp(600px, 100vh, 1000px); min-height: clamp(600px, 100svh, 1000px); display: flex;
    flex-direction: column; overflow: hidden; background: #181538; isolation: isolate; }
.portada-fondo { position: absolute; inset: 0; z-index: -1; }
.portada-fondo img { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; }
.portada-fondo::before { content: ""; position: absolute; left: 0; right: 0; bottom: calc(150vw - 140px); height: 140px; z-index: 1;
    background: linear-gradient(180deg, #181538 0%, rgba(24, 21, 56, 0.6) 45%, rgba(24, 21, 56, 0) 100%); pointer-events: none; }
.portada::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; z-index: -1; pointer-events: none;
    background: linear-gradient(180deg, rgba(29, 25, 70, 0), var(--noche-2)); }
.portada-texto { width: 100%; max-width: 36rem; margin: 0 auto; padding: 92px var(--margen) calc(72.5vw + 28px); text-align: center; }
.portada h1 { font-size: clamp(3rem, 13vw, 5.6rem); line-height: 1.02; color: var(--crema); margin-bottom: 0.22em;
    text-shadow: 0 0 28px rgba(255, 206, 140, 0.32), 0 2px 18px rgba(16, 12, 48, 0.5); }
.portada .antetitulo { color: var(--oro); text-shadow: 0 1px 12px rgba(16, 12, 48, 0.7); }
.entrada { font-size: clamp(1.1rem, 4.3vw, 1.32rem); line-height: 1.5; margin: 0 auto 1.4em; max-width: 30rem; text-wrap: balance;
    text-shadow: 0 1px 14px rgba(16, 12, 48, 0.75); }
.acciones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 420px) { .acciones .boton { flex: 1 1 100%; } }
@media (max-width: 380px) {
    .portada-texto { padding-top: 80px; }
    .portada .antetitulo { font-size: 0.88rem; }
    .portada h1 { font-size: 2.75rem; }
    .entrada { font-size: 1.04rem; margin-bottom: 1.1em; }
    .acciones .boton { min-height: 50px; font-size: 1rem; }
}
@media (orientation: landscape) and (min-width: 560px) {
    .portada { background: var(--noche-2); }
    .portada-fondo img { position: static; height: 100%; object-fit: cover; object-position: 62% 100%; }
    .portada-fondo::before { display: none; }
    .portada-texto { margin: 0; max-width: 56rem; padding: clamp(96px, 21vh, 220px) var(--margen) 64px clamp(28px, 7vw, 128px);
        text-align: left; }
    .portada-texto .entrada { margin-left: 0; }
    .portada .acciones { justify-content: flex-start; }
    .portada-texto > * { max-width: 34rem; }
    .portada-texto > .acciones { max-width: none; }
}
@media (orientation: landscape) and (min-width: 560px) and (max-width: 899px) {
    .portada h1 { font-size: clamp(2.6rem, 7vw, 3.6rem); }
    .portada-texto > * { max-width: 26rem; }
    .acciones .boton { flex: 0 1 auto; }
}

/* ── así es Luzy: la tira de película con el video ── */
.tira { --m: clamp(24px, 5vw, 48px); --cuadro: min(84vw, 780px); --sep: clamp(10px, 2.2vw, 24px);
    position: relative; overflow: hidden; margin: clamp(28px, 6vw, 56px) calc(var(--margen) * -1) 0; padding: 26px 0 40px; }
.tira-cinta { position: relative; display: flex; justify-content: center; gap: var(--sep); width: max-content; min-width: 100%;
    margin: 0 auto; padding: var(--m) var(--sep); background: var(--tira); transform: rotate(-1.4deg);
    box-shadow: 0 22px 44px rgba(6, 4, 22, 0.5); left: 50%; translate: -50% 0; }
/* las orillas de oro y las perforaciones, por donde se asoma el cielo */
.tira-cinta::before, .tira-cinta::after { content: ""; position: absolute; left: 0; right: 0; height: calc(var(--m) * 0.5);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 86 50' preserveAspectRatio='none'%3E%3Crect x='22' y='1' width='42' height='48' rx='10' fill='%233f3584' stroke='%23fff1d6' stroke-opacity='.5' stroke-width='2'/%3E%3C/svg%3E");
    background-size: calc(var(--m) * 0.86) 100%; background-repeat: repeat-x; }
.tira-cinta::before { top: calc(var(--m) * 0.25); }
.tira-cinta::after { bottom: calc(var(--m) * 0.25); }
.tira-orilla { position: absolute; left: 0; right: 0; height: 2px; background: var(--tira-oro); opacity: 0.85; pointer-events: none; }
.tira-orilla.arriba { top: 4px; }
.tira-orilla.abajo { bottom: 4px; }
.tira-cuadro { position: relative; flex: 0 0 var(--cuadro); aspect-ratio: 16 / 9; background: #2a2060; }
.tira-cuadro img, .tira-cuadro video { width: 100%; height: 100%; object-fit: cover; }
.tira-cuadro::after { content: ""; position: absolute; inset: 0; border: 1.5px solid rgba(255, 241, 214, 0.75); pointer-events: none; }
.tira-cuadro.recuerdo img { opacity: 0.72; }
/* la fuga de luz: una franja tibia muy suave en la orilla de la cinta */
.tira-fuga { position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 190, 130, 0.16), transparent 18%, transparent 82%, rgba(255, 190, 130, 0.12)); }
.tira-pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin-top: 18px; padding: 0 var(--margen);
    font-size: 0.95rem; color: rgba(255, 244, 223, 0.82); text-align: center; }
.pausa { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
    font: 700 0.95rem var(--letra); color: var(--crema); background: rgba(255, 244, 223, 0.08); border: 1.5px solid rgba(255, 244, 223, 0.35); }
.pausa svg { width: 16px; height: 16px; }
.pausa[hidden] { display: none; }

.estados { list-style: none; padding: 0; margin: clamp(36px, 6vw, 56px) auto 0; max-width: var(--ancho); display: grid; gap: 22px; }
@media (min-width: 860px) { .estados { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.estados li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; }
.estados h3 { color: var(--oro); margin-bottom: 0.25em; }
.estados p { margin: 0; color: rgba(255, 244, 223, 0.9); }
.icono-luz { width: 52px; height: 52px; }

/* ── en cada episodio ── */
.tarjetas { list-style: none; padding: 0; margin: clamp(32px, 5vw, 48px) 0 0; display: grid; gap: 34px; }
@media (min-width: 860px) { .tarjetas { grid-template-columns: repeat(3, 1fr); gap: 30px; } }
.tarjeta picture { margin-bottom: 18px; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--cielo);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 14px 30px rgba(53, 33, 95, 0.18); }
.tarjeta:nth-child(1) picture { rotate: -0.8deg; }
.tarjeta:nth-child(2) picture { rotate: 0.6deg; }
.tarjeta:nth-child(3) picture { rotate: -0.4deg; }
.tarjeta img { width: 100%; height: 100%; object-fit: cover; }
.tarjeta h3 { margin-bottom: 0.35em; }
.tarjeta p { margin: 0; color: var(--papel-suave); }

.momentos { list-style: none; padding: 0; margin: clamp(56px, 9vw, 96px) 0 0; display: grid; gap: 28px; }
@media (min-width: 860px) { .momentos { grid-template-columns: repeat(3, 1fr); gap: 30px; } }
.momentos li { display: grid; grid-template-columns: 60px 1fr; gap: 16px; align-items: start; padding: 22px; border-radius: var(--radio);
    background: rgba(255, 255, 255, 0.45); box-shadow: 0 0 0 1px var(--papel-borde) inset; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .momentos li { background: rgba(255, 255, 255, 0.04); } }
.momentos svg { width: 60px; height: 60px; }
.momentos h3 { margin-bottom: 0.3em; }
.momentos p { margin: 0; color: var(--papel-suave); }
.subtitulo-momentos { margin-top: clamp(64px, 10vw, 104px); }
/* la hora de dormir: mejor un cuento leído (la última pantalla, al menos dos horas antes) */
.nota-dormir { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; margin-top: 28px; padding: 24px 22px;
    border-radius: var(--radio); background: rgba(74, 47, 134, 0.07); box-shadow: 0 0 0 1px var(--papel-borde) inset; max-width: 52rem; }
.nota-dormir svg { width: 56px; height: 56px; }
.nota-dormir h3 { margin-bottom: 0.4em; }
.nota-dormir p { color: var(--papel-texto); }
.nota-dormir p:last-child { margin-bottom: 0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .nota-dormir { background: rgba(255, 255, 255, 0.05); } }

/* ── dónde verla ── */
.verla { text-align: center; }
.verla .contenido { max-width: 42rem; }
.verla .acciones { margin: 10px 0 20px; }
.estreno { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; align-items: baseline; margin: 6px 0 22px;
    padding: 10px 18px; border-radius: 22px; background: rgba(255, 244, 223, 0.07); box-shadow: 0 0 0 1px rgba(255, 244, 223, 0.18) inset; }
.estreno strong { color: var(--oro); }
.nota { font-size: 0.98rem; color: rgba(255, 244, 223, 0.85); margin: 0; }
.nota a { color: var(--oro); text-underline-offset: 3px; }

/* ── el libro ── */
.libro { background: radial-gradient(90% 60% at 50% 105%, rgba(232, 171, 159, 0.28), transparent 70%),
    linear-gradient(180deg, #30266c 0%, #35296f 55%, #4a3680 100%); }
.libro .contenido { display: grid; gap: clamp(40px, 7vw, 72px); align-items: center; }
@media (min-width: 900px) { .libro .contenido { grid-template-columns: 0.9fr 1.1fr; } }
.libro-maqueta { position: relative; justify-self: center; width: min(74vw, 360px); perspective: 1100px; }
.libro-tapa { position: relative; aspect-ratio: 1; border-radius: 4px 12px 12px 4px; overflow: hidden; transform: rotateY(-16deg) rotateX(3deg);
    box-shadow: 14px 12px 0 -4px #f1e3cf, 15px 13px 0 -4px rgba(53, 33, 95, 0.4), 0 30px 60px rgba(6, 4, 22, 0.6); background: var(--cielo); }
.libro-tapa img { width: 100%; height: 100%; object-fit: cover; }
.libro-tapa::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(10, 6, 30, 0.42) 0%, rgba(255, 255, 255, 0.16) 3.2%, rgba(10, 6, 30, 0.12) 6%, transparent 12%); }
.libro-titulo { position: absolute; z-index: 2; top: 9%; left: 0; right: 0; text-align: center; font-family: var(--titular);
    font-size: clamp(2.6rem, 13vw, 4.2rem); line-height: 1; color: var(--crema); text-shadow: 0 0 22px rgba(255, 206, 140, 0.45), 0 2px 10px rgba(20, 12, 50, 0.6); }
.libro-sello { position: absolute; z-index: 3; top: -14px; right: -10px; rotate: 7deg; padding: 8px 16px; border-radius: 999px;
    font-weight: 800; font-size: 0.95rem; color: #3b2346; background: linear-gradient(180deg, #fff1cf, #f2c46b);
    box-shadow: 0 8px 18px rgba(6, 4, 22, 0.35); }
.libro-datos { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1.4em; }
.libro-datos li { padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 0.92rem; background: rgba(255, 244, 223, 0.1);
    box-shadow: 0 0 0 1px rgba(255, 244, 223, 0.22) inset; }

/* ── el boletín ── */
.boletin .contenido { display: grid; gap: clamp(36px, 6vw, 64px); align-items: center; }
@media (min-width: 900px) { .boletin .contenido { grid-template-columns: 1.1fr 0.9fr; } }
.regalo { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radio); margin: 0 0 1.5em;
    background: rgba(255, 217, 138, 0.22); box-shadow: 0 0 0 1px rgba(242, 196, 107, 0.55) inset; }
.regalo svg { width: 38px; height: 38px; flex: none; margin-top: 2px; }
.regalo p { margin: 0; }
.hojas { position: relative; justify-self: center; width: min(86vw, 420px); aspect-ratio: 1.12; order: -1; }
@media (min-width: 900px) { .hojas { order: 0; } }
.hojas img { position: absolute; width: 50%; height: auto; aspect-ratio: 850 / 1100; background: #fff; border-radius: 6px;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 16px 34px rgba(53, 33, 95, 0.28); }
.hojas img:nth-child(1) { left: 2%; top: 9%; rotate: -8deg; }
.hojas img:nth-child(2) { left: 48%; top: 6%; rotate: 7deg; }
.hojas img:nth-child(3) { left: 25%; top: 0; rotate: -1deg; z-index: 1; }

/* ── las listas (libro y boletín) ── */
.lista { display: grid; gap: 14px; max-width: 32rem; margin: 0; position: relative; }
.campo { display: grid; gap: 6px; }
.campo-nombre { font-weight: 800; font-size: 0.98rem; }
.campo input { width: 100%; min-height: 56px; padding: 0 18px; border-radius: 14px; font: 600 1.06rem var(--letra);
    color: var(--campo-texto); background: var(--campo-fondo); border: 2px solid var(--campo-borde); transition: border-color 0.2s, box-shadow 0.2s; }
.campo input::placeholder { color: color-mix(in srgb, var(--campo-texto) 45%, transparent); }
.campo input:focus { outline: none; border-color: var(--papel-enlace); box-shadow: 0 0 0 4px color-mix(in srgb, var(--papel-enlace) 22%, transparent); }
.noche .campo input, .libro .campo input { color: var(--crema); background: rgba(15, 12, 44, 0.55); border-color: rgba(255, 244, 223, 0.35); }
.noche .campo input::placeholder, .libro .campo input::placeholder { color: rgba(255, 244, 223, 0.5); }
.noche .campo input:focus, .libro .campo input:focus { border-color: var(--oro); box-shadow: 0 0 0 4px rgba(255, 217, 138, 0.22); }
.casilla { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; cursor: pointer; line-height: 1.4; padding: 4px 0; }
.casilla input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--papel-enlace); cursor: pointer; }
.noche .casilla input, .libro .casilla input { accent-color: var(--dorado); }
.lista .boton { justify-self: start; min-width: 15rem; }
@media (max-width: 520px) { .lista .boton { justify-self: stretch; } }
.aviso-corto { font-size: 0.86rem; line-height: 1.5; margin: 2px 0 0; opacity: 0.88; }
.estado { margin: 0; min-height: 1.4em; font-weight: 700; font-size: 0.98rem; }
.estado.error { color: var(--error-papel); }
.noche .estado.error, .libro .estado.error { color: var(--error-noche); }
.campo input[aria-invalid="true"] { border-color: var(--error-papel); }
.noche .campo input[aria-invalid="true"], .libro .campo input[aria-invalid="true"] { border-color: var(--error-noche); }
.trampa { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.listo { display: grid; gap: 14px; max-width: 32rem; padding: 22px; border-radius: var(--radio); background: rgba(255, 217, 138, 0.16);
    box-shadow: 0 0 0 1px rgba(242, 196, 107, 0.6) inset; }
.listo h3 { font-family: var(--titular); font-weight: 600; font-size: 1.6rem; }
.listo p { margin: 0; }
.listo .boton { justify-self: start; }
.listo .peso { margin-top: -6px; font-size: 0.86rem; opacity: 0.8; }
.listo .otra { font-size: 0.98rem; }
.listo .otra button { background: none; border: 0; padding: 0; font: inherit; font-weight: 800; color: inherit; text-decoration: underline;
    text-underline-offset: 3px; cursor: pointer; }
.noche .listo, .libro .listo { background: rgba(255, 244, 223, 0.08); box-shadow: 0 0 0 1px rgba(255, 217, 138, 0.45) inset; }

/* ── el pie ── */
.pie { position: relative; padding: 56px var(--margen) calc(40px + env(safe-area-inset-bottom)); text-align: center; color: rgba(255, 244, 223, 0.85); }
.pie .produccion { font-family: var(--titular); font-size: 1.2rem; color: var(--crema); margin-bottom: 14px; }
.pie nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
.pie nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-weight: 700; }
.pie nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pie .farolito-pie { width: 40px; height: 40px; margin: 0 auto 16px; }

/* ── el aviso de privacidad ── */
.documento { padding: 48px var(--margen) 80px; }
.documento .contenido { max-width: 46rem; }
.documento h1 { font-size: clamp(2.2rem, 7vw, 3.2rem); line-height: 1.1; color: var(--papel-titulo); margin-bottom: 0.3em; }
.documento h2 { font-family: var(--letra); font-weight: 800; font-size: 1.22rem; margin: 1.9em 0 0.5em; color: var(--papel-titulo); }
.documento .fecha { color: var(--papel-suave); font-weight: 700; }
.documento ul { padding-left: 1.2em; }
.documento li { margin-bottom: 0.5em; }
.volver { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 800; text-decoration: none; margin-bottom: 18px; }

/* ── el sonido: suena desde el primer toque; abajo a la derecha, «Noche» (grillos y viento) prendida, para apagarla ── */
.sonido { position: fixed; right: calc(12px + env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 12;
    display: flex; gap: 8px; }
.sonido-boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 46px; min-height: 46px; padding: 0 17px 0 14px;
    border-radius: 999px; cursor: pointer; font: 800 0.95rem/1 var(--letra); color: var(--crema); background: rgba(23, 22, 63, 0.86);
    border: 1.5px solid rgba(255, 244, 223, 0.5); box-shadow: 0 6px 20px rgba(6, 4, 22, 0.38); -webkit-tap-highlight-color: transparent;
    transition: background-color 0.5s, color 0.5s, border-color 0.5s, box-shadow 0.5s; }
.sonido-boton svg { width: 20px; height: 20px; flex: none; }
.sonido-boton:hover { border-color: rgba(255, 244, 223, 0.9); }
.sonido-boton[aria-pressed="true"] { color: #3b2346; border-color: rgba(255, 255, 255, 0.6);
    background: radial-gradient(120% 140% at 50% 0%, #fff6dc, #ffe2a4 50%, #f6c06e); box-shadow: 0 6px 24px rgba(255, 184, 116, 0.45); }
.con-sonido .pie { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
/* mientras alguien escribe su correo se hace a un lado (en el celular taparía el campo) */
.escribiendo .sonido { opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0s 0.3s; }

/* ── la vida (v1.2): luzy.js le pone .vida a <html> si se puede mover y arma los adornos (aria-hidden). Solo transform y
   opacity, despacio y sin parpadear; lo que no se ve se pausa (.dormido) y todo con la pestaña oculta (.oculta). ── */
.portada-vida, .cielo-vivo { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 2.4s; }
.vida-lista .portada-vida, .vida-lista .cielo-vivo { opacity: 1; }
.cielo-vivo { overflow: hidden; }
.deriva { position: absolute; inset: -24px 0; }
.vida .libro { isolation: isolate; }
/* un punto de la portada (--x, --y en fracción de la lámina): la vertical (1080x1620) va a lo ancho y abajo; la ancha
   (2400x1260), con cover y 62% 100%. --ip y --al miden la lámina en pantalla y --px es un pixel suyo. */
.portada-vida { container-type: size; --ip: 100cqw; --al: 150cqw; --px: calc(100cqw / 1080); }
.portada-vida .ancha { display: none; }
@media (orientation: landscape) and (min-width: 560px) {
    .portada-vida { --ip: max(100cqw, 190.4762cqh); --al: max(52.5cqw, 100cqh); --px: calc(var(--ip) / 2400); }
    .portada-vida .vertical { display: none; }
    .portada-vida .ancha { display: block; }
}
.en-pintura { position: absolute; left: calc((100cqw - var(--ip)) * 0.62 + var(--x) * var(--ip)); top: calc(100cqh - (1 - var(--y)) * var(--al)); }
/* las estrellas que titilan (dos ondas suaves, cada una con su ritmo y su fase) y las luciérnagas */
.tw, .luci { position: absolute; aspect-ratio: 1; translate: -50% -50%; }
.tw::before, .luci::before { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.tw::before, .chispa { --c: 255, 243, 214; background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M20 9l1 9.9 9.9 1.1-9.9 1.1L20 31l-1-9.9L9.1 20l9.9-1.1z' fill='%23fff7e6' opacity='.75'/%3E%3C/svg%3E"),
    radial-gradient(circle closest-side, #fffaf0 0 6%, rgba(var(--c), 0.6) 16%, rgba(var(--c), 0.14) 45%, rgba(var(--c), 0)); }
.tw.oro::before, .chispa { --c: 255, 217, 138; }
.tw.rosa::before { --c: 255, 208, 220; }
.portada-vida .tw { width: calc(var(--t) * 44 * var(--px)); }
.tw.tapada { display: none; }
.cielo-vivo .tw { width: calc(var(--t) * 15px); }
.luci { width: 26px; }
.luci::before { background: radial-gradient(circle, #fff6dc 0 7%, rgba(255, 217, 138, 0.62) 16%, rgba(255, 184, 116, 0.2) 36%, rgba(255, 184, 116, 0) 66%); }
.portada-vida .luci { width: calc(64 * var(--px)); }
/* la estrella fugaz: la cabeza va adelante (a la derecha del trazo) y la cola crece al correr */
.fugaz { position: absolute; left: 0; top: 0; width: 160px; height: 2px; margin-top: -1px; opacity: 0; border-radius: 2px; transform-origin: 100% 50%;
    background: linear-gradient(90deg, rgba(255, 246, 222, 0), rgba(255, 246, 222, 0.55) 72%, rgba(255, 250, 240, 0.95)); }
.fugaz::after { content: ""; position: absolute; right: -6px; top: -5px; width: 12px; height: 12px; border-radius: 50%;
    background: radial-gradient(circle, #fffaf0 0 22%, rgba(255, 240, 210, 0.55) 42%, rgba(255, 240, 210, 0) 70%); }
/* la luz de Luzy: el botón es su cuerpo (centrado en él) y la luz va en su pecho, --pecho pixeles más abajo; el halo respira
   en el papel y como aura (en el pecho, que ya brilla, no se notaría) */
.luz-toque { --x: 0.4985; --y: 0.712; --pecho: 66; width: calc(420 * var(--px)); aspect-ratio: 1; translate: -50% -50%; padding: 0; margin: 0; border: 0;
    border-radius: 50%; background: none; cursor: pointer; pointer-events: auto; overflow: visible; -webkit-tap-highlight-color: transparent; }
@media (orientation: landscape) and (min-width: 560px) { .luz-toque { --x: 0.6887; --y: 0.6506; --pecho: 70; width: calc(450 * var(--px)); } }
.luz-toque:focus-visible { outline: 3px solid var(--oro); outline-offset: 4px; border-radius: 50%; }
.luz-toque > span, .chispa { position: absolute; left: 50%; top: calc(50% + var(--pecho) * var(--px)); aspect-ratio: 1; border-radius: 50%; pointer-events: none; translate: -50% -50%; }
.luz-halo { width: 181%; background: radial-gradient(circle closest-side, rgba(255, 240, 200, 0.3), rgba(255, 226, 170, 0.27) 11%,
    rgba(255, 206, 140, 0.2) 25%, rgba(255, 194, 126, 0.12) 42%, rgba(255, 188, 120, 0.07) 57%, rgba(255, 184, 116, 0.03) 74%, rgba(255, 184, 116, 0) 88%); }
.luz-destello { width: 200%; opacity: 0; transition: opacity 1.2s;
    background: radial-gradient(circle, rgba(255, 246, 220, 0.62), rgba(255, 222, 160, 0.34) 18%, rgba(255, 196, 128, 0.12) 40%, rgba(255, 184, 116, 0) 66%); }
@media (hover: hover) { .luz-toque:hover .luz-destello { opacity: 0.3; } }
.luz-anillo { width: 57%; opacity: 0; box-shadow: 0 0 0 1.5px rgba(255, 222, 160, 0.42), 0 0 24px 7px rgba(255, 196, 128, 0.26), inset 0 0 18px 4px rgba(255, 196, 128, 0.18); }
.chispa { width: 26px; opacity: 0; }
/* entradas suaves al bajar: un fundido lento que sube poquito, sin rebote (lo que ya se ve al llegar no se toca) */
.vida .aparece { opacity: 0; translate: 0 18px; }
.vida .aparece.visto { opacity: 1; translate: 0 0;
    transition: opacity 1.2s ease-out var(--espera, 0s), translate 1.6s cubic-bezier(0.2, 0.65, 0.3, 1) var(--espera, 0s); }
@media print { .vida .aparece { opacity: 1; translate: none; } }

@media (prefers-reduced-motion: no-preference) {
    .vida .portada-texto { pointer-events: none; }   /* (para que el toque llegue a Luzy por debajo del texto) */
    .vida .portada-texto > * { pointer-events: auto; }
    .vida .tw { animation: titila-a var(--d) ease-in-out var(--f) infinite alternate; }
    .vida .tw::before { animation: titila-b var(--d2) ease-in-out var(--f2) infinite alternate; }
    .vida .luci { animation: vuela-1 var(--d) ease-in-out var(--f) infinite alternate; }
    .vida .luci.v2 { animation-name: vuela-2; }
    .vida .luci.v3 { animation-name: vuela-3; }
    .vida .luci::before { animation: luce var(--d2) ease-in-out var(--f2) infinite alternate; }
    .vida .luz-halo { animation: respira 4s ease-in-out infinite; }   /* 0.25 Hz, como la luz en reposo de la serie */
    /* el brillo tibio de los botones de luz */
    .vida .boton-luz { position: relative; isolation: isolate; }
    .vida .boton-luz::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
        box-shadow: 0 0 24px 5px rgba(255, 196, 128, 0.5); opacity: 0.2; animation: brilla 5s ease-in-out infinite alternate; }
    /* la tira corre despacito (sus perforaciones) y su fuga de luz respira */
    .vida .tira-cinta::before, .vida .tira-cinta::after { right: calc(var(--m) * -0.86); animation: corre 3.2s linear infinite; }
    .vida .tira-fuga { animation: fuga 9s ease-in-out infinite alternate; }
    /* la luz en sus tres maneras: se enciende, se hace suave, se vuelve corazón */
    .vida .estados li:nth-child(1) .icono-luz { animation: enciende-icono 4s ease-in-out infinite; }
    .vida .estados li:nth-child(2) .icono-luz { animation: suaviza-icono 6s ease-in-out infinite; }
    .vida .estados li:nth-child(3) .icono-luz { animation: late 2.6s ease-in-out infinite; }
    /* lo que flota y se mece: el libro, las hojas para colorear, la luna de la hora de dormir y los farolitos */
    .vida .libro-maqueta { animation: flota 7s ease-in-out infinite alternate; }
    .vida .hojas img { transform-origin: 50% 92%; animation: mece 8.2s ease-in-out -3s infinite alternate; }
    .vida .hojas img:nth-child(2) { animation: mece-2 6.6s ease-in-out -1.2s infinite alternate; }
    .vida .hojas img:nth-child(3) { animation-duration: 9.4s; animation-delay: -5s; }
    .vida .nota-dormir svg { transform-origin: 50% 60%; animation: mece-farol 8s ease-in-out infinite alternate; }
    .vida .marca svg, .vida .farolito-pie { transform-origin: 50% 96%; animation: mece-farol 6.5s ease-in-out infinite alternate; }
    .vida .farolito-pie { animation-duration: 5.8s; animation-delay: -2s; }
    .vida .sonido { animation: asoma 1.2s ease-out both; }
    /* el cielo de la portada va más lento que la página al bajar y las estrellas de la noche quedan más lejos que el texto
       (donde el navegador ata animaciones al desplazamiento; donde no, se quedan quietos) */
    @supports (animation-timeline: view()) {
        .vida .portada { view-timeline: --portada block; }
        .vida .portada-fondo, .vida .portada-vida { animation: paralaje linear both; animation-timeline: --portada;
            animation-range: exit-crossing 0% exit-crossing 100%; }
        .vida .cielo-vivo { view-timeline: --cielo block; }
        .vida .deriva { animation: deriva linear both; animation-timeline: --cielo; }
    }
    /* lo que no se ve se pausa, y todo con la pestaña oculta. Al final y con !important porque cada «animation» de arriba
       vuelve a decir «corre»; lo que va con el desplazamiento no se pausa (no gasta nada si nadie baja). */
    .vida .dormido::before, .vida .dormido::after, .vida .dormido *, .vida .dormido *::before, .vida .dormido *::after,
    .vida.oculta *, .vida.oculta *::before, .vida.oculta *::after { animation-play-state: paused !important; }
    .vida .dormido .portada-fondo, .vida .dormido .portada-vida, .vida .dormido .deriva { animation-play-state: running !important; }
}
@keyframes titila-a { from { opacity: 0.2; } }
@keyframes titila-b { from { opacity: 0.5; transform: scale(0.8); } to { transform: scale(1.1); } }
@keyframes vuela-1 { 30% { transform: translate(16px, -22px); } 62% { transform: translate(-10px, -40px); } to { transform: translate(12px, -58px); } }
@keyframes vuela-2 { 35% { transform: translate(-20px, -14px); } 70% { transform: translate(-6px, -34px); } to { transform: translate(-26px, -46px); } }
@keyframes vuela-3 { 25% { transform: translate(10px, 12px); } 60% { transform: translate(30px, -6px); } to { transform: translate(14px, -26px); } }
@keyframes luce { from { opacity: 0.1; } to { opacity: 0.9; } }
@keyframes respira { 0%, 100% { opacity: 0.3; transform: scale(0.95); } 50% { opacity: 1; transform: scale(1.05); } }
@keyframes brilla { to { opacity: 0.95; } }
@keyframes corre { to { transform: translateX(calc(var(--m) * -0.86)); } }
@keyframes fuga { from { opacity: 0.55; } }
@keyframes enciende-icono { 0%, 100% { transform: scale(0.93); } 50% { transform: scale(1.06); } }
@keyframes suaviza-icono { 0%, 100% { opacity: 0.72; transform: scale(0.97); } 50% { opacity: 1; transform: scale(1.03); } }
@keyframes late { 0%, 46%, 100% { transform: none; } 14% { transform: scale(1.07); } 28% { transform: scale(1.01); } 36% { transform: scale(1.045); } }
@keyframes flota { to { transform: translateY(-9px) rotate(-0.6deg); } }
@keyframes mece { from { transform: rotate(-1.1deg); } to { transform: rotate(1.2deg) translateY(-2px); } }
@keyframes mece-2 { from { transform: rotate(1deg) translateY(-1px); } to { transform: rotate(-1.3deg); } }
@keyframes mece-farol { from { transform: rotate(-3deg); } to { transform: rotate(3deg); } }
@keyframes asoma { from { opacity: 0; translate: 0 8px; } }
@keyframes paralaje { to { transform: translateY(16%); } }
@keyframes deriva { from { transform: translateY(-24px); } to { transform: translateY(24px); } }

/* ── calma: quien pide menos movimiento, lo tiene ── */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .noche::before { animation: none; opacity: 0.5; }
    .boton, .campo input { transition: none; }
    .boton:hover, .boton:active { transform: none; }
    .portada-vida, .cielo-vivo { display: none; }   /* los adornos de la vida no se muestran: la página queda quieta */
    .sonido-boton { transition: none; }
}
