* {
    box-sizing: border-box;
}
body {
    margin: 0;
    color: hsl(0, 0%, 0%);
    background-color: hsl(0, 0%, 100%);
    font-family: Verdana, sans-serif;
}
main section p {  
    margin-top: 0;
    font-size: medium;
}

h1 {
    text-decoration: none;
    color: #e84624;
    font-size: 2em;
}
h2 {
    text-decoration: none;
    color: #f56217;
    font-size: 1.2em;
}
h3 {
    text-decoration: none;
    color: #030100;
    font-size: 1em;
}
h4 {
    text-decoration: none;
    color: #e84624;
    font-size: 1.5em;
}

img {
    max-width: 100%;
}

header div img {
    width: 100px;
    display: block;

}

header,
footer {
    box-shadow: 20px 8px 20px hsl(0 0% 0% / 20%);
    background-color: #e84624;
    color: hsl(0, 0%, 100%);
   
}

header nav ul {
    margin-block: 0;
}

header nav a {
    color: hsl(0 0% 100%);
    background-color: #e8a726;
    display: block;
    width: 6em;
    padding-block: 0.25em .5em;
    border-radius: 10px;
    text-align: center;
    outline: none;
}

.equipo a,
.sobremi a {
    color: hsl(0, 0%, 100%);
    background-color: #e8a726;
    display: block;
    width: 9em;
    padding-block: 0.5em .5em;
    border-radius: 10px;
    text-align: center;
    outline: none;
}

header nav a:hover,
main .equipo a:hover,
main .sobremi a:hover,
main .academicos img:hover {
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
    background-color: #e87624;
    color: #ffffff;
}

main .sobremi img {
    background-color: #e8d826;
}

a {
    text-decoration: none;
    color: hsl(0, 100%, 100%);
}

ul, ol {
    list-style: none;
    padding: 0;
}

.contenedora {
    max-width: 65rem;
    margin-inline: auto;
    padding: 1rem;
    padding-block: 1.5em;
}

.titulo {
    border-block-end: 4px solid #e8d826;
    padding-block-end: .35rem;
}

.sobremi article {
    background-color: hsla(54, 55%, 74%, 0.15);
    margin-block: .5em;
    padding: 1em;
    border-radius: .25em;
}

.academicos {
    margin-block: .5em;
    padding: 1em;
    border-radius: .25em;
}
.academicos article {
    background-color: hsla(54, 55%, 74%, 0.15);
    margin-block: .5em;
    padding: 1em;
    border-radius: .25em;
}
.academicos img {
    width: 150px;
    margin-bottom: 0rem;
    margin-top: 0rem;
        border: 2px solid #e87624;
        border-radius: 8px;
    }
    
.sobremi img {
    width: 400px;
    border-radius: 10%;
    margin-bottom: 1rem;
    margin-top: 1rem;
    border: 4px solid #e87624;
}

.sobremi .image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

body {
    min-height: 100dvh;
    display: grid;
    grid-template-rows: auto 1fr;
}

header .contenedora {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2em;
}

header nav ul {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.equipo ul {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}
.sobremi ul {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: left;
    flex-direction: column;
}

footer .contenedora p {
    margin-block: 0;
}

.datos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
    gap: 1rem;
}

.materias {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap; 
}

.materias div {
    flex: 1;
    flex-wrap: wrap;
}

.materias ul {
    margin: 0;
    padding: 0;
    line-height: 2;
}