@charset "utf-8";

*{box-sizing:border-box;}

body {
    font-family: lato;
    color: black;
    margin: 0;
    background-color: whitesmoke;
}

p{
    line-height: 1.6;
}

p,
li,
figcaption {
    text-wrap: pretty;
    list-style: none;
}

p:first-child,
li:first-child {
    margin-block-start: 0;
}

p:first-child,
li:first-child {
    margin-block-end: 0;
}


h1 {
    color: purple;
font-size: 1.5em;
}

h2 {
    text-decoration: none;
color: gold;
font-size: 1.2em;
}

h3 {
    text-decoration: none;
    color: black;
    font-size: 1em;
}

h4 {
text-decoration: none;
color: purple;
}

img {
    max-width: 100%;
}


figure {
    margin: 0;
}

figure img {
    display: block;
}

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


.contenedora{
    width: min(65rem, calc(100% - 3rem));
    margin-inline:  auto;
    padding: 1rem;
}

header, footer {
    background-color: rgb(251, 255, 8);
    color: black;
}


header {
    box-shadow: 0 4px 4px hsl(0, 0%, 0% / 20%); 
}




#logo {
    display: block;
    border-radius: .2rem;
    width: 12rem;
    padding: .25rem .1rem;
    background-color: rgb(255, 255, 255);
}

#logo img {
    display: block;
    padding: .5rem .75rem;
    width: 100%;
}


header nav ul {
    margin-block: 0;
}



header nav li {
    margin-block-start: .5rem;
}


header nav  a {
    color: rgb(255, 255, 255);
    background-color: rgb(92, 40, 116);
    font-weight: bold;
    display: block;
    width: 6em;
    padding: .25em .5em;
    border-radius: 60vw;
    text-align: center;
}

header nav a:hover,
header nav a:focus-visible,
.index nav li:first-of-type a,
.plan nav li:nth-of-type(2) a,
.mapa nav li:nth-of-type(3) a {
    background-color: rgb(255, 255, 255);
    color: purple;
    outline: none;
}

.contenedora {
    max-width: 55rem;
    margin-inline: auto;
}


.titulo {
    border-block-end: 5px solid rgb(251, 255, 8);
    padding-block-end: .45rem;
    margin-bottom: 2em;
}



.academicos > ul > li:not(:last-of-type) {
    border-bottom: solid 1px rgb(92, 40, 116);
    padding-block-end: 1.5rem;
 margin-block-end: 1.5rem;
}

.academicos img {
    display: block;
    width: 8em;
    aspect-ratio: 1;
    object-fit: contain;
    background-color: rgb(251, 255, 8);
    padding: .5rem;
    border-radius: .45rem;
    box-shadow: 0 4px 4px transparent;
}


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

.academicos h3 { 
    margin-top: inherit; 
}

.equipo img {
    size-adjust: auto;
    width: 150px;
    max-width: 100%;
    border-radius: 10%;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

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

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

.materias {
    display: grid;
    justify-content: center;
    grid-template-columns: 3fr 1fr;;
}
.cursadas li {
    display:block;
    background-color:gold; 
    color: #ffffff; 
    text-align: center;
    margin-bottom: 0.5em;
    padding:0.2em; 
} 
.linea p{
    color:#000000
}

.linea {
    border-right: solid;
    margin-right: 1em;
    padding-right: 1em;
    color: gold;
}
.materias img {
    size-adjust: auto;
    width: 150px;
    max-width: 100%;
    border-radius:10%;}

.materias ul {
    margin-top: 0;
}

.encurso {
    margin-top: 1.5em;
}

.datos ul {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}

footer p {
    margin-block-end: 0;
}



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

header  {
    display: grid;
    grid-template-columns: 10rem 1fr;
    gap: 2rem;
    align-items: center;
}

header *,
header nav ul li {
    margin: 0;
}

header nav ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(5rem,1fr));
    gap: .5rem;
    width: min(100%, 75rem);
    margin-inline-start: auto;
}
