/* Estilos generales y de tipografía */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f8f9fa;
    padding-bottom: 280px; /* Espacio para el pie de página flotante */
}

body.sidenav-active {
    overflow: hidden; /* Evita el scroll del fondo cuando el menú está abierto */
}

/* Contenedor con ancho máximo */
.max-width-1400 {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    background-color: #fff; /* Fondo blanco para el contenido */
}

/* Estilos de la barra de menú */
.sticky-top2 {
    z-index: 1020;
    background-color: #ddd !important;
}
.navbar-nav .nav-link {
    padding: 4px 8px;
    font-size: 1rem;
    color: #000000 !important;
}

.navbar-nav a:hover {
    color: #ffffff !important;

    background-color: #17458f;
}

.navbar .fab {
    color: #17458f;
}

/* Secciones principales */
.section-container {
    border-radius: 8px;
    background-color: #f8f9fa;
}

/* Botones */
.btn-warning {
    background-color: #ffcc00;
    border-color: #ffcc00;
    color: #000;
}

/* ======================================================= */
/* ESTILOS PARA SLIDER */
/* ======================================================= */

/* Contenedor de la imagen principal - ACTUALIZADO */
.main-image-section {
    position: relative;
    height: auto;
    border-radius: 8px;
}

/* Por defecto, mostramos el slider horizontal (landscape) */
.slider-vertical {
    display: none;
}
.slider-horizontal {
    display: block;
}

.main-image-slider .carousel-item {
    background-color: #eee; /* Color de fondo mientras carga la imagen */
}

/* Estilos para las imágenes horizontales */
.slider-horizontal .carousel-item {
    aspect-ratio: 5 / 2; /* Proporción 16:9 */
}

/* Estilos para las imágenes verticales */
.slider-vertical .carousel-item {
    aspect-ratio: 2 / 3; /* Proporción 9:16 */
}

.main-image-slider .carousel-item img {
    object-fit: cover; /* Cubre todo el espacio sin deformarse */
    width: 100%;
    height: auto;
}

/* Media Query: Si la pantalla está en modo vertical (portrait) */
@media (orientation: portrait) {
    .slider-vertical {
        display: block; /* Muestra el slider vertical */
    }
    .slider-horizontal {
        display: none; /* Oculta el slider horizontal */
    }
}

/* ======================================================= */
/* ESTILOS PARA MENÚ LATERAL MÓVIL (NUEVO) */
/* ======================================================= */
.sidenav {
    height: 100%;
    width: 280px; /* Ancho del menú */
    position: fixed;
    z-index: 1040; /* Por encima del overlay y el header */
    top: 0;
    left: 0;
    background-color: #2A5B95; /* Color de fondo oscuro */
    overflow-x: hidden;
    transition: 0.4s;
    padding-top: 60px;
    transform: translateX(-100%); /* Oculto por defecto a la izquierda */
}

.sidenav.open {
    transform: translateX(0); /* Visible */
}

.sidenav a {
    padding: 10px 15px 10px 32px;
    text-decoration: none;
    font-size: 1.25rem;
    color: #e7e7e7;
    display: block;
    transition: 0.3s;
}

.sidenav a:hover {
    color: #dedede;
    font-size: 1.40rem;
    background-color: #17458f;
    font-weight: 900;
}

.sidenav .close-btn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}

#sidenav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1030; /* Debajo del menú, encima del contenido */
    display: none; /* Oculto por defecto */
}

#sidenav-overlay.active {
    display: block;
}

/* Grilla de números */
.numbers-grid-wrapper {
    max-height: 420px;
    overflow-y: auto;
    min-height: 200px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 10px;
}
.numbers-grid {
    display: grid;
    gap: 5px;
    grid-template-columns: repeat(10, 1fr);
}

.number-box {
    text-align: center;
    padding: 4px 6px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
}
.number-box:hover {
    transform: scale(1.05);
    border: 2px solid #ffc107;
}
.number-box.available {
    background-color: #286EA6;
    color: #fff;
    border: 1px solid #286EA6;
}
.number-box.selected {
    background-color: #ffc107;
    color: #000;
    border: 1px solid #000;
}

/* ======================================================= */
/* ESTILOS PARA CONTADOR REGRESIVO */
/* ======================================================= */
.countdown-container-yellow {
    background-color: #286EA6; /* Amarillo del tema */
    border-radius: 8px;
    
}
.time-box {
    padding: 0 1.5rem;
}
.time-value {
    font-size: 4rem; /* Tamaño grande para los números */
    font-weight: 700;
    line-height: 1;
    display: block;
    color: #ffffff;
}
.time-label {
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
}
.separator {
    font-size: 4rem;
    font-weight: 100;
    color: #ffffff;
    line-height: 1;
}
.countdown-date {
    color: #ffffff;
    font-size: 1.2rem;
}

