@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;700&family=Roboto:wght@100&display=swap');

:root{
    --background: linear-gradient(135deg, #08376dd3 60%, #22492588 10% );
    --color-primary: #266daf;
    --color-secondary: #45b64e;
    --boton-padding: 20px 40px;
}
body{
    font-family: 'Raleway', sans-serif;
}

.container{
   width: 90%;
   margin: 0 auto; 
   overflow: hidden;
   padding: 80px 0;
   max-width: 1200px;
}

.subtitle{
    color: var(--color-primary);
    font-size: 2.5rem;
    margin-bottom: 35px;
}

.hero{
    height: 100vh;
    background-image: var(--background), url('../Img/fondo.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    position: relative;
}
.hero .container{
    padding: 0;
}

.nav{
    display: flex;
    justify-content: flex-end;
    height: 70px;
    align-items: center;
    font-weight: 700px;
}

.nav--footer{
    font-weight: 300;
    justify-content: flex-start;
}

.nav__items{
    color: #fffF;
    text-decoration: none;
    margin-right: 20px;
    padding: 10px 15px;
    font-weight: inherit;
}

.nav__items--cta{
    border: 1px solid #fffF;
}
.nav__items--cta:hover{
    background: white;
    color: black;
 
}

.nav__items--footer{
    padding: 10px;
}

.hero__container{
    display: flex;
    height: calc(100vh - 70px);
    align-items: center;
    color: #ffff;
}

.hero__texts{
    width: 80%;
    margin-bottom: 50px;
}
.hero__title{
    font-size: 3.2rem;
}

.hero__subtitle{
    font-size: 2rem;
    font-weight: 300;
    margin: 15px 0;

}

.hero__cta{
    display: inline-block;
    background: #fff;
    padding: var(--boton-padding);
    color: var(--color-primary);
    text-decoration: none;
    border-radius: 40px;
}
.hero__cta:hover{
    color: #fff;
    background: var(--color-secondary);
}
.hero__wave{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
}

/* About */

.presentation{
    padding-top:0;
    text-align: center;
}

.presentation__picture{
    width: 200px;
    height: 150px;
    margin-bottom: 10px;
    object-fit: cover;
    object-position: top;
}

.presentation__copy{
    width: 80%;
    margin: 0 auto;
}

.presentation__cta{
    display: inline-block;
    margin-top: 30px;
    background: var(--color-primary);
    color: #fff;
    text-decoration: none;
    padding: var(--boton-padding);
    border-radius: 40px;
}

.presentation__cta:hover{
    background: #45b64e;
}

.about{
    min-height: 400px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    row-gap: 80px;
    justify-items: center;
    align-items: center;
}

.about__img{
    text-align: center;
}

.about__img--left{
    text-align: left;
}

.about__picture{
    max-width: 80%;
}

.about__paragraph{
    margin-bottom: 20px;
    line-height: 1-5;
    font-weight: 300;
    text-align: justify;
}

/* section projects*/

.projects__grid {
    display: flex;
    flex-wrap: wrap;
    margin: -15px; /* Para compensar el margen negativo de los elementos hijos */
}

.projects__item {
    width: calc(33.33% - 30px); /* 33.33% del ancho total del contenedor menos el espacio entre elementos */
    margin: 15px; /* Espacio entre los elementos */
    position: relative;
    overflow: hidden;
}

.projects__img {
    width: 100%;
    height: auto;
}

.projects__hover {
    position: absolute;
    background: #24507aa9;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    color: #fff;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateX(100%);
    cursor: pointer;
    transition: .3s ease-in-out;
}

.projects__item:hover .projects__hover {
    transform: translateX(0%);
}

.projects__info {
    color: #fff;
    font-size: 16px;
    text-align: center;
    margin-top: 10px;
}

.projects__icon {
    margin-top: 10px;
    font-size: 30px;
}


/* Footer */

.footer{
    background: #296dad;
    width: 100%;
    height: auto;
}

.footer__grid{
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 20px;
    align-items: center;
}

.footer__title{
    font-weight: 400;
    color: #fff;
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
}

.footer__icons{
    display: flex;
    justify-content: space-evenly;
}

.footer__container-icons{
    display: inline-block;
    width: 60px;
    height: 60px;
    color: #fff;
    text-align: center;
    border: 1px solid #fff;
    border-radius: 50%;
}

.footer__container-icons:hover{
   background: #45b64e; 
}

.footer__icon{
    color: #fff;
    font-size: 30px;
    text-decoration: none;
}

.fab.footer__icon{
    line-height: 60px;
}
.far.footer__icon{
    line-height: 60px;
}

/* Responsive */

@media screen and (max-width: 800px){
    :root{
        --boton-padding: 18px 40px
    }

    .nav{
        justify-content: space-around;
    }

    .nav__items--cta{
        border:none
    }

    .nav__items{
        font-weight: 400;
        border-bottom: 1px solid #fff;
        margin-right: 0;
    }
    
    .nav__items--footer{
        border:none
    }

    .hero__texts{
        width: 100%;
        margin-bottom: 80px;
    }

    .hero__title{
        font-size: 2.5rem;
    }

    .hero__subtitle{
        font-size: 1.5rem;
    }

    .presentation__copy{
        width: 100%;
    }
    .presentation__picture{
        width: 200px;
        height: 150px;
        margin-bottom: 10px;
        object-fit: cover;
        object-position: top;
    }

    .about{
        grid-template-columns: 1fr;
    }

    .about.container{
        padding-top: 30px;
    }

    .about__img--left{
        text-align: center;
    }

    .about__texts:last-child{
        grid-row: 3/4;
    }

    /* projects */

    .projects__item {
        width: calc(50% - 30px); /* 50% del ancho total del contenedor menos el espacio entre elementos */
    }

    .testimony__grid{
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer__grid{
        grid-template-columns: 1fr;
    }

    .footer__contact{
        grid-row: 1/2;
    }
}

@media screen and (max-width: 500px){
    :root{
        --boton-padding: 18px 35px;
    }

    .subtitle{
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .nav{
        flex-wrap: wrap;
        justify-content: space-evenly;
        margin-top: 10px;
    }

    .nav__items{
        font-weight: 400;
        border-bottom: 1px solid #fff;
        margin-right: 0;
    }

    .hero__texts{
        text-align: center;
        margin-bottom: 100px;
    }

    .hero__title{
        font-size: 2rem;
    }

    .presentation__picture{
        width: 200px;
        height: 150px;
        margin-bottom: 10px;
        object-fit: cover;
        object-position: top;
    }

    .about{
        row-gap: 60px;
    }

    .about.container{
        padding-top: 10px;
    }

    .testimony__item{
        padding: 30px 15px;
    }

    .testimony__person{
        flex-direction: column;
    }

    .testimony__texts{
        text-align: center;
    }

    .testimony_img{
        margin: 0;
        margin-bottom: 20px;
    }
    .projects__item {
        width: calc(100% - 30px); /* 100% del ancho total del contenedor menos el espacio entre elementos */
    }

}
