/* ----------- reglas generales y modulos ----------- */

* {
    box-sizing: border-box;
}

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


header,
footer {
    background-color: crimson;
}

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

.contenedor { display:flex; }

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

#descripcion {
    margin: 1.5em; 
}
main > section > h1,
main > section > h2 {
    border-bottom: solid .25em rgb(255, 0, 0);
    margin-top: 2;
    padding-bottom: .25em;
    color: black;
    margin: 1em;
    
}

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

#equipo ul li a:hover {
    color: #E82626;
    text-decoration: none;
}

#equipo ul li a img {
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
    border: solid .5em black;
    border-radius: 50%;
    border-right-color: black;
    border-bottom-color: black;
    border-left-color: black;
    box-shadow: 0 .25em .25em  rgba(0, 0, 0, 0.4), 0 .25em .25em  rgba(0, 0, 0, 0.4) inset;
    margin-bottom: .65em;
}

#equipo ul li a:hover img {
    -webkit-filter: grayscale(0%);
    transition: all .4s ease;
    filter: grayscale(0%);
    border: solid .5em #E82626;
    border-radius: 50%;
    box-shadow: 0 .25em .25em  rgba(0, 0, 0, 0.4), 0 .25em .25em  rgba(0, 0, 0, 0.4) inset;
    
}


/* ----------- main/comitente ----------- */
#comitente {
    font-size: 1em;
}
/* ----------- 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;
}


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


header, footer, main, body, section {
    width: 90%;
    margin: 20px auto;
    max-width: 1000px;
}

body {
    background-color: #ffb0b0;
    font-family: 'Montserrat', sans-serif;
}

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

a {
    text-decoration: none;
    color: white
}

section div a {
    color:#ff7979;
}

.uba {
    background: rgba(255, 255, 255, 0.92);
    padding: 2em;
    border-radius: 10px;
    font-size: 12px;
    box-shadow: 4px 4px 15px 0px rgba(0,0,0,0.3);
}

.dgpc {
    background: #fcfcfc;
    padding: 2em;
    border-radius: 10px;
    font-size: 12px;
    box-shadow: 4px 4px 15px 0px rgba(0,0,0,0.3); 
}

h2 {
    color: white;
}

footer {
    background: #ffffff;
    color:#ff0000;
    padding: 1em;
    font-size: 8pt;
    border-radius: 10px;
    box-shadow: 4px 4px 5px 0px rgba(0,0,0,0.2);
}
.deportes {
    margin: 2em
}

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