@charset "utf-8";
* { box-sizing: border-box; }

/* reglas generales */

body {
    background-color:#f0f7d1;
    font-family: roboto;
    margin: 0;
    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

a { text-decoration: none; }

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

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

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

header,
footer {
    background-color: #CCDA68;
    color: black;
    padding: .8rem;
    
}


/* encabezado */

header {
    box-shadow: 0 6px 2px #D7E1AC;
    
}

header .contenedora {
    /* caja flexible */
    display:flex;
    /* " hijos separados" */
    justify-content: space-between; 
    /* "hijos" centrados en la vertical */
    align-items: center;
     
}

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


/* menú */

header nav ul {
    /* caja flexible */
    display: flex;
    justify-content: flex-end;
    /* elementos que no caben van a otra linea */
    flex-wrap: wrap;
}

header nav ul li {
    min-width: 3rem;
    margin: .25rem 0 .25rem .25rem;
}

header nav ul li a {
    background-color: #D7E1AC;
    border-radius: .3rem ;
    color: black;
    font-weight: 400;
    font-size: 0.9rem;
    padding: .4rem .4rem;
    text-align: center;
    display: block;
    
}

header nav ul li a:hover {
    background-color: white;
    color: #542678;
}

/* botón seleccionado */
.index header nav ul li:first-child a,
.plan header nav ul li:nth-child(2) a,
.mapa header nav ul li:nth-child(3) a {
    background-color: rgba(255, 255, 255, 0.85);
    color: #542678;
}

/* *** cuerpo principal *** */

main { padding: 1rem }

section { padding-bottom: 2rem; }

/* comitente */

.comitente p {
    font-size: .9rem;
}

.tituloz {
    border-bottom: .3rem solid #73569A;
    padding-bottom: .5rem;
    font-size: 1.8rem;
    line-height: 1.7rem;
    font-family: Noto Sans JP;
    font-weight: 300;
}

/* sección equipo*/

.equipo ol {
    /* caja flexible */
    display: flex;
    /* si los "hijos" no caben,
        van a la línea siguiente */
    flex-wrap: wrap;
    /* "hijos" centrados en la horizontal */
    justify-content: space-between;
}

 /* hijos alumna */
.alumna {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.equipo img {
    border: solid .3em #7a4f90;
    border-radius: 50%;
}

.equipo figure {
    margin: 0 .8rem 0 0;
}

.equipo ol li { margin: .8rem .5rem 0 1.5rem; }

/*

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

.equipo ol li a {
    color: black;
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1.25rem;
    padding: .25rem
}

.equipo ol li a:hover {
    color: white;
    background-color: #CCDA68 ;
}

/* sección datos académicos*/

.academicos > ul > li {
    /* caja flexible */
    display: flex;
    /* si los elementos no caben, van a la siguiente línea */
    flex-wrap: wrap;
    /* elementos alineados arriba */
    align-items: flex-start;
    font-size: .8rem;

}

.academicos > ul > li:not(:last-of-type) {
    border-bottom: solid 1px rgba(0, 0, 0, 0.2);
    padding-bottom: 1.5em;
    margin-bottom: 1.5em;
}

.academicos figure {
    margin: .5rem 0;
    width: 5rem;
}

.academicos ul li{
}
.academicos > ul > li > *:first-child {
    width: 8rem;
}

.academicos h3 { 
    margin-top: 0; 
    font-size: 1rem;
    font-weight: 700;

}

/* footer */
footer p {
    font-size: .7rem;
    font-weight: 400;
}

/* *** específico para "plan.html" *** */

.plan main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.plan main > :not(:first-child) {
    width: 48%;
}

/* *** específico para "mapa.html" *** */

.mapa main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.mapa main > :not(:first-child) {
    width: 48%;
}