﻿body p {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 22px;
    color: #000;
    font-weight: 400;
    line-height: 180%;
}

.font-titles {
    font-family: 'Nunito Sans', sans-serif;
}

.font-nunito {
    font-family: 'Nunito', sans-serif;
}

.font-poppins {
    font-family: 'Poppins', sans-serif;
}

.font-roboto {
    font-family: 'Roboto', sans-serif;
}

.line-height-120 {
    line-height: 120%;
}

div.line-height-120 {
    line-height: 120%;
}

.line-height-150 {
    line-height: 150%;
}

.line-height-200 {
    line-height: 200%;
}

div.align-top {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Alinea el contenido al inicio (tope) */
    height: 330px; /* o el alto que necesites */
}

div.align-top-02 {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Alinea el contenido al inicio (tope) */
    height: 230px; /* o el alto que necesites */
}

/*CSS personalizado section fin-registro*/
.formulario {
    border: solid 1px rgb(0 0 0 / 8%);
    padding: 40px;
    width: 100%;
    border-radius: 5px;
    text-align: justify;
    box-shadow: 0px 0px 20px 2px #2121210f;
    margin: auto;
}


.color-udlap {
    color: #f57b20 !important;
}

.color-white {
    color:#ffffff;
}

a:hover,
a:active {
    color: #F47B20;
}

a.submenu {
    color: #ffffff;
    letter-spacing: 0.02em;
}

    a.submenu:hover {
        /* color: #FFD600;*/
        color: #004D40;
    }

    /*a.submenu:visited {
        color: #004D40;
    }*/

.hidden {
    display: none !important;
}

.form-header-title2,
form-header-title2,
form-header-title3 {
    line-height: 48px;
}

@import url(https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.css);

.menu-horizontal li {
    vertical-align: top;
    display: inline;
    font-size: 1.3em;
    padding: 1em;
    margin: 25px;
}

ul.padding-0 {
    padding: 0;
}

.bg-very-light-edne {
    background: rgba(236, 178, 33, .3);
}

.border-color-extra-light-edne {
    border-color: #ecb221 !important;
}

.bg-very-light-edei {
    background: rgba(80, 177, 76, .3);
}

.border-color-extra-light-edei {
    border-color: #50b14c !important;
}

.bg-very-light-edcs {
    background: rgba(231, 132, 77, .3);
}

.border-color-extra-light-edcs {
    border-color: #e7844d !important;
}

.bg-very-light-edec {
    background: rgba(1, 153, 149, .3);
}

.border-color-extra-light-edec {
    border-color: #019995 !important;
}

.bg-very-light-edah {
    background: rgba(161, 134, 31, .3);
}

.border-color-extra-light-edah {
    border-color: #a1861f !important;
}


/*estilos para el boton de enviar*/
.btn-enviar:active {
    background-color: #f57b20
}

.text-slider {
    font-size: 2.3rem;
    line-height: 150%;
    color: #ffffff;
    letter-spacing: 0.15px;
}

.subtext-slider {
    font-weight: 100;
    letter-spacing: 0.15px;
    line-height: 160%;
}

.letter-spacing-01 {
    letter-spacing: 0.1em;
}


/*Small devices (landscape phones, 576px and up)*/
@media (min-width: 576px) and (max-width: 767.98px) {

    .titulos {
        font-size: 30px;
    }

    .alto-minimo {
        min-height: 550px;
    }

    .alto-minimo2 {
        min-height: 700px;
    }

    .alto-minimo3 {
        min-height: 250px;
    }
}

/*Medium devices (tablets, 768px and up)*/
@media (min-width: 768px) and (max-width: 991.98px) {

    .alto-minimo {
        min-height: 550px;
    }

    .alto-minimo2 {
        min-height: 780px;
    }

    .alto-minimo3 {
        min-height: 250px;
    }
}

/*Large devices (desktops, 992px and up)*/
@media (min-width: 992px) {

    .alto-minimo {
        min-height: 800px;
    }

    .alto-minimo2 {
        min-height: 800px;
    }

    .alto-minimo3 {
        min-height: 400px;
    }
}

/*Extra large devices (large desktops, 1200px and up)*/
@media (min-width: 1200px) {

    .alto-minimo {
        min-height: 800px;
    }

    .alto-minimo2 {
        min-height: 800px;
    }

    .alto-minimo3 {
        min-height: 400px;
    }
}


/*************************************************************************************************************
*************************************************************************************************************/

/*CSS personalizado para grid*/

div > div > div.gridjs-head > div.gridjs-search {
    min-width: 100%;
    display: flex;
    justify-content: center;
}

input.gridjs-input {
    width: 80%;
    border: 1px solid #140900dd;
    font-size: 16px;
}

    input.gridjs-input:focus {
        border-color: #fcba58 !important;
        box-shadow: 0 0 0 3px rgb(243 203 149 / 50%);
    }

th.gridjs-th {
    background-color: #000000;
    border: 1px solid #e5e7eb;
    color: #ffffff;
    /*width: auto;*/
}

th.gridjs-th-sort:focus, th.gridjs-th-sort:hover {
    background-color: #929292;
    color: black;
}

