body {
    font-family: 'Poppins', sans-serif;
    background-color: #000000;
    color: #fff;
}
.header {
    background-color: #6273f9;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}
.logo {
    max-height: 45px;
}
.menu-icons {
    text-align: center;
}
.menu-icons a {
    text-decoration: none;
    color: #000035;
}
.menu-icons i {
    font-size: 1.65rem;
    color: #000035;
}
.amarillo {
    color: #f9ff0d !important;
}
.menu-text {
    font-size: 0.60rem;
    font-weight: bold;
    text-transform: uppercase;
}
ol a, p a {
    color: #ff3669;
}
h1 {
    font-weight: bolder;
    color: #ff8c40;
    line-height: 40px;
    font-size: 2rem;
}
h1 .subrayado {
    border-bottom: 3px dotted #fff;
}
h2 {
    font-weight: bold;
}
h2.modal-title {
    color: black;
    font-weight: 600;
    font-size: 1.5rem;
}
h5 {
    font-weight: bolder;
    color: #00aa83 !important;
    font-size: 1.5rem;
}
ol {
    list-style: none;
    padding-left: 0;
    counter-reset: list-counter; /* Resetea el contador al inicio de la lista */
}

ol li {
    position: relative;
    margin-bottom: 10px;
    padding-left: 40px;
    counter-increment: list-counter; /* Incrementa el contador en cada <li> */
}

ol li::before {
    content: counter(list-counter); /* Usa el contador para mostrar el número */
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #ff8c40;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
}

/*BOTONES*/
.btn-home {
    font-weight: bolder;
    text-transform: uppercase;
    display: block;
    width: 100%;
    padding: 20px;
}
.btn-primary {
    background: #00a983;
    border: #00a983;
}
.btn-primary:hover, .btn-primary:active {
    background: #02775d;
    border: #02775d;
}
.btn-warning {
    background: #ff8c40;
    color: #fff;
    font-weight: bold;
    width: 100%;
    padding: 15px 0;
}
button.btn-cerrado {
    background: #ff4242;
    color: #fff;
    font-weight: bold;
    width: 100%;
    padding: 15px 0;
    border: 1px solid #ff4242;
}
button.btn-cerrado:hover, button.btn-cerrado:active {
    background: #d13636;
    border: 1px solid #d13636;
}
.btn-info {
    background: #5d40ff;
    color: #fff;
    font-weight: bold;
    width: 100%;
    padding: 15px 0;
    border: 1px solid #5d40ff;
}
.btn-info:hover, .btn-info:active {
    background: #8370f3;
    border: 1px solid #8370f3;
}
.btn-blue {
    background: #0d6efd;
    border: #0d6efd;
    color: #fff;
    font-weight: bold;
    width: 100%;
    padding: 15px 0;
}
.btn-blue:hover, .btn-blue:active {
    background: #0b5ed7;
    border: #0b5ed7;
}

/*ESTILO PARA LOS CARTONES*/
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 10px;
    margin-bottom: 100px;
}
.hidden {
    display: none;
}
.carton {
    padding: 10px;
    text-align: center;
    border: 2px solid #00a98373;
    border-radius: 8px;
    background-color: #1e1e1e;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s;
    font-weight: bold;
    color: #f3f3f3;
}
.carton:hover {
    transform: scale(1.05);
}
.reservado {
    background-color: #dc3545;
    color: #e7abab;
    cursor: not-allowed; /* Indicar que no es interactivo */
    border-color: #dc3545;
    pointer-events: none; /* Deshabilitar interacción */
    display: none;
}
.seleccionado {
    background-color: #00a983;
    color: white;
}
@media (max-width: 768px) { /* Para pantallas móviles */
    .modal-dialog {
        top: 30%; /* Centra el modal verticalmente */
        transform: translate(-50%, -50%); /* Ajusta la posición al centro */
        margin: 0; /* Elimina márgenes para evitar desbordes */
        width: 100%;
    }
}

@media (min-width: 769px) { /* Para pantallas más grandes */
    .modal-dialog {
        top: 30%; /* Centra el modal verticalmente */
        transform: translate(-50%, -50%);
    }
}
.modal-body {
    color: #000;
}
#btnIrAPagar {
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1050; /* Asegura que el botón quede por encima de otros elementos */
}
.text-muted {
    color: #b9b9b9bf !important;
}
.tiempo-atras {
    text-transform: uppercase;
    color: #ff376c;
    font-weight: 800;
}
.carton-table {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
    border-collapse: collapse;
}
.carton-table td {
    padding: 5px;
    text-align: center;
    border: 1px solid #ddd;
}
.table-lol {
    background: #fff;
    color: #000;
}
.tabla-head {
    background: #ff8c40;
    font-weight: bold;
    cursor: default !important;
}
.tabla-head th {
    padding: 4px 0;
}
td {
    cursor: pointer;
}
.carton-link {
    display: block;
    margin: 10px 0;
    padding: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    text-align: center;
    color: #007bff;
    text-decoration: none;
    font-weight: bold;
}
.carton-link:hover {
    background-color: #cfe2ff;
}

