/* css/countdown.css */
.countdown-banner {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    margin-bottom: 2rem;
    border-radius: 15px;
}

.countdown-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.countdown-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.countdown-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.countdown-timer {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    max-width: 100%;
    padding: 0 10px;
}

.countdown-unit {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.6rem;
    border-radius: 8px;
    min-width: 60px;
    backdrop-filter: blur(5px);
    flex-shrink: 0;
}

.countdown-number {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
    line-height: 1;
}

.countdown-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    margin: 5px 0 0 0;
}

.countdown-btn {
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border: none;
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
    border-radius: 25px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: bold;
}

.countdown-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Media queries para responsividad */
@media (max-width: 768px) {
    .countdown-banner {
        height: 250px;
    }
    
    .countdown-title {
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }
    
    .countdown-timer {
        gap: 0.3rem;
    }
    
    .countdown-unit {
        min-width: 50px;
        padding: 0.5rem;
    }
    
    .countdown-number {
        font-size: 1.2rem;
    }
    
    .countdown-label {
        font-size: 0.6rem;
    }
    
    .countdown-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .countdown-unit {
        min-width: 45px;
        padding: 0.4rem;
    }
    
    .countdown-number {
        font-size: 1.1rem;
    }
    
    .countdown-label {
        font-size: 0.55rem;
    }
    
    .countdown-timer {
        gap: 0.2rem;
    }
}

@media (max-width: 360px) {
    .countdown-unit {
        min-width: 40px;
        padding: 0.3rem;
    }
    
    .countdown-number {
        font-size: 1rem;
    }
    
    .countdown-label {
        font-size: 0.5rem;
    }
}

/* Estilo para cuando el evento ya comenzó */
.countdown-ended {
    background: rgba(40, 167, 69, 0.2);
    padding: 1rem;
    border-radius: 8px;
    color: #28a745;
    font-weight: bold;
    backdrop-filter: blur(5px);
}