/* Zooasis — capa de Navidad (mismo patrón que halloween.css). Solo se carga con el ajuste «navidad» encendido (panel → Inicio
   o Ajustes): body.tema-navidad, cielo rosado muy suave, nieve cayendo (la crea /static/navidad.js), tira con una guirnalda
   de luces que cuelga y parpadea, y barra/pie en granate con nieve encima. Solo los colores de la marca. */
:root { --nv-oscuro: color-mix(in srgb, #2B1B21 82%, black); --nv-cielo: color-mix(in srgb, #FDA2B3 14%, #FFFBFC); }

body.tema-navidad { background: #FFFBFC; }
.nv-cielo { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, var(--nv-cielo) 0%, #FFFBFC 70%); }

/* nieve: cada copo cae (el span) y se mece (su <i>); blancos con halo rosa para verse sobre el fondo claro */
.nv-nieve { position: fixed; inset: 0; z-index: 5; pointer-events: none; overflow: hidden; }
.nv-copo { position: absolute; top: -20px; left: var(--x); animation: nv-cae var(--d) linear var(--r) infinite; }
.nv-copo i { display: block; width: var(--s); height: var(--s); border-radius: 50%; background: #fff; opacity: var(--o);
  box-shadow: 0 0 0 1px rgba(232,93,119,.18), 0 0 6px rgba(232,93,119,.35); animation: nv-mece calc(var(--d) / 3) ease-in-out var(--r) infinite alternate; }
.nv-copo.estrella i { width: auto; height: auto; background: none; box-shadow: none; color: #FDA2B3; font-size: calc(var(--s) * 2.6); line-height: 1; font-style: normal; }
.nv-copo.destello i { width: calc(var(--s) * 2.4); height: calc(var(--s) * 2.4); background: none; box-shadow: none; border-radius: 0; }
.nv-copo.destello svg { display: block; width: 100%; height: 100%; fill: #D3A13B; filter: drop-shadow(0 0 3px rgba(211,161,59,.55)); animation: nv-destella 2.4s ease-in-out var(--r) infinite alternate; }
@keyframes nv-destella { from { transform: scale(.55) rotate(0); opacity: .55; } to { transform: scale(1) rotate(45deg); opacity: 1; } }
@keyframes nv-cae { from { transform: translateY(0); } to { transform: translateY(calc(100vh + 40px)); } }
@keyframes nv-mece { from { transform: translateX(calc(var(--w) * -1)); } to { transform: translateX(var(--w)); } }

/* pegatinas en las esquinas (acebo arriba, muérdago y muñeco de nieve abajo), las mismas de la tienda (plugin Pimp my Site, GPL) */
.nv-pegatinas { position: fixed; inset: 0; z-index: 70;   /* encima de la tira y sus luces (60), debajo del menú (100) */ pointer-events: none; }
.nv-pegatinas img { position: absolute; width: clamp(56px, 8vw, 150px); height: auto; user-select: none; }
.nv-pega-si { top: 0; left: 0; transform: scaleY(-1); }
.nv-pega-sd { top: 0; right: 0; transform: scale(-1); }
.nv-pega-ii { bottom: 0; left: 0; }
.nv-pega-id { bottom: 0; right: 0; transform: scaleX(-1); }

/* tira bajo la barra, con la guirnalda de luces colgando de su borde */
.nv-tira { position: relative; z-index: 60; background: var(--nv-oscuro); color: #FDA2B3; text-align: center; padding: 11px 16px 12px; font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.nv-tira a { color: #FDA2B3; text-decoration: underline; text-underline-offset: 3px; }
.nv-tira a:hover { color: #fff; }
.nv-tira .nv-brillo { display: inline-block; animation: nv-brilla 2.8s ease-in-out infinite; }
@keyframes nv-brilla { 0%, 100% { transform: scale(1); filter: none; } 50% { transform: scale(1.15); filter: drop-shadow(0 0 6px #FDA2B3); } }

.nv-luces { position: absolute; left: 0; right: 0; top: 100%; height: 48px; pointer-events: none; }   /* por encima de la cabecera (z 50): la tira va en z 60 */
.nv-luces svg.cable { position: absolute; inset: 0 0 auto 0; width: 100%; height: 24px; overflow: visible; }
.nv-luz { position: absolute; top: var(--y); left: var(--x); width: 14px; height: 21px; margin-left: -7px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.75), transparent 45%), var(--c); box-shadow: 0 0 12px 3px var(--c);
  transform: rotate(var(--g)); transform-origin: 50% -4px; animation: nv-parpadea 1.4s ease-in-out var(--r) infinite alternate; }
.nv-luz::before { content: ""; position: absolute; left: 3.5px; top: -5px; width: 7px; height: 6px; border-radius: 2px; background: linear-gradient(#E9C46A, #A67C1E); }
@keyframes nv-parpadea { from { opacity: 1; box-shadow: 0 0 14px 4px var(--c); } to { opacity: .5; box-shadow: 0 0 3px 0 var(--c); } }

/* barra de arriba y pie en granate, el pie con nieve acumulada encima */
.tema-navidad .barra-superior { background: var(--nv-oscuro); }
.tema-navidad .barra-izq a, .tema-navidad .barra-rescates { color: #FDA2B3; }
.tema-navidad .barra-izq a:hover, .tema-navidad .barra-rescates:hover { color: #fff; }
.tema-navidad .cabecera { margin-top: 26px; }   /* hueco para las luces */
.tema-navidad .pie { position: relative; background: var(--nv-oscuro); border-radius: 28px 28px 0 0; }
.tema-navidad .pie::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 26px; pointer-events: none;
  background: radial-gradient(22px 14px at 6% 60%, #fff 95%, transparent), radial-gradient(30px 16px at 19% 55%, #fff 95%, transparent),
    radial-gradient(26px 13px at 33% 62%, #fff 95%, transparent), radial-gradient(34px 17px at 48% 55%, #fff 95%, transparent),
    radial-gradient(24px 13px at 62% 62%, #fff 95%, transparent), radial-gradient(32px 16px at 77% 56%, #fff 95%, transparent),
    radial-gradient(26px 14px at 92% 60%, #fff 95%, transparent), linear-gradient(transparent 40%, #fff 40%);
  border-radius: 28px 28px 0 0; filter: drop-shadow(0 -2px 3px rgba(43,27,33,.12)); }
.tema-navidad .pie h4, .tema-navidad .pie-tel { color: #FDA2B3 !important; }
.tema-navidad .pie, .tema-navidad .pie p, .tema-navidad .pie a { color: rgba(255,255,255,.82); }

@media (max-width: 900px) {
  .nv-tira { font-size: 13px; padding: 10px 14px 11px; }
  .tema-navidad .cabecera { margin-top: 22px; }
}
@media (prefers-reduced-motion: reduce) { .nv-nieve { display: none; } .nv-luz, .nv-tira .nv-brillo { animation: none; } }
