/* Decoración navideña (se carga solo del 1 dic al 15 ene) */

/* ---- Común ---- */
.xmas-lights { position: fixed; top: 0; left: 0; width: 100%; margin: 0; padding: 0; list-style: none; pointer-events: none; z-index: 1002; overflow: hidden; }
@keyframes xmas-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
#xmasSnow { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1500; }

/* ---- Estilo 0: bombillos en línea recta ---- */
.xmas-style-0 { top: -6px; height: 28px; padding: 0 6px; display: flex; justify-content: space-between; }
.xmas-style-0::before { content: ""; position: absolute; top: 4px; left: 0; width: 100%; height: 2px; background: #1d1d1d; }
.xmas-style-0 li { position: relative; width: 10px; height: 16px; margin-top: 8px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; animation: xmas-blink 1.6s infinite; }
.xmas-style-0 li::before { content: ""; position: absolute; top: -4px; left: 2px; width: 6px; height: 5px; background: #333; border-radius: 2px; }
.xmas-style-0 li:nth-child(4n+1) { background: #e53935; box-shadow: 0 3px 12px 2px rgba(229,57,53,.8); animation-delay: 0s; }
.xmas-style-0 li:nth-child(4n+2) { background: #43a047; box-shadow: 0 3px 12px 2px rgba(67,160,71,.8); animation-delay: .4s; }
.xmas-style-0 li:nth-child(4n+3) { background: #fdd835; box-shadow: 0 3px 12px 2px rgba(253,216,53,.8); animation-delay: .8s; }
.xmas-style-0 li:nth-child(4n+4) { background: #1e88e5; box-shadow: 0 3px 12px 2px rgba(30,136,229,.8); animation-delay: 1.2s; }

/* ---- Estilo 1: cable colgante en curva ---- */
.xmas-style-1 { top: -2px; height: 38px; display: flex; }
.xmas-style-1 > li { position: relative; flex: 1; height: 16px; border-bottom: 2px solid #1d1d1d; border-radius: 0 0 50% 50%; }
/* Bombillos colgando de la curva (elipse: y = alto * raíz(1 - (1-2x)^2)) */
.xmas-style-1 i { position: absolute; width: 9px; height: 14px; margin-left: -4.5px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; animation: xmas-blink 1.6s infinite; }
.xmas-style-1 i::before { content: ""; position: absolute; top: -4px; left: 1.5px; width: 6px; height: 5px; background: #333; border-radius: 2px; }
.xmas-style-1 i:nth-child(1) { left: 15%; top: 13px; }
.xmas-style-1 i:nth-child(2) { left: 50%; top: 17px; }
.xmas-style-1 i:nth-child(3) { left: 85%; top: 13px; }
.xmas-style-1 > li:nth-child(4n+1) i:nth-child(1), .xmas-style-1 > li:nth-child(4n+3) i:nth-child(2), .xmas-style-1 > li:nth-child(4n+2) i:nth-child(3) { background: #e53935; box-shadow: 0 3px 12px 2px rgba(229,57,53,.8); }
.xmas-style-1 > li:nth-child(4n+1) i:nth-child(2), .xmas-style-1 > li:nth-child(4n+3) i:nth-child(3), .xmas-style-1 > li:nth-child(4n+4) i:nth-child(1) { background: #fdd835; box-shadow: 0 3px 12px 2px rgba(253,216,53,.8); }
.xmas-style-1 > li:nth-child(4n+1) i:nth-child(3), .xmas-style-1 > li:nth-child(4n+2) i:nth-child(1), .xmas-style-1 > li:nth-child(4n+4) i:nth-child(2) { background: #43a047; box-shadow: 0 3px 12px 2px rgba(67,160,71,.8); }
.xmas-style-1 > li:nth-child(4n+2) i:nth-child(2), .xmas-style-1 > li:nth-child(4n+3) i:nth-child(1), .xmas-style-1 > li:nth-child(4n+4) i:nth-child(3) { background: #1e88e5; box-shadow: 0 3px 12px 2px rgba(30,136,229,.8); }
.xmas-style-1 i:nth-child(1) { animation-delay: 0s; }
.xmas-style-1 i:nth-child(2) { animation-delay: .5s; }
.xmas-style-1 i:nth-child(3) { animation-delay: 1s; }
.xmas-style-1 > li:nth-child(even) i { animation-delay: .7s; }


/* ---- Estilo 2: luces blancas cálidas ---- */
@keyframes xmas-twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.85); } }
.xmas-style-2 { top: 0; height: 22px; padding: 0 4px; display: flex; justify-content: space-between; }
.xmas-style-2::before { content: ""; position: absolute; top: 2px; left: 0; width: 100%; height: 1px; background: #3a3a3a; }
.xmas-style-2 li { position: relative; width: 6px; height: 6px; margin-top: 5px; border-radius: 50%; background: #fff3d0; box-shadow: 0 0 6px 2px rgba(255,214,120,.9), 0 0 14px 4px rgba(255,190,80,.45); animation: xmas-twinkle 2.4s ease-in-out infinite; }
.xmas-style-2 li:nth-child(3n+1) { animation-delay: .3s; animation-duration: 2.1s; }
.xmas-style-2 li:nth-child(3n+2) { animation-delay: 1.1s; animation-duration: 2.8s; }
.xmas-style-2 li:nth-child(5n) { animation-delay: 1.7s; }
.xmas-style-2 li:nth-child(7n+3) { background: #ffe29a; }
@media (max-width: 600px) { .xmas-style-2 li:nth-child(even) { display: none; } }

/* ---- Estilo 3: guirnalda de pino con adornos ---- */
.xmas-style-3 { top: 0; height: 40px; display: flex; justify-content: space-around; align-items: flex-start; padding: 0 6px; }
.xmas-style-3::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 26px;
    background:
        radial-gradient(ellipse 16px 11px at 50% 14px, #2e7d32 96%, transparent 100%) 0 0 / 24px 26px repeat-x,
        radial-gradient(ellipse 14px 10px at 50% 12px, #1b5e20 96%, transparent 100%) 11px 3px / 22px 26px repeat-x,
        radial-gradient(ellipse 12px 9px at 50% 10px, #388e3c 96%, transparent 100%) 5px 0 / 17px 26px repeat-x,
        linear-gradient(#1b5e20, #1b5e20) 0 0 / 100% 10px no-repeat;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,.35)); }
.xmas-style-3 li { position: relative; width: 12px; height: 12px; margin-top: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff 0, rgba(255,255,255,0) 28%), #d32f2f; box-shadow: 0 2px 3px rgba(0,0,0,.4); }
.xmas-style-3 li::before { content: ""; position: absolute; top: -4px; left: 4px; width: 4px; height: 4px; background: #c9a227; border-radius: 1px; }
.xmas-style-3 li:nth-child(3n+2) { background: radial-gradient(circle at 35% 30%, #fff 0, rgba(255,255,255,0) 28%), #e0b030; }
.xmas-style-3 li:nth-child(3n+3) { width: 7px; height: 7px; margin-top: 9px; border-radius: 50%; background: #fff3b0; box-shadow: 0 0 8px 3px rgba(255,220,100,.85); animation: xmas-blink 1.8s infinite; }
.xmas-style-3 li:nth-child(3n+3)::before { display: none; }
.xmas-style-3 li:nth-child(6n) { animation-delay: .9s; }
@media (max-width: 600px) { .xmas-style-3 li:nth-child(even) { display: none; } }

/* ---- Estilo 4: estrellas y copos dorados ---- */
@keyframes xmas-star { 0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); } 50% { opacity: .4; transform: scale(.7) rotate(15deg); } }
.xmas-style-4 { top: 0; height: 26px; display: flex; justify-content: space-around; align-items: flex-start; padding: 0 4px; }
.xmas-style-4 li { position: relative; width: 14px; height: 14px; margin-top: 4px; background: linear-gradient(135deg, #fff0a8, #f2b827 55%, #c98a0b); clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); filter: drop-shadow(0 0 3px rgba(255,210,90,.9)); animation: xmas-star 2.2s ease-in-out infinite; }
.xmas-style-4 li:nth-child(3n+1) { width: 10px; height: 10px; margin-top: 10px; animation-delay: .6s; }
.xmas-style-4 li:nth-child(3n+2) { animation-delay: 1.2s; }
.xmas-style-4 li:nth-child(4n) { width: 8px; height: 8px; margin-top: 6px; animation-delay: 1.8s; }
.xmas-style-4 li:nth-child(5n+3) { width: auto; height: auto; background: none; clip-path: none; filter: none; color: #fff; font-size: 14px; line-height: 14px; margin-top: 5px; text-shadow: 0 0 5px rgba(150,200,255,.95); }
.xmas-style-4 li:nth-child(5n+3)::before { content: "\2744"; }
@media (max-width: 600px) { .xmas-style-4 li:nth-child(even) { display: none; } }
@media (max-width: 600px) {
    .xmas-style-0 li:nth-child(even) { display: none; }
    .xmas-style-1 > li:nth-child(even) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .xmas-lights li, .xmas-lights i { animation: none !important; } #xmasSnow { display: none; } }
