/* ========================================= */
/* 1. RESET Y BASE DEL PANEL                 */
/* ========================================= */

#turnos-panel {
    font-family: 'Roboto', Arial, sans-serif;
    /* Fuente limpia y moderna */
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    color: #FFFFFF;
    /* Texto blanco por defecto */
    display: flex;
    flex-direction: column;
    text-align: center;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5vh 3vw;
    background-color: #1F1F1F;
    /* Un gris oscuro para la barra superior */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.panel-header h1 {
    font-size: 2.5vh;
    margin: 0;
    font-weight: 300;
}

.header-time {
    font-size: 3vh;
    font-weight: 600;
}

.panel-footer {
    padding: 1.5vh;
    background-color: #1F1F1F;
    font-size: 2vh;
    font-weight: 300;
}

/* ========================================= */
/* 3. DISPLAY PRINCIPAL DE TURNOS            */
/* ========================================= */

.turnos-display {
    display: flex;
    flex-direction: column;
    padding: 2vh 2vw;
    gap: 2vw;
    /* Espacio entre las tarjetas de turno */
    justify-content: center;
    align-items: center;
}

.turno-card {
    width: 100%;
    border-radius: 15px;
    padding: 4vh 2vw;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
    transition: all 0.5s ease-in-out;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.turno-label {
    font-size: 3.5vh;
    font-weight: 300;
    margin-bottom: 2vh;
    letter-spacing: 2px;
}

.turno-card.actual {
    border: 3px solid #4CAF50;
}

.turno-card.actual .turno-numero {
    font-size: 12vh;
    font-weight: 900;
    color: #FFFFFF;
    text-shadow: 0 0 15px rgba(76, 175, 80, 0.8);
    line-height: 1;
    margin-bottom: 2vh;
}

.turno-card.actual .turno-ventanilla {
    font-size: 4vh;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 8px rgba(76, 175, 80, 0.5);
}

.turno-card.anterior {
    border: 3px solid #343a40;
}

.turno-card.anterior .turno-numero {
    font-size: 12vh;
    font-weight: 900;
    color: #FFFFFF;
    text-shadow: 0 0 15px rgba(61, 69, 61, 0.5);
    line-height: 1;
    margin-bottom: 2vh;
}

.turno-card.anterior .turno-ventanilla {
    font-size: 4vh;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 8px rgba(61, 69, 61, 0.5);
}

.turno-data-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}


.turno-card.actual.animate {
    animation: pulse 1s ease-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        border-color: #4CAF50;
    }

    50% {
        transform: scale(1.03);
        border-color: #81C784;
    }

    /* Ligeramente más grande y brillante */
    100% {
        transform: scale(1);
        border-color: #4CAF50;
    }
}