
/* ----------- reglas generales y módulos ----------- */

* {
    box-sizing: border-box;
}

body {
    background-color: lightblue;
    margin: 0;    
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between;
    font-family: 'helvetica' sans;

}

header,
footer {
    background-color: #5B8E8C;
}

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

.contenedor,
main > section {
    max-width: 50rem;
    margin: 0 auto;
    padding: 1rem;
}

a {
    font-weight: 600;
}


/* ----------- header ----------- */

header > div.contenedor {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav {
    width: 100%;
    margin-left: 1em;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: .25em;    
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}

nav ul li {
    flex-basis: 24.5%;
}

nav ul li a {
    background-color: lightblue;
    color: white;
    text-decoration: none;
    display: block;
    text-align: center;
    padding: .125em .5em;
    border-radius: 2px;
    margin: 2px;
}

nav ul li a:hover {
    background-color: white;
    color: #5B8E8C;
}

/* ----------- main ----------- */

main {
    flex-grow: 1;
}

.seccion{
    background-color: white;
    border: solid 1px lightblue;
    border-radius: 1rem;
    box-shadow: 0 2px 2px 2px rgba(0, 0, 0, 0.125);
    margin-top: 1em;
    margin-bottom: 1em;
    width: calc( 100% - 2rem );
}

main > section > h1,
main > section > h2 {
    margin-top: 0;
    padding-bottom: .25em;
}

main > section > h1 {
    font-family: 'helvetica', bold;
    font-size: 2rem;
}


/* ----------- main/comitente ----------- */

#comitente {
    font-size: 1rem;
}

/* ----------- main/equipo ----------- */

#primero, #segundo{
    padding: 1em;
    margin-bottom: 1em;
    border-radius: 8px;
    font-size: .8em;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    width: 100%;
    color: darkblue;
}

h3{
    color: darkblue;
    font-size: 1rem;
}

h2{
    padding-left: 1em;
    font-size: .8em;
}

a{
    color: lightblue;
}

a:hover{
    color: darkblue;
}

figcaption{
    font-size: .8em;
    text-align: center;
}

img{
    border-radius: 10px;
}

#equipo ul {
    margin: 0;
    padding: 0;
    list-style: none;
    
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#equipo ul li {
    margin: 1em;
}

#equipo ul li a {
    color: lightblue;
    font-weight: bold;
    text-decoration: none;    
    display: flex;
    flex-direction: column;
    align-items: center;
}

#equipo ul li a:hover {
    color: #5B8E8C;
}




/* ----------- main/pertenencia ----------- */

#pertenencia > ul {
    list-style: none;
    padding: 0;
    margin-bottom: 0;
}

#pertenencia > ul > li {
    border: solid 1px rgba(0, 0, 0, 0.25);
    border-radius: .5em;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    margin-top: 1em;
    padding: 1em;
}
