/**********         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 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%;
    /* 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: 200rem;*/
    background-color: #ffffff;
}


/* Sirve para delimitar el espacio y centrarlo en pantallas grandes */

.contenedor {
    max-width: 120rem;
    margin: 0 auto;
    display: block;
    position: relative;
    width: 100%;
    float: none;
}


/* Que cada imagen se ajuste al tamaño máximo que tenga el contenedor padre */

img {
    max-width: 100%;
}


/* Remarcar texto */

.bold {
    font-weight: 700;
    font-size: 1.8rem;
}


/* El contenido de la clase no se mostrará */

.none {
    display: none !important;
}

.ocult {
    display: block;
}


/* Id la imagen logo se mantiene responsiva con los cambios del viewport width */

#imagenlogo {
    height: 4vw;
}


/* Id de texto a la izquierda */

#align-left {
    text-align: left;
}

#separacion-letras {
    letter-spacing: 1rem;
    background-color: #ffffff;
}

#oculto {
    display: none;
}

#color-mem {
    color: #9d181d;
    font-weight: 700;
}

#color-mass {
    color: #F2D404;
}


/**************     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/fondo_nosotros1.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;
}

.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: 2.2rem;
    /* 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;
    z-index: 2;
}


/* 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: 10vw;
    }
    /* 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: 24px;
        right: -90%;
        color: #575757;
        font-size: 2.2rem;
        /* 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: 1.5rem;
        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;
    }
    #oculto {
        display: unset;
    }
}

@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;
    }
}


/** .encabezado-principal Corresponde al texto principal **/

.encabezado-principal {
    /* Margen con la barra de navegación */
    margin-top: 5vh;
    /* Se alinea al centro */
    text-align: center;
    /* Tiene un tamaño responsive */
    font-size: 4.5vw;
    /* Color correspondiente a las partituras antíguas */
    color: #000000;
    /* Separación entre lineas */
    /*line-height: 2;*/
    /* Fuente usada */
    font-family: 'EB Garamond', serif;
    /* Fuente de reserva*/
    /*font-family: 'Amatic SC', cursive;*/
}

main .cont-hist {
    margin-bottom: 2rem;
}

main .cont-hist:last-of-type {
    margin-bottom: 0;
}

main .cont-hist:first-child {
    margin-top: 10rem;
}

.cont-hist {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    height: 40vw;
    overflow: hidden;
}

.cont-hist img {
    display: flex;
    height: auto;
    width: 40vw;
    height: 30vw;
    -webkit-transition: all .4 s ease-in-out;
    -moz-transition: all .4s ease-in-out;
    -o-transition: all .4s ease-in-out;
    -ms-transition: all .4s ease-in-out;
    transition: all .4s ease-in-out;
}

.cont-hist img:hover {
    transform: scale(1.1);
}

.cont-hist img:nth-child(1) {
    width: 45vw;
}

.cont-texto-hist {
    font-size: 1.5vw;
    max-width: 45vw;
    text-align: right;
}

.cont-texto-hist p {
    margin: 0;
    margin-top: 2vw;
    line-height: 3vw;
    max-width: 90%;
}

.cont-hist:nth-child(2) .cont-texto-hist:nth-child(2) {
    text-align: unset;
    text-align: left !important;
}

.site-header {
    text-align: center;
}

.site-header h1 {
    margin: 0;
    margin-top: 0.5rem;
}

.imagenheader {
    text-align: center;
    width: 50%;
    height: auto;
    display: inline-block;
}

.titulo::before,
.titulo::after {
    content: "";
    display: inline-block;
    width: 12vw;
    height: 0.4vw;
    background-color: black;
    vertical-align: super;
}

.titulo {
    margin-top: 2vw !important;
}

.galeria {
    margin-top: 2vw !important;
}

.cd-mem::before,
.cd-mem::after {
    content: "";
    display: inline-block;
    width: 8vw;
    height: 0.4vw;
    background-color: black;
    vertical-align: super;
}

.cd-muro::before,
.cd-muro::after {
    content: "";
    display: inline-block;
    width: 4vw;
    height: 0.4vw;
    background-color: black;
    vertical-align: super;
}

.cd-muro {
    margin-top: 10rem;
}

@media(max-width:425px) {
    .cont-hist {
        height: 100vh;
    }
}

