* {

    box-sizing: border-box;
    margin: 0px;
    padding: 0px;
    scroll-behavior: smooth;

}


/* Hero section */

#hero {
    height: 100vh;
    width: 100%;

}

#hero .hero-container {


    background: url(../assets/hero/hero-bg.png);
    background-size: cover;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
}

#hero .hero-container .logo {

    height: 60px;
    margin: 0px 0px 40px 30px;
}

#hero .hero-container .logo2 {

    height: 400px;
    margin: 50px;
}

#hero .hero-container a {
    width: 500px;
    margin: 50px;
    animation: scaleAnimation 2.5s infinite alternate;
}

#hero .hero-container a img {
    width: 100%;
}

/* secret animation */

@keyframes scaleAnimation {
    0% {
        transform: scale(1);
        /* Escala inicial */
    }

    100% {
        transform: scale(1.1);
        /* Escala final (puedes ajustar el valor para controlar el agrandamiento) */
    }
}


/* History Section */

#history-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100vh;
    background-image: url('../assets/history/history.png');
    background-size: cover;
}

#history-section .logo2 {
    height: 200px;
    margin: 90px auto 80px;
}

#history-section p {

    max-width: 830px;
    color: white;
    text-align: center;
    margin: 0px auto;
    font-size: 1.3rem;
    line-height: 1.3;
}


/* Wines Section */

#wines-section {

    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    background: url(../assets/wines-section/wines-section-bg.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}


#wines-section .winesLogo {

    display: flex;
    justify-content: center;
    margin: 100px auto;
}

#wines-section .winesLogo img {

    height: 100px;
    width: 200px;

}

#wines-section .winesSectionContainer {

    display: grid;
    justify-content: center;
    grid-template-columns: repeat(auto-fill, minmax(485px, 485px));
    margin: auto 20px;

}

#wines-section .winesSectionContainer .wine-container {

    position: relative;
    height: 485px;
    width: 485px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    overflow: hidden;

}

#wines-section .winesSectionContainer .wine-container:nth-child(1) {
    background-image: url(../assets/wines-section/wine-1.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;

}

#wines-section .winesSectionContainer .wine-container:nth-child(2) {
    background-image: url(../assets/wines-section/wine-2.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

#wines-section .winesSectionContainer .wine-container:nth-child(3) {
    background-image: url(../assets/wines-section/wine-3.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;

}

#wines-section .winesSectionContainer .wine-container:nth-child(4) {
    background-image: url(../assets/wines-section/wine-4.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;

}

#wines-section .winesSectionContainer .wine-container:nth-child(5) {
    background-image: url(../assets/wines-section/wine-5.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;

}

#wines-section .winesSectionContainer .wine-container:nth-child(6) {
    background-image: url(../assets/wines-section/wine-6.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;

}

#wines-section .winesSectionContainer .wine-container a,
#wines-section .winesSectionContainer .wine-container span {
    opacity: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
    transform: translateX(-100%);
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);

}

#wines-section .winesSectionContainer .wine-container:hover a,
#wines-section .winesSectionContainer .wine-container:hover span {
    opacity: 1;
    transform: translateX(0);
    text-decoration: none;

}

.textWinesContainer {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    text-align: center;
    height: 200px;
}

#wines-section .winesSectionContainer .wine-container a .textWinesContainer h2 {

    font-size: 1.5rem;
    color: white;

}

#wines-section .instaLink {
    display: flex;

}


#wines-section .instaLink a {

    display: flex;
    justify-content: center;
    align-items: center;
    margin: 120px auto 0px;
    font-size: 2.8rem;
    color: white;
    text-decoration: none;
}

#wines-section .instaLink p {
    padding: 0px 0px 6px 2px;
}

#wines-section .instFont {

    color: white;
    font-size: 4rem;
    text-decoration: none;

}


#wines-section .below-images {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    padding: 30px 4rem 50px 2.5rem;
}





/* Footer section */

footer {

    height: 60px;
    background-color: black;
    display: flex;
    justify-content: center;
    align-items: center;
}

footer p {

    color: white;

}




/* BREACK POINTS */

/* Hero Section */

/* 768 */

@media (max-width: 768px) {



    #hero .hero-container .logo {

        margin: 100px 0px 20px 0px;
    }

    #hero .hero-container .logo2 {

        height: 300px;
        margin: 50px;
    }

    #hero .hero-container a {
        width: 500px;
        margin: 70px auto;
        justify-content: center;
        display: flex;
    }

    #hero .hero-container a img {
        width: 80%;

    }

}