/* ======================================================= */
/* ESTILOS PARA MODAL DE NÚMEROS GENERADOS (ACTUALIZADO) */
/* ======================================================= */
.generated-numbers-text {
    word-break: normal;
    font-size: 1.1rem;
    font-weight: bold;
    line-height: 1.6;
    background-color: #f8f9fa;
    border-radius: 8px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-footer {
    border-top: none;
}


/* ======================================================= */
/* ESTILOS PARA PIE DE PÁGINA FLOTANTE - ACTUALIZADO */
/* ======================================================= */
#floating-footer {
    position: fixed;
    bottom: -250px;
    left: 0;
    right: 0;
    background-color: #ffffff;
    border-top: 1px solid #dee2e6;
    z-index: 1030;
    transition: bottom 0.3s ease-in-out;
}

#floating-footer.visible {
    bottom: 0;
}

.selected-numbers-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
}

/* Estilos para la barra de scroll horizontal */
.selected-numbers-scroll::-webkit-scrollbar {
    height: 8px;
}
.selected-numbers-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}
.selected-numbers-scroll::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 4px;
}
.selected-numbers-scroll {
  scrollbar-width: thin;
  scrollbar-color: #ccc #f1f1f1;
}


.selected-numbers-scroll .badge {
    flex-shrink: 0;
    font-size: 0.9rem;
    padding: 0.6em 0.8em;
    cursor: pointer;
}

/* ======================================================= */
/* ESTILOS PARA LA PAGINACIÓN */
/* ======================================================= */
#pagination-container .pagination {
    margin-bottom: 0;
    flex-wrap: wrap;
    justify-content: center;
}

#pagination-container .page-link {
    color: #CC9933;
    font-weight: bold;
}

#pagination-container .page-item.active .page-link {
    background-color: #CC9933;
    border-color: #CC9933;
    color: #fff;
    z-index: 2;
}

#pagination-container .page-item.disabled .page-link {
    color: #6c757d;
}
/* ======================================================= */
/* NUEVOS ESTILOS PARA PÁGINA "MIS BOLETOS" */
/* ======================================================= */

.search-container {
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.table-responsive {
    margin-top: 2rem;
}

/* Clases para colorear filas de la tabla */
.table-success {
    --bs-table-bg: #d1e7dd;
    --bs-table-border-color: #a3cfbb;
}

.table-danger {
    --bs-table-bg: #f8d7da;
    --bs-table-border-color: #f1aeb5;
}

/* Estilo para el ícono check */
.fa-check {
    color: rgb(255, 255, 255);
}

/* ======================================================= */
/* NUEVOS ESTILOS PARA PÁGINA DE DETALLES DEL APARTADO */
/* ======================================================= */
.summary-box {
    background-color: #f8f9fa;
    border-radius: 8px;
}
.details-section {
    border: 1px solid #dee2e6;
    border-radius: 8px;
}
.number-list {
    word-break: break-word;
    font-size: 1.1rem;
}

/* ======================================================= */
/* MEDIA QUERIES PARA DISPOSITIVOS MÓVILES */
/* ======================================================= */
@media (max-width: 767.98px) {

    /* Ajuste de la grilla de números para móviles */
    .numbers-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    /* Ajustes para el contador en móviles */
    .time-value {
        font-size: 2rem;
    }
    .time-label {
        font-size: 0.7rem;
    }
    .separator {
        font-size: 2rem;
    }
    .time-box {
        padding: 0 0.5rem;
    }
    .countdown-date {
        font-size: 1rem;
    }

    /* Ajuste del pie de página flotante para móviles */
    .footer-content-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    #floating-footer .btn {
        margin-top: 0.5rem;
    }

    /* Ajuste de la paginación para móviles */
    .page-item-text {
        display: none;
    }
    .page-item:first-child .page-link,
    .page-item:last-child .page-link {
        padding-left: .75rem;
        padding-right: .75rem;
    }
}

/* MIS ESTILOS */
.boletoimg {
    vertical-align: middle;
    width: 100%;
    border-radius: 10px;
}

/* range */
input[type="range"]::-webkit-slider-thumb {
  /*background: #43f758; /* Color del pulgar */
  width: 30px;
  height: 30px;
  margin-top: -10px; /* Para centrarlo */
  -webkit-appearance: none; /* Oculta la apariencia por defecto del pulgar */
}
input[type='range']::-webkit-slider-runnable-track {
    background-color: #666; /* Color de la pista */
    color: #207d01; /* Para el progreso en algunos casos */
}