* {
    box-sizing: border-box;
}
body {
    margin: 0;
    color: hsl(0, 0%, 0%);
    background-color: hsl(0 0% 95%);
    font-family: Roboto;
    padding-top: 60px;
  }
main section p{  
    margin-top: auto;
    font-size: medium;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
}

h1 {
    text-decoration: none;
    color: #373af7;
    font-size: 2em;
}
h2 {
    text-decoration: none;
    color: #050505;
    font-size: 1.2em;
}
h3 {
    text-decoration: none;
    color: #000000;
    font-size: 1em;
}

img {
    max-width: 100%;
}

body header div img{
    max-width: 100%;
}

header div img{
    width: 70px;
    display: block;
}

header,
footer {
    box-shadow: 0/* desplazamiento horizontal */
        4px /* desplazamiento vertical */ 
        15px /* desenfoque */
        hsl(0 0% 0% / 20%) /* color */;
    background: rgb(55,58,247);
    background: linear-gradient(90deg, rgba(55,58,247,1) 0%, 
    rgba(55,58,247,1) 45%, rgba(55,58,247,1) 100%);
    color: hsl(0, 0%, 100%);
}

header {
    position:fixed;
    width: 100%;
    top:0;
}
header nav ul {
    margin-block: 0;

}
header nav a {
    color: #373af7;
    display: block;
    width: 6em;
    padding-block: 0.25em .5em;
    text-align: center;
    text-transform: uppercase;
    color: white;
}
    /*ajuste para resolución menor*/

@media (max-width:578px) {
    Body{
        margin-top: 60px;
    }
}

@media (max-width:463px) {
    Body{
        margin-top: 100px;
    }
}

@media (max-width:239px) {
    Body{
        margin-top: 185px;
    }
}

main section a {
    display: block;
    width: 9em;
    padding-block: 0.5em .5em;
    border-radius: 100vw;
    text-align: center;
    
}

header nav a:hover{
    background-color: #ffffff;
    color: #373af7;
}
main section a:hover{
    background-color: #ffffff;
    color: #373af7;
}

#Boton{
    margin-top: 2rem;
    background-color: #373af7;
    color: white;
}
#Boton:hover{
    background-color: white;
    color: #373af7;
    outline: solid 2px #373af7;
}

main section a{
  color: #fdfdfd;
  outline: none;
  border-radius: 0%;
}
a {
    text-decoration: none;
    color: hsl(0, 0%, 0%);
}


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

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

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

.equipo article {
    background-color: #373af7;
    margin-block: .5em;
    padding: 1em;
    border-radius: .25em;
    box-shadow: 0/* desplazamiento horizontal */
    4px /* desplazamiento vertical */ 
    15px /* desenfoque */
    hsl(0 0% 0% / 20%) /* color */;
}

.individual article{
    margin-block: .5em;
    padding: 1em;
    border-radius: .25em;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
    gap: 1rem;
    
}


.academicos {
    margin-block: .5em;
    padding: 1em;
    border-radius: .25em;
    
}
.academicos article {
    margin-block: .5em;
    padding: 1em;
}
.academicos img {
    width: 150px;
    max-width: 100%;
    margin-bottom: 0rem;
    margin-top: 0rem;
}
.Perfil img {
        width: 230px;
        max-width: 100%;
        border-radius:2%;
    }
    

 /* ////////////////////////////////////////////*/


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: 1em;
}
      
      /* menu horizontal */

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

.equipo section ul {
    display: grid;
    grid-template-columns: 
    repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
    gap: 1rem;
    justify-items: center;
}

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

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

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

#redes {
    display: flex;
    gap: 1rem;
    justify-items: center;
    width: 100px;
}
