/**********         Css Pag Principal Sim           **********/


/**********         Autor : Izan Llopis Martínez    **********/


/***** Variables para todo el documento     *****/


/** Paul Irish padding + margin calc in all space **/

*,
*:before,
*:after {
    box-sizing: inherit;
}


/**  Para todas las selecciones     **/


/**::selection{
    color: #b6956b;
}*/


/** Para toda la etiqueta html      **/

html {
    /* Fin código Paul Irish */
    box-sizing: border-box;
    /* Scroll mas suave */
    scroll-behavior: smooth;
    /* Ocupe toda la altura del documento */
    height: 100%;
    /* Ocupe toda la anchura del documento */
    width: 100%;
    /* Todo el fondo tendrá color blanco */
    background-color: #ffffff;
}


/** Para todo el codigo     **/

body {
    /*box-sizing: inherit;*/
    /*background: rgba(255,255,255,0.8);;*/
    /* Default font-family */
    font-family: 'Roboto', sans-serif;
    /* Fondo para toda la pagina inicio */
    /*background-image: url(../images/fondo12-1.jpg);*/
    /* Ocupe como minimo toda la altura de la página */
    min-height: 100vh;
    /* No se expanda en el eje x */
    overflow-x: hidden;
    /* Calculo para que 10 px == 1 rem*/
    /* default font-size 16 px * 0.625 = 10 px*/
    font-size: 62.5%;
    /*background: linear-gradient(0deg, rgba(25,25,25,1) 0%, rgba(255,255,255,1) 100%);*/
    /*background: radial-gradient(circle, rgba(162,162,162,1) 0%, rgba(255,255,255,1) 100%);*/
    /* Si el tamaño del espacio es mas grande que la foto,
        el espacio sobrante no repetirá la imagen*/
    /*background-repeat: no-repeat;*/
    /* Tamaño de la imagen 2000px */
    /*background-size: 210rem;*/
}


/* Que cada imagen se ajuste al tamaño máximo que tenga el contenedor padre */

img {
    max-width: 100%;
}


/* Id la imagen logo se mantiene responsiva con los cambios del viewport width */

#imagenlogo {
    height: 4vw;
}


/**************     barra       *************/


/* Ancho de toda la barra */

::-webkit-scrollbar {
    width: 1rem;
}


/* Barra-Track */

::-webkit-scrollbar-track {
    background: #999999;
    /*border-radius: 0.5vw;*/
    box-shadow: inset 0 0 0.5vw grey;
}


/* Barra-Handle */

::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 0.3vw;
}


/* Barra-Handle on hover */

::-webkit-scrollbar-thumb:hover {
    background: #222;
}


/**************     header      ************/


/* Contenedor principal del Header*/

.site-header {
    /* Imagen para el header */
    background-image: url(../images/imagensim12.jpg);
    /*La imagen no se repita tanto en el eje-x como el eje-y*/
    background-repeat: no-repeat;
    /* La imagen se centra no en el contenedor, sino ella misma */
    background-position: center;
    /* La imagen ocupa todo el contenido del padre */
    background-size: cover;
    /* El header ocupa toda la altura del dispositivo */
    height: 100vh;
    /* Posicion la que le es asignada naturalmente */
    position: relative;
}


/* @media(max-width:900px){
    .site-header{
        background-image: url(../images/prova_movil2.jpg);
        background-position: center;
        background-size: contain;
    }
}
 */

.navbar {
    /* La barra de navegación tome todo el ancho disponible */
    width: 100%;
    /* Color de fondo de la barra de navegación: blanco con transparencia */
    background: rgba(255, 255, 255, 0.8);
    /* Display flex para organizar los elementos*/
    display: flex;
    /* Separar los elementos lo máximo posible */
    justify-content: space-between;
    /* Los elementos se centraran verticalmente */
    align-items: center;
    /* Todo el contenedos tendrá un espaciado de 1rem en top y bottom y 3rem en left y right*/
    padding: 0.5vw;
    /* El margen y el padding están incluidos en el tamaño inicial del contenedor*/
    box-sizing: border-box;
}

.navbar a {
    margin-left: 2vw;
}

@media(max-width:768px) {
    .navbar {
        padding: 2vw;
    }
}

@media(max-width:768px) and (max-height:400px) {
    .navbar {
        padding: 1vw;
    }
}


/* Normalmente el icono de bars & close estarán ocultos */

