/* ==========================================================================
   CONTEDOR PRINCIPAL (PANTALLAS GRANDES / ESCRITORIO)
   ========================================================================== */
.countdown-container {
    background-color: transparent;
    display: block;
    position: relative;
    margin-top: 80px;

    /* En lugar de -500px, usamos un porcentaje controlado para moverlo a la izquierda */
    margin-left: -220%;

    text-align: center;
    z-index: 100;
    transition: all 0.3s ease;
}

/* Título */
.countdown-container h3 {
    color: #004175 !important;
    font-size: 18px;
    margin-bottom: 15px;
    font-weight: bold;
}

/* Timer con Flexbox */
.timer {
    display: flex;
    gap: 25px;
    justify-content: center;
}

/* Números */
.time-block span {
    color: #004175 !important;
    font-size: 3rem;
    font-weight: 800;
    display: block;
    line-height: 0.9;
}

/* Etiquetas (Días, Horas, etc.) */
.time-block p {
    color: #004175 !important;
    margin: 5px 0 0 0 !important;
    font-weight: bold;
    font-size: 13px;
    text-transform: uppercase;
}


/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES LIMPIAS)
   ========================================================================== */

/* Laptops y Pantallas Medianas (Ajustamos el margen izquierdo para que no choque) */
@media (max-width: 1400px) {
    .countdown-container {
        margin-left: -110%;
        margin-top: 60px;
    }

    .time-block span {
        font-size: 2.6rem;
    }
}

/* Tablets Grandes / Orientación Horizontal (Centramos el contador para evitar colisiones) */
@media (max-width: 1199px) {
    .countdown-container {
        margin-left: 0;
        margin-top: 40px;
        text-align: center;
    }

    .timer {
        gap: 20px;
    }
}

/* Tablets Medianas y Pequeñas */
@media (max-width: 991px) {
    .countdown-container {
        margin-left: 0;
        margin-top: 30px;
    }

    .time-block span {
        font-size: 2.2rem;
    }
}

/* --- MÓVILES (Se oculta por completo por debajo de 768px) --- */
@media (max-width: 767px) {
    .countdown-container {
        display: none !important;
    }
}


/* ==========================================================================
   CASO ESPECIAL: MENSAJE DE ANIVERSARIO
   ========================================================================== */
/* Si el contenedor cambia y muestra el mensaje "FELIZ", este se mostrará centrado */
.countdown-container:has(h3:contains("FELIZ")) {
    display: block !important;
    margin-left: 0 !important;
    margin-top: 20px !important;
}