@charset "utf-8";

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

* {
    box-sizing: border-box;
}

body {
    background-color: #BC3636;
    margin: 0;
    font-family: 'Roboto Condensed', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: space-between
}

header,
footer {
    background-color: #F34747;
}

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

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

.redes,
main {
    max-width: 50rem;
    margin: 0 auto;
    padding: 0;
}

.footerfin,
footer > section {
    max-width: 50rem;
    margin: 0 auto;
    padding: 1rem;
    font-size: 1.0em;
    font-family: 'Barlow Condensed', sans-serif;
    text-transform: uppercase;
    color: white;
}



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

header > div.contenedor {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    height: 7em;
}

header > div.contenedor img {
}

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

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #F34747;
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap;
    width: 100%;
}

nav ul li {
    flex-basis: 24.5%;
    margin-right: 1%;
    position: relative;
}

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: 6px;
}

nav ul li a:hover {
    background-color: white;
    color: black;
    transition: all .4s ease;
}

header > div.redes {
    display: flex;
    justify-content: flex-end;
    margin-top: -3em;
    margin-bottom: 0.5em;
    position: relative;
    clear: right;
}

redes {
    padding-right: 1.6em;
    padding-top: 0.5em;
}

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

redes ul li a:hover {
    -webkit-filter: brightness(120%);
    filter: brightness(120%);
    transition: all .4s ease;
}

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

main {
    flex-grow: 1;
}

main > section {
    background-color: white;
    border: solid 1px #A99E9E;
    border-radius: 2rem;
    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 {
    font-family: 'Anton', sans-serif;
    border-bottom: groove .25em gray;
    margin-top: 0;
    padding-bottom: .25em;
}


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

#comitente {
    font-size: 1.2em;
}

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

#mapa {
    font-size: 1.2em;
}

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

#plan {
    font-size: 1.2em;
}

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

#equipo ul {
    margin: 0 1em;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

#equipo ul li {
    margin: 2% 1em;
    max-width: 25%;
}

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

#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: 8%;
    max-width: 175%;
    object-fit: cover;
    object-position: center center;
}

#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;
    object-fit: cover;
    object-position: center center;
}



/* ----------- 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: .9em;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1);
    margin-top: 1em;
    padding: 1em;
}

#pertenencia > ul > li > ul > li {
    list-style:disc;
}