.tablero {
    display: grid;
    grid-template-columns: repeat(20, 1fr);
    gap: 2px;
    margin: 5px auto;
    max-width: 800px;
    padding: 3px;
}

@media (max-width: 1200px) {
    .tablero {
        grid-template-columns: repeat(15, 1fr);
    }
}

@media (max-width: 768px) {
    .tablero {
        grid-template-columns: repeat(12, 1fr);
    }
}

@media (max-width: 576px) {
    .tablero {
        grid-template-columns: repeat(8, 1fr);
    }
}

.numero {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border: 1px solid #ddd;
    font-weight: bold;
    color: #000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    padding: 2px;
}

.numero-letra {
    font-size: 0.8em;
    line-height: 1;
    margin-bottom: -2px;
    font-weight: 900;
    color: #000;
}

.numero-valor {
    font-size: 1em;
    line-height: 1;
    font-weight: 900;
    color: #000;
}

.numero:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.numero.marcado {
    background-color: #ff6b00;
    color: #fff;
    border-color: #ff6b00;
    box-shadow: 0 4px 8px rgba(255,107,0,0.3);
}

.numero.ultimo {
    background-color: #007bff;
    color: #fff;
    border-color: #007bff;
    box-shadow: 0 4px 8px rgba(0,123,255,0.3);
}

.numero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(0,0,0,0.1), transparent);
    border-radius: 50%;
}

.ultimo-numero {
    font-size: 1.5em;
    text-align: center;
    margin: 10px 0;
    color: #ff8c40;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.contador {
    font-family: 'Orbitron', monospace;
    font-size: 2.5em;
    text-align: center;
    margin: 20px auto;
    color: #ff8c40;
    text-shadow: 0 0 8px rgba(255, 140, 64, 0.5);
    background-color: rgba(0, 0, 0, 0.8);
    padding: 15px 30px;
    border-radius: 10px;
    border: 2px solid #ff8c40;
    box-shadow: 0 0 15px rgba(255, 140, 64, 0.3);
    letter-spacing: 2px;
    position: relative;
    font-weight: 700;
    width: 300px;
    min-width: 300px;
    max-width: 300px;
    box-sizing: border-box;
}

.contador-leyenda {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.4em;
    display: block;
    margin-bottom: 5px;
    color: #ff8c40;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
}

#tiempo-restante {
    display: inline-block;
    min-width: 200px;
    font-family: 'Orbitron', monospace;
    letter-spacing: 0.2em;
}

@media (max-width: 768px) {
    .contador {
        font-size: 1.8em;
        padding: 10px 20px;
    }
}

@media (max-width: 480px) {
    .contador {
        font-size: 1.5em;
        padding: 8px 15px;
    }
}

h1 {
    font-size: 1.5em;
    margin-bottom: 10px !important;
}

/* Estilos para el modal de ganador */
.modal-ganador .modal-content {
    background-color: #000;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-ganador .modal-header {
    border-bottom: none;
    padding: 15px 20px 5px;
}

.modal-ganador .modal-title {
    color: #28a745;
    font-size: 1.3em;
    text-align: center;
    width: 100%;
    margin: 0;
}

.modal-ganador .modal-body {
    text-align: center;
    padding: 15px 20px 20px;
}

.modal-ganador .modal-body p {
    font-size: 1em;
    margin-bottom: 10px;
}

.modal-ganador .modal-footer {
    display: none;
}

.modal-ganador .btn-ganador {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 6px 15px;
    font-size: 0.9em;
    border-radius: 20px;
}

.modal-ganador .btn-ganador:hover {
    background-color: #218838;
}

.ganador-destacado {
    font-size: 1.1em !important;
    color: #28a745;
    margin-bottom: 8px !important;
}

.tipo-ganador {
    font-size: 0.95em !important;
    color: #666;
    margin-bottom: 12px !important;
}

.carton-ganador {
    margin: 15px auto;
    max-width: 280px;
}

.carton-ganador-tabla {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
}