/* 530 */

@media (max-width: 530px) {

    #hero .hero-container .logo {
        height: 50px;
        margin: 20px 0px 40px 0px;
    }

    #hero .hero-container .logo2 {

        height: 220px;
        margin: 50px;
    }

    #hero .hero-container a {
        width: 300px;
        margin: 50px auto;

    }

    #hero .hero-container a img {
        width: 100%;
        margin: 0px;

    }



}


/* History Section */

/* 1024 */

@media (max-width: 1024px) {

    #history-section .logo2 {

        margin: 90px auto 80px;

    }

    #history-section p {


        margin: 0px 100px 0px 100px;
    }

}

/* 768 */

@media (max-width: 768px) {

    #history-section .logo2 {
        height: 150px;
        margin: 80px auto;
    }

    #history-section p {

        font-size: 1.1rem;
        margin: 0px 80px 0px 80px;

    }

}

/* 480 */

@media (max-width: 480px) {

    #history-section {

        width: 100%;
        height: 100vh;
    }


    #history-section .logo2 {
        height: 150px;

        margin: 50px auto;
    }

    #history-section p {

        font-size: 1rem;
        margin: 0px 20px 0px 20px;

    }


}

/* Wines Section */

/* 1024 */

@media (max-width: 1026px) {



    #wines-section .below-images img:last-of-type {

        display: none;

    }

    #wines-section .below-images {
        justify-content: center;
    }

    #wines-section .winesSectionContainer {

        gap: 20px;

    }

    /* Modifications with the aim of making the mobile version work */
    #wines-section .winesSectionContainer .wine-container a,
    #wines-section .winesSectionContainer .wine-container span {
        opacity: 0;
        width: 100%;
        height: 100%;
        transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
        transform: translateX(0);
        display: flex;
        justify-content: center;
        align-items: center;
        background: transparent;

    }

    #wines-section .winesSectionContainer .wine-container:hover span a .textWinesContainer h2 {
        display: none;
    }


    #wines-section .winesSectionContainer .wine-container:hover a,
    #wines-section .winesSectionContainer .wine-container:hover span {
        opacity: 1;
        transform: translateX(0);
        text-decoration: none;
        display: hidden;

    }

    /*  Mobile modifications end here*/

    #wines-section .instaLink a {
        font-size: 2rem;
    }


    #wines-section .instFont {
        font-size: 3rem;
    }

    /* 580 */

    @media (max-width: 580px) {


        #wines-section .winesLogo {

            display: flex;
            justify-content: center;
            margin: 80px auto;
        }

        #wines-section .winesLogo img {

            height: 80px;
            width: 160px;

        }

        #wines-section .winesSectionContainer {


            grid-template-columns: repeat(auto-fill, minmax(350px, 350px));

        }

        #wines-section .winesSectionContainer .wine-container {


            height: 350px;
            width: 350px;


        }

        #wines-section .below-images {

            width: 100%;
            justify-content: center;
            padding: 0px 0px;
            margin: 90px 0px 40px;

        }

        #wines-section .below-images img {

            height: 16px;
        }

    }


}

/* 415 */

@media (max-width: 415px) {

    #wines-section .winesSectionContainer {


        grid-template-columns: repeat(auto-fill, minmax(280px, 280px));


    }

    #wines-section .winesSectionContainer .wine-container {


        height: 280px;
        width: 280px;



    }



}


/* Max-height: 650 */

@media (max-height: 660px) {

    /* Hero section */

    #hero .hero-container .logo {

        height: 40px;
        margin: 30px 0px 20px 30px;
    }

    #hero .hero-container .logo2 {

        height: 280px;
        margin: 20px;
    }

    #hero .hero-container a {
        width: 500px;
        margin: 50px;
        animation: scaleAnimation 2.5s infinite alternate;
    }

    /* History section */

    #history-section .logo2 {
        height: 120px;
        margin: 30px auto 30px;
    }

    #history-section p {

        max-width: 800px;

        font-size: 1.3rem;
    }

}

/* Max-height: 650 and max-width:  */

@media (max-height: 660px) and (max-width: 600px) {

    #hero .hero-container a {
        width: 300px;
        margin: 50px auto;

    }

    #hero .hero-container a img {
        width: 100%;
        margin: 0px;

    }


}