/*------------------------------------------ RESETS ------------------------------------------*/

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html{
    scroll-behavior: smooth;
}

.typed-cursor{
    display: none;
}

.section{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

:root{
    --color-brown: #de795b;
    --color-piel: #ffccb7;
    --color-dark-green: #777575;
    --color-light-green: #c9c1c1;
}

@font-face {
    font-family: 'Poppins';
    src: url('../assets/fonts/Poppins-Light.woff2');
}

body{
    min-height: 200vh;
    font-family: 'Poppins',sans-serif;
}

.nav-btn{
    display: none;
    fill: var(--color-brown);
}

/*------------------------------------------ HEADER ------------------------------------------*/

.header{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 200vh;
}

.header-navbar{
    width: 20px;
    padding: 20px 20px 0 0;
    z-index: 100;
    overflow: hidden;
    animation: header-navbar-width 2s;
    animation-timeline: scroll();
    animation-range-end: 30%;
    animation-fill-mode: forwards;
    position: sticky;
    top: 50px;
    left: 100%;
    height: 550px;
    background: var(--color-piel);
}

.ul-nav-header{
    display: flex;
    flex-direction: column;
    justify-content: center;
    list-style: none;
    gap: 20px;
    font-size: 2rem;
    align-items: end;
}

.a-nav-header{
    text-decoration: none;
    color: var(--color-brown);
}

.nav-btn{
    z-index: 100;
    width: 30px;
    position: absolute;
    top: 20px;
    right: 20px;
}

.close-menu{
    display: none;
}

/*------------------------------------------ MAIN ------------------------------------------*/

/*------------------- HERO -------------------*/
.hero-section{
    display: flex;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200vh;
}

.hero-img-container{
    width: 100%;
    height: 100vh;
    position: sticky;
    top: 0;
}

.img-fondo-hero{
    width: 100%;
    height: 100vh;
}

.img-logo-hero{
    position: absolute;
    top: 30%;
    right: 250px;
    width: 330px;
}

.hero-container{
    width: 100%;
    height: 200vh;
}

/*------------------- INFO AMBIENTE -------------------*/

.info-ambiente-section{
    background: url('../assets/images/ambiente-07-07.png');
    background-size: 100% 100%;
    background-position: 25% 50%;
    height: 70vh;
}

.text-info-ambiente{
    width: 30%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    color: var(--color-dark-green);
    margin-top: 80px;
}

.a-info-ambiente{
    text-decoration: none;
    color: var(--color-brown);
    border: 2px solid var(--color-brown);
    padding: 7px 14px;
    width: fit-content;
    font-weight: bold;
    
}

.info-ambiente-container{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;

}

.title-info-ambiente{
    font-size: 4rem;
    margin-top: 20px;
    width:43%;
    display: flex;
    justify-content: center;
    margin-left: 50px;
    color: var(--color-brown);
}


/*------------------- OBRAS -------------------*/

.obras-section{
    height: 90vh;
    display: flex;
    width: 100%;
    overflow: hidden;
    background: url('../assets/images/Sin\ título-1-04.png');
}

.obras-container-container{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
}

/*---------- title/text obras ----------*/

.title-obras-container{
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: var(--color-brown);
    width: 30%;
    margin-left: 75px;
}

.linea {
    height: 0;
    width: 3px;
    background-color: var(--color-brown);
}

.title-obras-container h2{
    font-size: 3rem;
}

.title-obras-container p{
    color: var(--color-dark-green);
}

/*---------- img obras ----------*/

.card img{
    width: 250px;
    height: 250px;
}

.card{
    width: 300px;
    height: 300px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.obras-container{
    display: flex;
    gap: 20px;
}

.img-obras-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.left-part{
    animation: image-movement-up 5s infinite alternate linear;
}

.right-part{
    animation: image-movement-down 5s infinite alternate linear;
}

/*---------- lightbox ----------*/
.lightbox {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #000000cc;
    justify-content: center;
    align-items: center;
}

.lightbox img {
    max-width: 80%;
    max-height: 80%;
    border-radius: 8px;
    box-shadow: 0 0 20px #ffffff4d;
}

/*---------- close btn ----------*/
.close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    font-weight: bold; 
}


/*------------------- FUTURE CONSTRUCTIONS -------------------*/
.future-constructions-section{
    background: var(--color-piel);
    min-height: 90vh;
}

/*---------- title/text future constructions ----------*/

.future-constructions-container-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 60px;
    width: 100%;

}

