/* Llama a Santa (/hablar-con-santa/): la foto de Santa ocupa toda la pantalla y los controles de la llamada van encima. */

/* Tipografía de libro antiguo (OFL, ver fuentes/LEEME-libro.txt): IM Fell English para títulos y letras capitulares, EB Garamond para el texto */
@font-face { font-family: "EB Garamond"; src: url("/fuentes/eb-garamond-400.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "EB Garamond"; src: url("/fuentes/eb-garamond-italic.woff2") format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }
@font-face { font-family: "IM Fell English"; src: url("/fuentes/im-fell-english.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IM Fell English"; src: url("/fuentes/im-fell-english-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
.llamada-pagina { margin: 0; background: #12402A; color: #FFFDF8; overflow: hidden; }
.ll { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; isolation: isolate; }
.ll-fondo { position: fixed; inset: 0; z-index: -1; background: #2a1a10; }
.ll-foto { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 28% 40%; opacity: 0; transition: opacity 700ms ease; }
.ll-foto.visible { opacity: 1; }
.ll-velo { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 28, 18, 0.55) 0%, rgba(10, 28, 18, 0) 22%, rgba(10, 28, 18, 0) 46%, rgba(10, 28, 18, 0.82) 100%); }
.ll[data-estado="inicio"] .ll-velo, .ll[data-estado="fin"] .ll-velo { background: linear-gradient(90deg, rgba(10, 28, 18, 0.15) 0%, rgba(10, 28, 18, 0.55) 55%, rgba(10, 28, 18, 0.82) 100%); }

.ll-barra { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(14px, env(safe-area-inset-top)) 16px 0; }
.ll-salir { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; background: rgba(10, 28, 18, 0.55); color: #FFFDF8; text-decoration: none; font-weight: 600; backdrop-filter: blur(6px); }
.ll-linea { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 14px; border-radius: 999px; background: rgba(10, 28, 18, 0.55); font-size: 0.9rem; font-weight: 600; backdrop-filter: blur(6px); }
.ll-punto { width: 9px; height: 9px; border-radius: 50%; background: #8aa093; }
.ll[data-estado="llamada"] .ll-punto { background: #FF5A4D; }
.ll-reloj { margin: 0; min-width: 52px; padding: 8px 12px; border-radius: 999px; background: rgba(10, 28, 18, 0.55); font-variant-numeric: tabular-nums; font-weight: 600; text-align: center; backdrop-filter: blur(6px); }
.ll[data-estado="inicio"] .ll-reloj, .ll[data-estado="fin"] .ll-reloj { visibility: hidden; }

.ll-tarjeta { align-self: center; justify-self: end; width: min(440px, calc(100% - 32px)); margin: 16px max(16px, 4vw) 16px 16px; padding: 24px 24px 22px; border-radius: 28px; background: rgba(255, 253, 248, 0.96); color: #12402A; border: 1px solid rgba(201, 162, 74, 0.7); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); overflow-y: auto; max-height: calc(100dvh - 90px); }
.ll-tarjeta h1, .ll-tarjeta h2 { margin: 4px 0 10px; font-family: var(--display); font-weight: 400; font-size: clamp(2.2rem, 6vw, 3.2rem); line-height: 1.05; color: #12402A; }
.ll-tarjeta .oro { background: none; -webkit-text-fill-color: currentColor; color: #A87D1F; font-style: italic; }
.ll-texto { margin: 0 0 16px; font-size: 1.05rem; line-height: 1.55; color: #35503f; }
.ll-tarjeta label { display: block; margin: 0 0 6px; font-weight: 600; font-size: 0.95rem; }
.ll-tarjeta input[type="text"] { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 1px solid #C9BC98; background: #fff; font: inherit; color: #12402A; box-sizing: border-box; }
.ll-tarjeta input[type="text"]:focus-visible { outline: 3px solid #C9A24A; outline-offset: 2px; }
.ll-tarjeta .ll-acepto { display: grid; grid-template-columns: 24px 1fr; gap: 10px; margin: 16px 0 12px; font-weight: 400; font-size: 0.9rem; line-height: 1.45; color: #46594d; cursor: pointer; }
.ll-acepto input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: #1F5C3E; }
/* La Carta Mágica en la pantalla previa: tarjeta grande que lleva a /carta-magica/ (o el resumen de la carta ya sellada) */
.ll-carta { margin: 14px 0 6px; }
.ll-carta-enlace { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; text-decoration: none; color: #FFFDF8; border: 2px solid #E6C46C;
  background: linear-gradient(90deg, rgba(10, 16, 48, 0.88) 35%, rgba(10, 16, 48, 0.35)), url("/carta-magica/pergamino-volando.webp") center / cover; box-shadow: 0 12px 24px -14px rgba(0, 0, 0, 0.8); transition: scale 140ms cubic-bezier(0.23, 1, 0.32, 1); }
.ll-carta-enlace[hidden] { display: none; }
.ll-carta-enlace:active { scale: 0.98; }
.ll-carta-enlace:focus-visible { outline: 3px solid #E6C46C; outline-offset: 3px; }
.ll-carta-icono { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #E6C46C; font-size: 1.5rem; }
.ll-carta-cuerpo { display: grid; gap: 2px; min-width: 0; font-size: 0.9rem; line-height: 1.35; }
.ll-carta-cuerpo strong { font-size: 1.1rem; color: #FFF1C7; }
.ll-carta-flecha { flex: none; margin-left: auto; font-size: 2rem; line-height: 1; color: #E6C46C; }
.ll-carta-lista { padding: 12px 16px; border-radius: 18px; background: #EEF6EF; border: 1px solid rgba(31, 92, 62, 0.45); color: #12402A; }
.ll-carta-lista[hidden] { display: none; }
.ll-carta-foto { display: block; width: 100%; height: 130px; margin: 0 0 10px; border-radius: 12px; object-fit: cover; object-position: center 35%; }
.ll-carta-ok { margin: 0 0 6px; font-weight: 700; }
.ll-carta-lista ul { margin: 0 0 8px; padding-left: 1.1em; display: grid; gap: 2px; font-size: 0.92rem; list-style: none; padding-left: 0; }
.ll-carta-acciones { margin: 0; font-size: 0.88rem; }
.ll-carta-acciones a, .ll-carta-borrar { color: #1F5C3E; font: inherit; text-decoration: underline; background: none; border: 0; padding: 0; cursor: pointer; }

/* Expediente mágico (opcional, en la pantalla previa) y sus ideas para papás en el Baúl */
/* El botón del expediente va enmarcado en dorado, con "+"/"−" a la derecha, para que se vea que se toca */
.ll-expediente { margin: 16px 0 6px; border: 2px solid #C9A24A; border-radius: 18px; background: #FFF8E1; padding: 0 14px; box-shadow: 0 8px 18px -12px rgba(201, 162, 74, 0.95), inset 0 0 0 3px rgba(255, 253, 248, 0.8); }
.ll-expediente > summary { min-height: 56px; display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; color: #12402A; list-style: none; }
.ll-expediente > summary::-webkit-details-marker { display: none; }
.ll-expediente > summary::after { content: '+'; margin-left: auto; flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #12402A; color: #E6C46C; font-size: 1.4rem; line-height: 1; font-weight: 700; }
.ll-expediente[open] > summary::after { content: '−'; }
.ll-expediente > summary:focus-visible { outline: 3px solid #12402A; outline-offset: 3px; border-radius: 12px; }
.ll-expediente > summary small { font-weight: 400; color: #5a6b5f; }
.ll-expediente[open] > summary { border-bottom: 1px solid #E8DDBB; margin-bottom: 8px; }
.ll-expediente label { display: block; margin: 10px 0 4px; font-weight: 600; font-size: 0.92rem; }
.ll-expediente input[type="text"] { margin-bottom: 2px; }
.ll-exp-nota { margin: 0 0 6px; font-size: 0.85rem; line-height: 1.45; color: #5a6b5f; }
.ll-expediente > :last-child { margin-bottom: 14px; }
.ll-baul-ideas { margin-top: 14px; }
.ll-baul-ideas[hidden] { display: none; }
.ll-baul-ideas h4 { margin: 0 0 4px; font-family: var(--display); font-weight: 400; font-size: 1.15rem; }
.ll-acepto a { color: #1F5C3E; }
.ll-error { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: #FDE8E5; color: #8A1C12; font-size: 0.95rem; }
.ll-llamar { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: #1F8A4C; color: #fff; }
.ll-llamar svg { width: 22px; height: 22px; }
.ll-nota { margin: 14px 0 0; font-size: 0.85rem; line-height: 1.4; color: #5a6b5f; }
.ll-fin-acciones { display: grid; gap: 10px; }
.ll-fin-acciones .btn { text-align: center; justify-content: center; }

.ll-llamada { grid-row: 2 / 4; display: grid; grid-template-columns: minmax(0, 1fr); padding: 0 16px max(18px, env(safe-area-inset-bottom)); }
.ll-llamada[hidden], .ll-tarjeta[hidden], .ll-escribir[hidden], .ll-error[hidden], .ll-tu[hidden] { display: none; }
.ll-turnos { grid-row: 1; align-self: start; justify-self: center; margin: 12px 0 0; padding: 6px 14px; border-radius: 999px; background: rgba(10, 28, 18, 0.55); font-size: 0.9rem; font-weight: 600; backdrop-filter: blur(6px); }
.ll-burbuja { grid-row: 1; align-self: end; justify-self: center; width: min(720px, 100%); margin-bottom: 12px; padding: 14px 18px; border-radius: 22px; background: rgba(10, 28, 18, 0.72); backdrop-filter: blur(8px); border: 1px solid rgba(230, 196, 108, 0.45); }
.ll-tu { margin: 0 0 6px; font-size: 0.95rem; line-height: 1.4; color: #E6C46C; font-style: italic; }
.ll-santa { margin: 0; font-size: clamp(1.05rem, 2.4vw, 1.3rem); line-height: 1.5; color: #FFFDF8; min-height: 1.5em; }
.ll-estado { margin: 0 0 10px; text-align: center; font-weight: 600; color: #F6E3A8; min-height: 1.5em; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.ll-escribir { display: flex; gap: 8px; width: min(720px, 100%); margin: 0 auto 12px; }
.ll-escribir input { flex: 1; min-height: 48px; padding: 0 14px; border-radius: 14px; border: 0; font: inherit; box-sizing: border-box; }
.ll-llamada { grid-template-rows: 1fr repeat(8, auto); }
.ll-llamada > * { grid-column: 1; }
.ll-llamada > .ll-burbuja { grid-row: 1; }
.ll-llamada > .ll-aviso { grid-row: 2; }
.ll-llamada > .ll-menu { grid-row: 3; }
.ll-llamada > .ll-estado { grid-row: 4; }
.ll-llamada > .ll-sugerencias { grid-row: 5; }
.ll-llamada > .ll-extras { grid-row: 6; }
.ll-llamada > .ll-escribir { grid-row: 7; }
.ll-llamada > .ll-centro { grid-row: 8; }
.ll-llamada > .ll-controles { grid-row: 9; }
.ll-llamada .ll-menu[hidden], .ll-llamada .ll-extras[hidden], .ll-llamada .ll-aviso[hidden], .ll-llamada .ll-sugerencias[hidden], .ll-pastilla[hidden], .ll-nivel[hidden] { display: none; }

.ll-ocupado { margin: 0 0 14px; padding: 12px 16px; border-radius: 16px; background: #FFF4D6; border: 2px solid #E6C46C; color: #3a2410; font-size: 0.98rem; line-height: 1.45; }
.ll-ocupado[hidden] { display: none; }
.ll-llamar:disabled { opacity: 0.55; cursor: not-allowed; }

/* Pantalla previa: pasos y prueba de micrófono */
.ll-pasos { display: grid; gap: 10px; margin: 0 0 14px; padding: 0; list-style: none; }
.ll-pasos li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; align-items: start; font-size: 0.95rem; line-height: 1.4; color: #35503f; }
.ll-paso-n { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #12402A; color: #E6C46C; font-weight: 700; font-family: var(--display); }
.ll-prueba { display: grid; gap: 8px; margin: 0 0 14px; }
.ll-probar { justify-content: center; min-height: 44px; }
.ll-nivel { height: 10px; border-radius: 999px; background: #EFE3C2; overflow: hidden; }
.ll-nivel span { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, #1F8A4C, #E6C46C); transition: width 80ms linear; }
.ll-prueba-estado { margin: 0; min-height: 1.3em; font-size: 0.9rem; line-height: 1.4; color: #35503f; }
.ll-prueba-estado.bien { color: #17703d; font-weight: 600; }
.ll-prueba-estado.mal { color: #8A1C12; font-weight: 600; }

/* El deseo: los duendes lo anotan (momento para el niño) y la lista para el adulto al colgar */
.ll-llamada > .ll-duendes { grid-row: 1; align-self: start; justify-self: center; z-index: 2; margin-top: 56px; width: min(420px, 100%); padding: 12px 18px; text-align: center; border-radius: 20px; background: linear-gradient(160deg, #FBF0D2, #EBD9A3); color: #3a2410; border: 2px solid #E6C46C; box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.85), 0 0 28px rgba(230, 196, 108, 0.45); }
.ll-llamada .ll-duendes[hidden] { display: none; }
.ll-duendes-titulo { margin: 0; font-weight: 600; font-size: 0.95rem; }
.ll-duendes-deseo { margin: 4px 0 0; font-family: var(--display); font-size: 1.5rem; line-height: 1.15; color: #7a1f14; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.ligero) .ll-duendes.anota { animation: ll-anota 700ms cubic-bezier(0.23, 1, 0.32, 1); }
}
@keyframes ll-anota { 0% { opacity: 0; transform: translateY(-14px) scale(0.9) rotate(-2deg); } 60% { transform: translateY(2px) scale(1.04) rotate(1deg); } 100% { opacity: 1; transform: none; } }
.ll-deseos { margin: 0 0 16px; padding: 12px 14px; border-radius: 18px; background: #FFF6DC; border: 1px solid rgba(201, 162, 74, 0.7); text-align: left; }
.ll-deseos h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: 1.3rem; color: #12402A; }
.ll-deseos-lista { display: grid; gap: 8px; margin: 0 0 8px; padding: 0; list-style: none; }
.ll-deseos-lista li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.ll-deseo-nombre { font-weight: 600; text-transform: capitalize; }
.ll-deseo-enlace { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; background: #12402A; color: #FFF1C7; font-size: 0.88rem; font-weight: 600; text-decoration: none; }
.ll-deseo-enlace:hover { background: #1F5C3E; }
.ll-deseo-enlace:focus-visible { outline: 3px solid #C9A24A; outline-offset: 2px; }
.ll-deseos-compartir { justify-content: flex-start; }
.ll-buscador-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin: 0 0 10px; }
.ll-buscador-form input { min-width: 0; min-height: 46px; padding: 0 14px; border: 1px solid #D9CBA0; border-radius: 14px; background: #fff; color: #12402A; font: inherit; }
.ll-buscador-form input:focus-visible { outline: 3px solid #E6C46C; outline-offset: 2px; }
.ll-buscador-form .btn { justify-content: center; text-align: center; }
.ll-buscador-form .btn[aria-disabled="true"] { opacity: 0.55; cursor: default; }
.ll-grabacion { margin: 0 0 16px; padding: 12px 14px; border-radius: 18px; background: #EEF6EF; border: 1px solid rgba(31, 92, 62, 0.35); text-align: left; }
.ll-grabacion h3 { margin: 0 0 8px; font-family: var(--display); font-weight: 400; font-size: 1.3rem; color: #12402A; }
.ll-grabacion audio { width: 100%; margin: 0 0 10px; }
.ll-grabacion-botones { display: grid; gap: 8px; margin: 0 0 10px; }
.ll-grabacion-botones .btn { text-align: center; justify-content: center; }
.ll-grabacion[hidden], .ll-grabar[hidden] { display: none; }
.ll-deseos-nota { margin: 0; font-size: 0.8rem; line-height: 1.4; color: #5a6b5f; }

/* Durante la llamada: ideas para preguntar y aviso para el adulto */
.ll-sugerencias { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 auto 10px; max-width: 720px; }
.ll-sugerencia { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(230, 196, 108, 0.65); background: rgba(255, 253, 248, 0.92); color: #12402A; font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: scale 140ms cubic-bezier(0.23, 1, 0.32, 1), background-color 140ms; }
.ll-sugerencia:hover { background: #FFF1C7; }
.ll-sugerencia:active { scale: 0.96; }
.ll-sugerencia:focus-visible { outline: 3px solid #E6C46C; outline-offset: 3px; }
.ll-aviso { width: min(560px, 100%); margin: 0 auto 10px; padding: 12px 16px; border-radius: 18px; background: #FFF4D6; color: #3a2410; border: 2px solid #E6C46C; box-shadow: 0 16px 30px -18px rgba(0, 0, 0, 0.8); }
.ll-aviso p { margin: 0 0 8px; font-size: 0.95rem; line-height: 1.45; }
.ll-aviso strong { color: #8A1C12; }
.ll-estado.tu { color: #FFF1C7; font-size: 1.05rem; }
.ll-extras { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 14px; }
.ll-pastilla { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(230, 196, 108, 0.7); background: rgba(10, 28, 18, 0.72); color: #FFFDF8; font: inherit; font-size: 0.95rem; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px); transition: scale 140ms cubic-bezier(0.23, 1, 0.32, 1), background-color 140ms; }
.ll-pastilla:hover { background: rgba(31, 92, 62, 0.85); }
.ll-pastilla:active { scale: 0.96; }
.ll-pastilla:focus-visible, .ll-opcion:focus-visible { outline: 3px solid #E6C46C; outline-offset: 3px; }
.ll-parar { background: rgba(216, 64, 47, 0.85); border-color: #FFB3AA; }
.ll-menu { width: min(520px, 100%); margin: 0 auto 12px; padding: 14px; border-radius: 22px; background: rgba(255, 253, 248, 0.96); color: #12402A; border: 1px solid rgba(201, 162, 74, 0.7); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.7); }
.ll-menu-titulo { margin: 0 0 10px; font-family: var(--display); font-size: 1.3rem; color: #12402A; }
.ll-menu-lista { display: grid; gap: 8px; }
.ll-opcion { min-height: 48px; padding: 8px 14px; border-radius: 14px; border: 1px solid #D9CBA0; background: #fff; color: #12402A; font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.ll-opcion:hover { background: #FFF1C7; }
.visualmente-oculto { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ll-controles { display: flex; align-items: flex-end; justify-content: center; gap: clamp(10px, 3vw, 22px); }
.ll-boton { display: grid; justify-items: center; gap: 6px; min-width: 64px; padding: 0; border: 0; background: none; color: #FFFDF8; font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); }
.ll-boton svg { box-sizing: content-box; width: 26px; height: 26px; padding: 15px; border-radius: 50%; background: rgba(10, 28, 18, 0.7); border: 1px solid rgba(230, 196, 108, 0.55); transition: scale 140ms cubic-bezier(0.23, 1, 0.32, 1), background-color 140ms; }
.ll-boton:active svg { scale: 0.93; }
.ll-boton:focus-visible { outline: 3px solid #E6C46C; outline-offset: 4px; border-radius: 14px; }
.ll-boton[aria-pressed="false"] svg { opacity: 0.6; }
.ll-hablar { gap: 8px; font-size: 0.9rem; }
.ll-mic { position: relative; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: radial-gradient(circle at 32% 24%, #4CC283 0%, #1F8A4C 52%, #124F30 100%); border: 3px solid #E6C46C; box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.75), inset 0 3px 7px rgba(255, 255, 255, 0.35), inset 0 -6px 10px rgba(0, 0, 0, 0.25), 0 0 0 7px rgba(230, 196, 108, 0.16); transition: scale 140ms cubic-bezier(0.23, 1, 0.32, 1), background-color 200ms; }
.ll-hablar:active .ll-mic { scale: 0.94; }
.ll-hablar .ll-mic svg { width: 42px; height: 42px; padding: 0; border: 0; background: none; color: #FFFDF8; opacity: 1 !important; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4)); }
.ll-mic-onda { position: absolute; inset: -3px; border-radius: 50%; border: 2px solid #FF8A7A; opacity: 0; pointer-events: none; }
.ll-hablar.escuchando .ll-mic { background: radial-gradient(circle at 32% 24%, #FF7A66 0%, #D8402F 55%, #8F1D12 100%); box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.75), inset 0 3px 7px rgba(255, 255, 255, 0.35), inset 0 -6px 10px rgba(0, 0, 0, 0.25), 0 0 0 8px rgba(255, 138, 122, 0.3); }
.ll-hablar.escuchando .ll-mic-rejilla { stroke: #8F1D12; }
.ll-hablar[disabled] { cursor: default; }
.ll-hablar[disabled] .ll-mic { background: #4c6b5a; box-shadow: none; }
/* El micrófono, grande y al centro. Al tocarlo desaparece y en su mismo lugar sale "Te escucho…" (mismo alto, para que nada brinque) */
.ll-centro { display: grid; place-items: center; min-height: 148px; padding: 2px 0 6px; }
.ll-centro > * { grid-area: 1 / 1; }
.ll-centro > [hidden] { display: none; }
.ll-centro .ll-mic { width: 112px; height: 112px; }
.ll-centro .ll-hablar .ll-mic svg, .ll-hablar .ll-mic svg { width: 54px; height: 54px; }
.ll-escucha { display: flex; align-items: center; gap: 14px; max-width: 100%; min-height: 76px; padding: 10px 24px 10px 18px; border-radius: 999px; border: 2px solid #E6C46C; background: rgba(10, 28, 18, 0.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: #FFFDF8; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 14px 28px -14px rgba(0, 0, 0, 0.85), 0 0 0 7px rgba(255, 138, 122, 0.2); }
.ll-escucha:focus-visible { outline: 3px solid #E6C46C; outline-offset: 4px; }
.ll-escucha-texto { display: grid; gap: 2px; }
.ll-escucha-texto strong { font-size: 1.15rem; font-weight: 700; }
.ll-escucha-texto small { font-size: 0.82rem; opacity: 0.85; }
.ll-barras { display: flex; align-items: center; gap: 4px; height: 44px; }
.ll-barras i { display: block; width: 6px; height: 14px; border-radius: 3px; background: linear-gradient(#FF8A7A, #E6C46C); transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.ligero) .ll-barras i { animation: ll-barra 1s ease-in-out infinite; }
  html:not(.ligero) .ll-barras i:nth-child(2) { animation-delay: 0.15s; }
  html:not(.ligero) .ll-barras i:nth-child(3) { animation-delay: 0.3s; }
  html:not(.ligero) .ll-barras i:nth-child(4) { animation-delay: 0.45s; }
  html:not(.ligero) .ll-barras i:nth-child(5) { animation-delay: 0.6s; }
  html:not(.ligero) .ll-escucha { animation: ll-entra 220ms cubic-bezier(0.23, 1, 0.32, 1); }
}
@keyframes ll-barra { 0%, 100% { scale: 1 0.6; } 50% { scale: 1 2.6; } }
@keyframes ll-entra { from { opacity: 0; scale: 0.85; } to { opacity: 1; scale: 1; } }
.ll-manos-no { opacity: 0.75; }
.ll-colgar svg { background: #D8402F; border-color: #FFB3AA; opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.ligero) .ll-hablar.escuchando .ll-mic-onda { animation: ll-onda 1.6s ease-out infinite; }
  html:not(.ligero) .ll-hablar.escuchando .ll-mic-onda2 { animation-delay: 0.8s; }
  html:not(.ligero) .ll-hablar:not([disabled]):not(.escuchando) .ll-mic { animation: ll-respira 2.8s ease-in-out infinite; }
  html:not(.ligero) .ll[data-estado="marcando"] .ll-punto { animation: ll-pulso 0.8s ease-in-out infinite; }
}
@keyframes ll-onda { 0% { scale: 1; opacity: 0.8; } 100% { scale: 1.85; opacity: 0; } }
@keyframes ll-respira { 0%, 100% { box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.75), inset 0 3px 7px rgba(255, 255, 255, 0.35), inset 0 -6px 10px rgba(0, 0, 0, 0.25), 0 0 0 7px rgba(230, 196, 108, 0.16); } 50% { box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.75), inset 0 3px 7px rgba(255, 255, 255, 0.35), inset 0 -6px 10px rgba(0, 0, 0, 0.25), 0 0 0 13px rgba(230, 196, 108, 0.04); } }
@keyframes ll-pulso { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 77, 0.6); } 50% { box-shadow: 0 0 0 14px rgba(255, 90, 77, 0); } }

/* Cuentos: Santa lee junto a la chimenea y los cuentos son tarjetas abajo; luego se abre el libro */
.ll-cuentos, .ll-libro { grid-row: 2 / 4; display: grid; grid-template-columns: minmax(0, 1fr); padding: 0 16px max(18px, env(safe-area-inset-bottom)); }
.ll-cuentos[hidden], .ll-libro[hidden], .ll-libro-abriendo[hidden], .ll-libro-abierto[hidden] { display: none; }
.ll-cuentos { grid-template-rows: auto 1fr auto auto; gap: 12px; }
.ll-cuentos-cab { grid-row: 1; max-width: 520px; padding-top: 12px; }
[data-modo="cuentos"] .ll-reloj { display: none; }
.ll-cuentos-cab h2, .ll-cuentos-cab h1 { margin: 0 0 4px; font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; color: #FFF1C7; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8); }
.ll-cuentos-cab p { margin: 0; color: #FFFDF8; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); }
.ll-cuentos-lista { grid-row: 3; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.ll-cuentos > .ll-pastilla { grid-row: 4; justify-self: center; }
.ll-cuentos-error { grid-column: 1 / -1; margin: 0; padding: 12px 16px; border-radius: 14px; background: rgba(10, 28, 18, 0.8); color: #FFFDF8; }
/* Cada cuento es un librito de Nochebuena: tapa verde con lomo, filete dorado, listón rojo y un emblema de línea */
.ll-cuento-tarjeta { --tapa: #12402A; --tapa-luz: #1F5C3E; --liston: #B3261E; position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 14px; min-height: 104px; padding: 16px 42px 16px 22px; border: 0; border-radius: 5px 14px 14px 5px; background: linear-gradient(90deg, rgba(0, 0, 0, 0.38) 0 9px, rgba(255, 255, 255, 0.1) 9px 10px, transparent 10px), linear-gradient(140deg, var(--tapa-luz), var(--tapa) 72%); color: #FFF1C7; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 18px 28px -16px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(230, 196, 108, 0.55); transition: translate 160ms cubic-bezier(0.23, 1, 0.32, 1), scale 140ms cubic-bezier(0.23, 1, 0.32, 1), box-shadow 160ms; }
.ll-cuento-tarjeta::before { content: ''; position: absolute; inset: 6px 6px 6px 14px; border: 1px solid rgba(230, 196, 108, 0.42); border-radius: 2px 9px 9px 2px; pointer-events: none; }
.ll-cuento-tarjeta::after { content: ''; position: absolute; top: 0; right: 16px; width: 14px; height: 34px; background: var(--liston); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 76%, 0 100%); transition: height 180ms cubic-bezier(0.23, 1, 0.32, 1); }
.ll-cuento-tarjeta[data-cuento="dickens"] { --tapa: #4D120B; --tapa-luz: #7A1F14; --liston: #E6C46C; }
.ll-cuento-tarjeta:hover { translate: 0 -4px; box-shadow: 0 22px 32px -16px rgba(0, 0, 0, 0.95), 0 0 0 1px #E6C46C; }
.ll-cuento-tarjeta:hover::after { height: 42px; }
.ll-cuento-tarjeta:active { scale: 0.97; }
.ll-cuento-tarjeta:focus-visible { outline: 3px solid #E6C46C; outline-offset: 3px; }
.ll-cuento-icono { grid-row: 1 / 3; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #E6C46C; background: radial-gradient(circle at 35% 28%, rgba(230, 196, 108, 0.34), rgba(230, 196, 108, 0.06)); box-shadow: inset 0 0 0 1.5px rgba(230, 196, 108, 0.85), 0 0 0 4px rgba(230, 196, 108, 0.12); }
.ll-cuento-icono .ico { width: 30px; height: 30px; stroke-width: 1.5; vertical-align: 0; }
.ll-cuento-titulo { align-self: end; font-family: var(--display); font-size: 1.1rem; line-height: 1.2; color: #FFF1C7; text-wrap: balance; }
.ll-cuento-paginas { align-self: start; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: rgba(230, 196, 108, 0.9); }

.ll[data-vista="libro"] .ll-velo { background: rgba(10, 28, 18, 0.58); }
.ll-libro { grid-template-rows: auto 1fr auto auto; gap: 10px; }
.ll-libro-barra { grid-row: 1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 4px; }
.ll-libro-caja { grid-row: 2; display: grid; place-items: center; min-height: 0; position: relative; }
.ll-libro-abriendo { margin: 0; padding: 10px 20px; border-radius: 999px; background: rgba(10, 28, 18, 0.75); color: #FFF1C7; font-weight: 600; }
.ll-libro-abierto { display: grid; grid-template-columns: 1fr 1fr; width: min(980px, 100%); max-height: 100%; aspect-ratio: 1.55; border-radius: 10px; box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.9), 0 0 0 6px #5b3a1a, 0 0 0 9px #3a2410; perspective: 1400px; }
.ll-hoja { display: flex; flex-direction: column; min-width: 0; padding: clamp(16px, 3.4vw, 42px); background: radial-gradient(120% 90% at 50% 40%, #FBF2D8 0%, #F1DFAE 70%, #E2C98A 100%); color: #3a2410; overflow: hidden; }
.ll-hoja-izq { align-items: center; justify-content: center; gap: 10px; text-align: center; border-radius: 10px 0 0 10px; box-shadow: inset -28px 0 32px -22px rgba(80, 50, 10, 0.6); }
.ll-hoja-der { border-radius: 0 10px 10px 0; box-shadow: inset 28px 0 32px -22px rgba(80, 50, 10, 0.6); transform-origin: left center; }
.ll-hoja-titulo { margin: 0; font-family: var(--display); font-size: clamp(1.3rem, 3vw, 2rem); line-height: 1.15; color: #7a1f14; }
.ll-cabecera { display: none; margin: 0 0 8px; font-family: var(--display); font-size: 1.1rem; color: #7a1f14; }
.ll-texto-pagina { margin: auto 0; overflow: auto; white-space: pre-line; font-size: clamp(1.05rem, 2.1vw, 1.45rem); line-height: 1.75; color: #3a2410; }
.ll-texto-pagina.largo { font-size: clamp(0.95rem, 1.65vw, 1.2rem); line-height: 1.65; }
.ll-hoja-der.portada .ll-texto-pagina { text-align: center; font-family: var(--display); font-size: clamp(1.3rem, 2.8vw, 2rem); line-height: 1.35; color: #7a1f14; }

/* Por dentro del libro: papel con marco dorado, letra capitular, marcador, páginas apiladas y palabras que se iluminan al leer */
.ll-libro-abierto { box-shadow: 0 1px 0 #efdcA8, 0 2px 0 #cdb27a, 0 3px 0 #ecd9a2, 0 4px 0 #c4a86e, 0 5px 0 #e8d49a, 0 40px 70px -30px rgba(0, 0, 0, 0.9), 0 0 0 6px #5b3a1a, 0 0 0 9px #3a2410; }
.ll-hoja { position: relative; background:
  repeating-linear-gradient(0deg, rgba(120, 80, 20, 0.035) 0 1px, transparent 1px 3px),
  radial-gradient(120% 90% at 50% 40%, #FBF2D8 0%, #F1DFAE 70%, #E2C98A 100%); }
.ll-hoja::before { content: ''; position: absolute; inset: clamp(8px, 1.6vw, 18px); border: 1px solid rgba(150, 105, 30, 0.38); border-radius: 6px; pointer-events: none; }
.ll-hoja-izq::before { border-right-color: transparent; }
.ll-hoja-der::before { border-left-color: transparent; }
.ll-hoja-der.portada .ll-texto-pagina.credito { font-family: inherit; font-size: clamp(0.85rem, 1.5vw, 1.05rem); line-height: 1.5; overflow-wrap: anywhere; text-align: left; }
.ll-texto-pagina.capitular::first-letter { float: left; margin: 0.06em 0.1em 0 0; font-family: var(--display); font-size: 3.6em; line-height: 0.8; color: #9b2a1a; text-shadow: 0 2px 0 rgba(201, 162, 74, 0.55); }
.ll-marcador { position: absolute; top: -2px; right: clamp(22px, 5vw, 56px); width: 18px; height: clamp(46px, 7vw, 72px); background: linear-gradient(90deg, #8d1d12, #c4352a 50%, #8d1d12); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); filter: drop-shadow(0 3px 2px rgba(60, 20, 10, 0.4)); }
.ll-adorno { margin: 0; text-align: center; color: rgba(150, 105, 30, 0.7); font-size: 1.3rem; line-height: 1; }
.ll-hoja-der.portada .ll-adorno { font-size: 1.8rem; }
.pal { border-radius: 4px; transition: opacity 180ms ease, background-color 180ms ease; }
.ll-texto-pagina.sigue .pal { opacity: 0.45; }
.ll-texto-pagina.sigue .pal.leida { opacity: 1; }
.ll-texto-pagina.sigue .pal.actual { opacity: 1; background: rgba(230, 196, 108, 0.7); box-shadow: 0 0 0 3px rgba(230, 196, 108, 0.7); }

/* Página izquierda: una escena con pegatinas que se tocan */
.ll-escena { position: relative; flex: 1; width: 100%; min-height: 150px; }
.ll-pegatina { position: absolute; transform: translate(-50%, -50%); font-size: calc(clamp(3.2rem, 9vw, 6.6rem) * var(--tam, 1)); line-height: 1; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation; filter: drop-shadow(0 5px 5px rgba(80, 50, 10, 0.3)); }
.ll-pegatina.salta { animation: ll-salta 560ms cubic-bezier(0.23, 1, 0.32, 1); }
.ll-chispita { position: absolute; left: 50%; top: 50%; font-size: 1rem; pointer-events: none; animation: ll-vuela 700ms ease-out forwards; }
.ll-puntos { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.ll-punto-pag { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.ll-punto-pag::after { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: rgba(255, 241, 199, 0.45); transition: scale 160ms cubic-bezier(0.23, 1, 0.32, 1), background-color 160ms; }
.ll-punto-pag.activo::after { background: #E6C46C; scale: 1.5; box-shadow: 0 0 8px rgba(230, 196, 108, 0.9); }
.ll-punto-pag:focus-visible { outline: 3px solid #E6C46C; outline-offset: 0; border-radius: 50%; }
.ll-chispas { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.ligero) .ll-pegatina { animation: ll-entra 520ms cubic-bezier(0.23, 1, 0.32, 1) both; animation-delay: var(--retraso, 0ms); }
  html:not(.ligero) .ll-pegatina.salta { animation: ll-salta 560ms cubic-bezier(0.23, 1, 0.32, 1); }
  html:not(.ligero) .ll-chispas::before, html:not(.ligero) .ll-chispas::after { content: ''; position: absolute; inset: -20% 0; background-image: radial-gradient(circle, rgba(246, 227, 168, 0.9) 0 1.5px, transparent 2px), radial-gradient(circle, rgba(246, 227, 168, 0.7) 0 1px, transparent 1.6px); background-size: 120px 140px, 80px 90px; background-position: 0 0, 30px 40px; animation: ll-sube 14s linear infinite; opacity: 0.7; }
  html:not(.ligero) .ll-chispas::after { background-size: 170px 200px, 110px 130px; animation-duration: 22s; opacity: 0.5; }
}
@keyframes ll-entra { from { opacity: 0; transform: translate(-50%, -30%) scale(0.6); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes ll-salta { 0% { transform: translate(-50%, -50%) scale(1); } 30% { transform: translate(-50%, -78%) scale(1.25) rotate(-8deg); } 60% { transform: translate(-50%, -46%) scale(0.92) rotate(5deg); } 100% { transform: translate(-50%, -50%) scale(1); } }
@keyframes ll-vuela { from { opacity: 1; transform: translate(-50%, -50%) scale(0.6); } to { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.2); } }
@keyframes ll-sube { from { transform: translateY(0); } to { transform: translateY(-140px); } }
.ll-hoja-num { margin: 8px 0 0; text-align: center; font-size: 0.85rem; color: #8a6a35; font-variant-numeric: tabular-nums; }
.ll-libro-ctrl { grid-row: 3; display: flex; align-items: center; justify-content: center; gap: 12px; }
.ll-boton-libro { width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(230, 196, 108, 0.8); background: rgba(10, 28, 18, 0.78); color: #FFF1C7; font-size: 2rem; line-height: 1; cursor: pointer; transition: scale 140ms cubic-bezier(0.23, 1, 0.32, 1); }
.ll-boton-libro:active { scale: 0.93; }
.ll-boton-libro:focus-visible { outline: 3px solid #E6C46C; outline-offset: 3px; }
.ll-boton-libro[disabled] { opacity: 0.35; cursor: default; }
.ll-leer { min-width: 210px; }
.ll-libro-ctrl { flex-wrap: wrap; }
.ll-otro-si { min-height: 48px; background: #E6C46C; border-color: #E6C46C; color: #12402A; }
.ll-otro-si:hover { background: #F3D68A; }
.ll-otro-si[hidden] { display: none; }
.ll-libro-estado { grid-row: 4; margin: 0; min-height: 1.4em; text-align: center; font-weight: 600; color: #F6E3A8; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7); }
@media (prefers-reduced-motion: no-preference) {
  html:not(.ligero) .ll-hoja-der.voltea { animation: ll-voltear 460ms cubic-bezier(0.4, 0, 0.2, 1); }
  html:not(.ligero) .ll-libro-abierto.abre-libro { animation: ll-libro-aparece 600ms cubic-bezier(0.23, 1, 0.32, 1); }
  html:not(.ligero) .ll-foto { transition: opacity 700ms ease, transform 1400ms ease; }
  html:not(.ligero) #foto-abierto.visible { transform: scale(1.06); }
}
@keyframes ll-voltear { 0% { transform: rotateY(0); } 45% { transform: rotateY(-80deg); filter: brightness(0.8); } 55% { transform: rotateY(80deg); filter: brightness(0.8); } 100% { transform: rotateY(0); } }
@keyframes ll-libro-aparece { from { opacity: 0; transform: scale(0.92) translateY(14px); } }
@media (max-width: 800px) {
  .ll-libro-abierto { grid-template-columns: 1fr; grid-template-rows: auto 1fr; aspect-ratio: auto; min-height: 50vh; }
  .ll-hoja-izq { min-height: 120px; padding: 6px; border-radius: 10px 10px 0 0; box-shadow: inset 0 -22px 24px -20px rgba(80, 50, 10, 0.5); }
  .ll-hoja-izq .ll-hoja-titulo, .ll-hoja-izq .ll-hoja-num { display: none; }
  .ll-escena { min-height: 108px; }
  .ll-libro-caja { overflow-y: auto; align-items: start; }
  .ll-libro-abierto { max-height: none; }
  .ll-texto-pagina, .ll-texto-pagina.largo { font-size: 1rem; line-height: 1.6; overflow: visible; }
  .ll-hoja-der.portada .ll-texto-pagina { font-size: 1.3rem; }
  .ll-hoja-der { border-radius: 0 0 10px 10px; box-shadow: none; }
  .ll-hoja-der::before { border-top-color: transparent; border-left-color: rgba(150, 105, 30, 0.38); }
  .ll-hoja-izq::before { border-right-color: rgba(150, 105, 30, 0.38); border-bottom-color: transparent; }
  .ll-cabecera { display: none; }
  .ll-cuentos-lista { grid-template-columns: 1fr 1fr; }
  .ll-cuento-tarjeta { grid-template-columns: 1fr; justify-items: start; gap: 8px; min-height: 148px; padding: 16px 34px 16px 22px; }
  .ll-cuento-icono { grid-row: auto; width: 48px; height: 48px; }
  .ll-cuento-icono .ico { width: 26px; height: 26px; }
  .ll-cuento-titulo { align-self: start; font-size: 1rem; }
  .ll-cuento-tarjeta::after { right: 12px; width: 12px; height: 28px; }
  .ll-cuento-tarjeta[data-cuento="dickens"] { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); justify-items: stretch; align-items: center; min-height: 92px; column-gap: 14px; }
  .ll-cuento-tarjeta[data-cuento="dickens"] .ll-cuento-icono { grid-row: 1 / 3; }
  .ll-cuento-tarjeta[data-cuento="dickens"] .ll-cuento-titulo { align-self: end; }
  .ll-cuento-tarjeta[data-cuento="dickens"] .ll-cuento-paginas { align-self: start; }
}

@media (min-width: 900px) {
  /* En pantallas anchas la burbuja va a la derecha para no tapar a Santa */
  .ll-burbuja { justify-self: end; width: min(440px, 100%); margin-right: 2vw; }
}
@media (max-width: 700px) {
  .ll-tarjeta { justify-self: center; margin: 10px 16px; padding: 20px 18px; align-self: end; }
  .ll[data-estado="inicio"] .ll-velo, .ll[data-estado="fin"] .ll-velo { background: linear-gradient(180deg, rgba(10, 28, 18, 0.35) 0%, rgba(10, 28, 18, 0.05) 30%, rgba(10, 28, 18, 0.75) 100%); }
  .ll-foto { object-position: 30% 30%; }
  .ll-linea { padding: 8px 12px; font-size: 0.82rem; }
  .ll-barra { gap: 8px; padding-inline: 12px; }
}

/* Pantallas anchas y altas: el libro es la foto de Santa sosteniendo un libro abierto (libro-lectura.webp, 2000 x 1116) y el texto
   va sobre sus dos páginas. Las medidas de las páginas salen de la foto: texto izquierdo 17 a 48 % del ancho, derecho 52.5 a 86 %.
   En celulares y pantallas bajas se queda el libro de pergamino de arriba, porque la foto se vería muy chica. */
@media (min-width: 760px) and (orientation: landscape) and (min-height: 560px) {
  .ll-libro-abierto { container-type: inline-size; position: relative; width: min(1180px, 100%, calc((100dvh - 280px) * 1.792)); max-height: none; aspect-ratio: 2000 / 1116; border-radius: 0; box-shadow: none; grid-template-columns: 31fr 4.5fr 33.5fr; padding: 5% 14% 4.25% 17%; }
  .ll-libro-abierto::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: url('/hablar-con-santa/libro-lectura.webp') center / 100% 100% no-repeat; -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent), linear-gradient(to bottom, transparent, #000 5%, #000 95%, transparent); mask-composite: intersect; }
  .ll-libro-abierto .ll-hoja { position: relative; z-index: 1; padding: 0; background: none; border-radius: 0; box-shadow: none; }
  .ll-libro-abierto .ll-hoja::before { display: none; }
  .ll-libro-abierto .ll-hoja-izq { grid-column: 1; }
  .ll-libro-abierto .ll-hoja-der { grid-column: 3; }
  .ll-libro-abierto .ll-marcador { display: none; }
  .ll-libro-abierto .ll-texto-pagina { font-size: clamp(0.9rem, 1.8cqw, 1.6rem); line-height: 1.55; }
  .ll-libro-abierto .ll-texto-pagina.largo { font-size: clamp(0.9rem, 1.7cqw, 1.5rem); line-height: 1.5; }
  .ll-libro-abierto .ll-hoja-der.portada .ll-texto-pagina { font-size: clamp(1.2rem, 2.6cqw, 2.4rem); }
  .ll-libro-abierto .ll-hoja-der.portada .ll-texto-pagina.credito { font-size: clamp(0.85rem, 1.45cqw, 1.2rem); }
  .ll-libro-abierto .ll-hoja-titulo { font-size: clamp(1.1rem, 2.5cqw, 2.2rem); }
  .ll-libro-abierto .ll-hoja-num { font-size: clamp(0.75rem, 1.2cqw, 1rem); }
  .ll-libro-abierto .ll-pegatina { font-size: calc(clamp(2.4rem, 6cqw, 5.8rem) * var(--tam, 1)); }
}

/* ---------- Tipografía del libro: antigua y navideña ---------- */
.ll { --libro-titulo: "IM Fell English", "Iowan Old Style", "Palatino Linotype", Georgia, serif; --libro-texto: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif; }
.ll-cuentos-cab h1, .ll-cuentos-cab h2 { font-family: var(--libro-titulo); font-weight: 400; letter-spacing: 0.01em; }
.ll-cuento-titulo { font-family: var(--libro-titulo); font-size: 1.18rem; line-height: 1.18; letter-spacing: 0.005em; }
.ll-cuento-paginas { font-family: var(--libro-texto); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.14em; }
.ll-hoja-titulo { font-family: var(--libro-titulo); font-weight: 400; font-style: italic; letter-spacing: 0.01em; }
.ll-cabecera { font-family: var(--libro-titulo); font-style: italic; }
.ll-texto-pagina { font-family: var(--libro-texto); font-weight: 400; font-size: clamp(1.15rem, 2.3vw, 1.6rem); line-height: 1.55; font-feature-settings: "liga" 1, "onum" 1; text-wrap: pretty; color: #35200f; }
.ll-texto-pagina.largo { font-size: clamp(1.05rem, 1.85vw, 1.35rem); line-height: 1.5; }
.ll-hoja-der:not(.portada) .ll-texto-pagina { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.ll-hoja-der.portada .ll-texto-pagina { font-family: var(--libro-titulo); font-size: clamp(1.25rem, 2.6vw, 1.9rem); line-height: 1.35; letter-spacing: 0.01em; }
.ll-hoja-der.portada .ll-texto-pagina::first-line { font-size: 1.22em; color: #7a1f14; }
.ll-hoja-der.portada .ll-texto-pagina.credito { font-family: var(--libro-texto); font-style: italic; font-size: clamp(1rem, 1.7vw, 1.2rem); line-height: 1.45; }
.ll-hoja-der.portada .ll-texto-pagina.credito::first-line { font-size: 1.3em; font-style: normal; font-family: var(--libro-titulo); color: #7a1f14; }
.ll-texto-pagina.capitular::first-letter { font-family: var(--libro-titulo); font-size: 3.9em; line-height: 0.78; margin: 0.05em 0.09em 0 0; color: #9b2a1a; text-shadow: 0 1px 0 rgba(201, 162, 74, 0.7); }
.ll-hoja-num { font-family: var(--libro-texto); font-style: italic; font-size: 0.95rem; letter-spacing: 0.04em; color: #7d5d2c; }
.ll-adorno { color: rgba(122, 31, 20, 0.55); }
@media (max-width: 800px) {
  .ll-texto-pagina, .ll-texto-pagina.largo { font-size: 1.12rem; line-height: 1.5; }
  .ll-hoja-der.portada .ll-texto-pagina { font-size: 1.4rem; }
  .ll-hoja-der.portada .ll-texto-pagina.credito { font-size: 1rem; }
}
@media (max-width: 480px) { .ll-hoja-der:not(.portada) .ll-texto-pagina { text-align: left; } }
@media (min-width: 760px) and (orientation: landscape) and (min-height: 560px) {
  .ll-libro-abierto .ll-texto-pagina { font-size: clamp(1rem, 2.05cqw, 1.8rem); line-height: 1.5; }
  .ll-libro-abierto .ll-texto-pagina.largo { font-size: clamp(0.98rem, 1.9cqw, 1.65rem); line-height: 1.45; }
  .ll-libro-abierto .ll-hoja-der.portada .ll-texto-pagina { font-size: clamp(1.25rem, 2.8cqw, 2.5rem); }
  .ll-libro-abierto .ll-hoja-der.portada .ll-texto-pagina.credito { font-size: clamp(0.95rem, 1.7cqw, 1.35rem); }
  .ll-libro-abierto .ll-hoja-titulo { font-size: clamp(1.2rem, 2.7cqw, 2.4rem); }
  .ll-libro-abierto .ll-hoja-num { font-size: clamp(0.8rem, 1.35cqw, 1.1rem); }
}

/* ---------- Ajuste a cada pantalla ----------
   El libro y la lista de cuentos ocupan exactamente la pantalla (el body no se desplaza): los botones siempre quedan a la vista y lo que
   sobre (texto largo, lista de cuentos) se desplaza dentro de su caja. Tres casos: celular vertical, celular horizontal bajo y pantalla ancha. */
.ll[data-vista="libro"], .ll[data-vista="cuentos"] { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
.ll-libro, .ll-cuentos { min-height: 0; overflow: hidden; }
.ll-libro { grid-template-rows: auto minmax(0, 1fr) auto auto; }
.ll-libro-caja { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.ll-cuentos { grid-template-rows: auto minmax(0, 1fr) minmax(0, auto) auto; }
.ll-cuentos-lista { overflow-y: auto; overscroll-behavior: contain; align-content: start; padding: 4px 2px 8px; }

/* Celular vertical y bajo: sin la página de pegatinas, para que el texto tenga todo el espacio */
@media (max-width: 800px) and (max-height: 700px) {
  .ll-libro-abierto { grid-template-rows: minmax(0, 1fr); min-height: 0; }
  .ll-libro-abierto .ll-hoja-izq { display: none; }
  .ll-libro-abierto .ll-hoja { padding: 14px 18px; }
}

/* Celular horizontal (poca altura): una sola página de texto a todo el ancho y los controles compactos */
@media (max-height: 559px) and (orientation: landscape) {
  .ll[data-vista="libro"] .ll-barra { display: none; }
  .ll-libro { gap: 6px; padding-top: 8px; }
  .ll-libro-abierto { width: 100%; height: 100%; max-height: none; min-height: 0; aspect-ratio: auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .ll-libro-abierto .ll-hoja-izq { display: none; }
  .ll-libro-abierto .ll-hoja { padding: 10px 28px; }
  .ll-hoja-der { border-radius: 10px; box-shadow: none; }
  .ll-hoja-der::before { border-left-color: rgba(150, 105, 30, 0.38); }
  .ll-texto-pagina, .ll-texto-pagina.largo { font-size: 1.1rem; line-height: 1.45; margin: 0; }
  .ll-hoja-der.portada .ll-texto-pagina { font-size: 1.5rem; }
  .ll-hoja-num, .ll-adorno { display: none; }
  .ll-boton-libro { width: 44px; height: 44px; font-size: 1.6rem; }
  .ll-libro-ctrl { gap: 8px; }
  .ll-libro-estado, .ll-puntos { display: none; }
  .ll-cuentos-cab p { display: none; }
  .ll-cuento-tarjeta { min-height: 84px; }
  .ll-cuentos-lista { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
}

/* Pantalla ancha con la foto del libro: el texto ocupa mejor la página */
@media (min-width: 760px) and (orientation: landscape) and (min-height: 560px) {
  .ll-libro-abierto .ll-texto-pagina { font-size: clamp(1rem, 2.2cqw, 1.9rem); }
  .ll-libro-abierto .ll-texto-pagina.largo { font-size: clamp(0.98rem, 2.05cqw, 1.75rem); }
}

/* cqw mide el ancho del contenido del libro (69 % de la foto), por eso estos valores son mayores que en el bloque anterior */
@media (min-width: 760px) and (orientation: landscape) and (min-height: 560px) {
  .ll-libro-abierto .ll-texto-pagina { font-size: clamp(1rem, 2.85cqw, 1.9rem); line-height: 1.5; }
  .ll-libro-abierto .ll-texto-pagina.largo { font-size: clamp(0.98rem, 2.7cqw, 1.75rem); line-height: 1.45; }
  .ll-libro-abierto .ll-hoja-der.portada .ll-texto-pagina { font-size: clamp(1.25rem, 4cqw, 2.6rem); }
  .ll-libro-abierto .ll-hoja-der.portada .ll-texto-pagina.credito { font-size: clamp(0.95rem, 2.45cqw, 1.4rem); }
  .ll-libro-abierto .ll-hoja-titulo { font-size: clamp(1.2rem, 3.8cqw, 2.5rem); }
  .ll-libro-abierto .ll-hoja-num { font-size: clamp(0.8rem, 1.95cqw, 1.15rem); }
  .ll-libro-abierto .ll-pegatina { font-size: calc(clamp(2.4rem, 8.7cqw, 6rem) * var(--tam, 1)); }
}
/* Celular bajo (640 px de alto o menos): letra un poco menor para que quepa más texto sin desplazar */
@media (max-width: 800px) and (max-height: 700px) {
  .ll-texto-pagina, .ll-texto-pagina.largo { font-size: 1.05rem; line-height: 1.42; }
}

/* Libro con la foto, medidas definitivas: las páginas se colocan con posición absoluta en % de la foto (un padding en % se mediría contra la
   caja de afuera y no contra el libro). Con padding 0, 1 cqw = 1 % del ancho del libro. */
@media (min-width: 760px) and (orientation: landscape) and (min-height: 560px) {
  .ll-libro-abierto { display: block; padding: 0; }
  .ll-libro-abierto .ll-hoja { position: absolute; z-index: 1; top: 9%; height: 83%; box-sizing: border-box; }
  .ll-libro-abierto .ll-hoja-izq { left: 17%; width: 31%; }
  .ll-libro-abierto .ll-hoja-der { left: 52.5%; width: 33.5%; }
  .ll-libro-abierto .ll-texto-pagina { font-size: clamp(0.95rem, 2.25cqw, 1.9rem); line-height: 1.5; }
  .ll-libro-abierto .ll-texto-pagina.largo { font-size: clamp(0.92rem, 2.1cqw, 1.75rem); line-height: 1.45; }
  .ll-libro-abierto .ll-hoja-der.portada .ll-texto-pagina { font-size: clamp(1.2rem, 2.75cqw, 2.6rem); }
  .ll-libro-abierto .ll-hoja-der.portada .ll-texto-pagina.credito { font-size: clamp(0.92rem, 1.65cqw, 1.4rem); }
  .ll-libro-abierto .ll-hoja-titulo { font-size: clamp(1.15rem, 2.6cqw, 2.5rem); }
  .ll-libro-abierto .ll-hoja-num { font-size: clamp(0.78rem, 1.3cqw, 1.15rem); }
  .ll-libro-abierto .ll-pegatina { font-size: calc(clamp(2.4rem, 5.9cqw, 6rem) * var(--tam, 1)); }
}

/* Celulares angostos y bajos: los tres controles de abajo caben en una fila y la barra del libro en una sola línea */
.ll-leer { flex: 1 1 auto; min-width: 0; max-width: 260px; }
.ll-boton-libro { flex: none; }
@media (max-width: 420px) {
  .ll-libro-barra { flex-wrap: nowrap; gap: 6px; }
  .ll-libro-barra .ll-pastilla { padding: 0 11px; min-height: 40px; font-size: 0.88rem; white-space: nowrap; }
  .ll-libro-barra .ll-pastilla .ico { margin-right: 0.25em; }
}
@media (max-width: 800px) and (max-height: 700px) {
  .ll[data-vista="libro"] .ll-barra { display: none; }
  .ll-libro { padding-top: 8px; gap: 6px; }
}

/* ---------- Llamada en celular: el micrófono siempre a la vista ----------
   La pantalla de la llamada ocupa exactamente la pantalla (el body no se desplaza). La burbuja de Santa es la fila que se encoge (y se
   desplaza por dentro si el texto es largo); sugerencias, extras y controles conservan su tamaño. En pantallas bajas se compactan. */
.ll[data-estado="llamada"][data-vista="llamada"], .ll[data-estado="marcando"] { height: 100vh; height: 100dvh; min-height: 0; overflow: hidden; }
.ll-llamada { min-height: 0; grid-template-rows: minmax(0, 1fr) repeat(8, auto); }
.ll-llamada > .ll-burbuja { max-height: 100%; overflow-y: auto; overscroll-behavior: contain; min-height: 0; }
.ll-llamada > .ll-controles { padding-top: 4px; }
@media (max-height: 780px) {
  .ll-llamada > .ll-estado { margin-bottom: 6px; }
  .ll-sugerencias .ll-sugerencia:nth-child(n+3) { display: none; }
  .ll-sugerencia { min-height: 40px; padding: 0 14px; font-size: 0.9rem; }
  .ll-extras { gap: 8px; margin-bottom: 8px; }
  .ll-pastilla { min-height: 40px; padding: 0 13px; font-size: 0.85rem; }
  .ll-hablar { gap: 4px; font-size: 0.82rem; }
  .ll-centro { min-height: 124px; }
  .ll-centro .ll-mic { width: 88px; height: 88px; }
  .ll-hablar .ll-mic svg { width: 42px; height: 42px; }
  .ll-escucha { min-height: 64px; }
  .ll-colgar svg, .ll-boton svg { padding: 12px; }
}
@media (max-height: 620px) {
  .ll-centro { min-height: 88px; padding: 0; }
  .ll-centro .ll-mic { width: 68px; height: 68px; }
  .ll-hablar .ll-mic svg { width: 32px; height: 32px; }
  .ll-hablar-texto, #ll-hablar-texto { display: none; }
  .ll-escucha { min-height: 56px; padding: 6px 18px 6px 14px; }
  .ll-barras { height: 32px; }
  .ll-escucha-texto small { display: none; }
  .ll-sugerencias { display: none; }
  .ll-llamada > .ll-burbuja { padding: 10px 14px; margin-bottom: 8px; }
  .ll-santa { font-size: 1rem; line-height: 1.4; }
}

/* Celular acostado (poca altura): el micrófono y los botones comparten fila para que Santa no se quede sin espacio */
@media (orientation: landscape) and (max-height: 480px) {
  .ll-llamada { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; }
  .ll-llamada > * { grid-column: 1 / -1; }
  .ll-llamada > .ll-centro { grid-column: 1; grid-row: 8 / 10; }
  .ll-llamada > .ll-extras { grid-column: 2; grid-row: 8; align-self: end; flex-wrap: nowrap; margin: 0 0 4px; }
  .ll-llamada > .ll-controles { grid-column: 2; grid-row: 9; align-self: center; padding-top: 0; }
  .ll-sugerencias { display: none; }
}

/* ---------- El Gran Libro de Santa: pergamino de deseos con pluma dorada ----------
   Al colgar, si el niño pidió algo, los duendes lo escriben en un pergamino. Los deseos que se pueden comprar llevan un destello ✦ y son un enlace
   a la búsqueda de Mercado Libre; los del corazón van en tinta dorada, sin enlace. Santa queda de fondo, oscurecido y desenfocado. */
.ll[data-deseos="si"][data-estado="fin"] .ll-velo { background: rgba(10, 28, 18, 0.62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
.ll-fin.con-deseos { background: rgba(10, 28, 18, 0.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: rgba(230, 196, 108, 0.6); color: #FFFDF8; width: min(520px, calc(100% - 32px)); }
.ll-fin.con-deseos h2 { color: #FFF1C7; }
.ll-fin.con-deseos .etiqueta-seccion { color: #E6C46C; }
.ll-fin.con-deseos .ll-texto { color: rgba(255, 253, 248, 0.88); }
.ll-fin.con-deseos > .ll-deseos-aviso { color: rgba(255, 253, 248, 0.8); margin: 0 0 14px; }
.ll-fin.con-deseos .btn-sec { color: #FFF1C7; border-color: rgba(230, 196, 108, 0.7); }

/* Botón para cerrar el resumen del final (se queda arriba mientras se desplaza) y píldora para volver a abrirlo */
.ll-fin-cerrar { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; gap: 6px; width: fit-content; min-height: 44px; margin: -6px -6px 4px auto; padding: 0 16px; border: 1px solid currentColor; border-radius: 999px; background: rgba(255, 255, 255, 0.14); color: inherit; font: inherit; font-weight: 700; cursor: pointer; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ll-fin-cerrar:hover { background: rgba(255, 255, 255, 0.26); }
.ll-fin-cerrar:focus-visible { outline: 3px solid #E6C46C; outline-offset: 2px; }
.ll-fin:not(.con-deseos) .ll-fin-cerrar { background: rgba(18, 64, 42, 0.08); }
.ll-fin-abrir { position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); translate: -50% 0; z-index: 20; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: #E6C46C; color: #1A0F00; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 14px 28px -10px rgba(0, 0, 0, 0.7); }
.ll-fin-abrir[hidden] { display: none; }
.ll-fin-abrir:focus-visible { outline: 3px solid #FFFDF8; outline-offset: 3px; }
/* Con el resumen cerrado, Santa se ve sin velo */
.ll[data-deseos][data-estado="fin"][data-fincerrada="1"] .ll-velo { background: linear-gradient(180deg, rgba(10, 28, 18, 0.15) 0%, rgba(10, 28, 18, 0) 40%, rgba(10, 28, 18, 0.5) 100%); backdrop-filter: none; -webkit-backdrop-filter: none; }

/* Laptop y pantallas grandes: el resumen del final es un recuadro completo (no una tira angosta) y reparte sus partes en dos columnas.
   Celulares y tabletas conservan la tarjeta de una columna. */
@media (min-width: 1024px) and (min-height: 600px) {
  .ll-fin.con-deseos { justify-self: center; align-self: center; width: min(1160px, calc(100% - 96px)); max-width: none; margin: 16px auto; padding: 26px 34px 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-items: start; max-height: calc(100dvh - 110px); }
  .ll-fin.con-deseos[hidden] { display: none; }
  .ll-fin.con-deseos > .ll-fin-cerrar, .ll-fin.con-deseos > .etiqueta-seccion, .ll-fin.con-deseos > h2, .ll-fin.con-deseos > .ll-texto, .ll-fin.con-deseos > .ll-fin-acciones { grid-column: 1 / -1; }
  .ll-fin.con-deseos > .ll-fin-cerrar { justify-self: end; }
  .ll-fin.con-deseos > .ll-pergamino { grid-column: 1; grid-row: 5; }
  .ll-fin.con-deseos > .ll-baul { grid-column: 2; grid-row: 5 / span 2; margin-top: 0; }
  .ll-fin.con-deseos > .ll-grabacion { grid-column: 1; grid-row: 6; }
  .ll-fin.con-deseos > .ll-fin-acciones { grid-row: 7; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 8px; }
  .ll-fin.con-deseos h2 { font-size: clamp(2.4rem, 3.4vw, 3.4rem); }
}

.ll-pergamino { position: relative; margin: 38px 4px 22px; padding: 26px 20px 22px; border-radius: 6px / 12px; text-align: center; color: #3a2410;
  background: radial-gradient(130% 90% at 50% 30%, #FCF2D2 0%, #F1DDA8 60%, #DEC087 100%);
  box-shadow: 0 24px 36px -22px rgba(0, 0, 0, 0.9), inset 0 0 36px rgba(150, 100, 30, 0.35), inset 0 0 0 1px rgba(150, 105, 30, 0.4); }
.ll-pergamino[hidden] { display: none; }
.ll-pergamino::before, .ll-pergamino::after { content: ''; position: absolute; left: -9px; right: -9px; height: 20px; border-radius: 12px; background: linear-gradient(#EAD08C, #C99F4E 58%, #A07632); box-shadow: 0 5px 8px -3px rgba(0, 0, 0, 0.55), inset 0 -2px 3px rgba(90, 55, 10, 0.4); pointer-events: none; }
.ll-pergamino::before { top: -11px; }
.ll-pergamino::after { bottom: -11px; }
.ll-pergamino h3 { margin: 0; font-family: var(--libro-titulo); font-style: italic; font-weight: 400; font-size: clamp(1.6rem, 6vw, 2.1rem); line-height: 1.1; color: #5b2a12; }
.ll-pergamino-adorno { display: block; margin: 2px 0 6px; font-size: 1.5rem; line-height: 1; color: rgba(122, 31, 20, 0.6); }
.ll-pergamino .ll-deseos-lista { display: grid; gap: 4px; margin: 6px 0 4px; padding: 0; list-style: none; text-align: left; }
.ll-deseo { position: relative; padding: 2px 6px 2px 34px; font-family: var(--libro-titulo); font-style: italic; font-size: clamp(1.25rem, 4.6vw, 1.6rem); line-height: 1.3; }
.ll-deseo::before { position: absolute; left: 6px; top: 0.12em; font-style: normal; font-size: 0.95em; line-height: 1.3; }
.ll-deseo.comprable { color: #3a2410; }
.ll-deseo.comprable::before { content: '✦'; color: #C48A12; text-shadow: 0 0 8px rgba(230, 196, 108, 0.9); }
.ll-deseo.corazon { color: #8a5a08; text-shadow: 0 1px 0 rgba(255, 255, 255, 0.55), 0 0 10px rgba(230, 196, 108, 0.55); }
.ll-deseo.corazon::before { content: '♥'; color: #B8861B; }
.ll-deseo-enlace { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; padding: 4px 0; min-height: 44px; box-sizing: border-box; color: inherit; text-decoration: none; border-radius: 8px; }
.ll-deseo-enlace:hover .ll-deseo-texto { text-decoration: underline; text-decoration-color: rgba(196, 138, 18, 0.7); text-underline-offset: 4px; }
.ll-deseo-enlace:focus-visible { outline: 3px solid #C48A12; outline-offset: 2px; }
.ll-deseo-ir { font-family: var(--libro-texto); font-style: normal; font-weight: 600; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: #7a1f14; padding: 3px 8px; border: 1px solid rgba(122, 31, 20, 0.4); border-radius: 999px; background: rgba(255, 246, 220, 0.6); white-space: nowrap; }
.ll-pergamino-pie { margin: 8px 0 0; font-family: var(--libro-texto); font-style: italic; font-size: 0.92rem; line-height: 1.35; color: #7d5d2c; }
.ll-pergamino-pie:empty { display: none; }
.ll-pergamino .ll-deseos-compartir { margin-top: 8px; padding: 0; text-align: center; font-style: normal; }
.ll-deseo-whats { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #12402A; color: #FFF1C7; font-family: var(--libro-texto); font-style: normal; font-size: 0.95rem; font-weight: 600; text-decoration: none; }
.ll-deseo-whats:hover { background: #1F5C3E; }
.ll-deseo-whats:focus-visible { outline: 3px solid #C48A12; outline-offset: 2px; }

/* La pluma dorada y el polvo de hadas */
.ll-pluma { position: absolute; top: -52px; right: 6px; width: 54px; height: auto; transform: rotate(16deg); transform-origin: 50% 100%; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 12px rgba(230, 196, 108, 0.7)); pointer-events: none; z-index: 2; }
.ll-polvo { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  html:not(.ligero) .ll-pergamino.escribe { animation: ll-despliega 700ms cubic-bezier(0.23, 1, 0.32, 1) both; }
  html:not(.ligero) .ll-pergamino.escribe .ll-pluma { animation: ll-escribe 2.8s ease-in-out infinite; }
  html:not(.ligero) .ll-pergamino.escribe .ll-deseo { clip-path: inset(-8px 100% -8px 0); animation: ll-tinta 1.05s cubic-bezier(0.4, 0, 0.2, 1) forwards; animation-delay: calc(0.7s + var(--i, 0) * 1.3s); }
  html:not(.ligero) .ll-pergamino.escribe .ll-deseo::after { content: '✦'; position: absolute; top: 0.1em; left: 34px; color: #FFF6D0; text-shadow: 0 0 8px #E6C46C, 0 0 16px #E6C46C; opacity: 0; animation: ll-punta 1.05s ease-out forwards; animation-delay: calc(0.7s + var(--i, 0) * 1.3s); pointer-events: none; }
  html:not(.ligero) .ll-pergamino.escribe .ll-deseo.comprable::before { animation: ll-titila 2.4s ease-in-out infinite; animation-delay: calc(1.6s + var(--i, 0) * 1.3s); }
  html:not(.ligero) .ll-pergamino.escribe .ll-polvo::before, html:not(.ligero) .ll-pergamino.escribe .ll-polvo::after { content: ''; position: absolute; inset: -20% 0; background-image: radial-gradient(circle, rgba(255, 238, 170, 0.95) 0 1.6px, transparent 2.2px), radial-gradient(circle, rgba(230, 196, 108, 0.8) 0 1.1px, transparent 1.8px); background-size: 110px 130px, 70px 80px; background-position: 0 0, 28px 36px; animation: ll-sube 12s linear infinite; opacity: 0.75; }
  html:not(.ligero) .ll-pergamino.escribe .ll-polvo::after { background-size: 160px 180px, 100px 120px; animation-duration: 19s; opacity: 0.5; }
}
@keyframes ll-despliega { from { opacity: 0; transform: translateY(16px) scaleY(0.9); } }
@keyframes ll-tinta { to { clip-path: inset(-8px 0 -8px 0); } }
@keyframes ll-punta { 0% { left: 34px; opacity: 0; } 8% { opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 22px); opacity: 0; } }
@keyframes ll-titila { 0%, 100% { opacity: 1; scale: 1; } 50% { opacity: 0.55; scale: 0.8; } }
@keyframes ll-escribe { 0%, 100% { transform: rotate(16deg) translate(0, 0); } 30% { transform: rotate(10deg) translate(-8px, 6px); } 60% { transform: rotate(20deg) translate(-3px, 3px); } }

/* El enlace de cada deseo es una fila del pergamino, no el botón verde de antes */
.ll-pergamino .ll-deseo-enlace, .ll-pergamino .ll-deseo-enlace:hover { background: none; color: inherit; padding: 4px 0; font-size: inherit; font-weight: inherit; border-radius: 8px; min-height: 44px; display: flex; }
.ll-pergamino .ll-deseo-enlace:hover .ll-deseo-ir { background: #7a1f14; color: #FFF6DC; }
.ll-pluma { top: -60px; right: 2px; }

/* Pergamino vacío y deseos escritos a mano */
.ll-deseo-vacio { padding: 6px 4px 2px; text-align: center; font-family: var(--libro-texto); font-style: italic; font-size: 1.02rem; line-height: 1.4; color: #7d5d2c; }
.ll-deseo-nuevo { display: flex; gap: 8px; margin: 10px 0 2px; }
.ll-deseo-nuevo input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border: 1px solid rgba(150, 105, 30, 0.55); border-radius: 999px; background: rgba(255, 250, 235, 0.85); color: #3a2410; font: italic 1.05rem var(--libro-titulo); box-sizing: border-box; }
.ll-deseo-nuevo input::placeholder { color: rgba(122, 93, 44, 0.75); }
.ll-deseo-nuevo input:focus-visible, .ll-deseo-mas:focus-visible { outline: 3px solid #C48A12; outline-offset: 2px; }
.ll-deseo-mas { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: #7a1f14; color: #FFF6DC; font: 600 0.9rem var(--libro-texto); letter-spacing: 0.04em; cursor: pointer; }
.ll-deseo-mas:hover { background: #8f2619; }

/* ---------- El Baúl de los Duendes: zona para adultos con las tarjetas de regalo ---------- */
.ll-baul { margin: 0 0 14px; padding: 14px; border-radius: 18px; background: #FFF6DC; border: 1px solid rgba(201, 162, 74, 0.7); color: #3a2410; text-align: left; }
.ll-baul[hidden] { display: none; }
.ll-baul h3 { margin: 0 0 4px; font-family: var(--libro-titulo); font-style: italic; font-weight: 400; font-size: 1.45rem; color: #7a1f14; }
.ll-baul-intro { margin: 0 0 10px; font-size: 0.95rem; line-height: 1.4; color: #4a3520; }
.ll-baul-lista { display: grid; gap: 10px; }
.ll-baul-lista:empty { display: none; }
.ll-producto { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 10px; border-radius: 14px; background: #fff; border: 1px solid #E8D9A8; box-shadow: 0 8px 18px -14px rgba(80, 50, 10, 0.6); }
.ll-producto.curado { border-color: #C9A24A; box-shadow: 0 10px 22px -14px rgba(150, 100, 20, 0.7), 0 0 0 1px rgba(201, 162, 74, 0.35); }
.ll-producto-foto { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 12px; overflow: hidden; background: linear-gradient(145deg, #FBF0D2, #EBD9A3); color: #8a5a08; grid-row: 1 / 3; }
.ll-producto-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ll-producto-foto .ico { width: 36px; height: 36px; stroke-width: 1.5; }
.ll-producto-datos { min-width: 0; }
.ll-producto-pidio { margin: 0 0 2px; font-size: 0.78rem; line-height: 1.3; color: #7d5d2c; overflow-wrap: anywhere; }
.ll-producto-titulo { margin: 0; font-family: var(--libro-titulo); font-weight: 400; font-size: 1.12rem; line-height: 1.2; color: #12402A; overflow-wrap: anywhere; }
.ll-producto-precio { margin: 3px 0 0; font-size: 0.85rem; color: #4a3520; }
.ll-producto-boton { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 6px; padding: 0 16px; border-radius: 999px; background: #E6C46C; color: #12402A; font-weight: 700; font-size: 0.98rem; text-align: center; text-decoration: none; box-shadow: 0 8px 16px -10px rgba(90, 60, 10, 0.8); transition: scale 140ms cubic-bezier(0.23, 1, 0.32, 1), background-color 140ms; }
.ll-producto.curado .ll-producto-boton { background: #12402A; color: #FFF1C7; }
.ll-producto-boton:hover { background: #F3D68A; }
.ll-producto.curado .ll-producto-boton:hover { background: #1F5C3E; }
.ll-producto-boton:active { scale: 0.97; }
.ll-producto-boton:focus-visible { outline: 3px solid #C48A12; outline-offset: 3px; }
.ll-baul-aviso { margin: 10px 0 0; font-size: 0.78rem; line-height: 1.4; color: #5a6b5f; }
.ll-baul-aviso[hidden] { display: none; }
.ll-baul-otro { margin: 10px 0 0; padding-top: 8px; border-top: 1px dashed rgba(150, 105, 30, 0.45); }
.ll-baul-otro summary { cursor: pointer; font-size: 0.92rem; font-weight: 600; color: #7a1f14; min-height: 36px; display: flex; align-items: center; }
.ll-baul-otro summary:focus-visible { outline: 3px solid #C48A12; outline-offset: 2px; border-radius: 6px; }
.ll-baul-otro .ll-buscador-form { margin-top: 8px; }
