/* ----------- general ----------- */

body {
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    color: #0D1E3A;
    background-color: white;
}

* {list-style: none;
    text-decoration: none;
    padding: 0;
    margin: 0}

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

main {
    margin-top: 160px;
    margin-right: 8%;
    margin-left: 8%;
}

main a {background-color: #0D1E3A;
color: white;}

main a:hover {
  background-color: #a1b3dd;
color: #0D1E3A;
}

/* ----------- z-index ----------- */

header {z-index: 999;}

#historia {z-index: 990;}

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

#header_iniciosesion {box-shadow: none;}

header {
    height: 100px;
    box-sizing: border-box;
    background-image: url(../imagenes/fondo-header.jpg);
    background-repeat: no-repeat;
    background-position: right;
    background-color: #0D1E3A;
    padding: 0 10%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: fixed;
    width: 100%;
    top: 0px;
    box-shadow: 1em 0em .6em 2.5rem rgba(161, 179, 221, 0.29);
}

header > div {
display: flex;
align-items: center;
color: white;
font-size: 1.2em;
width: 50%;}

header > div > h5 {margin-left: .8em;}

header nav {display: flex;
    align-items: center;
}

header nav i {
background-color: white;
padding: .1em;
margin-bottom: .8em;
}

header nav > a {background-color: white;
margin-right: .5em;
padding: .2em .2em;}

header nav > a:hover {background-color: #a1b3dd;}
header nav i:hover {background-color: #a1b3dd;}

/* ----------- menu desplegable ---------- */

[type="checkbox"]:not(:checked),
[type="checkbox"]:checked {
    display: none;
}

#menudesplegable:checked + #hamburguesa,
#menudesplegable:not(:checked) + #hamburguesa + #menuabierto {
    display: none;
}

.desplegado {
top:-50em;
width: 40%;
position: absolute;
right: 0;
height:100vh;
}

#menudesplegable:checked + #hamburguesa + #menuabierto + .desplegado {
    top:0em;
    height: 100vh;
    box-sizing: border-box;
    margin-top: 100px;
    padding: 1em .8em 2em .8em;
    background-color: #a1b3dd;
}

#menudesplegable:checked + #hamburguesa + #menuabierto + .desplegado li {
    padding: .5em 0 .5em 0;
    border-bottom: solid .1em;
    border-bottom-color: white;
}

#menudesplegable:checked + #hamburguesa + #menuabierto + .desplegado #cerrarsesion {font-size: .8em;
font-style: italic;
margin-top: 1em;
border-bottom: none;
}

#menudesplegable:checked + #hamburguesa + #menuabierto + .desplegado h3 {font-size: 1.2em;
padding-bottom: 2em;
}

#menudesplegable:checked + #hamburguesa + #menuabierto + .desplegado li a{
    color: #0D1E3A;
    display: block;
}

#menudesplegable:checked + #hamburguesa + #menuabierto + .desplegado li:hover {
    background-color: white;
}

.material-icons{
color: #0D1E3A;
}

.desplegado img {border-radius: 10em;}

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

#historia li a {padding: .2em .5em;
border-radius: .8em;}

#historia p {margin: 0 .5em;
color: #0D1E3A;
font-weight: 400;}

#historia ul {display: flex;}

#actual a {background-color: #a1b3dd;
color: #0D1E3A;}

#historia {
    box-sizing: border-box;
    padding: 2.5% 8% 2.5% 8%;
    font-size: .8em;
    position: fixed;
    top: 100px;
    right: 0;
    width: 100%;
    background-color: rgba(161, 179, 221, 0);
}


/* ----------- inicio de sesion ----------- */

label {
    margin: 1.5em 0 .5em 0;
    display: flex;
    font-weight: 700;
    font-size: 1.2em;
}

input {
    width: 100%;
    padding: .5em 1em;
    font-size: 1em;
    border-radius: .5em;
    border: solid .1em #a1b3dd;
}

button{
    width: 45%;
    margin-top: 3em;
    padding: .3em 1.2em;
    background-color: #0D1E3A;
    color: white;
    border: none;
    border-radius: 1em;
    font-size: 1em;
    font-weight: 700;
}


button:hover {background-color: #a1b3dd;
color: #0D1E3A;}

form {margin-bottom: 1.5em;}


#registrarse {
background-color: white;
color: #0D1E3A;
text-decoration: underline}

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

#principal p {font-weight: 700;
padding-top: .8em;
margin-bottom: .8em;}

h1{
    margin-top: 1.2em;
    padding-bottom: .25em;
    border-bottom: solid 0.1em #a1b3dd;
    font-size: 1.8em;
    }

#principal img {margin-top: 1em;}

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

main .contenedor_deportes,
main .contenedor_media
{border: solid 0.12em #a1b3dd;
border-radius: 2em;
padding: 4% 6% 6% 6%;
margin: 1.5em 0;}