@keyframes vibrar {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(3deg) translateY(-2px); }
    50% { transform: rotate(-3deg) translateY(2px); }
    75% { transform: rotate(3deg) translateY(-2px); }
    100% { transform: rotate(0deg); }
}

.vibrar {
    display: inline-block;
    animation: vibrar 0.3s ease-in-out;
}
.nav-tabs {
    font-weight: bold;
}
.nav-tabs button {
    text-transform: uppercase;
    color: #ff3669;
}
.embed-responsive-item {
    width: 100%;
}
.carton-link-posicion {
    padding: 4px 7px;
    background: #d8d7d7;
    border: 1px solid;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

@keyframes parpadeo {
    0% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.7;
        transform: scale(1.1);
    }
    100% { 
        opacity: 1;
        transform: scale(1);
    }
}

.fa-bolt {
    animation: parpadeo 1.5s infinite;
    display: inline-block;
}

.fa-bolt.naranja {
    animation: parpadeo 1.5s infinite;
    display: inline-block;
}

.cambio-color {
    color: #fff;
    font-weight: 900;
    text-shadow: 0 0 2px #fff,
                 0 0 4px #fff,
                 0 0 6px #ff8c40,
                 0 0 8px #ff8c40,
                 0 0 10px #ff8c40;
    letter-spacing: 1px;
    animation: neon 2s ease-in-out infinite alternate;
}

@keyframes neon {
    from {
        text-shadow: 0 0 2px #fff,
                     0 0 4px #fff,
                     0 0 6px #ff8c40,
                     0 0 8px #ff8c40,
                     0 0 10px #ff8c40;
    }
    to {
        text-shadow: 0 0 1px #fff,
                     0 0 2px #fff,
                     0 0 3px #ff8c40,
                     0 0 4px #ff8c40,
                     0 0 5px #ff8c40;
    }
}

.cambio-color::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
    background: linear-gradient(45deg, #ff0000, #ff8000, #ffff00, #00ff00, #0000ff, #8000ff);
    filter: blur(8px);
    opacity: 0.7;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: blur(8px) brightness(1);
    }
    to {
        filter: blur(12px) brightness(1.2);
    }
}

/* Estilos para ganadores combinados (fila y columna) */
.ganador-seccion {
    border: 2px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.ganador-seccion h4 {
    margin-bottom: 15px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.ganador-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #007bff;
    transition: transform 0.2s ease;
}

.ganador-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ganador-info h6 {
    color: #333;
    font-weight: bold;
    margin-bottom: 8px;
}

.ganador-info p {
    margin-bottom: 10px;
    font-weight: 500;
}

.text-success {
    color: #28a745 !important;
}

.text-warning {
    color: #ffc107 !important;
}

.carton-ganador-tabla {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

.carton-ganador-tabla thead {
    background: #007bff;
    color: white;
    padding: 8px;
    text-align: center;
    font-weight: bold;
    border: 1px solid #0056b3;
}

.carton-ganador-tabla td {
    padding: 8px;
    text-align: center;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    font-weight: bold;
}

.fila-ganadora {
    background: linear-gradient(45deg, #28a745, #20c997) !important;
    color: white !important;
    animation: pulse 1.5s infinite;
}

.fila-ganadora td {
    background: linear-gradient(45deg, #28a745, #20c997) !important;
    color: white !important;
    font-weight: bold;
}

.columna-ganadora {
    background: linear-gradient(45deg, #ffc107, #fd7e14) !important;
    color: white !important;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(40, 167, 69, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.contador-reanudacion {
    background: linear-gradient(45deg, #dc3545, #fd7e14);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

#contador-reanudacion {
    font-size: 1.2em;
    font-weight: bold;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Estilos para el indicador de velocidad */
.velocidad-indicador {
    background: linear-gradient(45deg, #17a2b8, #20c997);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-align: center;
    margin: 10px auto;
    max-width: 300px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    font-weight: bold;
    animation: slideInDown 0.5s ease-out;
}

.velocidad-indicador i {
    margin-right: 8px;
    animation: pulse 2s infinite;
}

.velocidad-indicador span {
    font-size: 1.1em;
}

.velocidad-info {
    display: block;
    font-size: 0.8em;
    opacity: 0.8;
    margin-top: 2px;
}

@keyframes slideInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Estilos para diferentes velocidades */
.velocidad-rapida {
    background: linear-gradient(45deg, #dc3545, #fd7e14);
    animation: slideInDown 0.5s ease-out, pulse 1s infinite;
}

.velocidad-lenta {
    background: linear-gradient(45deg, #6c757d, #495057);
}

.velocidad-normal {
    background: linear-gradient(45deg, #17a2b8, #20c997);
}