@font-face {
    font-family: PlayfairDisplay;
    src: url(../fuente/Playfair_Display/PlayfairDisplay-VariableFont_wght.ttf) format('woff');
  }

@font-face {
    font-family: helvetica;
    src: url(../fuente/helvetica/Helvetica.ttf) format('woff');
}

*{
    font-family: PlayfairDisplay;
    line-height: 1.4;
}

body{
    margin: 0;
    scroll-behavior: smooth;
}

#container{
    height: 100vh;
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
}

.section{
    height: 100vh; 
    scroll-snap-align: start;
}

.movil{
    display: none;
}

.linkMus{
    color: teal;
    text-decoration: none;
}

.linkGala{
    color: orange;
    text-decoration: none;
}

.linkNiebla{
    color: darkblue;
    text-decoration: none;
}

#main{
    position: relative;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    background-color: #FAF9F6;
}

#header{
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: end;
    margin-top: 5vh;
    margin-right: 5vw;
    background-color: #FAF9F6;
}

#globoMain {
    position: absolute;
    width: 15vw;
    top: 20%;
    left: 10%;
    transform: translate(-50%, -50%);
    transition: transform 0.5s linear;
}

.boton{
    padding: 0px 20px ;
    font-size: 20px;
    color:#555555;
}

.pointer:hover{
    cursor: pointer;
}

.boton:hover{
    opacity: 80%;
    cursor: pointer;
}

.boton:active{
    opacity: 50%;
}

#info{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: end;
    background-color: #FAF9F6;
}

#separacionInfo{
    width: 10px;
}

#cicloImg{
    width: 65vw;
    padding-left: 2vw;
}
#cicloText{
    width: 25vw;
    color: #1c1c1c;
    font-size: 28px;
    padding-right: 2vw;
    padding-bottom: 5vh;
}

#videoteca{
    background-image: url("../img/fondovinos.gif");
    background-size: cover;
    display: flex;
    align-items: center;
    flex-direction: column;
    color:  #FAF9F6;
    position: relative;
}

.secondHeader{
    width: 90vw;
    font-size: 32px;
    display:flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    flex-direction: row;
    margin-top: 5vh;
}

.cicloIcon{
    width: 50px;
}

#sliderVinoteca{
    width: 60vw;
    height:80vh;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    font-size: 40px;
}

#sliderContent{
    width: 100vw;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin: 20px;
}

#currentCicloText{
    font-family: helvetica;
    width:25vw;
    height: fit-content;
    font-size: 20px;
    text-align: left;
}

#currentCicloText h1{
    font-size: 35px;
}

.sliderButtons:hover{
    cursor: pointer;
    transform: scale(0.9);
    opacity: 60%;
}

.sliderButtons:active{
    cursor: pointer;
    transform: scale(1.1);
    opacity: 10%;
}

.sliderMostrarVinoIz{
    animation: sliderMostrarVinoIz 1s 1;
    animation-fill-mode: forwards;
}

.sliderOcultarVinoIz{
    animation: sliderOcultarVinoIz 1s 1;
    animation-fill-mode: forwards;
}

.sliderMostrarVinoDer{
    animation: sliderMostrarVinoDer 1s 1;
    animation-fill-mode: forwards;
}

.sliderOcultarVinoDer{
    animation: sliderOcultarVinoDer 1s 1;
    animation-fill-mode: forwards;
}

@keyframes sliderMostrarVinoIz{
    0%{transform: scale(0.8,0.8); right: 30%; opacity: 0;}
    100%{transform: scale(1,1); right: 0%; opacity: 1;}
}

@keyframes sliderOcultarVinoIz {
    0%{transform: scale(1,1); left: 0%; opacity: 1;}
    100%{transform: scale(0.8,0.8); left: 30%; opacity: 0;}
}

@keyframes sliderMostrarVinoDer{
    0%{transform: scale(0.8,0.8); left: 30%; opacity: 0;}
    100%{transform: scale(1,1); left: 0%; opacity: 1;}
}