.icon,
.close-btn {
    /* No se mostrará el contenido de los iconos */
    display: none;
    /* Tienen un tamaño de 22 pixeles*/
    font-size: 5vw;
    /* Al situarse encima de los iconos el cursor cambiará */
    cursor: pointer;
}


/* lista no ordenada que contiene los links de la barra de navegación*/

.links {
    /* Ordenar/Organizar los elementos*/
    display: flex;
    /* La dirección es en fila */
    flex-direction: row;
    /* Los links se muestran con un espaciado entre cada uno de los links */
    justify-content: space-evenly;
    /* Al tratarse de una lista, se elimina el icono característico */
    list-style: none;
}


/* Cada elementro de la ul tiene margen-right */

.links li {
    margin-right: 2.4rem;
}


/* Cada elemento de del la lista (hipervinculo)*/

.links li a {
    /* Eliminar subrayado típico de los enlaces*/
    text-decoration: none;
    /* Color de los enlaces */
    color: #575757;
    /* Espaciado entre las letras */
    letter-spacing: -0.5px;
    /* Tamaño de los enlaces */
    font-size: 1.5rem;
}


/* Al situarse encima de los enlaces toman un color negro */

.links li a:hover {
    color: #000000;
}


/* Fondo negro backdrop */

.backdrop {
    /* No se muestra el contenido */
    display: none;
    /* Cuando aparezca tendrá una pequeña animación */
    animation: 0.4s ease-in-out fadein forwards;
    /* Posición absoluta, para definir que ocupa el backdrop */
    position: absolute;
    /* definición posición */
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    /* Color de fondo negro, que se volverá un poco transparente al iniciarse la animación */
    background-color: rgba(0, 0, 0, 0);
    /* Al situarse encima del "fondo" el cursor cambiará */
    cursor: pointer;
}


/* Animación de cambio de transparencia */

@keyframes fadein {
    to {
        background-color: rgba(0, 0, 0, 0.8);
    }
}


/* Al cambiar el tamaño máximo del dispositivo a 768 px */

@media (max-width:768px) {
    /* La imagen del logo se muestra más grande */
    #imagenlogo {
        height: 8vw;
    }
    /* Los iconos de barras y cerrar se mostrarian */
    .icon,
    .close-btn {
        display: block;
    }
    /* El icono de barras se situa 24px a la derecha */
    .icon {
        position: absolute;
        right: 2.4rem;
    }
    /* Los enlaces se ocultan */
    .links {
        display: none;
        /* Situamos los enlaces ocupando todo el espacio disponible menos un 10%
            por la parte izquierda para que se vea el backdrop */
        position: absolute;
        top: 0;
        height: 100%;
        width: 90%;
        right: -90%;
        background-color: #ffffff;
        /* La distrubucion de los enlace ahora es en forma de columna y centrada*/
        flex-direction: column;
        justify-content: center;
        text-align: center;
        /* Los enlaces se mostrarán por encima de todo */
        z-index: 2;
        transition: 0.3 ease-in-out;
    }
    /* Cada elemento de la lista al estar en forma de columna
        no necesita un margen a la derecha, sino un margen vertical*/
    .links li {
        margin-right: 0;
        margin-bottom: 3rem;
        font-size: 2rem;
    }
    /* El ultimo hijo no necesita un margin bottom */
    .links li:last-of-type {
        margin-bottom: 0rem;
    }
    /* El boton de cerrar no se muestra en general, solo si le hemos dado al boton de barras*/
    .close-btn {
        display: none;
        /* Situamos el boton donde se situaria el boton de barras */
        position: absolute;
        top: 10px;
        right: -90%;
        color: #575757;
        font-size: 5vw;
        /* El icono de cerrar se situa por encima de los enlaces */
        z-index: 3;
        transition: 0.3s ease-in-out;
    }
    /* Al situarse encima del boton de cerrar, se cambia el color a negro y el cursor */
    .close-btn:hover {
        color: #000000;
        cursor: pointer;
    }
    /* Al activarse la clase .open los links se situal a la parte derecha */
    .open .links {
        right: 0px;
    }
    /* Al activarse la clase .open el boton de cerrar se muestra en pantalla */
    .open .close-btn {
        right: 2.4rem;
        top: 3vw;
        display: block;
    }
    /* Al activarse la clase .open los enlaces tienen un display flex */
    .open .links {
        display: flex;
    }
    /* Al activarse la clase .open el backdrop se muestra */
    .open .backdrop {
        display: block;
    }
    /* Por defecto la unordered list tiene margenes por todos los ejes, margin:0; los elimina */
    ul {
        margin: 0;
    }
}

