/* =============================================
   MENSAJE DE TEMPORADA NAVIDEÑA - FESTIVO
   ============================================= */

/* Banner de temporada navideña - CORRECIÓN COMPLETA */
.holiday-banner {
    position: fixed;
    top: 80px; /* Debajo del header que tiene 80px de altura */
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a472a 0%, #0d2818 50%, #2d5a27 100%);
    color: white;
    padding: 15px 20px;
    z-index: 999;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.8s ease-out;
    border-bottom: 3px solid #b22222;
    min-height: 90px; /* Altura mínima suficiente */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 25px; /* ESPACIO EXTRA ARRIBA */
    padding-bottom: 25px; /* ESPACIO EXTRA ABAJO */
    padding-right: 65px; /* AUMENTADO de 50px a 65px - MÁS ESPACIO PARA EL BOTÓN */
}

.holiday-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    position: relative;
}

.holiday-message {
    flex: 1;
    font-size: 1rem;
    line-height: 1.5;
    text-align: left;
    position: relative;
    padding: 8px 0 8px 35px; /* Más padding vertical */
    margin: 0;
    padding-right: 50px; /* AÑADIDO: Espacio a la derecha del texto */
}

.holiday-message::before {
    content: "🎄";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.3rem;
    line-height: 1;
}

.holiday-highlight {
    color: #ffd700;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* BOTÓN DE CERRAR MOVIDO MÁS A LA DERECHA */
.holiday-banner-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    transition: all 0.3s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 15px; /* Bajado un poco */
    right: 40px; /* MOVIDO A LA DERECHA: de 25px a 40px */
    z-index: 10;
}

.holiday-banner-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Decoraciones navideñas en el banner */
.holiday-banner::before,
.holiday-banner::after {
    content: "❄️";
    position: absolute;
    font-size: 1rem;
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.holiday-banner::before {
    left: 20px;
    top: 20px;
    animation-delay: 0s;
}

.holiday-banner::after {
    right: 60px; /* AUMENTADO: de 20px a 60px para no chocar con el botón */
    top: 20px;
    animation-delay: 1.5s;
}

/* IMPORTANTE: Ajustar todo el contenido para que no quede debajo del banner */
body.has-holiday-banner {
    padding-top: 180px !important; /* 80px header + 100px banner */
}

body.has-holiday-banner .hero {
    padding-top: 180px !important; /* Ajustar el hero */
    min-height: calc(100vh + 100px) !important; /* Aumentar altura mínima */
}

body.has-holiday-banner section {
    scroll-margin-top: 180px !important; /* Para scroll suave */
}

/* =============================================
   SISTEMA DE NIEVE COMPLETO - CORREGIDO
   ============================================= */

/* Contenedor de nieve - FIJO Y CUBRE TODA LA PANTALLA */
.holiday-snow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9998; /* Detrás del banner (999) pero delante del contenido */
    overflow: hidden;
}

