/* ============================================
   DECORACIÓN NAVIDEÑA - CBR CURICÓ
   Archivo temporal - Remover después de fiestas
   ============================================ */

/* --------------------------------------------
   COPOS DE NIEVE CAYENDO
   -------------------------------------------- */
.copos-nieve {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.copo {
    position: absolute;
    top: -20px;
    color: #5b9bd5;
    font-size: 18px;
    text-shadow: 0 0 8px rgba(91, 155, 213, 0.6), 0 0 3px rgba(255, 255, 255, 0.8);
    opacity: 0.85;
    animation: caer linear infinite;
}

@keyframes caer {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.9;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0.4;
    }
}

/* Variaciones de copos */
.copo:nth-child(1) { left: 5%; animation-duration: 8s; animation-delay: 0s; font-size: 16px; }
.copo:nth-child(2) { left: 10%; animation-duration: 12s; animation-delay: 1s; font-size: 22px; }
.copo:nth-child(3) { left: 15%; animation-duration: 9s; animation-delay: 0.5s; font-size: 14px; }
.copo:nth-child(4) { left: 20%; animation-duration: 11s; animation-delay: 2s; font-size: 24px; }
.copo:nth-child(5) { left: 25%; animation-duration: 10s; animation-delay: 1.5s; font-size: 18px; }
.copo:nth-child(6) { left: 30%; animation-duration: 13s; animation-delay: 0.8s; font-size: 16px; }
.copo:nth-child(7) { left: 35%; animation-duration: 8s; animation-delay: 2.5s; font-size: 26px; }
.copo:nth-child(8) { left: 40%; animation-duration: 11s; animation-delay: 0.3s; font-size: 14px; }
.copo:nth-child(9) { left: 45%; animation-duration: 9s; animation-delay: 1.8s; font-size: 20px; }
.copo:nth-child(10) { left: 50%; animation-duration: 12s; animation-delay: 0.7s; font-size: 18px; }
.copo:nth-child(11) { left: 55%; animation-duration: 10s; animation-delay: 2.2s; font-size: 16px; }
.copo:nth-child(12) { left: 60%; animation-duration: 8s; animation-delay: 1.2s; font-size: 24px; }
.copo:nth-child(13) { left: 65%; animation-duration: 14s; animation-delay: 0.4s; font-size: 14px; }
.copo:nth-child(14) { left: 70%; animation-duration: 9s; animation-delay: 1.9s; font-size: 22px; }
.copo:nth-child(15) { left: 75%; animation-duration: 11s; animation-delay: 0.6s; font-size: 18px; }
.copo:nth-child(16) { left: 80%; animation-duration: 10s; animation-delay: 2.8s; font-size: 26px; }
.copo:nth-child(17) { left: 85%; animation-duration: 12s; animation-delay: 1.1s; font-size: 16px; }
.copo:nth-child(18) { left: 90%; animation-duration: 8s; animation-delay: 0.9s; font-size: 20px; }
.copo:nth-child(19) { left: 95%; animation-duration: 13s; animation-delay: 2.1s; font-size: 14px; }
.copo:nth-child(20) { left: 3%; animation-duration: 9s; animation-delay: 1.4s; font-size: 18px; }

/* --------------------------------------------
   LUCES NAVIDEÑAS EN EL HEADER - ONDULADAS
   -------------------------------------------- */
.luces-navidad {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: 35px;
    pointer-events: none;
    z-index: 996;
    overflow: visible;
}

.cable-luces {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.luz {
    position: absolute;
    width: 12px;
    height: 18px;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 0 0 15px currentColor, 0 0 8px currentColor;
}

.luz::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #2d5a27;
    border-radius: 2px 2px 0 0;
}