.carton-ganador-tabla th,
.carton-ganador-tabla td {
    border: 1px solid #ddd;
    padding: 6px;
    text-align: center;
    font-size: 0.95em;
}

.carton-ganador-tabla th {
        background: #007bff;
        color: white;
        padding: 8px;
        text-align: center;
        font-weight: bold;
        border: 1px solid #0056b3;
}

.ultimos-numeros {
    background-color: #fff;
    border-radius: 10px;
    padding: 10px;
    margin: 10px auto;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.ultimos-numeros h3 {
    font-size: 1.2em;
    color: #000;
    margin-bottom: 10px;
}

.ultimos-numeros-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ultimo-numero-item {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ff6b00;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    padding: 2px;
}

.ultimo-numero-letra {
    font-size: 0.8em;
    line-height: 1;
    margin-bottom: -2px;
    font-weight: 900;
}

.ultimo-numero-valor {
    font-size: 1em;
    line-height: 1;
    font-weight: 900;
}

.info-juego {
    background-color: #fff;
    border-radius: 10px;
    padding: 10px;
    margin: 10px auto;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 0.85em;
    color: #000;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.info-juego p {
    margin: 5px 0;
}

.info-juego .destacado {
    font-weight: bold;
    color: #ff8c40;
}

.btn-narracion {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 5px 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
}

.btn-narracion:hover {
    background-color: #e9ecef;
}

.btn-narracion i {
    color: #666;
}

.btn-narracion.activo {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

.btn-narracion.activo i {
    color: white;
}

.ganador-item {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f8f9fa;
}

.ganador-item:last-child {
    margin-bottom: 0;
}

.ganador-nombre {
    font-size: 1.2em;
    color: #28a745;
    margin-bottom: 10px;
}

.ganador-carton {
    font-size: 1.1em;
    color: #333;
    margin-bottom: 10px;
}

/* Ajuste para el contenido principal */
.container.mt-5.pt-5 {
    margin-top: 40px !important;
}

.bingo-card {
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0;
    background-color: #fff;
}

.bingo-header {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background-color: #007bff;
    color: white;
}

.bingo-header .bingo-cell {
    color: white;
    background-color: #007bff;
    border: none;
}

.bingo-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.bingo-cell {
    border: 1px solid rgba(0, 0, 0, 0.2);
    padding: 8px;
    text-align: center;
    font-weight: bold;
    color: #000;
    background-color: #fff;
}

.bingo-cell.free {
    background-color: rgba(0, 0, 0, 0.1);
}

.bingo-cell.marcado {
    background-color: #ff6b00;
    color: white;
    border-color: #ff6b00;
    box-shadow: 0 4px 8px rgba(255,107,0,0.3);
}

.table {
    color: #000;
}

.table-bordered {
    border-color: rgba(0, 0, 0, 0.1);
}

.table-bordered th,
.table-bordered td {
    border-color: rgba(0, 0, 0, 0.1);
}

/* Estilos para modales */
.modal-content {
    background-color: #fff !important;
    color: #000 !important;
}

.modal-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.modal-title {
    color: #000 !important;
}

.modal-body {
    color: #000 !important;
}

.modal-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Estilos para fila ganadora */
.fila-ganadora {
    background: linear-gradient(45deg, #28a745, #20c997) !important;
    color: white !important;
    animation: pulse 1.5s infinite;
}

.fila-ganadora td {
    font-weight: bold;
    color: white !important;
    background: linear-gradient(45deg, #28a745, #20c997) !important;
}

/* Estilos para columna ganadora */
.columna-ganadora {
    background: linear-gradient(45deg, #ffc107, #fd7e14) !important;
    color: white !important;
    animation: pulse 1.5s infinite;
}

/* Estilos para el contador de reanudación */
.contador-reanudacion {
    margin: 0 0 15px 0;
    padding: 6px;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 5px;
    text-align: center;
}

.contador-reanudacion p {
    margin: 0;
    font-size: 0.85em;
    color: #666;
}

.contador-reanudacion span {
    font-weight: bold;
    color: #ff6b00;
    font-size: 1em;
} 