@charset "utf-8";

@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600&display=swap');

/* *** "reseteo" *** */

* { box-sizing: border-box; }

/* *** reglas generales *** */

body {
    margin: 0;
    font-family: "montserrat", "trebuchet ms", helvetica, arial, sans-serif;
}

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

a { text-decoration: none; }

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

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

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

header,
footer {
    background-color: #5c919d;
    color: white;
    padding: 1rem;
}

/* *** encabezado *** */

header {
    box-shadow: 0 4px 2px rgba(0, 0, 0, 0.25);
}

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

#logo {
    background-color: #f3f5f6;
    border-radius: .20em;
    padding: .35em;
    width: 9em;
}


/* *** menu *** */

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

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

header nav ul li a {
    display: block;
    background-color: #296471;
    border-radius: .15em ;
    color: #f3f5f6;
    font-weight: bold;
    padding: .45em .7em;
    text-align: center;
}

header nav ul li a:hover {
    background-color: #95bdcc;
    color: #296471;
}

/* 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: #f3f5f6;
    color: #5c919d;
}

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

main { padding: 1em;
background-color:#f3f5f6;
}

section { padding-bottom: 2rem; }

section:first-of-type { font-size: 1.35em }

.tituloz {
    border-bottom: .3rem solid #275a41;
    padding-bottom: .5em;
    font-family: "montserrat", helvetica, arial, sans-serif;
    color: #275a41;
    font-weight: 600 
}

.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: center;
    
}

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

.equipo ol li { margin: .6em; }

.equipo ol li > * {
    display: block;
    text-align: center;
    margin: auto;
}

.equipo ol li a {
    border-radius: .25rem;
    color: #275a41;
    margin-top: .25rem;
    font-size: 1.15em;
    font-weight: bold;
    line-height: 1.25em;
}

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

.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;
    
}

.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 img {
    width: 12em;
    height: auto;
}

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

.academicos h3 { margin-top: 0; }
