@charset "utf-8";

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

* {
    box-sizing: border-box;
}

body {
    background-color: rgba(0, 137, 255, 0.1);
    margin: 0;
    font-family: "trebuchet ms", sans-serif;
    
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between
}

header,
footer {
    background-color: rgba(20, 0, 255, 0.35);
}

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

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



/* ----------- 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;
    background-color: rgba(0, 0, 0, 0.2);
    
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
}

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

nav ul li a {
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    font-weight: bold;
    text-decoration: none;
    display: block;
    text-align: center;
    padding: .125em .5em;
    border-radius: 4px;
}

nav ul li a:hover {
    background-color: white;
    color: black;
}

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

main {
    flex-grow: 1;
}

main > section {
    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 {
    border-bottom: solid .25em rgba(20, 0, 255, 0.35);
    margin-top: 0;
    padding-bottom: .25em;
}


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

#comitente {
    font-size: 1.5em;
}

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

#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: lightcoral;
    font-weight: bold;
    text-decoration: none;
    
    display: flex;
    flex-direction: column;
    align-items: center;
}

#equipo ul li a:hover {
    color: darkslateblue;
    text-decoration: underline;
}

#equipo ul li a img {
    border: solid .5em blue;
    border-radius: 50%;
    border-right-color: yellow;
    border-bottom-color: green;
    border-left-color: red;
    box-shadow: 0 .25em .25em  rgba(0, 0, 0, 0.4), 0 .25em .25em  rgba(0, 0, 0, 0.4) inset;
}



/* ----------- 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;
}


/* ----------- mapa.html ----------- */

.mapa article {
    border: solid 1px rgba(0, 0, 0, 0.5);
    margin-bottom: 1em;
    
    display: flex;
    flex-wrap: wrap;
    min-height: 50vh;

}

.mapa .elemento {
    color: white;
    font-weight: bold;
    padding: .125rem 1rem;
    text-shadow: .15rem .15rem .1rem rgba(0,0,0,.75);
    
    flex-grow: 1;
    flex-basis: 33%;
}

.mapa .item1 {
    background-color: #99D1D1;
}

.mapa .item2 {
    background-color: #4DAEAE;
    font-size: 1.2em;
}

.mapa .item3 {
    background-color: #008B8B;
    font-size: 0.8em;
    align-self: flex-end;
    order: -1
}

.mapa .item4 {
    background-color: #006161;
    font-size: 1.4em;
}

.mapa .item5 {
    background-color: #003838;
    font-size: 0.7em;
}

.mapa .item6 {
    background-color: #000E0E;
    font-size: 1.6em;
    order: 1
}


/* ***** reglas para flexbox en mapa.html ***** */

.mapa .elemento {
    display: flex;
}

.mapa .elemento p {
    margin: auto;
}