@charset "utf-8";

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "trebuchet ms", helvetica, sans-serif;
    background-color: #FBDCD1;
}

header {
    display: block;
}
header, footer {
    background-color:#4661AA;
    color: white;
}

.contenedora {
    display: flex;
    max-width: 75rem;
    margin: 0 auto;
    padding: 2rem;
}

header .contenedora {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: justify;
    align-content: center;
    flex-wrap: nowrap;
} 

#logo {
    background-color: white;
    border-radius: .35em;
    padding: .35em;
    width: 8em;    
}

img {
    max-width: 100%;
    height: auto;
    align-content: center;
}

header nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

header nav ul li {
    min-width: 4em;
    margin: .25em 0 .25em .25em;
}

header nav ul li a {
    background-color: white;
    border-radius: .25em;
    color:#4661AA;
    font-weight:bolder;
    padding: .25em .5em;
    text-align: center;
    display: block;
    text-transform: uppercase;
}
ul, ol {
    list-style: none;
    padding: 0;
}

li {
    display: list-item;
    text-align: -webkit-match-parent;
}

nav {
    display: block;
}

a {
    text-decoration: none;
}

h1 {
    border-bottom: .1em solid #5C4695;
    color:#5C4695;
    text-transform: uppercase;
    margin-inline-start: 1em;
    margin-inline-end: 1em;
    font-weight: bold;
    margin-bottom: 0em;
}
.mio {
    background-color:#90A0CC;
    border-radius: .35em;
    margin: 2em;
    padding: 1em;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

ol {
    display: block;
    list-style: none;
    padding: 0;
}

.mio ol li {
    margin: .5em 0;
    border-radius: .25em;
}

.mio ol li > *:not(p) {
    display: block;
    text-align: center;
    margin: 0 auto;
}

.mio img {
    width: 25%;
    height: auto;
    justify-content: center;
    border: solid .35em #5C4695;
    border-radius: 1em;
}

.nombre {
    padding-top: 1em;
    font-size: 2em;
}   

p {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    font-size: 1.25em;
    margin-inline-start: 1em;
    margin-inline-end: 1em;
}

li {
    text-align: -webkit-match-parent;
    display: list-item;
    text-align: -webkit-match-parent;
}

.equipo article {
    background-color:#90A0CC;
    border-radius: .35em;
    margin: 0.5em;
    padding: 1em;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
}

.equipo img {
    background: white;
    border: solid .2em #5C4695;
    border-radius: 25em;
    box-shadow: 0 5px 5px rgb(0 0 0 / 20%), 0 5px 5px rgb(0 0 0 / 20%) inset;
    width: 7.5em;
    max-width: 70%;
    height: auto;
}

article > div {
    width: calc(100% - 9em);
    min-width: 10em;
}

h3 {
    display: block;
    font-size: 1.17em;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
}
.equipo article a {
    background-color:white;
    border-radius: .25rem;
    color:#90A0CC;
    font-weight: bold;
    line-height: 1.25em;
    padding: .125em 1em;
}

.equipo article div p {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-size: 1em;
}
ul {
    display: block;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    padding-inline-start: 0em;
}

ul ul {
    margin-block-start: 0px;
    margin-block-end: 0px;
}

.academicos > ul > li:not(:last-of-type) {
    border-bottom: .1rem solid #5C4695;
    padding-bottom: .9em;
    margin-bottom: .9em;
}

.academicos > ul > li > *:first-child {
    margin-right: 2em;
    width: 12em;
}

.academicos > ul > li {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.academicos img {
    width: 12em;
    height: auto;
}

.contenedora.academicos {
    display: block;
    max-width: 75rem;
    margin: 0 auto;
    padding: 1rem;
}

.academicos h3 {
    margin-top: 0;
}

h2, h3, h4, p {
    margin-bottom: 1em;
}

@media(max-width: 50em) {
    header div {
        display: flex;
        flex-direction: column;
    }
    
    .academicos > ul > li {
        display: flex;
        padding: 1rem;
    }

    .academicos > ul > li > div {
            width: calc(100% - 10em);
    }
    h1{
        width: 100%;
    }    
    .equipo {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        justify-content: space-around;
    }
    .equipo article {
        width: calc(50% - .5em);
        align-items: center;
        justify-content: space-around
    
    }
    .equipo article div {        
        display: flex;
        flex-direction: column;
        height: 100%;
    }
    .equipo article div a {
        align-items: center;
        display: flex;
    }
    .equipo article h3 {
        text-align: center;
    }
    .equipo article div p {
        text-align: center;
    }
}      