/* Modo Navidad — solo actúa si js/navidad.js añade la clase .navidad al <html>
   (24-nov-2026 a 6-ene-2027). Fuera de esas fechas este archivo no cambia nada. */
.navidad { --nav-rojo: #b3202a; --nav-pino: #14532d; }

/* Cinta superior */
.navidad-cinta {
  background: linear-gradient(90deg, var(--nav-pino), var(--nav-rojo) 50%, var(--nav-pino));
  color: #fff; text-align: center; font-size: 1.35rem; line-height: 1.2; padding: .45rem 1rem;
}
@media (max-width: 480px) { .navidad-cinta { font-size: 1.15rem; } }

/* Guirnalda de luces bajo la barra de navegación */
.navidad .cabecera::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 34px;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22140%22 height=%2234%22 viewBox=%220 0 140 34%22%3E%3Cpath d=%22M0 2 Q35 20 70 2 T140 2%22 fill=%22none%22 stroke=%22%231b3a2a%22 stroke-width=%222%22/%3E%3Ccircle cx=%2217%22 cy=%2213%22 r=%225%22 fill=%22%23ef4444%22/%3E%3Ccircle cx=%2235%22 cy=%2217%22 r=%225%22 fill=%22%23FACC15%22/%3E%3Ccircle cx=%2252%22 cy=%2214%22 r=%225%22 fill=%22%2322c55e%22/%3E%3Ccircle cx=%2287%22 cy=%2213%22 r=%225%22 fill=%22%2360a5fa%22/%3E%3Ccircle cx=%22105%22 cy=%2217%22 r=%225%22 fill=%22%23ef4444%22/%3E%3Ccircle cx=%22122%22 cy=%2214%22 r=%225%22 fill=%22%23FACC15%22/%3E%3Cg fill=%22%231b3a2a%22%3E%3Crect x=%2215%22 y=%226%22 width=%224%22 height=%224%22 rx=%221%22/%3E%3Crect x=%2233%22 y=%2210%22 width=%224%22 height=%224%22 rx=%221%22/%3E%3Crect x=%2250%22 y=%227%22 width=%224%22 height=%224%22 rx=%221%22/%3E%3Crect x=%2285%22 y=%226%22 width=%224%22 height=%224%22 rx=%221%22/%3E%3Crect x=%22103%22 y=%2210%22 width=%224%22 height=%224%22 rx=%221%22/%3E%3Crect x=%22120%22 y=%227%22 width=%224%22 height=%224%22 rx=%221%22/%3E%3C/g%3E%3C/svg%3E") repeat-x 0 0 / 140px 34px;
  pointer-events: none; animation: nav-titilar 2.4s ease-in-out infinite alternate;
}
@keyframes nav-titilar {
  from { filter: brightness(.85) saturate(.9); }
  to   { filter: brightness(1.25) saturate(1.3); }
}

/* Gorro de Papá Noel en el logo */
.navidad .logo { position: relative; }
.navidad .logo::before {
  content: ""; position: absolute; left: -9px; top: -17px; width: 40px; height: 37px; z-index: 2;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 48 44%22%3E%3Cpath d=%22M6 34 C8 12 24 2 38 6 C36 14 40 24 44 34 Z%22 fill=%22%23c4202c%22/%3E%3Cpath d=%22M4 32 Q25 40 46 32 L46 40 Q25 47 4 40 Z%22 fill=%22%23fff%22/%3E%3Ccircle cx=%2239%22 cy=%227%22 r=%226%22 fill=%22%23fff%22/%3E%3C/svg%3E") no-repeat center / contain; transform: rotate(-16deg); pointer-events: none;
}

