/* Coordinación de Sistemas, Redes y Desarrollo Tecnológico 2023
    Ing. José Romeo De los Ángeles Ojeda
    Ing. Pedro Camacho Martínez
    Ing. Alberto Josué Cancela Arredondo
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;1,300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500&display=swap');

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

:root {
    --title-font: 'Montserrat', sans-serif;
    --text-font: 'Roboto', sans-serif;
    --uhb-color: #0346B9;
    --uhg-color: #94D600;
    --uh1-color: #6D6D6D;
    --uh2-color: #AAAAAA;
    --uh3-color: #46c2ca;
    --uh-color: #9e9e9e;
    --black-color: #000000;
    --white-color: #FAFAFA;
    --carbon-color: #1f1f1f;
}

/* Nav section */

.nav_con {    
    width: 100%;
    height: 60px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 1px var(--uh2-color);
    background-color: var(--white-color);
}
.userName{
    font-family: var(--text-font);
    font-size: 14px;
    font-weight: bold;
    color: var(--uh1-color);
    margin-left: 48%;
}
.bx-user:hover{
    cursor: pointer;
}
.nav_con .nav_box {
    width: inherit;
    height: inherit;
    max-width: 1200px;
    margin: auto;
}

.nav_con .nav_box .nav_uh {
    width: inherit;
    height: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav_con .nav_box .nav_uh .logouh{
    width: 350px;    
}

.nav_con .nav_box .nav_uh .logouh img {
    width: 100%;    
    display: block;   
}
.nav_con .nav_box .nav_uh  a {
    font-size: larger;
    text-decoration: none;
    /*border: 1px solid rgba(0,0,0,0.6);*/
    box-shadow: 2px 2px 1px 1px rgba(0,0,0,0.2);
    margin-left: 20px;
    border-radius: 2px;
    -webkit-border-radius: 2px;
    -moz-border-radius: 2px;
    -ms-border-radius: 2px;
    -o-border-radius: 2px;
}
.nav_con .nav_box .nav_uh  a:hover {
    box-shadow: 4px 4px 1px 1px rgba(0,0,0,0.2);
}

.nav_con .nav_box .nav_uh span .bx-uh {
    color: var(--uh2-color);    
}

.nav_con .nav_box .nav_uh span .bx-uh.active {
    color: var(--uhg-color);    
}

/* End Nav Section */

/* Uhbanner Section */

.uhbanner {
    width: 100%;
    height: auto;    
}

.uhbanner .uhbanner_box {
    position: relative;
    width: inherit;
    height: inherit;
}

.uhbanner .uhbanner_box img {
    width: 100%;
    max-width: 100%;
    object-fit: cover;    
    height: 320px;
}

.uhbanner .uhbanner_box .banner_txt {    
    position: absolute;
    top: 50%;    
    width: 100%;
    transform: translateY(-50%);
    color: var(--white-color);
    font-family: var(--title-font);
    text-align: center;
}

/* End Uhbanner Section */

/* Main > Menu Section */

.uh_main {
    width: 100%;
    height: auto;
    min-height: 550px;
}

.mainbox {
    width: 100%;
    max-width: 90%;
    height: auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(1, 1fr);
    gap: 10px;   
    margin: 30px auto;
}

.menuuh {
    grid-column: 1 / 3;
    grid-row: 1 / 1;
    width: 100%;
    height: auto;
    min-height: 510px;    
    background-color: var(--uhb-color);
    overflow-y: auto; 
    padding: 30px 10px;
}

li.listuh {
    list-style: none;
}

li .linkuh {
    display: block;
    font-family: var(--text-font);
    font-size: 12px;    
    letter-spacing: 1px;    
    color: var(--white-color);    
    text-transform: uppercase;
    text-decoration: none;    
    padding: 5px 10px;    
    border-bottom: .7px solid var(--uh-color);    
    transition: background-color 0.3s ease-in-out;
    text-align: right;
    cursor: pointer;
}

li .linkuh:hover {
    background-color: var(--white-color);    
    color: var(--uh1-color);
}

span.span_uh {
    padding-left: 5px;
    color: var(--uhg-color);
}

/* End Main > Menu Section */

/* Main > Principal Section */

.principaluh {
    grid-column: 3 / 12;
    grid-row: 1 / 1;
    width: 100%;
    height: auto;    
}

.principaluh .principal_box {
    position: relative;       
    width: inherit;
    height: inherit;    
    margin: auto;
    border-bottom: 1px solid black;
}


/* Busqueda menuh */

.menuuh .search_uh_ra{
    display: flex;
    flex-direction: column;
    align-items:start;
    height: 50px;
    justify-content: space-around;
    margin-bottom: 10px;
    
}

.menuuh .search_uh_ra h4{
    color: var(--white-color);
}

.menuuh .search_uh_ra input {
    outline: none;
    height: 25px;
    width: 100%;
    padding: 10px;
}

.buscadormovil{
    margin-top: 10px;
    display: none;
}
.buscadormovil .search_input_movil{
    text-align: center;
    width: 80%;
}

/* End busqueda menuh */


.principaluh .principal_box .cards_uh {
    position: relative;
    width: 100%;
    height: auto;
    max-height: 770px;
    min-height: 600px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: start;
    overflow: hidden;
    gap: 10px;
    margin: auto;
    overflow-y: scroll;
    transition: 0.2s;
    -webkit-transition: 0.2s;
    -moz-transition: 0.2s;
    -ms-transition: 0.2s;
    -o-transition: 0.2s;
}

.cards_uh::-webkit-scrollbar {
    display: none;
}

.principaluh .principal_box .cards_uh .carduh:hover .titulo-carduh {
    z-index: 10;
    height: 100%;
    /* background-color: #27628a; */
    /* box-shadow: 5px 25px 4px 1px rgba(0,0,0,0.7); */
    background: rgba(8,68,188,0.9);
    font-size: 1.1em;
    padding: 20px;

    display: flex;
    /* justify-content: center; */
    align-items: center;
}

.principaluh .principal_box .cards_uh .carduh {
    border-bottom: 3px solid var(--uhg-color);
    width: 280px;
    height: 380px;
    display: grid;
    grid-template-rows: 60px 1fr;
    /*25%paraeltítulo,elrestoparalaimagen*/box-shadow: 0 0 2px 1px var(--uh2-color);
    overflow: hidden;
    position: relative;
    transition: transform .1s ease-in-out;
    -webkit-transition: transform .1s ease-in-out;
    -moz-transition: transform .1s ease-in-out;
    -ms-transition: transform .1s ease-in-out;
    -o-transition: transform .1s ease-in-out;
}

.principaluh .principal_box .cards_uh .carduh .titulo-carduh {
    background-color: var(--uhb-color);
    color: var(--white-color);
    padding: 10px;
    text-align:left;
    /*width: 70%;
    */font-family: var(--text-font);
    font-size: 0.8em;
    height: 60px;
    width: 100%;
    position: absolute;
    top: 0;
    z-index: -1;
    transition: 1.2s;
    -webkit-transition: 1.2s;
    -moz-transition: 1.2s;
    -ms-transition: 1.2s;
    -o-transition: 1.2s;
}

.principaluh .principal_box .cards_uh .carduh a {
    display: flex;
    justify-content: center;
    align-items: center;
    /* background-color: #eee; */
}

.principaluh .principal_box .cards_uh .carduh img {
    width: 88%;
    height: 88%;
    border: 2px solid #eee;
    aspect-ratio: 1 / 1;
    object-fit: cover; /* Ajustar la imagen manteniendo la proporción y cubriendo el contenedor */
}


.menuuhmb{
    display: none;
}

/* End Main Section */

/* Footer Section*/

.uhfooter_con {
    width: 100%;
    height: auto;
    background-color: var(--uh1-color);
    margin-bottom: 0;

}

.uhfooter_con .uhfooter_box {
    width: inherit;
    height: auto;
    max-width: 1200px;
    margin: auto;
}

.uhfooter_con .uhfooter_box .uhfooter_txt {
    text-align: center;    
}

.uhfooter_con .uhfooter_box .uhfooter_txt p {
    padding: 30px 0;
    font-family: var(--text-font);
    font-size: 12px;
    color: var(--white-color);
}

.uhfooter_con .uhfooter_box .uhfooter_txt p a {
    text-decoration: none;
    color: var(--uh3-color);
}

/* End footer */


/*classes from Querys*/

.oculto{
    display: none;
}

/*classes from Querys*/

@media only screen and (max-width: 1440px) {
    .principaluh .principal_box .cards_uh .carduh {
        width: 220px;
        height: 220px;
    }
    .principaluh .principal_box .cards_uh .carduh img {
        display: block;
        width: 100%;    
        aspect-ratio: 1 / 1;
        object-fit: contain;
    }
}

@media only screen and (max-width: 1024px) {
    .userName{
        margin: 0;
    }
    .uh_main{
        min-height: auto;
    }

    .principaluh {
        grid-column: 3 / 12;  
        gap: 0;
    }
    .principaluh .principal_box .cards_uh .carduh {
        font-size: 14px;
        height: auto;
        width: 45%;
        box-shadow: 2px 4px 2px rgba(0,0,0,0.6);
    }

}

@media only screen and (max-width: 768px) {
    .menuuh{
        display: none;
    }

    .buscadormovil{
        display: flex;
        justify-content: center;
        padding: 10px;
    }
    /*Menu*/
    .menuuhmb{
        display: block;
        grid-column: 1/3;
        gap: 0;
    }
    .menuuhmb .menuOpcionmb{
        list-style: none;
        margin-bottom: 5px;
        width: 70px;
        height: 70px;
    }
    .menuuhmb .menuOpcionmb img{
        width: 70px;
        height: 70px;
        border: 1px solid black;
        border-radius: 6px;
        object-fit: contain;
        -webkit-border-radius: 6px;
        -moz-border-radius: 6px;
        -ms-border-radius: 6px;
        -o-border-radius: 6px;
    }
    .menuuhmb #art_cientifico img{
        border: 1px solid #6597ee;
    }   
    .menuuhmb #cap_libro img{
        border: 1px solid rgb(216, 183, 37);
    }
    .menuuhmb #ens_cientifico img{
        border: 1px solid rgb(101, 226, 90);
    }
    .menuuhmb #congreso img{
        border: 1px solid rgb(97, 105, 97);
    }
    .userName{
        display: none;
    }
    .nav_uh a{
        display: inline-block;
        margin-right: 5px;
        margin-left: 0;
    }
    .logouh img{
        object-fit:fill;
    }
}

@media only screen and (max-width: 424px) {

    /* .principaluh .principal_box .cards_uh .carduh {
        width: 90px;
        height: 90px;
    } */
    .principaluh .principal_box .cards_uh .carduh {
        font-size: small;
        height: auto;
        width: 80%;
        box-shadow: 2px 4px 2px rgba(0,0,0,0.6);
    }
    

}
@media only screen and (max-width: 374px) {
    .menuuhmb .menuOpcionmb{
        margin-bottom: 5px;
        width: 55px;
        height: 55px;
    }
    .menuuhmb .menuOpcionmb img{
        width: 55px;
        height: 55px;
    }
    .cards_uh{
        height: 400px;
        /* display: none; */
    }
    .principaluh .principal_box .cards_uh .carduh {
        font-size: small;
        height: auto;
        width: 80%;
        box-shadow: 2px 4px 2px rgba(0,0,0,0.6);
    }
}




