/* Pajes y Duendes · estilo común de la web (portada y pedido). 15 nov 2026.
   Idea: una noche de Oriente. Cielo azul noche, oro, pergamino y lacre. Tipografías propias (OFL), sin terceros. */
@font-face { font-family: "Fell"; src: url(fuentes/IMFellEnglish-Regular.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: "Garamond"; src: url(fuentes/EBGaramond.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }
:root {
  --noche: #070b1c; --noche2: #0d1430; --oro: #e6b04f; --oro-claro: #ffe2a3; --oro-oscuro: #9c6a1d;
  --papel: #f3e6c8; --papel2: #e6d0a2; --tinta: #3a2516; --tinta-suave: #7a5b3f; --lacre: #9e1f1a; --lacre2: #c8392f;
  --texto: #f4ead6; --suave: #b9ae98;
  --sans: system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--noche); color: var(--texto); font-family: "Garamond", Georgia, serif; font-size: 18px; line-height: 1.45; overflow-x: hidden; }
img, video { max-width: 100%; }
a { color: var(--oro-claro); }
#cielo { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.capa { position: relative; z-index: 1; }
.demo { position: sticky; top: 0; z-index: 20; text-align: center; font: 700 11px/1.3 var(--sans); letter-spacing: 0.08em; padding: 7px 12px; color: #1a1206; background: linear-gradient(90deg, var(--oro-oscuro), var(--oro), var(--oro-claro), var(--oro), var(--oro-oscuro)); }

.ancho { max-width: 1020px; margin: 0 auto; padding: 0 18px; }
.estrecho { max-width: 640px; margin: 0 auto; padding: 0 16px; }
.antetitulo { font: 700 12px/1.3 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--oro); }
.dorado { background: linear-gradient(180deg, #fff6dc 0%, var(--oro-claro) 30%, var(--oro) 62%, var(--oro-oscuro) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 24px rgba(230,176,79,0.35)); }
h1, h2, h3 { font-family: "Fell", Georgia, serif; font-weight: 400; margin: 0; }
h2.titulo { text-align: center; font-size: clamp(1.8rem, 5.5vw, 2.5rem); line-height: 1.1; color: var(--oro-claro); }
p.sub { text-align: center; color: var(--suave); margin: 8px auto 0; max-width: 46ch; }

/* Botones */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none; color: #1a1206; background: linear-gradient(180deg, var(--oro-claro), var(--oro)); padding: 16px 28px; border-radius: 99px; font: 700 16px var(--sans); box-shadow: 0 0 0 6px rgba(230,176,79,0.14), 0 10px 40px rgba(230,176,79,0.35); transition: transform 0.15s; }
.boton:hover { transform: translateY(-2px); }
.boton:active { transform: scale(0.97); }
.boton.late { animation: latido 2.6s ease-in-out infinite; }
.boton.sobrio { background: transparent; color: var(--oro-claro); box-shadow: inset 0 0 0 1.5px rgba(230,176,79,0.55); }
.boton.rojo { color: #fff3dc; background: radial-gradient(circle at 35% 25%, #e0574a, var(--lacre2) 35%, var(--lacre) 75%); box-shadow: 0 0 0 6px rgba(200,57,47,0.16), 0 10px 36px rgba(158,31,26,0.55); }
.boton[disabled] { opacity: 0.6; cursor: default; }
@keyframes latido { 50% { box-shadow: 0 0 0 12px rgba(230,176,79,0.05), 0 10px 50px rgba(230,176,79,0.5); } }
.enlace { background: none; border: 0; padding: 8px; color: var(--suave); font: 15px var(--sans); text-decoration: underline; cursor: pointer; }

/* Marco dorado para vídeo */
.ventana { position: relative; border-radius: 18px; padding: 7px; background: linear-gradient(135deg, var(--oro-claro), var(--oro-oscuro) 40%, var(--oro) 70%, var(--oro-oscuro)); box-shadow: 0 30px 80px rgba(0,0,0,0.7), 0 0 60px rgba(230,176,79,0.25); }
.ventana video, .ventana img.pantalla { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: #000; }
.chispa { position: absolute; color: var(--oro-claro); text-shadow: 0 0 12px var(--oro); animation: chispa 2.4s ease-in-out infinite; pointer-events: none; }
@keyframes chispa { 0%, 100% { opacity: 0.2; transform: scale(0.7); } 50% { opacity: 1; transform: scale(1.25); } }
.etiqueta-roja { position: absolute; left: 16px; bottom: -14px; background: var(--lacre); color: #fff; font: 700 11px var(--sans); letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; border-radius: 99px; box-shadow: 0 6px 16px rgba(0,0,0,0.4); }

/* Pergamino */
.pergamino { position: relative; color: var(--tinta); border-radius: 6px; font-family: "Fell", Georgia, serif;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(255,255,255,0.45), transparent 50%),
    radial-gradient(ellipse at 90% 95%, rgba(140,95,40,0.28), transparent 55%),
    radial-gradient(ellipse at 5% 90%, rgba(140,95,40,0.22), transparent 45%),
    repeating-linear-gradient(0deg, rgba(120,80,30,0.035) 0 2px, transparent 2px 5px),
    linear-gradient(160deg, var(--papel), var(--papel2));
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), inset 0 0 60px rgba(120,80,30,0.25); }

/* Sellos de correos (planes) */
.sello { position: relative; padding: 20px 16px 18px; text-align: center; color: var(--tinta);
  --agujero: radial-gradient(circle, var(--fondo-sello, #0b1026) 5px, transparent 5.5px);
  background: var(--agujero) 0 -7px / 14px 14px repeat-x, var(--agujero) 0 calc(100% + 7px) / 14px 14px repeat-x,
    var(--agujero) -7px 0 / 14px 14px repeat-y, var(--agujero) calc(100% + 7px) 0 / 14px 14px repeat-y, var(--papel); }
.sello .marco { border: 2px solid var(--tinta-suave); padding: 16px 12px; height: 100%; }
.sello h3 { font-size: 1.45rem; }
.sello .precio { font: 800 2.2rem/1.1 "Garamond", serif; color: var(--lacre); margin: 4px 0 10px; }
.sello ul { list-style: none; margin: 0; padding: 0; font-size: 0.95rem; line-height: 1.35; text-align: left; }
.sello li { padding-left: 20px; position: relative; margin: 7px 0; }
.sello li::before { content: "✦"; position: absolute; left: 0; color: var(--oro-oscuro); font-size: 0.78rem; top: 2px; }
.sello li.no { color: #a08c73; }
.sello li.no::before { content: "✕"; color: #b9a58b; }
.sello .cinta { position: absolute; top: 12px; right: 8px; background: var(--lacre); color: #fff; font: 700 10px var(--sans); letter-spacing: 0.08em; padding: 4px 8px; text-transform: uppercase; }

/* Lacre */
.lacre { position: relative; width: 156px; height: 156px; border: 0; border-radius: 50%; cursor: pointer; color: #ffe9c2; font: 400 1.08rem/1.15 "Fell", serif; padding: 26px; text-decoration: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(circle at 35% 30%, #e0574a 0%, var(--lacre2) 30%, var(--lacre) 62%, #5e0f0c 100%);
  box-shadow: 0 10px 30px rgba(158,31,26,0.55), inset 0 -8px 18px rgba(0,0,0,0.35), inset 0 6px 14px rgba(255,255,255,0.18); transition: transform 0.2s; }
.lacre::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; border: 2px solid rgba(255,220,180,0.35); }
.lacre:hover { transform: scale(1.04) rotate(-3deg); }
.lacre:active { transform: scale(0.95); }
.lacre[disabled] { opacity: 0.7; cursor: default; }
.lacre .e { font-size: 1.5rem; margin-bottom: 2px; }

footer.pie { text-align: center; padding: 56px 16px 110px; color: #8f8775; font: 13px/1.6 var(--sans); }
@media (max-width: 560px) { body { font-size: 17px; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* El libro mágico con la foto y el nombre (libro.js) */
.libro { position: relative; container-type: inline-size; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #1a130c url(img/libro.jpg) center / cover; }
.libro .foto { position: absolute; left: 0; top: 0; width: 78px; height: 100px; transform-origin: 0 0; object-fit: cover; opacity: 0; transition: opacity 0.9s; filter: sepia(0.28) saturate(0.82) contrast(0.96) brightness(0.97); box-shadow: inset 0 0 0 1px rgba(60,40,20,0.5); }
.libro .foto.ok { opacity: 1; }
.libro .texto { position: absolute; left: 68.75%; top: 34.3%; transform: translate(-50%, -50%) rotate(1.5deg); text-align: center; color: #4b3a27; mix-blend-mode: multiply; white-space: nowrap; }
.libro .nom { font-family: "Fell", serif; font-size: 3.85cqw; letter-spacing: 0.04em; line-height: 1.05; min-height: 1em; }
.libro .edad { font-family: "Garamond", serif; font-weight: 600; font-size: 2.7cqw; line-height: 1.2; }
.libro .texto.tinta { animation: tinta 0.9s ease-out; }
@keyframes tinta { 0% { opacity: 0; filter: blur(3px); } 100% { opacity: 1; filter: blur(0); } }