/* Portada */
.navidad .hero { background: linear-gradient(180deg, #eaf2ff 0%, #fff 100%); }
.navidad .hero__saludo { background: var(--nav-rojo); color: #fff; box-shadow: 0 4px 14px rgba(179, 32, 42, .25); }
.navidad .hero__lema { color: var(--nav-pino); }

/* Títulos */
.navidad main h2 { color: var(--nav-pino); }
.navidad .cta-card h2 { color: var(--nav-rojo); }

/* Pie con nieve acumulada en el borde superior */
.navidad .pie { position: relative; }
.navidad .pie::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%2290%22 height=%2226%22 viewBox=%220 0 90 26%22 preserveAspectRatio=%22none%22%3E%3Cpath d=%22M0 26 V12 Q11 -2 22 12 Q33 24 45 10 Q57 -2 68 12 Q79 24 90 10 V26 Z%22 fill=%22%23fff%22/%3E%3C/svg%3E") repeat-x 0 0 / 90px 26px; pointer-events: none; transform: scaleY(-1);
}
.navidad .pie h3 { border-bottom-color: var(--nav-rojo); }

/* Nieve: tres capas con distinta velocidad. Son adorno, no capturan clics. */
.navidad-nieve {
  position: fixed; inset: 0; z-index: 40; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22420%22 height=%22420%22 viewBox=%220 0 420 420%22%3E%3Ccircle cx=%2272%22 cy=%22295%22 r=%224%22 fill=%22%23fff%22 stroke=%22%23bfdbfe%22 stroke-width=%221%22 opacity=%22.9%22/%3E%3Ccircle cx=%22414%22 cy=%22395%22 r=%224%22 fill=%22%23fff%22 stroke=%22%23bfdbfe%22 stroke-width=%221%22 opacity=%22.9%22/%3E%3Ccircle cx=%2236%22 cy=%22134%22 r=%224%22 fill=%22%23fff%22 stroke=%22%23bfdbfe%22 stroke-width=%221%22 opacity=%22.9%22/%3E%3Ccircle cx=%2264%22 cy=%22257%22 r=%224%22 fill=%22%23fff%22 stroke=%22%23bfdbfe%22 stroke-width=%221%22 opacity=%22.9%22/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22320%22 height=%22320%22 viewBox=%220 0 320 320%22%3E%3Ccircle cx=%2231%22 cy=%2249%22 r=%223%22 fill=%22%23fff%22 stroke=%22%23bfdbfe%22 stroke-width=%221%22 opacity=%22.9%22/%3E%3Ccircle cx=%2246%22 cy=%22187%22 r=%223%22 fill=%22%23fff%22 stroke=%22%23bfdbfe%22 stroke-width=%221%22 opacity=%22.9%22/%3E%3Ccircle cx=%2289%22 cy=%22160%22 r=%223%22 fill=%22%23fff%22 stroke=%22%23bfdbfe%22 stroke-width=%221%22 opacity=%22.9%22/%3E%3Ccircle cx=%22131%22 cy=%22313%22 r=%223%22 fill=%22%23fff%22 stroke=%22%23bfdbfe%22 stroke-width=%221%22 opacity=%22.9%22/%3E%3C/svg%3E"), url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 width=%22240%22 height=%22240%22 viewBox=%220 0 240 240%22%3E%3Ccircle cx=%2262%22 cy=%22153%22 r=%222%22 fill=%22%23fff%22 stroke=%22%23bfdbfe%22 stroke-width=%221%22 opacity=%22.9%22/%3E%3Ccircle cx=%22141%22 cy=%2235%22 r=%222%22 fill=%22%23fff%22 stroke=%22%23bfdbfe%22 stroke-width=%221%22 opacity=%22.9%22/%3E%3Ccircle cx=%2296%22 cy=%22236%22 r=%222%22 fill=%22%23fff%22 stroke=%22%23bfdbfe%22 stroke-width=%221%22 opacity=%22.9%22/%3E%3C/svg%3E");
  background-size: 420px 420px, 320px 320px, 240px 240px; opacity: .85;
  animation: nav-nevar 14s linear infinite;
}
@keyframes nav-nevar {
  to { background-position: 40px 420px, -30px 320px, 20px 240px; }
}
@media (prefers-reduced-motion: reduce) {
  .navidad-nieve { display: none; }
  .navidad .cabecera::after { animation: none; }
}