@keyframes sliderOcultarVinoDer {
    0%{transform: scale(1,1); right: 0%; opacity: 1;}
    100%{transform: scale(0.8,0.8); right: 30%; opacity: 0;}
}

#proyectos{
    background-color: #FAF9F6;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    position: relative;
}


#contentProyectos{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-around;
    align-items: start;
    height: 45vh;
}

.flexRowButtons{
    width: 90vw;
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
    justify-content: start;
}

.botonesProyectos{
    font-size: 40px;
    border-radius: 25px;
    padding: 15px 10px;
    width: 550px;
}

.botonesProyectos:hover{
    cursor: pointer;
    transform: scale(0.9);
    opacity: 0.8;
}

.botonesProyectos:active{
    cursor: pointer;
    transform: scale(1.1);
    opacity: 0.5;
}

#galaProyectos{
    background-image: url("../img/gala.png");
    background-size: cover;
}
#musProyectos{
    background-image: url("../img/mus.png");
    background-size: cover;
}
#becasProyectos{
    background-image: url("../img/niebla.png");
    background-size: cover;
}

#museoProyectos{
    background-image: url("../img/museo.png");
    background-size: cover;
}

#cicloMascota{
    position: absolute;
    bottom: 0px;
    right: 2vw;
    width: 50vw;
}


.popUp{
    position: absolute;
    overflow: hidden;
    width: 100%;
    height: 100%;
    z-index: 15;

    display: flex;
    flex-direction: column;
    align-items: center;

    transform: scale(0);
}

#galaPopUp{
    background-color: #ffd425;
}
.contentGala{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    height: fit-content;
    width: 100%;
}

.contentGala:nth-child(even){
    flex-direction: row-reverse;
}

.textGala{
    align-items: center;
    width: 40vw;
    height: fit-content;
    text-align: left;
    padding-bottom: 40px;
    font-size: 20px;
    font-family: helvetica;
    padding-bottom: 40px;

}

.imagenGala{
    width: 40vw;
    padding-bottom: 40px;
}

.cicloVideo{
    width: 40vw;
    padding-bottom: 40px;
}

#trailerCicloIV{
    margin-top: 40px;
    margin-bottom: 20px;
    width: 40vw;
}

#musPopUp{
    background-color: #46ff36;
}

.contentMus{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    padding-bottom: 40px;
}

.contentMus:nth-child(even){
    flex-direction: row-reverse;
}

.textMus{
    width: 40vw;
    text-align: left;
    padding-bottom: 40px;
    font-family: helvetica;
    font-size: 20px;
}

#musHeader{
    width: 30vw;
}

.imgMus{
    width: 40vw;
    padding-bottom: 40px;
}

#nieblaPopUp{
    background-color: #77f0ff;
}

.contentNiebla{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
    padding-bottom: 40px;
}

.contentNiebla:nth-child(odd){
    flex-direction: row-reverse;
}

.textNiebla{
    width: 40vw;
    text-align: left;
    padding-bottom: 40px;
    font-family: helvetica;
    font-size: 20px;
}

.imgNiebla{
    width: 40vw;
    padding-bottom: 40px;
}

#ciclofix{
    position: absolute;
    overflow: hidden;
    width: 100%;
    height: 100%;
    z-index: 15;
    display: flex;
    justify-content: center;
    align-items: center;
    background: black;
}

#imgCicloFlix{
    width: 20vw;
}

.showPopUp{
    /* animation: showPopUp 1s 1;
    animation-fill-mode: forwards; */
    transform: scale(1);
    opacity: 1;
}
.hidePopUp{
    /* animation: hidePopUp 1s 1;
    animation-fill-mode: forwards; */
    transform: scale(0);
    opacity: 0;
}

/* @keyframes showPopUp{
    0%{transform: scale(0); opacity: 0;}
    100%{transform: scale(1); opacity: 1;}
} */

/* @keyframes hidePopUp{
    0%{transform: scale(1); opacity: 1;}
    100%{transform: scale(0); opacity: 0;}
} */