@media(max-width:768px) {
    .cont-hist {
        text-align: center;
        align-items: center;
        flex-direction: column;
        height: 120vw;
    }
    .cont-hist img {
        height: 60vw;
        width: 100%;
        display: initial;
    }
    .cont-hist img:hover {
        transform: scale(1.02);
    }
    .cont-texto-hist {
        text-align: center;
        max-width: 80vw;
        font-size: 3vw !important;
    }
    .cont-texto-hist p {
        line-height: 2;
        max-width: 100%;
    }
    .none {
        display: flex !important;
    }
    .ocult {
        display: none !important;
    }
    .algo {
        width: 95vw;
    }
    .cont-hist img:nth-child(1) {
        width: 80vw;
    }
    .cont-hist:nth-child(2n) .cont-texto-hist:nth-child(2n) {
        text-align: unset;
        text-align: center !important;
    }
    .videos-mem {
        padding-top: 0 !important;
        flex-direction: column !important;
        height: 80vw !important;
        align-items: center !important;
        justify-content: space-around !important;
    }
    .videos-mem iframe {
        width: calc(80% - 3rem) !important;
        height: 50% !important;
        padding: 1rem;
    }
    .galeria {
        width: 100%;
        padding: 3vw;
    }
}

@media(max-width:1024px) {
    .cont-texto-hist {
        font-size: 2vw;
    }
    .cont-texto-hist p {
        margin-top: 0vw !important;
    }
}

.algo {
    text-align: center;
    overflow: hidden;
}

.lista-memories {
    margin-top: 4rem;
    padding: 0rem;
    list-style: none;
}

.lista-memories div li {
    float: center;
    width: calc(33.3% - 3rem);
    padding: 1rem;
    text-align: center;
}

.lista-memories div li img {
    width: 90%;
    /*height: 40rem;*/
    border-radius: 2rem;
}

.lista-memories div {
    display: flex;
    align-items: center;
    justify-content: center;
}


/*.infor-mem{
    padding: 2rem 4rem;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}*/

.infor-mem {
    padding: 2rem 4rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1vw;
    justify-items: center;
}

.infor-mem img {
    /*grid-column: 2 / 4;*/
    height: 28vw;
}

.infor-mem p {
    padding: 1rem;
    text-align: justify;
    /* Tiene un tamaño responsive */
    font-size: 1.5vw;
    color: #000000;
    /* Separación entre lineas */
    line-height: 2;
    /* Fuente usada */
    font-family: 'EB Garamond', serif;
    height: 23vw;
    width: calc(33%-1rem);
}

.infor-mem p:first-of-type {
    grid-column: 1 / 3;
}

@media (max-width:768px) {
    .infor-mem {
        grid-template-columns: repeat(1, 1fr);
        justify-items: center;
        row-gap: 1rem;
    }
    .infor-mem img {
        grid-column: unset;
        height: 70vw;
    }
    .infor-mem p:first-of-type {
        grid-column: unset;
        height: 115vw;
    }
    .infor-mem p {
        font-size: 3.5vw;
        padding: unset;
        height: 35vw;
        margin-bottom: 5vw;
    }
}

.infor-mas {
    padding: 2rem 4rem;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.infor-mas p {
    padding: 1rem;
    text-align: justify;
    /* Tiene un tamaño responsive */
    font-size: 1.5vw;
    color: #000000;
    /* Separación entre lineas */
    line-height: 2;
    /* Fuente usada */
    font-family: 'EB Garamond', serif;
    max-width: 40rem;
}

.videos-mem {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    height: 23vw;
    padding-top: 2rem;
    /*padding-bottom: 2rem;*/
}

.videos-mem iframe {
    width: calc(40% - 3rem);
    height: 100%;
}

@media(max-width:767px) {
    .lista-memories div li {
        width: 80%;
    }
    .lista-memories div {
        flex-direction: column;
    }
}

.lista-maseros {
    margin-top: 4rem;
    padding: 0rem;
    list-style: none;
}

.lista-maseros div li {
    float: center;
    width: calc(40% - 3rem);
    padding: 1rem;
    text-align: center;
}

.lista-maseros div li img {
    width: 100%;
    /*height: 40rem;*/
    border-radius: 2rem;
}

.lista-maseros div {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}

@media(max-width:768px) {
    .lista-maseros div {
        flex-direction: column;
    }
    .lista-maseros div li {
        float: center;
        width: calc(80% - 3rem);
        padding: 1rem;
        text-align: center;
    }
    .infor-mas {
        flex-direction: column;
    }
    .infor-mas p {
        font-size: 3.5vw;
        margin: 0;
    }
}

#reductor {
    width: 70%;
}


/******** footer ***********/

.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;
    }
}