main .contenedor_deportes {border: solid .095em #0D1E3A;}

main .contenedor_deportes h2 {border-bottom: solid 0.078em #0D1E3A;}

h2 {font-size: 1.2em;
padding-bottom: .2em;
border-bottom: solid 0.078em #a1b3dd;}

main .contenedor_deportes a,
main .contenedor_media a,
main #principal a {
padding: .25em .5em;
border-radius: 1em;
font-size: .88em;}

main .contenedor_deportes p,
main .contenedor_media p
{margin: .5em 0em .8em 0em;}

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

h3 {font-size: 1em;
margin-top: .6em;}

.noticiaprincipal, .noticiasecundaria>div {
background-color: #a1b3dd;
border-radius: 1em;
margin: 0 3% 3% 0;
padding: 2% 5%;
}

.noticias p {font-size: .8em;}

.noticias .noticiasecundaria {display: flex;}

.noticiaprincipal>p, .noticiasecundaria>div>p {font-style: italic;}

figure>a {background-color: rgba(255, 255, 255, 0);}

.noticias a:hover {
  background-color: white;
}

/* ----------- mensajeria ----------- */

main #contenedor_mensajeria {
display: flex;
flex-direction:column;
align-content: flex-start;
width: 85%;
background-color: #a1b3dd;
border-radius: 1em;
padding: 1em;
margin: -1em;
margin-top: 1em;
margin-bottom: 3em;
}


#contenedor_mensajeria [type="text"] {
border: 0.2em solid #0D1E3A;
border-radius: 2em;
padding: 0.2em;
padding-left: 0.5em;
margin-bottom: 2em;
margin-top: 1em;
width: 40%;
}

#mensajeria textarea {
border: 0.2em solid #0D1E3A;
border-radius: 1.8em;
padding: 0.5em;
width: 80%;
height: 100%; 
padding-top: 0.7em;
padding-left: 0.5em;
margin-bottom: 2em;
}

#mensajeria .button {
color: white;
background-color: #0D1E3A;
font-size: 0.8em;
margin-left: 0.3em;
padding: 0.6em;
border-radius: 2em;
margin-top: 2em;
margin-bottom: 1em;
width: 20%;
}

#mensajeria #dato_mensajeria p {
font-size: 0.7em;
font-style: oblique;
margin-bottom: 0.3em;
color: #0D1E3A;
width: 80%;

}

/* ------------ pop up ----------- */

#mensajeria .box {
border-radius: 1em;
margin-top: 2em;
}

#mensajeria .button {
margin-top: 2em;
background-color: aliceblue;
padding: 0.5em;
font-family: 'Roboto', sans-serif;
color: #0D1E3A;

}

#mensajeria .button:hover {
background-color: #0D1E3A;
color: aliceblue;

}

#mensajeria .overlay {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
background: rgba (0,0,0,0.2);
transition: opacity 500ms;
visibility: hidden;
opacity: 0;
}

#mensajeria .overlay:target {
visibility: visible;
opacity: 1;
}

#mensajeria .popup {
background-color: aliceblue;
color: #0D1E3A;
align-content: center;
margin-top: 11em;
margin-left: 5em;
margin-right: 5em;
padding: 2em;
width: 45%;
height: 12%;
align-self: center;
position: relative;
transition: all 5s ease-in-out;
}

#mensajeria .popup h1 {
border-bottom: none;
margin-top: 0.3em;
margin-bottom: 0.4em;
font-size: 1.5em;

}

#mensajeria .popup .close {
position: absolute;
top:1em;
right: 1em;
transition: all 20ms;
font-size: 1.5em;
border-radius: 2em;
padding-left: 0.2em;
padding-right: 0.2em;
}


#mensajeria .content {
display: block;
font-size: 0.9em;
}


/* ----------- institucional ----------- */

main .contenido_institucional {
    margin-top: 1.5em;
}

main .contenido_institucional p {margin-top: .6em;}

main .contenedor_institucional {border: solid 0.12em #a1b3dd;
border-radius: 2em;
padding: 4% 6% 6% 6%;
margin: 1.5em 0;}

.contenedor_institucional h2,
.contenido_institucional h2 {font-size: 1.2em;
padding-bottom: .2em;
border-bottom: solid 0.078em #a1b3dd;}

main .contenedor_institucional a,
main #principal a {
padding: .25em .5em;
border-radius: 1em;
font-size: .88em;}

main .contenedor_institucional p {margin: .5em 0em .8em 0em;
font-size: .95em;}

/* ----------- contacto ----------- */

.mapa iframe {
    width: 75vw;
    height: auto;
    margin-top: 1em;
}

main .contenido_institucional li {display: flex;
align-items: center;
margin-top: .8em;}

main .contenido_institucional a {
margin-left: .8em;
padding: .25em .5em;
border-radius: 1em;}

/* ----------- footer ----------- */

footer {background-color: #a1b3dd;
color: #0D1E3A; 
font-size: .8em;
padding: 4% 10%;
margin-top: 10%;
display: flex;
justify-content: space-between;
}

#footer_google{
    padding-right: 7.4%;
    border-right: solid 0.1em #0D1E3A;
}

#footer_google p {margin-bottom: .8em;}

#footer_redes p {margin-bottom: .8em;}

#redes {display: flex;}

#redes li {padding-right: .8em;}


/* ----------- responsive ----------- */

@media (min-width: 38em) {
    
    #responsive {
        display: flex;
        justify-content: space-around;
    }
    
    #responsive > section {width: 34%;
    height: auto;}
    
    main {margin-left: 12%;
    margin-right: 12%;}
    
    footer {padding: 3% 12%}
    
    #footer_google{
        padding-right: 30%;}
    
    header {padding: 0 12%}
    
    #historia {padding: 2% 12%;}

}

@media (min-width: 56em) {
    
    main {margin-left: 20%;
    margin-right: 20%;
    margin-top: 180px;}
    
    footer {padding: 2% 20%}
    
    #footer_google{
        padding-right: 32%;}
    
    header {padding: 0 20%}
    
    #historia {padding: 1% 20%;}
    
    .noticiaprincipal figure {display: flex;
        margin-bottom: 1em;
    }
    
    .noticiaprincipal figure img {margin-right: 1em;}
    
    .desplegado {width: 30%;}

}