.closePopUp:hover{
    cursor: pointer;
    transform: scale(0.9);
    opacity: 0.8;
}

.closePopUp:hover{
    cursor: pointer;
    transform: scale(1.1);
    opacity: 0.5;
}

#videotecaTitulo{
    color: #ff0f0f;
}
@media only screen and (max-width: 1025px) {
    .movil{
        display: none;
    }

    #main{
        justify-content: space-between;
    }
    #header{
       margin-top: 5.625vh;
    }

    #info{
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin-bottom: 12vh;
    }
    
    #cicloImg{
        width: 90vw;
        padding-left: 0vw;
        margin-bottom: 40px;
    }
    #cicloText{
        width: 90vw;
        color:#1c1c1c;
        padding-right: 0vw;
        font-size: 20px;
    }

    #sliderVinoteca{
        width: 95vw;
        height:50vh;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        font-size: 40px;
        margin-top: 10vh;

    }
    #sliderContent{
        width: 100vw;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
        position: relative;
        margin: 20px;
    }

    #currentCicloImg{
        height: 50vh;
    }
    #currentCicloText{
        width:95%;
        height: fit-content;
        text-align: center;
        font-size: 13px;
        text-align: left;
    }

    #currentCicloText h1{
        margin-block-end: 0.32em;
        font-size: 23px;
    }

    #cicloMascota{
        position: absolute;
        bottom: 0px;
        right: 0px;
        left: 0px;
        width: 98vw;
        max-width: 550px;
        max-height: 40vh;
        margin:auto;
    }
    
    .botonesProyectos{
        font-size: 25px;
        border-radius: 25px;
        padding: 15px 10px;
        width: fit-content;
        min-width: 90vw;
    }

    .flexRowButtons{
        justify-content: center;
    }

    #contentMus{
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        height: 70vh
    }
    
    #logoMus{
        width: 60%;
    }

    #textMus{
        width: 90vw;
        text-align: center;
    }

    #contentNiebla{
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        height: 70vh
    }   

    #textNiebla{
        width: 90vw;
        text-align: center;
        margin-bottom: 40px;
    }
    
    .cicloIcon{
        width: 40px;
    }

    .tituloHeader{
        font-weight: bold;
        font-size: 30px;
    }

    #contentProyectos{
        height: 40vh;
    }

    .secondHeader{
        margin-bottom: 5vh;
    }

    
    .contentGala:nth-child(even){
        flex-direction: row;
    }
    
    .textGala{
        width: 90vw;
        font-size: medium;
    }
    
    .imagenGala{
        width: 100vw;
    }
    
    .cicloVideo{
        width: 90vw;
    }

    .contentMus:nth-child(even){
        flex-direction: row;
    }
    
    .textMus{
        width: 90vw;
        font-size: medium
    }
    
    .imgMus{
        width: 90vw;
    }

    #imgCicloFlix{
        width: 80vw;
    }

    #musHeader{
        width: 90vw;
    }

    #trailerCicloIV{
        width: 90vw;
    }

    #globoMain {
        width: 40vw;
    }
}

@media only screen and (min-width: 1025px) {
    #currentCicloImg{
        height: 70vh;
    }
    .contentNiebla{
        margin-top: 2vh;
    }
}

.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 70%;
    margin: 0 auto;
    margin-bottom: 10%;
}

.polaroid {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    perspective: 1000px;
    cursor: pointer;
}

.polaroid img {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    transition: transform 0.6s;
}

.polaroid .back {
    transform: rotateY(180deg);
}

.polaroid.flipped img:first-child {
    transform: rotateY(180deg);
}

.polaroid.flipped .back {
    transform: rotateY(0deg);
}

@media (max-width: 768px) {
    .gallery {
        display: flex;
        flex-direction: column;
        gap: 40px;
        max-width: 90%;
    }

    .polaroid {
        width: 100%;
        padding-bottom: 100%;
    }
}



#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FAF9F6;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }
  
  #loading-logo {
    width: 100px;
    height: 100px;
    animation: spin 2s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }

  