﻿* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    box-sizing: border-box;
}

a {
    cursor: pointer;
}

:root {
    --letras: #432a19;
    --lightLetras: #a7481a;
    --amarillo: #f5e83d;
}

@font-face {
    font-family: 'GOTHAM-BOLD';
    src: url('../Fuentes/GOTHAM-BOLD.TTF') format('truetype');
}

body {
    overflow-x: hidden; /* Evita desplazamiento horizontal */
}

.cnt_generalRegistroSorteo {
    background-image: url(../Archivos/Landing/Fondo.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    padding: 2vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.cnt_registroSuperior {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding: 1rem;
}

.img_registroSuperior {
    max-width: 15vw;
    height: auto;
}

.cnt_registrafolios {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 600px;
    margin: 1rem 0;
}

.img_registraFolios {
    max-width: 50%;
    height: auto;
}

.img_premios {
    max-width: 80%;
    height: auto;
}

.cnt_marco {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 800px;
    margin: 1rem 0;
}

.img_marco {
    width: 100%;
    max-width: 800px;
    height: auto;
}

.img_marcoTextoSuperior {
    width: 80%;
    max-width: 400px;
    margin-bottom: 1rem;
}

.img_cualFolio {
    width: 40%;
    max-width: 200px;
    cursor: pointer;
    transition: transform 0.2s;
}

    .img_cualFolio:active {
        transform: scale(0.9);
    }

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

.inpt_idBoleto,
.inpt_centro {
    width: 20vw;
    max-width: 120px;
    height: 2.5rem;
    text-align: center;
    font-family: 'GOTHAM-BOLD';
    color: var(--lightLetras);
    border: 2px solid var(--lightLetras);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.8);
    margin: 0 0.5rem;
}

    .inpt_idBoleto:focus::placeholder,
    .inpt_centro:focus::placeholder {
        color: transparent;
    }

.spn_instrucciones {
    background: indianred;
    color: wheat;
    font-family: 'GOTHAM-BOLD';
    padding: 0.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
    position: absolute;
    bottom: -2.5rem;
    width: 100%;
    max-width: 300px;
}

.inpt_idBoleto:hover + #spn_instrucciones_antesGuion,
.inpt_idBoleto:active + #spn_instrucciones_antesGuion,
.inpt_centro:hover + #spn_instrucciones_despuesGuion,
.inpt_centro:active + #spn_instrucciones_despuesGuion {
    display: flex;
}

.cnt_guion {
    width: 2rem;
    height: 0.2rem;
    background-color: white;
    margin: 0 0.5rem;
}

.img_viaje,
.img_auto {
    width: 20%;
    max-width: 150px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.img_viaje {
    left: 0;
}

.img_auto {
    right: 0;
}

.img_registrar {
    width: 20%;
    max-width: 120px;
    cursor: pointer;
    transition: transform 0.2s;
    margin-top: 2rem;
}

    .img_registrar:active {
        transform: scale(0.9);
    }

.img_laboratorios {
    width: 60%;
    max-width: 400px;
    margin-top: 1rem;
}

.cnt_bases {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 2rem;
}

.img_bases {
    width: 80%;
    max-width: 800px;
    height: auto;
}

/* Media Queries para diferentes resoluciones */
@media (max-width: 480px) {

    .img_devoBajoLogin {
        width: 30vw;
    }

    #nav_admin {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #gridview-container {
        max-height: 60vh;
    }

    .cnt_generalRegistroSorteo {
        padding: 1rem;
    }

    .img_registroSuperior {
        max-width: 25vw;
    }

    .img_registraFolios {
        max-width: 60%;
    }

    .img_premios {
        max-width: 90%;
    }

    .img_marco {
        width: 100%;
        max-width: 800px;
        height: 380px;
        margin-top: -50px;
    }

    .img_marcoTextoSuperior {
        width: 80%;
        max-width: 400px;
        margin-bottom: 1rem;
        margin-top: -330px;
    }

    .inpt_idBoleto,
    .inpt_centro {
        width: 25vw;
        max-width: 80px;
        height: 2rem;
    }

    .inpt_idBoleto {
        transform: translate(-70px, 40px);
    }

    .cnt_guion {
        margin-top: -15px;
        height: 1rem;
    }

    .inpt_centro {
        transform: translate(70px, 8px);
    }

    .spn_instrucciones {
        font-size: 0.7rem;
        max-width: 200px;
        max-width: 330px;
        transform: translateY(-200px);
        z-index: 1;
    }

    .img_viaje,
    .img_auto {
        max-width: 80px;
    }

    .img_registrar {
        max-width: 80px;
    }

    .img_laboratorios {
        max-width: 320px;
        width: 320px;
    }

    .img_bases {
        max-width: 100%;
        width: 100%;
    }
}

