/* Toque navideño de NEXORA (pedido del dueño el 2026-11-23). Solo se carga mientras `navidad` es verdadero
   (app.py: NAVIDAD_DESDE..NAVIDAD_HASTA, hasta el 31 de diciembre). Sutil, con movimiento suave; sin movimiento si la
   persona pidió reducir animaciones en su equipo. */

/* ---------- nieve (lienzo que dibuja navidad.js) ---------- */
#nav-nieve { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 40; }
.nav-nieve-btn { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 6px; border-radius: 8px; font-size: 15px; }
.nav-nieve-btn:hover { background: var(--acento-suave); }
.nav-nieve-btn[aria-pressed="false"] { opacity: .5; }

/* ---------- campanas junto al logo ---------- */
.nav-campanas { display: inline-block; margin-left: 8px; vertical-align: middle; transform-origin: 50% 10%; animation: nav-campana 2.4s ease-in-out infinite; }
@keyframes nav-campana { 0%, 100% { transform: rotate(-10deg); } 50% { transform: rotate(10deg); } }

/* ---------- gorro de NEXO ---------- */
.nav-gorro { position: absolute; pointer-events: none; display: block; z-index: 3; transform-origin: 30% 90%; animation: nav-mecer 3.2s ease-in-out infinite; }
@keyframes nav-mecer { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(-6deg); } }
.nav-sb-avatar { position: relative; display: inline-block; width: 40px; height: 40px; flex-shrink: 0; }
.nav-sb-avatar img { display: block; }
.nav-gorro.chico { width: 46px; height: 28px; left: -6px; top: -16px; }
.hero-tec-nexo .nav-gorro.grande { width: 96px; height: 58px; left: 50px; top: -16px; animation: nav-mecer 3.2s ease-in-out infinite, flotar 3s ease-in-out infinite; }

/* ---------- tarjeta de bienvenida ---------- */
.nav-hero .nav-guirnalda { position: absolute; left: 0; right: 0; top: 0; height: 46px; pointer-events: none; z-index: 2; }
.nav-hero .nav-guirnalda svg { display: block; width: 100%; height: 46px; overflow: visible; }
.nav-hero { padding-top: 46px; }
.nav-chip { display: inline-flex; align-items: center; gap: 8px; vertical-align: middle; margin-left: 14px; padding: 6px 16px; border-radius: 30px;
  font-size: 16px; font-weight: 700; letter-spacing: 0; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .28);
  -webkit-text-fill-color: #fff; }
.nav-deseo { align-self: center; color: #DBE8FF; font-size: 15px; font-weight: 600; margin-left: 6px; animation: nav-respirar 4s ease-in-out infinite; }
.nav-deseo b { color: #F5C542; }
@keyframes nav-respirar { 0%, 100% { opacity: 1; } 50% { opacity: .78; } }
.hero-tec-nexo .nav-arbol { position: absolute; left: -132px; top: 0; pointer-events: none; }
.hero-tec-nexo .nav-regalos { position: absolute; left: -66px; bottom: -14px; pointer-events: none; z-index: 2; }
.nav-bolas circle { animation: nav-titilar 2.6s ease-in-out infinite; }
.nav-bolas circle:nth-child(2n) { animation-delay: -.9s; }
.nav-bolas circle:nth-child(3n) { animation-delay: -1.7s; }
@keyframes nav-titilar { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.nav-estrella { transform-box: fill-box; transform-origin: center; animation: nav-brillo 2.8s ease-in-out infinite; filter: drop-shadow(0 0 6px rgba(245, 197, 66, .8)); }
@keyframes nav-brillo { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.14); } }
.nav-luz { animation: nav-titilar 2.4s ease-in-out infinite; }

/* ---------- acebo en las tarjetas de módulo ---------- */
.modulo .nav-acebo { position: absolute; right: 8px; top: 6px; pointer-events: none; }

@media (max-width: 860px) {
  .hero-tec-nexo .nav-arbol, .hero-tec-nexo .nav-regalos, .nav-deseo { display: none; }
  .nav-chip { font-size: 13px; padding: 4px 10px; margin-left: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-campanas, .nav-gorro, .nav-bolas circle, .nav-estrella, .nav-luz, .nav-deseo { animation: none !important; }
  #nav-nieve, .nav-nieve-btn { display: none; }
}
@media print { #nav-nieve, .nav-guirnalda, .nav-gorro, .nav-arbol, .nav-regalos, .nav-acebo, .nav-campanas, .nav-chip, .nav-deseo { display: none !important; } }
