@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400&display=swap');

body{
    padding: 0px;
    margin: 0px;
    font-family: 'Poppins', sans-serif;
}

nav{
    padding-left: 50px;
    padding-right: 50px;
    background-color: #002A7F;
    height: 65px;
    display: flex;
    flex-direction: row;
    align-items: center;
}

.flexGrow{
    flex-grow: 1;
}

nav > div{
    display: flex;
    gap: 30px;
}

nav a{
    transition: ease-in-out;
    transition-duration: 100ms;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

nav a:hover{
    color: white;
}

nav .active{
    color: lightskyblue;
}

button{
    border: none;
    outline: none;    
}

section{
    position: relative;
}

.hero a{
    text-decoration: none;
    background-color: dodgerblue;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 5px;
    color: white;
    font-size: 20px;
    margin-top: 15px;
}

.hero{
    background-image: url("./images/heroImageOriginal.jpg");
    height: 500px;
    background-position: center;
    background-size: cover;
    position: relative;
}

h1 {
    margin: 0px;
}

.hero > div{
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
}

.hero h1{
    color: white;
    font-size: 64px;
}

.hero > div > img{
    display: none;
}

.hero a{transition: ease-in-out; transition-duration: 150ms;}
.hero a:hover{
    cursor: pointer;
    background-color: royalblue;
}

.contact,
.planes,
.nosotros{
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100vh;
    align-items: center;
}

section > h1{font-size: 42px;}

.nosotros > .des{
    display: flex;
    width: 55%;
    gap: 20%;
    align-items: center;
}


.nosotros > .des > div{
    width: 70%;
    text-align: justify;
}

.cardsContainer{
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.cards{
    display: grid;
    width: 60%;
    grid-template-columns: repeat(3, 30%);
    gap: 6%;
}

h3{
    text-align: center;
    font-size: 32px;
}

.card{
    color: #002A7F;
}

.card >
div{
    text-align: justify;
}

.card > p{text-align: center;}

.planes{
    background-color: whitesmoke;
}

.planes > .grid{
    display: grid;
    grid-template-columns: 400px 400px;
    grid-template-rows: auto auto;
    gap: 60px;
}

.product{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    padding: 15px;
}

.product.blue{
    background-color: #002A7F;
    color: white;
    margin-right: 15px;
}

.product.white{
    background-color: white;
}

.product > div{
    font-size: 38px;
}

.planes > .grid > .label > p{
    margin: 0px;
    font-size: 38px;
    font-weight: 200;
}

#interComercial{
    white-space: nowrap;
    justify-self: end;
}

#interComercialCards{
    justify-self: end;
}

.product button{
    padding: 5px;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: 15px;
    background-color: transparent;
    transition: ease-in-out;
    transition-duration: 150ms;
    font-size: 24px;
}

.product.white{
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.product.white button{
    color: #002A7F;
    outline: 1px solid #002A7F;
}

.product.white button:hover{
    background-color: #002A7F;
    color: white;
    cursor: pointer;
}

.product.blue button{
    color: white;
    outline: 1px solid white;
}

.product.blue button:hover{
    color: #002A7F;
    background-color: white;
    cursor: pointer;
}

.nosotros h1,
#titleItzuriPlans{
    position: absolute;
    left: 50%;
    top: 10%;
    transform: translateX(-50%);
}

.contact{display: flex; flex-direction: row;}

#imgContacto{
    width: 50%;
    height: 100%;
    background-image: url("images/contactoImageOriginal.jpg");
    background-position: center;
    background-size: cover;
}

#contactForm{
    width: 50%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#contactForm > h1{
    font-size: 38px;
    color: #002A7F;
}

#contactForm input, select{
    width: 60%;
    height: 45px;
    border: 2px solid #002A7F;
    color: #002A7F;
    font-size: 20px;
    padding-left: 15px;
    box-sizing: border-box;
}

#contactForm input::placeholder{
    color: #002a7f77;
}

#contactForm{
    gap: 25px;
}

#captchaSend{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 60%;
}

#captchaSend > button{
    transition: ease-in-out;
    transition-duration: 150ms;
    padding-top: 10px;
    padding-bottom: 10px;
    padding-left: 25px;
    padding-right: 25px;
    border-radius: 15px;
    border: 2px solid #002A7F;
    background-color: white;
    font-size: 20px;
    color: #002A7F;
}

#captchaSend > button:hover{
    background-color: #002A7F;
    color: white;
    cursor: pointer;
}


#mapLocation iframe {
    width: 100%;
    height: 450px; /* Adjust the height as needed */
    border: 0;
    margin: 0 auto; /* This centers the map in the container */
}

footer{
    color: white;
    background-color: #002A7F;
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;

}

.footerContact{
    display: flex;
    flex-direction: column;
}

.footerContact > h3{
    margin: 0px;
    font-size: 24px;
}

footer a{
    text-decoration: none;
    color: white;
}

footer a:hover{
    cursor: pointer;
}

h1, h3{
    white-space: nowrap;
}

@media (max-width: 1280px){
    .nosotros .des{
        width: 85%;
    }
    
    .cards{
        width: 85%;
    }
}


@media (max-width: 980px){
    .nosotros img{
        display: none;
    }

    .nosotros .des div{
        width: 100%;
    }

    #imgContacto{
        display: none;
    }
    #contactForm{
        width: 100%;
    }

    .planes .grid{
        grid-template-columns: auto;
        grid-template-rows: auto auto auto auto;
        justify-items: center;
    }

    #interComercial{
        justify-self: center;
        order: 3;
    }
    #interComercialCards{
        justify-self: center;
        order: 4;
    }

    #residencial{
        order: 1;
    }

    #interResidencialCards{
        order: 2;
    }

    .planes{
        padding-bottom: 10vh;
        height: fit-content;
        justify-content: flex-start;
        padding-top: 30vh;
        text-align: center;
    }

    footer{
        flex-wrap: wrap;
    }
}

@media (max-width: 550px){
    nav > img{
        display: none;
    }
    nav .flexGrow{flex-grow: 0;}
    nav{
        justify-content: center;
    }

    .hero > div{
        text-align: center;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
    }
    .hero > div > img{
        display: initial;
    }

    .nosotros{
        height: fit-content;
        padding-top: 30vh;
        padding-bottom: 10vh;
    }

    #contactForm input, select{
        width: 80%;
    }

    #titleItzuriPlans{
        width: 100%;
        white-space: wrap;
    }
    .cards{
        display: flex;
        flex-direction: column;
    }

}