@media (min-width: 481px) and (max-width: 768px) {

    .img_devoBajoLogin {
        width: 20vw;
    }
    #cnt_imgNavAdmin {
        margin-right: 17%;
    }

    .img_registroSuperior {
        max-width: 20vw;
    }

    .img_registraFolios {
        max-width: 50%;
    }

    .img_premios {
        max-width: 80%;
    }

    .img_marcoTextoSuperior {
        margin-top: -360px;
    }

    .inpt_idBoleto,
    .inpt_centro {
        width: 22vw;
        max-width: 100px;
    }

    .inpt_idBoleto {
        transform: translate(-90px, 40px);
    }

    .cnt_guion {
        margin-top: -25px;
        height: 1rem;
    }

    .inpt_centro {
        transform: translate(90px, 0px);
    }

    .spn_instrucciones {
        font-size: 0.7rem;
        max-width: 200px;
        max-width: 330px;
        transform: translateY(-222px);
        z-index: 1;
    }

    .img_viaje,
    .img_auto {
        max-width: 100px;
    }

    .img_viaje {
        left: 90px;
    }

    .img_auto {
        right: 80px;
    }

    .img_registrar {
        max-width: 100px;
    }

    .img_laboratorios {
        margin-top: 10px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .img_devoBajoLogin {
        width: 20vw;
    }

    #cnt_imgNavAdmin {
        margin-right: 25%;
    }

    .img_registroSuperior {
        max-width: 18vw;
    }

    .img_registraFolios {
        max-width: 40%;
    }

    .img_premios {
        max-width: 70%;
    }

    .img_marco {
        max-width: 1000px;
    }

    .img_marcoTextoSuperior {
        margin-top: -385px;
    }

    .inpt_idBoleto,
    .inpt_centro {
        width: 18vw;
        max-width: 110px;
    }

    .inpt_idBoleto {
        transform: translate(-90px, 40px);
    }

    .cnt_guion {
        margin-top: -25px;
        height: 1rem;
    }

    .inpt_centro {
        transform: translate(90px, 0px);
    }

    .spn_instrucciones {
        font-size: 0.7rem;
        max-width: 200px;
        max-width: 330px;
        transform: translateY(-235px);
        z-index: 1;
    }

    .img_viaje,
    .img_auto {
        max-width: 120px;
    }

    .img_viaje {
        left: 90px;
    }

    .img_auto {
        right: 90px;
    }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    .cnt_generalRegistroSorteo {
        background-position: inherit;
    }

    .img_registroSuperior {
        max-width: 15vw;
    }

    .img_registraFolios {
        max-width: 35%;
    }

    .img_premios {
        max-width: 60%;
    }

    .img_marco {
        max-width: 800px;
    }

    .img_marcoTextoSuperior {
        margin-top: -383px;
    }

    .inpt_idBoleto,
    .inpt_centro {
        width: 15vw;
        max-width: 120px;
    }

    .inpt_idBoleto {
        transform: translate(-90px, 40px);
    }

    .cnt_guion {
        margin-top: -25px;
        height: 1rem;
    }

    .inpt_centro {
        transform: translate(90px, 0px);
    }

    .spn_instrucciones {
        font-size: 0.7rem;
        max-width: 200px;
        max-width: 330px;
        transform: translateY(-235px);
        z-index: 1;
    }

    .img_viaje,
    .img_auto {
        max-width: 130px;
    }

    .img_viaje {
        left: 80px;
    }

    .img_auto {
        right: 80px;
    }
}

@media (min-width: 1441px) {
    .cnt_generalRegistroSorteo {
        background-position: inherit;
    }

    .img_registroSuperior {
        max-width: 12vw;
    }

    .img_registraFolios {
        max-width: 30%;
    }

    .img_premios {
        max-width: 50%;
    }

    .img_marco {
        max-width: 1400px;
        max-height: 30rem;
        width: 124%;
    }

    .img_marcoTextoSuperior {
        margin-top: -420px;
    }

    .inpt_idBoleto,
    .inpt_centro {
        width: 12vw;
        max-width: 150px;
    }

    .inpt_idBoleto {
        transform: translate(-120px, 40px);
    }

    .cnt_guion {
        margin-top: -25px;
        height: 1rem;
    }

    .inpt_centro {
        transform: translate(120px, 0px);
    }

    .spn_instrucciones {
        font-size: 0.7rem;
        max-width: 200px;
        max-width: 330px;
        transform: translateY(-257px);
        z-index: 1;
    }

    .img_viaje,
    .img_auto {
        max-width: 150px;
    }

    .img_registrar {
        max-width: 150px;
    }

    .img_laboratorios {
        max-width: 500px;
    }

    .img_bases {
        max-width: 1000px;
    }
}

/* Soporte para pantallas de alta densidad (retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .cnt_generalRegistroSorteo {
        background-image: url(../Archivos/Landing/Fondo.png); /* Imagen optimizada para retina */
    }
}


.nav_admin {
    width: 100%;
    height: 7rem;
    display: flex;
    flex-direction: row;
}