/* Copos de nieve - ESTILOS CORREGIDOS */
.snowflake {
    position: absolute;
    background: white;
    border-radius: 50%;
    opacity: 0;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* Diferentes tamaños de copos para variedad */
.snowflake.small {
    width: 3px;
    height: 3px;
    opacity: 0.7;
}

.snowflake.medium {
    width: 5px;
    height: 5px;
    opacity: 0.8;
}

.snowflake.large {
    width: 7px;
    height: 7px;
    opacity: 0.9;
}

/* Clases para diferentes velocidades */
.snowflake.slow {
    animation-duration: 15s;
}

.snowflake.medium-speed {
    animation-duration: 10s;
}

.snowflake.fast {
    animation-duration: 7s;
}

/* ANIMACIÓN DE CAÍDA DE NIEVE - 100% VERTICAL */
@keyframes snowFall {
    0% {
        transform: translateY(-100px) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(calc(100vh + 100px)) translateX(var(--drift, 0px));
        opacity: 0;
    }
}

/* =============================================
   AJUSTES RESPONSIVE
   ============================================= */

@media (max-width: 992px) {
    .holiday-banner {
        top: 80px;
        padding: 20px 15px;
        min-height: 110px; /* Más alto en tabletas */
        padding-right: 60px; /* AUMENTADO: de 45px a 60px */
    }
    
    .holiday-banner-content {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .holiday-message {
        padding-left: 30px;
        text-align: center;
        font-size: 0.95rem;
        line-height: 1.4;
        padding-right: 20px; /* AUMENTADO: de 10px a 20px */
    }
    
    .holiday-message::before {
        left: 5px;
        top: 50%;
        transform: translateY(-50%);
    }
    
    .holiday-banner-close {
        position: absolute;
        top: 15px;
        right: 30px; /* MOVIDO A LA DERECHA: de 15px a 30px */
    }
    
    .holiday-banner::after {
        right: 70px; /* AUMENTADO: de 20px a 70px */
    }
    
    body.has-holiday-banner {
        padding-top: 190px !important;
    }
    
    body.has-holiday-banner .hero {
        padding-top: 190px !important;
    }
}

@media (max-width: 768px) {
    .holiday-banner {
        top: 80px;
        padding: 15px 12px;
        min-height: 120px; /* Aún más alto en móviles */
        padding-right: 55px; /* AUMENTADO: de 40px a 55px */
    }
    
    .holiday-message {
        padding-left: 25px;
        font-size: 0.9rem;
        line-height: 1.3;
        text-align: center;
        padding-right: 15px; /* AUMENTADO: de 5px a 15px */
    }
    
    .holiday-message::before {
        position: relative;
        display: inline-block;
        margin: 0 auto 5px;
        transform: none;
        left: auto;
        top: auto;
    }
    
    .holiday-banner-close {
        top: 12px;
        right: 25px; /* MOVIDO A LA DERECHA: de 12px a 25px */
        width: 28px;
        height: 28px;
        font-size: 1.3rem;
    }
    
    .holiday-banner::after {
        right: 65px; /* AUMENTADO: de 20px a 65px */
    }
    
    body.has-holiday-banner {
        padding-top: 200px !important;
    }
    
    body.has-holiday-banner .hero {
        padding-top: 200px !important;
    }
    
    body.has-holiday-banner section {
        scroll-margin-top: 200px !important;
    }
}

@media (max-width: 480px) {
    .holiday-banner {
        min-height: 140px; /* Muy alto para móviles pequeños */
        padding: 12px 10px;
        padding-right: 50px; /* AUMENTADO: de 35px a 50px */
    }
    
    .holiday-message {
        font-size: 0.85rem;
        line-height: 1.2;
        padding-left: 0;
        padding-right: 10px; /* AÑADIDO: Espacio para el botón */
    }
    
    .holiday-message::before {
        display: block;
        margin: 0 auto 8px;
    }
    
    .holiday-banner-close {
        top: 10px;
        right: 22px; /* MOVIDO A LA DERECHA: de 10px a 22px */
        width: 26px;
        height: 26px;
        font-size: 1.2rem;
    }
    
    .holiday-banner::after {
        right: 60px; /* AUMENTADO: de 20px a 60px */
    }
    
    body.has-holiday-banner {
        padding-top: 220px !important;
    }
    
    body.has-holiday-banner .hero {
        padding-top: 220px !important;
    }
}

/* =============================================
   ANIMACIONES
   ============================================= */

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* =============================================
   DECORACIÓN FOOTER Y EFECTOS EXTRA
   ============================================= */

/* Decoración temporal en el footer */
.footer-holiday-decoration {
    position: relative;
    overflow: hidden;
}

.footer-holiday-decoration::before {
    content: "🎅🤶🎄✨";
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    text-align: center;
    font-size: 1.5rem;
    opacity: 0.3;
    z-index: 0;
}

/* Efecto especial para botones durante temporada */
.holiday-btn-effect {
    position: relative;
    overflow: hidden;
}

.holiday-btn-effect::before {
    content: "✨";
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 0.8rem;
    opacity: 0;
    animation: twinkle 2s ease-in-out infinite;
}

.holiday-btn-effect:hover::before {
    opacity: 1;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0.5);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}