.gridjs-tbody,
td.gridjs-td {
    background-color: inherit;
}

    /* Estilo para los renglones alternados */
    .gridjs-tbody .gridjs-tr:nth-child(odd) {
        background-color: #f2f2f2;
    }

    .gridjs-tbody .gridjs-tr:nth-child(even) {
        background-color: #ffffff;
    }

.icono-externo::after {
    content: "\2197";
    font-family: "Font Awesome 5 Free";
    margin-left: 5px;
    font-weight: bold;
    display: inline-block;
}

/* ============================================ */
/* GRID.JS RESPONSIVE ENHANCEMENTS */
/* ============================================ */

/* Contenedor responsivo para el grid */
.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Wrapper del grid */
.gridjs-wrapper {
    width: 100%;
    overflow-x: auto;
}

/* Tabla base */
.gridjs-table {
    min-width: 800px;
    width: 100%;
    border-collapse: collapse;
}

/* Columna de nombre completo */
.gridjs-th:nth-child(2),
.gridjs-td:nth-child(2) {
    min-width: 250px;
    max-width: 350px;
    word-wrap: break-word;
    white-space: normal;
}

/* Columna de Nivel SNI */
.gridjs-th:nth-child(6),
.gridjs-td:nth-child(6) {
    min-width: 100px;
    max-width: 120px;
    text-align: center !important;
}

/* Columna de Escuela */
.gridjs-th:nth-child(9),
.gridjs-td:nth-child(9) {
    min-width: 200px;
    max-width: 300px;
    word-wrap: break-word;
    white-space: normal;
}

/* Columna de botón */
.gridjs-th:nth-child(10),
.gridjs-td:nth-child(10) {
    min-width: 150px;
    max-width: 150px;
    text-align: center !important;
}

/* Ajustes para botones dentro del grid */
.gridjs-td button {
    white-space: nowrap;
}

/* ============================================ */
/* RESPONSIVE BREAKPOINTS */
/* ============================================ */

/* Móviles pequeños (hasta 576px) */
@media (max-width: 576px) {
    /* Ajustar búsqueda */
    .gridjs-search {
        margin-bottom: 1rem;
    }

    input.gridjs-input {
        width: 95%;
        font-size: 14px;
    }

    /* Ajustar paginación */
    .gridjs-pagination {
        flex-direction: column;
        gap: 10px;
        padding: 10px 5px;
    }

        .gridjs-pagination .gridjs-pages {
            flex-wrap: wrap;
            justify-content: center;
            gap: 5px;
        }

        .gridjs-pagination button {
            font-size: 12px;
            padding: 5px 8px;
        }

    /* Reducir padding en celdas */
    .gridjs-th,
    .gridjs-td {
        padding: 8px 6px;
        font-size: 14px;
    }

    /* Botones más compactos */
    .btn-small {
        font-size: 12px;
        padding: 4px 8px;
    }
}

/* Móviles medianos (576px - 768px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .gridjs-table {
        min-width: 700px;
    }

    input.gridjs-input {
        width: 90%;
    }

    .gridjs-pagination {
        flex-wrap: wrap;
    }
}

/* Tablets (768px - 992px) */
@media (min-width: 768px) and (max-width: 991.98px) {
    .gridjs-table {
        min-width: 900px;
    }

    input.gridjs-input {
        width: 85%;
    }
}

/* Desktop (992px - 1200px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* En esta resolución ya no necesita scroll */
    .table-responsive {
        overflow-x: visible;
    }

    .gridjs-table {
        min-width: 100%;
    }
}

/* Desktop grande (1200px+) */
@media (min-width: 1200px) {
    /* Quitar scroll horizontal */
    .table-responsive {
        overflow-x: visible;
    }

    .gridjs-table {
        min-width: 100%;
        width: 100%;
    }

    /* Ajustar anchos de columnas para aprovechar el espacio */
    .gridjs-th:nth-child(2),
    .gridjs-td:nth-child(2) {
        width: 15%;
    }

    .gridjs-th:nth-child(6),
    .gridjs-td:nth-child(6) {
        width: 12%;
    }

    .gridjs-th:nth-child(9),
    .gridjs-td:nth-child(9) {
        width: 30%;
    }

    .gridjs-th:nth-child(10),
    .gridjs-td:nth-child(10) {
        width: 15%;
    }
}

/* ============================================ */
/* GRID.JS LOADING Y ESTADOS */
/* ============================================ */

/* Indicador de carga */
.gridjs-loading {
    text-align: center;
    padding: 20px;
    font-size: 16px;
    color: #666;
}

/* Sin resultados */
.gridjs-notfound {
    text-align: center;
    padding: 30px;
    color: #999;
    font-size: 16px;
}

/* ============================================ */
/* MEJORAS DE ACCESIBILIDAD */
/* ============================================ */

/* Focus visible para navegación por teclado */
.gridjs-th:focus,
.gridjs-td:focus,
button:focus {
    outline: 2px solid #f57b20;
    outline-offset: 2px;
}

/* Mejorar contraste de hover */
.gridjs-tbody .gridjs-tr:hover {
    background-color: #e8e8e8 !important;
}