.cnt_imgNavAdmin {
    width: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cnt_controlesAdmin {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: self-start;
    justify-content: flex-start;
    gap: 20px;
}

.lbl_controlesAdmin {
    font-family: GOTHAM-BOLD;
    color: var(--letras);
    font-size: large;
}

.cnt_totalBoletosAdmin {
    padding: 2px;
}

.btn_descaragrRegistros {
    padding: 10px;
    background: var(--letras);
    color: yellow;
    font-family: fangsong;
    border-radius: 5px;
}

    .btn_descaragrRegistros:hover {
        background: var(--lightLetras);
        color: yellow;
    }

.ddl_sucursalesNavAdmin {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    color: var(--letras);
    font-size: 18px;
    padding: 2px;
    margin: 0;
    cursor: pointer;
    /* appearance: none; */
    /* -webkit-appearance: none; */
    -moz-appearance: none;
    width: auto;
    font-family: 'GOTHAM-BOLD';
    width: fit-content;
}

    /* Intento de personalizar el menú desplegable (puede no funcionar en todos los navegadores) */
    .ddl_sucursalesNavAdmin option {
        background: transparent !important; /* Fondo de las opciones */
        color: var(--letras); /* Color del texto de las opciones */
    }

    /* Barra de desplazamiento para WebKit */
    .ddl_sucursalesNavAdmin::-webkit-scrollbar {
        width: 8px;
    }

    .ddl_sucursalesNavAdmin::-webkit-scrollbar-track {
        background: transparent;
    }

    .ddl_sucursalesNavAdmin::-webkit-scrollbar-thumb {
        background: #888;
        border-radius: 4px;
    }

        .ddl_sucursalesNavAdmin::-webkit-scrollbar-thumb:hover {
            background: #555;
        }

/* Barra de desplazamiento para Firefox */
.ddl_sucursalesNavAdmin {
    scrollbar-width: thin;
    scrollbar-color: #888 transparent;
}

/* Estilo para el contenedor del GridView */
.gridview-container {
    /*    width: 100%;
    max-height: 75vh;
    height: 75vh;
    overflow-y: auto;
    overflow-x: auto;*/

    width: 100%;
    max-height: 70vh;
    height: 70vh;
    overflow-y: auto;
    overflow-x: auto;
    margin-top: 50px;
}

/* Estilo para el GridView */
.gridview {
    width: 100%;
    border-collapse: collapse;
}

    /* Estilo para los encabezados fijos */
    .gridview th {
        position: sticky;
        top: 0;
        background-color: var(--letras);
        color: yellow;
        font-weight: bold;
        z-index: 10;
        border: 1px solid var(--lightLetras);
        padding: 8px;
        font-family: GOTHAM-BOLD;
    }

    /* Estilo para las celdas del cuerpo */
    .gridview td {
        border: 2px solid var(--lightLetras);
        padding: 8px;
        color: var(--letras);
        font-family: 'GOTHAM-BOLD';
    }

    /* Estilo para filas alternas */
    .gridview tr:nth-child(even) {
        background-color: transparent;
    }

    .gridview tr:hover {
        background-color: #ddd;
    }

.cnt_posiControlesBajos {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}


.cnt_login {
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    background: linear-gradient(174deg, #f1ee00, transparent);
    display: flex;
    flex-direction: column;
    padding: 30px;
    border-radius: 10px;
    gap: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.9);
}

.cnt_logoLogin {
    display: flex;
    justify-content: center;
    align-items: center;
}

.cnt_dtosLogin {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
}

.lbl_login {
    font-family: GOTHAM-BOLD;
    color: var(--letras);
}

.inpt_login {
    appearance: none;
    height: 2rem;
    border-radius: 5px;
    text-align: center;
    color: var(--lightLetras);
    font-family: 'GOTHAM-BOLD';
    padding: 5px;
}

.cnt_botonLogin {
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn_login {
    background: var(--letras);
    color: var(--amarillo);
    padding: 10px 30px;
    border-radius: 10px;
    font-family: GOTHAM-BOLD;
}

    .btn_login:hover {
        background: var(--amarillo);
        color: var(--letras);
    }

    .btn_login:active {
        background: var(--amarillo);
        color: var(--letras);
    }


#txt_contrasena {
    width: 70%;
}

.cnt_conrasenaLogin {
    display: flex;
    align-items: baseline;
    flex-direction: row;
    gap: 25px;
    color: var(--letras);
    font-family: 'GOTHAM-BOLD';
}

.lbl_mostar_ocultar:active {
    transform: scale(1.2);
}

.inpt_login:focus::placeholder  {
    color: transparent;
}


.btn_salir {
    padding: 10px;
    background: var(--letras);
    color: yellow;
    font-family: fangsong;
    border-radius: 5px;
}

    .btn_salir:hover {
        background: var(--lightLetras);
        color: yellow;
    }

.cnt_descargarRegisto {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cnt_decoBajoLogin {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