.future-constructions-container{
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 50%;
    text-wrap: pretty;
    margin-left: 184px;
}

.future-constructions-title{
    font-size: 1.5rem;
    color: var(--color-brown);
}

.future-constructions-info{
    color: var(--color-dark-green);
}

/*---------- flip cards ----------*/

.flip-cards-container{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.flip-card {
    height: 300px;
    width: 340px;
    perspective: 1000px;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center; 
}

.flip-card-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
    height: 260px;
    text-align: center;
    transition: transform 0.6s; 
    transform-style: preserve-3d; 
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 300px;
    height: 260px;
    backface-visibility: hidden; 
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.flip-card-front {
    overflow: hidden;
    border-radius: 5px;
}
.flip-card-front img{
    width: 300px;
    height: 300px;
}

.flip-card-back {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    transform: rotateY(180deg);
}

.flip-card-back p{
    width: 300px;
    color: var(--color-dark-green);
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg); 
}

/*------------------- IDEAS TO PERFECTION -------------------*/

.ideas-to-perfection-section{
    justify-content: start;
    background: url('../assets/images/Sin\ título-1-04.png');
    height: 90vh;
}

.ideas-to-perfection-container-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 60px;
    width: 100%;
}

/*---------- title/text ideas to perfection ----------*/

.ideas-to-perfection-container{
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 50%;
    text-wrap: pretty;
    margin-left: 220px;
    margin-top: 80px;

}

.ideas-to-perfection-title{
    font-size: 1.5rem;
    color: #fff;
}

.ideas-to-perfection-info{
    color: #fff;
}

/*---------- idea cards ----------*/

.idea-cards-container{
    display: grid;
    grid-template-areas: 
    "idea-cards-1 space idea-cards-2"
    "idea-cards-3 space idea-cards-4";
    gap: 20px;
    width: 70%;
}

.idea-cards-1{
    grid-area: idea-cards-1;
}
.idea-cards-2{
    grid-area: idea-cards-2;
}
.idea-cards-3{
    grid-area: idea-cards-3;
}
.idea-cards-4{
    grid-area: idea-cards-4;
}

.idea-cards{
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-top: 8px solid var(--color-brown);
    background: #fff;
    width: 400px;
    height: 170px;
    padding: 5px 0 0 10px;
}

.idea-cards-container h3{
    font-size: 1.5rem;
}

.grid-container{
    display: flex;
    justify-content: center;
    width: 100%;
}

/*------------------- FOOTER -------------------*/

.footer{
    background: url('../assets/images/ambiente-07-07.png');
    background-size: 100% 100%;
    height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;

}

.footer-container-container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 45px;
    max-width: 1200px;
    width: 70%;
}

/*---------- contact ----------*/

.contact-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 130px;
    color: var(--color-brown);
    margin: 150px 0 0 0;
}

.contact-title-container{
    font-size: 2rem;
}

.contact-info-container{
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 1.5rem;
}

.footer-text-container{
    width: 30%;
    color: var(--color-dark-green);
}

/*------------------- MEDIA QUERIES -------------------*/

