/* Mobile First - Estilos base para pantallas pequeñas */
.countdown-timer {
    
    color: #212529;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    margin: 1rem 0;
   
    border: 1px solid #dee2e6;
}

.countdown-label {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #495057;
}

.countdown-values {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: nowrap;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 45px;
}

.countdown-number {
    font-size: 20px;
    font-weight: 700;
    line-height: 1;
    color: #6c757d;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    margin-bottom: 0.25rem;
    min-width: 50px;
    border: 1px solid #dee2e6;
}

.countdown-item .countdown-label {
    font-size: 0.65rem;
    font-weight: 500;
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: 0;
    color: #6c757d;
}

.countdown-separator {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0.1rem;
    color: #212529;
}

/* Tablet - Pantallas medianas */
@media (min-width: 768px) {
    .countdown-timer {
        padding: 2rem;
        margin: 2rem 0;
    }

    .countdown-number {
        font-size: 20px;
        min-width: 80px;
        padding: 0.75rem 1rem;
    }

    .countdown-item .countdown-label {
        font-size: 0.875rem;
    }

    .countdown-separator {
        font-size: 2.5rem;
    }
}

/* Desktop - Pantallas grandes */
@media (min-width: 1024px) {
    .countdown-timer {
        padding: 2.5rem;
    }

    .countdown-number {
        font-size: 20px;
        min-width: 90px;
        padding: 1rem 1.25rem;
    }

    .countdown-item .countdown-label {
        font-size: 1rem;
    }

    .countdown-separator {
        font-size: 3rem;
    }
}

/* Estado: Evento pasado */
.countdown-timer.evento-pasado {
    background: #f8d7da;
    border-color: #f5c6cb;
}

.countdown-timer.evento-pasado .countdown-label {
    content: "El evento ya finalizó";
    color: #721c24;
}

.countdown-timer.evento-pasado .countdown-number {
    border-color: #f5c6cb;
    color: #721c24;
}

/* Animación de actualización */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.countdown-number.updating {
    animation: pulse 0.3s ease-in-out;
}
