/* Estilos Navideños - Solo Decoraciones, sin cambiar colores del sitio */

/* Mantener fondo y colores normales del sitio */
body.tema-navidad {
    position: relative;
}

/* No cambiar el header, mantener colores normales */
body.tema-navidad header,
body.tema-navidad .header {
    position: relative;
    overflow: visible;
}

/* Copos de nieve */
.snowflake {
    position: fixed;
    top: -10px;
    z-index: 9999;
    user-select: none;
    cursor: default;
    animation: fall linear infinite, sway 3s ease-in-out infinite, rotate 4s linear infinite;
    color: white;
    font-size: 1em;
    opacity: 0.9;
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.8));
    pointer-events: none;
}

@keyframes fall {
    to {
        transform: translateY(100vh) translateX(var(--sway-offset, 0));
    }
}

@keyframes sway {
    0%, 100% { transform: translateX(-20px); }
    50% { transform: translateX(20px); }
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Luces navideñas en el header */
body.tema-navidad header .christmas-lights,
body.tema-navidad .header .christmas-lights {
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 16px;
    display: flex;
    justify-content: space-around;
    pointer-events: none;
    z-index: 10;
}

body.tema-navidad header .christmas-lights .light,
body.tema-navidad .header .christmas-lights .light {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    position: relative;
    animation: blinkEnhanced 2s infinite ease-in-out;
}

body.tema-navidad header .christmas-lights .light::before,
body.tema-navidad .header .christmas-lights .light::before {
    content: "";
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 6px;
    background: #333;
    border-radius: 1px;
}

body.tema-navidad header .christmas-lights .light:nth-child(4n+1),
body.tema-navidad .header .christmas-lights .light:nth-child(4n+1) {
    background: radial-gradient(circle, #ff6b6b, #ff0000);
    box-shadow: 
        0 0 15px #ff0000,
        0 0 25px rgba(255, 0, 0, 0.5),
        inset 0 -2px 5px rgba(0, 0, 0, 0.3);
    animation-delay: 0s;
}

body.tema-navidad header .christmas-lights .light:nth-child(4n+2),
body.tema-navidad .header .christmas-lights .light:nth-child(4n+2) {
    background: radial-gradient(circle, #51cf66, #00ff00);
    box-shadow: 
        0 0 15px #00ff00,
        0 0 25px rgba(0, 255, 0, 0.5),
        inset 0 -2px 5px rgba(0, 0, 0, 0.3);
    animation-delay: 0.5s;
}

body.tema-navidad header .christmas-lights .light:nth-child(4n+3),
body.tema-navidad .header .christmas-lights .light:nth-child(4n+3) {
    background: radial-gradient(circle, #ffd700, #ffaa00);
    box-shadow: 
        0 0 15px #ffd700,
        0 0 25px rgba(255, 215, 0, 0.5),
        inset 0 -2px 5px rgba(0, 0, 0, 0.3);
    animation-delay: 1s;
}

body.tema-navidad header .christmas-lights .light:nth-child(4n+4),
body.tema-navidad .header .christmas-lights .light:nth-child(4n+4) {
    background: radial-gradient(circle, #74c0fc, #0066ff);
    box-shadow: 
        0 0 15px #0066ff,
        0 0 25px rgba(0, 102, 255, 0.5),
        inset 0 -2px 5px rgba(0, 0, 0, 0.3);
    animation-delay: 1.5s;
}

@keyframes blinkEnhanced {
    0%, 100% { 
        opacity: 1; 
        transform: scale(1);
    }
    25% { 
        opacity: 0.4;
        transform: scale(0.9);
    }
    50% { 
        opacity: 1;
        transform: scale(1.1);
    }
    75% { 
        opacity: 0.4;
        transform: scale(0.9);
    }
}

/* Banner navideño */
.christmas-banner {
    background: linear-gradient(90deg, 
        #c41e3a 0%, 
        #8b1429 15%,
        #165e3a 35%,
        #0f4a31 50%,
        #165e3a 65%,
        #8b1429 85%,
        #c41e3a 100%);
    background-size: 200% 100%;
    color: #FFD700;
    text-align: center;
    padding: 12px;
    font-weight: bold;
    font-size: 16px;
    border-bottom: 3px solid #FFD700;
    box-shadow: 
        0 4px 10px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    animation: shimmer 5s linear infinite;
    position: relative;
    overflow: hidden;
}

.christmas-banner::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    animation: shine 3s infinite;
}

@keyframes shimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes shine {
    0% { left: -100%; }
    100% { left: 200%; }
}

.christmas-banner h4 {
    font-size: 1.3rem;
}
.christmas-banner h4.subtitulo {
    font-size: 1.1rem;
    }

    .christmas-banner p {
    margin-bottom: 0px !important;
    }

/* Responsive Mobile */
@media (max-width: 768px) {
    .snowflake {
        font-size: 0.8em;
    }
    
    .christmas-banner {
        font-size: 14px;
        padding: 8px;
    }
    
    body.tema-navidad .image-card::before,
    body.tema-navidad .video-card::before {
        font-size: 16px;
        top: 6px;
        right: 6px;
    }
    
    body.tema-navidad .image-card::after,
    body.tema-navidad .video-card::after {
        font-size: 14px;
        bottom: 6px;
        left: 6px;
    }

    .christmas-banner h4 {
    font-size: 1.1rem;
    }
    .christmas-banner h4.subtitulo {
    font-size: 0.9rem;
    }
    .christmas-banner p {
    margin-bottom: 0px !important;
    }
}

@media (max-width: 480px) {
    body.tema-navidad header .christmas-lights .light,
    body.tema-navidad .header .christmas-lights .light {
        width: 8px;
        height: 8px;
    }
    
    .christmas-banner {
        font-size: 12px;
        padding: 6px;
    }
    .christmas-banner h4 {
    font-size: 1.1rem;
    }
    .christmas-banner h4.subtitulo {
    font-size: 0.9rem;
    }

    .christmas-banner p {
    margin-bottom: 0px !important;
    }
}