@media screen and (max-width: 768px){

    /*----------- HERO -----------*/

    .hero-section{
        height: 100vh;
        background: url('../assets/images/mobile_banner-08.png');
        background-size: 100% 100%;
    }

    .img-fondo-hero{
        display: none;
    }

    .img-logo-hero{
        right: 0;
        width: 190px;
        margin-top: 40px;
    }

    .hero-container{
        height: 100vh;
    }

    /*----------- HEADER -----------*/

    .open-menu{
        display: block;
    }

    .header{
        height: 100vh;
    }

    .header-navbar{
        width: 0%;
        animation: none;
        transition: all .5s;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 90;
        padding-top: 100px;
        height: 100vh;
    }

    /*----------- INFO AMBIENTE -----------*/

    .info-ambiente-section{
        background: var(--color-piel);
        height: fit-content;
        width: 100%;
        padding: 30px 0 50px;

    }

    .info-ambiente-container{
        flex-direction: column;
        justify-content:space-between;
        gap: 50px;
        align-items: start;
        margin-left: 20px;
    }

    .title-info-ambiente{
        width: 85%;
        font-size: 3.2rem;
        margin-left: 0;
    }

    .text-info-ambiente{
        margin: 0;
        width: 90%;
        justify-content: start;
        height: fit-content;
    }

    /*----------- OBRAS -----------*/

    .obras-section{
        height: fit-content;
        padding: 30px 0 50px;
        width: 100%;
    }

    .obras-container{
        width: 100%;
    }

    .obras-container-container{
        flex-direction: column;
        gap: 100px;
    }

    .title-obras-container{
        flex-direction: column;
        width: 100%;
        max-width: 370px;
        margin: 0 ;

    }

    .linea-container{
        display: none;
    }

    .text-info-ambiente{
        margin: 0;
        width: 90%;
        justify-content: start;
    }

    .obras-container{
        flex-direction: column;
    }


    .left-part{
        animation: image-movement-left 4s infinite alternate linear;
        flex-direction: row;
    }

    .right-part{
        animation: image-movement-right 4s infinite alternate linear;
        flex-direction: row;
    }

    /*----------- FUTURE CONSTRUCTIONS -----------*/

    .future-constructions-section{
        height: fit-content;
        padding: 30px 0 50px;
    }

    .ideas-to-perfection-container{
        margin: 0;
    }

    .flip-cards-container{
        flex-direction: column;
    }

    .future-constructions-container{
        margin-left: 40px;
        width: 370px;
    }

    /*----------- IDEAS TO PERFECTION -----------*/

    .ideas-to-perfection-section{
        height: fit-content;
        padding: 30px 0 50px;
    }

    .idea-cards-container{
        grid-template-areas: 
        "idea-cards-1"
        "idea-cards-2"
        "idea-cards-3"
        "idea-cards-4";
        justify-self: center;
        align-self: center;
        width: 90%;

    }

    .grid-container{
        width: 100%;
        justify-content: center;
    }

    .idea-cards{
        width: 100%;
    }

    .ideas-to-perfection-container{
        margin-left: 10px;
        width: 90%;
    }

    .ideas-to-perfection-container{
        margin-left: 25px;
    }

    /*----------- CONTACT -----------*/

    .footer{
        background: var(--color-piel);

    }

    .footer-container-container{
        flex-direction: column;
    }

    .footer-text-container{
        width: 90%;
    }

    .contact-container{
        margin: 0;
        gap: 20px;
    }


}

/*------------------- ANIMATIONS -------------------*/

@keyframes image-movement-up{
    0%{
        transform: translateY(70%);
    }
    100%{
        transform: translateY(0);
    }
}

@keyframes image-movement-down{
    0%{
        transform: translateY(0);
    }
    100%{
        transform: translateY(70%);
    }
}

@keyframes header-navbar-width {
    0%{
        width: 20px;
    }
    100%{
        width: 250px;
    }
}

@keyframes image-movement-left{
    0%{
        transform: translateX(100%);
    }
    100%{
        transform: translateX(-100%);
    }
}

@keyframes image-movement-right{
    0%{
        transform: translateX(-100%);
    }
    100%{
        transform: translateX(100%);
    }
}