html{
    height: -webkit-fill-available;
}

@charset "utf-8";

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 0;
    font-size: 100%;
    vertical-align: baseline;
}
img {
    width:100%;
}

body{
    background-color: lightyellow;
    font-family: sans-serif;
    display: flex;
    flex-direction:column;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    justify-content: space-between;
    
}

ul{
    list-style: none;
    margin: 0;
    padding: 0;
}

li {
    display: list-item;
    text-align: center;
    
}

header{
    background-color: green;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 1em;
   
}

#logos {
    display: flex;
    width: 100%;
    max-width: 18em;
    justify-content:space-around;
    align-items: center;
    /* flex-direction: column;*/
    flex-wrap: wrap;
    margin: 1em;   
}

.logodgpc {
    width: 5em;
}

.logofadu {
    width: 10em;
}

.foto {
    width: 15em;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    box-sizing: border-box;
    align-items: center;
    text-align: center;
    max-width: 40em;
    flex-direction: column;
}
.foto {
    margin: 1em 1em 1em 1em; 
}


nav {
    display: block;
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    box-sizing: border-box;
    align-items: center;
    max-width: 40em;
    flex-direction: column;
}
nav ul li {
    display: flex;
    max-width: 20em;
    max-height: 7em;
    justify-content: center;
    margin-bottom: 0.2em;
}

nav ul li a {
    width: 12em;
    height: 2em;
    background-color: darkseagreen;
    color: ghostwhite;
    display: flex;
    justify-content: center;
    align-items:center;
    flex-direction: column;
    text-decoration: none;
    border-radius: .25rem;
    text-align: center;
    padding: 1em;
    /*margin-bottom: 0.25em;*/
}

header nav ul li a {
    width: 30em;
}
ul li a:hover {
    background-color: green;
    color: ghostwhite;
}

main {
    padding: 1em;
    justify-content: center;
}

main .foto {
    width: 15em;
    height: auto;
    margin: auto;
    margin-bottom: 1em
    
    
}

#infopersonal .foto img {
    height: 50vw;
    width: 50vw;
    max-height: 15em;
    max-width: 15em;
    width: auto;
    margin: 0 0 0.2em 0;
}

h2 {
    margin-bottom: .1em;
    text-align: center;
    color: green;
    font-size: 1.5em;
}

h3 {
    color: darkseagreen;
    margin-bottom: 1em;
}

#nombres {
    margin:0;
    justify-content: center;
    max-width: 30em;
    text-align: center;

}

h4 {
    border-bottom: 1px solid;
    border-bottom-color: green;
    padding-bottom: .8em;
    margin-bottom: .8em;
    text-align: center;
}

.datosacademicos ul {
    margin: 0 0 1em 0; 
}



#comitente {
    display: flex;
    padding: 1em;
    margin-bottom: .2em;
}

#comitente h3, #comitente h2 {
    color: green;
    text-align: left;
}

#comitente h4 {
    border-bottom: none;
    text-align: left;
    font-size: 1.5em;
    margin: 0;
}

footer {
    margin: 0;
    padding: 2em;
    background-color: green;
    color: white;
}


@media screen and (min-width: 992px) {
    
   /* header {
        flex-direction: row;
        justify-content: space-between;*/
    
    #logos {
        justify-content: space-around;
        flex-direction: row;
        align-items: center;
        flex-wrap: nowrap;
    }
    
    nav ul{
        flex-direction: row;
        justify-content: space-around;
        max-width: 100%;
     
    }
    header {
        padding: 0.5em;
    }
    header nav ul li a{
        width: 8em;
        margin: 1em
    }

    main {
        margin-left: 15em;
        margin-right: 15em;
        justify-content: center;
        flex-direction: row;
    }
    
    main #sobremi {
        margin-left: 17.5em;
        margin-right: 17.5em;
        justify-content: center;
    }
    
    #tps {
        margin-left: 5em;
        margin-right: 5em;
    }
    
    #tps nav ul {
        justify-content: space-around;
    }
    
    #tps nav ul li a {
        width: 10em;
    }
    
    #comitente {
        margin-left: 4em;
        margin-right: 4em;
    
    }
    
    #nombres {
        margin-left: 17.5em;
        margin-right: 17.5em;
        
    }
    
    #nombres h4 {
        padding-bottom: .1em;
        
    }
    
    #nombres nav ul {
        flex-direction: column;
        
    }