/* Capa navideña compartida: colores, luces de serie y papel de carta ilustrado. */
:root {
  --xm-red: #c8202f;
  --xm-red-2: #e8414f;
  --xm-green: #1d6b45;
  --xm-green-2: #2f8f5f;
  --xm-gold: #e9b44c;
  --xm-gold-2: #ffd98a;
  --xm-cream: #f8f0dc;
  --xm-ink: #3b2a20;
  --xm-gradient: linear-gradient(135deg, #e8414f 0%, #c8202f 55%, #9e1426 100%);
}

/* ---------- Luces de serie ---------- */
.lights {
  position: absolute; top: 0; left: 0; right: 0; height: 44px; overflow: hidden; pointer-events: none; z-index: 5;
  display: flex; padding-left: 15px; white-space: nowrap;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='30'%3E%3Cpath d='M0 2 Q60 30 120 2' fill='none' stroke='%23231a14' stroke-width='2.2'/%3E%3C/svg%3E") repeat-x 0 0 / 120px 30px;
}
.lights i {
  --c: #ff3b4e;
  flex: 0 0 10px; width: 10px; height: 15px; margin: 10px 30px 0 0; position: relative;
  border-radius: 50% 50% 45% 45% / 40% 40% 60% 60%;
  background: radial-gradient(circle at 40% 35%, #fff 0 12%, var(--c) 45%);
  box-shadow: 0 0 10px 3px color-mix(in srgb, var(--c) 70%, transparent), 0 0 26px 6px color-mix(in srgb, var(--c) 30%, transparent);
  animation: glow 2.6s ease-in-out infinite;
}
.lights i::before { content: ''; position: absolute; top: -4px; left: 2px; width: 6px; height: 5px; border-radius: 2px; background: #3a3026; }
.lights i:nth-child(3n+2) { margin-top: 16px; }
.lights i:nth-child(5n+1) { --c: #ff3b4e; }
.lights i:nth-child(5n+2) { --c: #ffd34d; animation-delay: -.6s; }
.lights i:nth-child(5n+3) { --c: #3ddc84; animation-delay: -1.2s; }
.lights i:nth-child(5n+4) { --c: #4fc3ff; animation-delay: -1.8s; }
.lights i:nth-child(5n)   { --c: #ff8a3d; animation-delay: -2.2s; }
@keyframes glow { 0%, 100% { opacity: 1; } 50% { opacity: .45; filter: saturate(.7); } }

/* ---------- Papel de carta ilustrado (acebo, piñas y listón) ----------
   La imagen se corta en 9 partes: las esquinas decoradas se conservan y el centro se estira,
   así el papel crece con el texto sin deformar los adornos. --pw es el ancho del papel. */
.stationery {
  --pw: min(760px, calc(100vw - 32px));
  border: 1px solid transparent;
  border-image: url('/img/papel.webp') 41% 9% 25% 9% fill / calc(var(--pw) * .553) calc(var(--pw) * .09) calc(var(--pw) * .338) calc(var(--pw) * .09) stretch;
  background: none !important;
  color: var(--xm-ink);
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45));
}

@media (prefers-reduced-motion: reduce) { .lights i { animation: none !important; } }

/* Iconos ilustrados (acuarelas de Gemini) en lugar de emojis */
.ico { display: inline-block; width: 1.35em; height: 1.35em; vertical-align: -.32em; background: center / contain no-repeat; flex: none; }
.ico-arbol { background-image: url('/img/ico/arbol.webp'); }
.ico-destello { background-image: url('/img/ico/destello.webp'); }
.ico-campana { background-image: url('/img/ico/campana.webp'); }
.ico-sobre { background-image: url('/img/ico/sobre.webp'); }
.ico-pergamino { background-image: url('/img/ico/pergamino.webp'); }
.ico-regalo { background-image: url('/img/ico/regalo.webp'); }
.ico-candado { background-image: url('/img/ico/candado.webp'); }
.ico-estrella { background-image: url('/img/ico/estrella.webp'); }
.ico-santa { background-image: url('/img/ico/santa.webp'); }
.btn .ico { width: 1.5em; height: 1.5em; margin: -.3em 0; }
.char-img { width: 64px; height: 64px; object-fit: contain; display: block; }
.btn .ico-destello { background-image: url('/img/ico/estrella.webp'); }