/* Colores de luces */
.luz.roja { background: radial-gradient(circle at 30% 30%, #ff6b6b, #c41e3a); color: rgba(196, 30, 58, 0.8); }
.luz.dorada { background: radial-gradient(circle at 30% 30%, #ffd700, #d4af37); color: rgba(212, 175, 55, 0.8); }
.luz.verde { background: radial-gradient(circle at 30% 30%, #5fd35f, #228b22); color: rgba(34, 139, 34, 0.8); }
.luz.blanca { background: radial-gradient(circle at 30% 30%, #ffffff, #e8e8e8); color: rgba(255, 255, 255, 0.9); }

/* Posiciones onduladas - efecto catenaria */
.luz:nth-child(1) { top: 8px; }
.luz:nth-child(2) { top: 14px; }
.luz:nth-child(3) { top: 18px; }
.luz:nth-child(4) { top: 14px; }
.luz:nth-child(5) { top: 8px; }
.luz:nth-child(6) { top: 14px; }
.luz:nth-child(7) { top: 18px; }
.luz:nth-child(8) { top: 14px; }
.luz:nth-child(9) { top: 8px; }
.luz:nth-child(10) { top: 14px; }
.luz:nth-child(11) { top: 18px; }
.luz:nth-child(12) { top: 14px; }
.luz:nth-child(13) { top: 8px; }
.luz:nth-child(14) { top: 14px; }
.luz:nth-child(15) { top: 18px; }
.luz:nth-child(16) { top: 14px; }
.luz:nth-child(17) { top: 8px; }
.luz:nth-child(18) { top: 14px; }
.luz:nth-child(19) { top: 18px; }
.luz:nth-child(20) { top: 14px; }

/* Animación de parpadeo INTENSO - efecto on/off */
@keyframes parpadeoIntenso1 {
    0%, 100% { opacity: 1; filter: brightness(1.2); box-shadow: 0 0 20px currentColor, 0 0 10px currentColor; }
    50% { opacity: 0.2; filter: brightness(0.4); box-shadow: 0 0 5px currentColor; }
}

@keyframes parpadeoIntenso2 {
    0%, 100% { opacity: 0.2; filter: brightness(0.4); box-shadow: 0 0 5px currentColor; }
    50% { opacity: 1; filter: brightness(1.2); box-shadow: 0 0 20px currentColor, 0 0 10px currentColor; }
}

@keyframes parpadeoIntenso3 {
    0%, 30%, 100% { opacity: 1; filter: brightness(1.2); box-shadow: 0 0 20px currentColor, 0 0 10px currentColor; }
    15%, 45% { opacity: 0.15; filter: brightness(0.3); box-shadow: 0 0 3px currentColor; }
}

@keyframes parpadeoIntenso4 {
    0%, 20%, 40%, 100% { opacity: 1; filter: brightness(1.1); }
    10%, 30% { opacity: 0.25; filter: brightness(0.4); }
}

.luz:nth-child(4n+1) { animation: parpadeoIntenso1 1.5s ease-in-out infinite; }
.luz:nth-child(4n+2) { animation: parpadeoIntenso2 1.8s ease-in-out infinite; animation-delay: 0.3s; }
.luz:nth-child(4n+3) { animation: parpadeoIntenso3 2s ease-in-out infinite; animation-delay: 0.6s; }
.luz:nth-child(4n+4) { animation: parpadeoIntenso4 1.4s ease-in-out infinite; animation-delay: 0.2s; }


/* --------------------------------------------
   RESPONSIVE - AJUSTES MÓVILES
   -------------------------------------------- */
@media (max-width: 991px) {
    .luces-navidad {
        top: 60px;
        height: 30px;
    }
    
    .luz {
        width: 10px;
        height: 14px;
    }
    
    /* Ajustar posiciones onduladas para móvil */
    .luz:nth-child(odd) { top: 5px; }
    .luz:nth-child(even) { top: 12px; }
}

@media (max-width: 768px) {
    .luces-navidad {
        top: 55px;
        height: 25px;
    }
    
    .luz {
        width: 8px;
        height: 12px;
    }
    
    .copo {
        font-size: 14px;
    }
    
    /* Redistribuir copos para todo el ancho */
    .copo:nth-child(1) { left: 5%; }
    .copo:nth-child(2) { left: 15%; }
    .copo:nth-child(3) { left: 25%; }
    .copo:nth-child(4) { left: 35%; }
    .copo:nth-child(5) { left: 45%; }
    .copo:nth-child(6) { left: 55%; }
    .copo:nth-child(7) { left: 65%; }
    .copo:nth-child(8) { left: 75%; }
    .copo:nth-child(9) { left: 85%; }
    .copo:nth-child(10) { left: 95%; }
    .copo:nth-child(11) { left: 10%; }
    .copo:nth-child(12) { left: 30%; }
    .copo:nth-child(13) { left: 50%; }
    .copo:nth-child(14) { left: 70%; }
    .copo:nth-child(15) { left: 90%; }
    .copo:nth-child(16) { left: 20%; }
    .copo:nth-child(17) { left: 40%; }
    .copo:nth-child(18) { left: 60%; }
    .copo:nth-child(19) { left: 80%; }
    .copo:nth-child(20) { left: 92%; }
}

@media (max-width: 480px) {
    .luces-navidad {
        top: 50px;
        height: 22px;
    }
    
    .luz {
        width: 7px;
        height: 10px;
    }
    
    .luz:nth-child(2n) {
        display: none;
    }
    
    .copo:nth-child(n+15) {
        display: none;
    }
    
    .copo {
        font-size: 12px;
    }
}