@media(max-width:768px) and (max-height:400px) {
    .links li {
        margin-bottom: 4vh !important;
    }
}

@media(max-width:750px) {
    .links li {
        margin-bottom: 2rem !important;
    }
}

@media(max-width:426px) {
    .links li {
        margin-bottom: 3rem !important;
    }
}

@media(max-width:750px) and (max-height:400px) {
    .links li {
        margin-bottom: 4vh !important;
    }
}

.bandajove {
    display: flex;
    flex-direction: row;
    /*width: calc(80%);
    justify-content: center;*/
    margin: 5vw;
    justify-content: space-evenly;
}

.container {
    margin-left: 5%;
    margin-right: 5%;
}

.foto-text {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.center {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.foto-text img {
    width: 29vw;
    height: 20vw;
    margin-bottom: 2vw;
    box-shadow: 0px 0px 33px -1px rgba(0, 0, 0, 0.55);
    transition: all 0.2s ease-in-out;
}

.foto-text p {
    font-size: 1.3vw;
    margin-top: 0;
    width: 27vw;
    text-align: justify;
}

.foto-text1 {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.foto-text1 img {
    width: 40vw;
    height: 30vw;
    margin-bottom: 2vw;
    box-shadow: 0px 0px 33px -1px rgba(0, 0, 0, 0.55);
    transition: all 0.2s ease-in-out;
}

.foto-text1 p {
    font-size: 1.3vw;
    margin-top: 0;
    width: 37vw;
    text-align: justify;
}

.especial {
    display: none;
}

.especial2 {
    width: 80vw !important;
}

@media(max-width:768px) {
    .especial {
        display: unset;
    }
    .especial2 {
        display: none;
    }
    .foto-text img,
    .foto-text1 img {
        width: 80vw;
        height: 55vw;
    }
    .foto-text p,
    .foto-text1 p {
        font-size: 3vw;
        line-height: 1.4;
        width: 77vw;
    }
    .bandajove {
        flex-direction: column;
    }
    .img-banda-jove {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .img-banda-jove img {
        width: 40vw;
    }
    .inf-banda-jove {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    .inf-banda-jove1 p {
        font-size: 3vw;
    }
    .inf-banda-jove2 p {
        font-size: 3vw;
    }
}

.foot {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 2vw;
}

.enlaces {
    display: grid;
    grid-template-columns: repeat(4, 10vw);
    column-gap: 5vw;
    text-align: center;
    justify-items: center;
    padding: 1rem;
    margin-bottom: 2vw;
}

.enlaces a {
    text-decoration: none;
    color: #575757;
    font-size: 2vw;
}

.enlaces a:hover {
    color: black;
}

.imagen-footer {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    text-align: center;
    margin-bottom: 2vw;
    align-items: inherit;
}

.imagen-footer img {
    height: 10vw;
}

@media(max-width:768px) {
    .imagen-footer img {
        height: 13vw;
        width: 30vw;
    }
    .enlaces a {
        font-size: 3vw;
    }
}

@media(max-width:425px) {
    .imagen-footer img {
        height: 13vw;
    }
}

.imagen-footer h3 {
    font-size: 1.3vw;
}

.social-media {
    display: flex;
    justify-content: center;
    padding: 2vw;
}

.social-media a {
    text-decoration: none;
    margin-right: 5vw;
}

.social-media i {
    color: grey;
    font-size: 3.5vw;
}

@media(max-width:768px) {
    .social-media i {
        font-size: 6vw;
    }
    .imagen-footer h3 {
        font-size: 3vw;
    }
}

.social-media a:last-of-type {
    margin-right: 0;
}

.social-media a i:hover {
    color: black;
}

.social-media a:nth-child(1) i:hover {
    color: cornflowerblue;
}

.social-media a:nth-child(2) i:hover {
    color: red;
}

.img-fed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 2vw;
    padding: 0rem 2rem;
    justify-items: center;
}

.img-fed img {
    height: 5vw;
    margin-bottom: 5vw;
}

@media(max-width:768px) {
    .img-fed img {
        height: 8vw;
    }
}