/* ------------------------------
   Estilos globales
------------------------------ */
body {
    font-family: Arial, sans-serif;
    background-color: #f8f8f8; /* Gris muy claro */
    margin: 0;
    padding: 0;
}

/* Barra superior con Logo, Título y botón Salir */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000; /* Barra negra */
    padding: 10px 20px;
}
.logo-title-container {
    display: flex;
    align-items: center;
    gap: 10px;
}
.logo-top {
    max-height: 50px; /* Evita que el logo se vea enorme */
    width: auto;
}
.top-bar-title {
    color: #ffcc00;
    font-size: 1.6em;
    margin: 0;
}
.salir-container {
    text-align: right;
}
.salir-button {
    background-color: #ff6600;
    color: #fff !important;
    font-weight: bold;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 5px;
}

/* Contenedor principal */
.main-container {
    display: flex;
    justify-content: space-between;
    width: 95%;
    max-width: 1200px;
    margin: 20px auto;
    gap: 20px;
}

/* Columna Izquierda */
.left-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Información del Participante */
/* CARD de Información del Participante */
.info-participante {
    background: linear-gradient(to bottom, #f0f0f0, #e6e6e6); /* Sutil degradado */
    border: 3px solid #ff6600;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.info-participante h2 {
    margin: 0 0 15px;
    color: #ff6600;
    font-size: 2.2em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.numero-actual {
    font-size: 5em; /* Número más grande */
    color: #333;
    margin: 15px 0;
    font-weight: bold;
}

.datos-participante {
    font-size: 1.3em; /* Un poco más grande para mayor legibilidad */
    margin: 8px 0;
    line-height: 1.4;
}

/* Número Grande (Ruleta) */
.ruleta-container {
    background-color: #fff;
    border: 5px solid #ff6600;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    font-size: 3em;
    font-weight: bold;
    color: #ff6600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Cronómetro más grande con efecto de pulso */
.cronometro {
    font-size: 5em; /* Tamaño base */
    text-align: center;
    transition: color 0.3s;
    font-weight: bold;
    animation: pulse 1s ease-in-out infinite;
}

/* Animación para pulso */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1); /* Incremento de tamaño a 1.2x */
    }
}

/* Panel de control (Input + Botones) */
.control-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.tiempo-input {
    width: 100px;
    padding: 8px;
    font-size: 1.2em;
    text-align: center;
    border: 2px solid #ff6600;
    border-radius: 5px;
}
.buttons-group {
    text-align: center;
}
.btn {
    padding: 10px 20px;
    background-color: #ff6600;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    margin: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}
.btn:hover {
    background-color: #cc5200;
}
.btn-cancel {
    background-color: #666;
}
.btn-cancel:hover {
    background-color: #444;
}

/* Columna Derecha: Lista de Números */
.right-column {
    flex: 1;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    max-height: 700px;
    overflow-y: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.right-column h2 {
    margin-top: 0;
    color: #ff6600;
    text-align: center;
}
.lista-participantes {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
    margin-top: 10px;
}
.numero-item {
    background-color: #fff;
    border: 1px solid #ff6600;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 1em;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s;
}
.numero-item:hover {
    background-color: #c8f7c8;
}
.numero-item.resaltar {
    background-color: #88ff88 !important;
}

/* Modal genérico */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    width: 400px;
    max-width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}
.modal-acceso {
    min-height: 220px;
}
.modal-buttons {
    margin-top: 10px;
}
.input-clave {
    padding: 10px;
    font-size: 1em;
    margin: 10px 0;
    width: 100%;
    border: 1px solid #ff6600;
    border-radius: 5px;
}
.error-msg {
    color: red;
    font-size: 0.9em;
}

/* Modal del Ganador */
#winnerModal {
    display: none;
}
.winner-content {
    width: 600px;
    max-width: 90%;
    min-height: 300px;
    position: relative;
    padding: 30px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ffeb99, #ff6600);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}
.winner-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
#winnerInfo {
    font-size: 3em;
    margin-bottom: 20px;
    color: #333;
    background-color: rgba(255,255,255,0.7);
    display: inline-block;
    padding: 10px 20px;
    border-radius: 5px;
}
.logo-modal {
    text-align: center;
    margin-bottom: 20px;
}
.logo-modal img {
    width: 500px;
    max-height: 300px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Confetti */
#confettiContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}
.confetto {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    animation: confettiFall 2s ease-out forwards;
    opacity: 0.8;
}
@keyframes confettiFall {
    0% {
        transform: translateY(-100px) rotate(0deg);
    }
    50% {
        transform: translateY(50vh) rotate(360deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(720deg);
        opacity: 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        align-items: center;
    }
    .left-column, .right-column {
        width: 100%;
        max-width: 600px;
    }
    .ruleta-container {
        font-size: 2.5em;
    }
    .winner-content {
        width: 90%;
        min-height: 300px;
    }
}
