html, body {
    height: 100%;
    margin: 0;
}

/* Imagen de fondo reutilizada para consistencia visual del portal */
.bg-portal-timer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(to top, rgba(6, 5, 53, 0.65) 0%, rgba(15, 23, 42, 0.8) 100%), url('../../img/fondoFinal.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    z-index: -1;
}

.img-insignia {
    width: 70px;
    height: auto;
    filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.3));
}

/* DISEÑO DE LOS CONTADORES DIGITALES */
.timer-display {
    display: none; /* Inicia oculto por defecto */
    font-size: 3.5rem;
    font-weight: 700;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    transition: all 0.3s ease-in-out;
    letter-spacing: 2px;
}

/* ESTADOS DE TIEMPO DEL CRONÓMETRO */
.timer-green {
    color: #28a745 !important; /* Verde estándar cuando hay tiempo de sobra */
    background-color: rgba(40, 167, 69, 0.1);
    border: 2px solid rgba(40, 167, 69, 0.2);
}

.timer-warning-critical {
    color: #dc3545 !important; /* Rojo brillante automático al bajar de los 30 segundos */
    background-color: rgba(220, 53, 69, 0.15);
    border: 2px solid rgba(220, 53, 69, 0.4);
    animation: blinker 1.5s linear infinite; /* Parpadeo sutil de advertencia */
}

/* Animación de alerta para los últimos segundos */
@keyframes blinker {
    50% { opacity: 0.75; }
}

.timer-display:hover {
    cursor: pointer;
    filter: brightness(1.2);
}