/* ✅ Configuración general */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Times New Roman", serif;
}

body {
    background-color: #fff;
    color: #000;
    text-align: center;
    padding: 20px;
}

/* 🔹 Logo */
.logo {
    width: 150px;
    display: block;
    margin: 0 auto 20px;
}

/* 🔹 Sección de dinámica */
.dinamica {
    background: #000;
    color: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    width: 60%;
    margin: 20px auto;
}

.dinamica p {
    margin: 5px 0;
}

/* 🔹 Formulario de registro */
.registro {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 12px;
    width: 50%;
    margin: 20px auto;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.registro h2 {
    margin-bottom: 15px;
}

.registro label {
    display: block;
    font-weight: bold;
    margin-top: 10px;
    text-align: left;
}

.registro input {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #000;
    border-radius: 6px;
    font-size: 16px;
}

#continuarBtn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    background: #000;
    color: white;
    transition: all 0.2s ease-in-out;
    margin-top: 15px;
}

#continuarBtn :hover {
    background: #333;
}

/* 🔹 Mensajes de validación */
#mensajeValidacion {
    font-size: 14px;
    color: red;
    margin-top: 10px;
}

/* 🔹 Selección de boletos */
#seleccionBoletos {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    width: 60%;
    margin: 20px auto;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    display: none;
}

#boletosContainer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

/* 🔹 Estilos para los boletos */
.boleto {
    background: black;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.boleto:hover {
    background: gray;
}

/* 🔹 Botones de paginación */
#paginacion {
    margin-top: 15px;
}

#btnAnterior, #btnSiguiente {
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    background: gray;
    color: white;
    margin: 5px;
    transition: all 0.2s ease-in-out;
}

#btnAnterior:hover, #btnSiguiente:hover {
    background: black;
}

/* 🔹 Ventana flotante de confirmación */
#modalFondo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6); /* 🔹 Oscurece solo el fondo */
    display: none;
    z-index: 9; /* Asegura que el fondo esté por debajo del modal */
}

#modalConfirmacion {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 400px;
    z-index: 10; /* 🔹 La ventana debe estar por encima del fondo */
    display: none;
}

#btnConfirmar, #btnCancelar {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border-radius: 8px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    margin-top: 10px;
}

#btnConfirmar {
    background: black;
    color: white;
}

#btnConfirmar:hover {
    background: gray;
}

#btnCancelar {
    background: lightgray;
    color: black;
}

#btnCancelar:hover {
    background: darkgray;
}
/* 🔹 Estilos para la paginación */
.paginacion {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.paginacion button {
    background-color: black;
    color: white;
    border: none;
    padding: 12px 15px;
    margin: 5px;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s;
}

.paginacion button:hover {
    background-color: white;
    color: black;
    border: 2px solid black;
}

/* 🔹 Estilos para los botones de los boletos */
#boletosDisponibles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.boleto {
    background-color: black;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.boleto:hover {
    background-color: white;
    color: black;
    border: 2px solid black;
}

/* 🔹 RESPONSIVE (Para pantallas pequeñas) */
@media (max-width: 768px) {
    .registro, #seleccionBoletos {
        width: 90%;
    }

    #modalConfirmacion {
        width: 80%;
    }

    .dinamica {
        width: 90%;
    }
}
.error {
    color: red;
    font-size: 14px;
    margin-top: 5px;
    display: block;
}

/* 🔹 Estilos para el overlay de carga */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Fondo semi-transparente */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none; /* Oculto por defecto */
}

/* 🔹 Spinner de carga */
.spinner {
    width: 50px;
    height: 50px;
    border: 6px solid white;
    border-top: 6px solid black;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 🔹 Animación del spinner */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
