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

:root {
    --padding-container: 50px 0;
    --color-title: #001A49;
}

body {
    font-family: 'Poppins', sans-serif;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    padding: var(--padding-container);
}

.hero {
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 1200px;
    position: relative;
    display: grid;
    grid-template-rows: 100px 1fr;
    color: #fff;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(180deg, #0000008c 0%, #0000008c 100%), url('../images/13.jpg');
    background-size: cover;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 95%, 0 80%);
    z-index: -1;
}

/* Nav */

.nav {
    --padding-container: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav__title {
    font-weight: 300;
}

.nav__link {
    margin-left: auto;
    padding: 0;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 2em;
}

.nav__items {
    list-style: none;
}

.nav__links {
    color: #fff;
    text-decoration: none;
}

.nav__menu {
    margin-left: auto;
    cursor: pointer;
    display: none;
}

.nav__img {
    display: block;
    width: 30px;
}


.nav__close {
    display: var(--show, none);
}


/* Hero container */

.hero__container {
    width: 60%;
    --padding-container: 0;
    display: grid;
    grid-auto-rows: max-content;
    align-content: center;
    gap: .05em;
    padding-bottom: 100px;
    text-align: center;

}

.hero__title {
    display: flex;
    font-size: 3.0rem;
    color: #185EBD;
    padding-top: 2.5em;
    justify-content: center;

}

.hero__paragraph {
    margin-bottom: 70px;
}

.logo {
    margin-left: 2rem;
    margin-right: 2rem;
    align-content: center;
    justify-content: center;
    display: grid;
}

.logo_picture{
    justify-content: center;
    justify-items: center;
    position: relative;
    display: grid;
    max-width: 100%;
}  

/* About */

.about {
    text-align: center;
}

.about__main {
    padding-top: 20px;
    display: grid;
    width: 90%;
    margin: 0 auto;
    gap: 1em;
    overflow: hidden;
    grid-template-columns: repeat(auto-fit, minmax(260px, auto));
    text-align: center;
}

.about__icons {
    display: grid;
    gap: 1em;
    justify-items: center;
    text-align: center;
    width: 260px;
    overflow: hidden;
    margin: 0 auto;
}

.about__icon {
    width: 40px;
}

/* tgal */

.tgal{
    padding: 30px;
    background-color: #c5c5c5;
    justify-content: center;
}

.tgal__texts{
    display:grid;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.tgal_subtitle{
    line-height: 1.7;
    margin-bottom: 15px;
    color: #001A49;
}

/* slider */

.testimony{
    margin: auto;
    max-width: 1300px;
}

.testimony__complete{
    background-color: #c5c5c5;
    background-image: radial-gradient(#444cf7 0.5px, transparent 0.5px), radial-gradient(#444cf7 0.5px, #c5c5c5 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    display: flex;
    align-items: center;
}

.testimony__container{
    max-width: 700px;
    width: 100%;
    grid-template-columns: 50px 1fr 50px;
    gap: .5em;
    justify-content: space-between;
    align-items: center;
    justify-items: center;
    display: grid;
    flex-direction: row;
    padding-bottom: 20px;
    padding-top: 20px;
}

.testimony__body{
    display: grid;
    grid-template-columns: 1fr max-content;
    justify-content: space-between;
    align-items: center;
    grid-column: 2/3;
    grid-row: 1/2;
    opacity: 0;
    pointer-events: none;
}

.testimony__title{
    width: 40%;
    display: grid;
    padding: 50px;
}

.testimony__body--show{
    pointer-events: unset;
    opacity: 1;
    transition: opacity 1.5s ease-in-out;
}

.testimony__picture{
    object-fit: cover;
    overflow: hidden;
    cursor: pointer;
    position: relative;

}


.testimony__img{
    width: 500px;
    height: 500px;
    object-fit: cover;
}

.testimony__arrow{
    width: 90%;
    cursor: pointer;
}

/* slider 2*/

.testimony2{
    margin: auto;
    max-width: 1300px;
}

.testimony2__complete{
    display: flex;
    align-items: center;
}

.testimony2__container{
    max-width: 700px;
    width: 100%;
    grid-template-columns: 50px 1fr 50px;
    gap: .5em;
    justify-content: space-between;
    align-items: center;
    justify-items: center;
    display: grid;
    flex-direction: row;
    padding-bottom: 20px;
    padding-top: 20px;
}

.testimony2__body{
    display: grid;
    grid-template-columns: 1fr max-content;
    justify-content: space-between;
    align-items: center;
    grid-column: 2/3;
    grid-row: 1/2;
    opacity: 0;
    pointer-events: none;
}

.testimony2__title{
    width: 40%;
    display: grid;
    padding: 50px;

}

.testimony2__body--show{
    pointer-events: unset;
    opacity: 1;
    transition: opacity 1.5s ease-in-out;
}

.testimony2__picture{
    object-fit: cover;
    overflow: hidden;
    cursor: pointer;
    position: relative;

}
.testimony2__picture:hover .testihover-galeria{
    transform: scale(1);
}
.testimony2__img{
    width: 500px;
    height: 500px;
    object-fit: cover;
}

.testimony2__arrow{
    width: 90%;
    cursor: pointer;
}

/* slider 3*/

.testimony3{
    margin: auto;
    max-width: 1300px;
}

.testimony3__complete{
    background-color: #c5c5c5;
    background-image: radial-gradient(#444cf7 0.5px, transparent 0.5px), radial-gradient(#444cf7 0.5px, #c5c5c5 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    display: flex;
    align-items: center;
}

.testimony3__container{
    max-width: 700px;
    width: 100%;
    grid-template-columns: 50px 1fr 50px;
    gap: .5em;
    justify-content: space-between;
    align-items: center;
    justify-items: center;
    display: grid;
    flex-direction: row;
    padding-bottom: 20px;
    padding-top: 20px;
}

.testimony3__body{
    display: grid;
    grid-template-columns: 1fr max-content;
    justify-content: space-between;
    align-items: center;
    grid-column: 2/3;
    grid-row: 1/2;
    opacity: 0;
    pointer-events: none;
}

.testimony3__title{
    width: 40%;
    display: grid;
    padding: 50px;

}

.testimony3__body--show{
    pointer-events: unset;
    opacity: 1;
    transition: opacity 1.5s ease-in-out;
}

.testimony3__picture{
    object-fit: cover;
    overflow: hidden;
    cursor: pointer;
    position: relative;

}
.testimony3__picture:hover .testihover-galeria{
    transform: scale(1);
}
.testimony3__img{
    width: 500px;
    height: 500px;
    object-fit: cover;
}

.testimony3__arrow{
    width: 90%;
    cursor: pointer;
}
/* slider 4*/

.testimony4{
    margin: auto;
    max-width: 1300px;
}

.testimony4__complete{
    display: flex;
    align-items: center;
}

.testimony4__container{
    max-width: 700px;
    width: 100%;
    grid-template-columns: 50px 1fr 50px;
    gap: .5em;
    justify-content: space-between;
    align-items: center;
    justify-items: center;
    display: grid;
    flex-direction: row;
    padding-bottom: 20px;
    padding-top: 20px;
}

.testimony4__body{
    display: grid;
    grid-template-columns: 1fr max-content;
    justify-content: space-between;
    align-items: center;
    grid-column: 2/3;
    grid-row: 1/2;
    opacity: 0;
    pointer-events: none;
}

.testimony4__title{
    width: 40%;
    display: grid;
    padding: 50px;

}

.testimony4__body--show{
    pointer-events: unset;
    opacity: 1;
    transition: opacity 1.5s ease-in-out;
}

.testimony4__picture{
    object-fit: cover;
    overflow: hidden;
    cursor: pointer;
    position: relative;

}
.testimony4__picture:hover .testihover-galeria{
    transform: scale(1);
}
.testimony4__img{
    width: 500px;
    height: 500px;
    object-fit: cover;
}

.testimony4__arrow{
    width: 90%;
    cursor: pointer;
}
.testimony4__paragraph{
    padding-bottom: 5px;
}


/* PORFATOLIO */

.Portafolio{
    background-color: #c5c5c5;

}
.galeria-port{
    display: flex;
    justify-content:space-evenly;
    flex-wrap: wrap;
    padding-bottom: 40px;
}

.imagen-port{
    width: 30%;
    height: 50%;
    margin-bottom: 1px;
    margin-left: 1px;
    margin-right: 1px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 0 6px 0 rgba(0,0,0,.5)
}

.imagen-port > img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hover-galeria{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    transform: scale(0);
    background: hsla(203,91%,14%,0.7);
    transition: transform .5s;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.hover-galeria img{
    width: 70%;
}
.hover-galeria p{
    color:#fff;

}
.imagen-port:hover .hover-galeria{
    transform: scale(1);
}

/* director */

.director__body{
    display: grid;
    align-items: center;
    grid-template-columns: 1fr;
    grid-template-rows: max-content max-content;
    gap: 2em;
    justify-items:center ;
}

.subtitleq{
    text-align: center;
    color: var(--color-title);
    font-size: 2.0rem;
    margin-bottom: 25px;
}
.about__paragraphq {
    text-align: center;
    font-size: 1.2rem;
    line-height: 1.2;
    margin-bottom: 10px;
}

.director__img {
    align-content: center;
    width: 179px;
    height: 179px;
    font-size: 1.2rem;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 30%;
}

.director__review{
    margin-bottom: 15px;
    text-align: center;
}

.subtitle{
    text-align: center;
    color: var(--color-title);
    font-size: 2.0rem;
    margin-bottom: 25px;
}
.questions__copy{
    text-align: center;
    width: 60%;
    margin: 0 auto;
    margin-bottom: 30px;
    padding-bottom: 40px;
    padding-top: 20px;
    font-size: 1.2rem;

}

/* Questions */

.questions{
    text-align: center;
}

.questions__container{
    display: grid;
    gap: 2em;
    padding-top: 50px;
    padding-bottom: 100px;
}

.questions__padding{
    padding: 0;
    transition: padding .3s;
    border: 1px solid #5454D4;
    border-radius: 6px;
}

.questions__padding--add{
    padding-bottom: 30px;
}

.questions__answer{
    padding: 0 30px 0;
    overflow: hidden;
}

.questions__title{
    text-align: left;
    display: flex;
    font-size: 20px;
    padding: 30px 0 30px;
    cursor: pointer;
    color: var(--color-title);
    justify-content: space-between;
}

.questions__arrow{
    border-radius: 50%;
    background-color: var(--color-title);
    width: 25px;
    height: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: flex-end;
    margin-left: 10px;
    transition:  transform .3s;
}

.questions__arrow--rotate{
    transform: rotate(180deg);
}

.questions__show{
    text-align: left;
    height: 0;
    transition: height .3s;
}

.questions__img{
    display: block;
}
.questions__paragraph{
    font-size: 1.2rem;
}


/* Footer */

.footer{
    background-color: #1D293F;
}

.footer__title{
    font-weight: 300;
    font-size: 2rem;
    margin-bottom: 30px;
    justify-items: center;
}

.footer__title, .footer__newsletter{
    color: #fff;
}


.footer__container{
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #fff;
    padding-bottom: 60px;
    flex-wrap: wrap;
}

.nav--footer{
    padding-bottom: 20px;
    display: grid;
    gap: 1em;
    grid-auto-flow: row;
    height: 100%;
    width: 100%;
    justify-items: center;
}

.nav__link--footer{
    width: 100%;
    display: flex;
    margin: 0;
    margin-right: 20px;
    margin-left: auto;
    flex-wrap: wrap;
}


.footer__form{
    width: 100%;
    flex-wrap: wrap;
}

.footer__inputs{
    margin-top: 10px;
    display: flex;
    overflow: hidden;
    flex-wrap: wrap;

}

.footer__input{
    background-color: #fff;
    height: 50px;
    display: flex;
    padding-left: 10px;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    border: none;
    margin-right: 16px;
    flex-basis: 100%;
    margin-bottom: 16px;

}

.footer__submit{
    margin-left: auto;
    margin-right: 16px;
    display: inline-block;
    height: 50px;
    padding: 0 20px ;
    background-color: #2091F9;
    border: none;
    font-size: 1rem;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
}

.footer__copy{
    --padding-container: 30px 0;
    text-align: center;
    color: #fff;
}

.footer__copyright{
    font-weight: 300;
}

.footer__icons{
    margin-bottom: 10px;
}

.footer__img{
    width: 30px;
}

#botonArriba{
    position: fixed;
    bottom: 20px;
    right: -100px;
    width: 40px;
    transition: all 1s;
}

/* Media queries */

@media (max-width:1000px){

    .testimony__complete{
        display: flex;
        flex-wrap: wrap;  
        align-items: center;
        justify-content: center;
    }
    .testimony__title{
        max-width: 700px;
        max-height: 700px;
        width: 80%;
        display: grid;
        text-align: center;
    }
    .testimony2__complete{
        display: flex;
        flex-wrap: wrap;  
        align-items: center;
        justify-content: center;
    }
    .testimony2__title{
        max-width: 700px;
        max-height: 700px;
        width: 80%;
        display: grid;
        text-align: center;
    }
    .testimony3__complete{
        display: flex;
        flex-wrap: wrap;  
        align-items: center;
        justify-content: center;
    }
    .testimony3__title{
        max-width: 700px;
        max-height: 700px;
        width: 80%;
        display: grid;
        text-align: center;
    }
    .testimony4__complete{
        display: flex;
        flex-wrap: wrap;  
        align-items: center;
        justify-content: center;
    }
    .testimony4__title{
        max-width: 700px;
        max-height: 700px;
        width: 80%;
        display: grid;
        text-align: center;
    }
}

@media (max-width:800px){
    .nav__menu{
        display: block;
    }

    .nav__link--menu{
        position: fixed;
        background-color: #000;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        z-index: 100;
        opacity: 0;
        pointer-events: none;
        transition: .7s opacity;
    }

    .nav__link--show{
        --show: block;
        opacity:1 ;
        pointer-events: unset;
    }

    .nav__close{
        position: absolute;
        top: 30px;
        right: 30px;
        width: 30px;
        cursor: pointer;
    }

    .hero__title{
        font-size: 2.5rem;
        justify-content: center;
        align-items: center;
    }

    .logo .logo_picture{
        align-items: center;
        justify-content: center;

    }

    .about__main{
        gap: 2em;
    }

    .about__paragraph{
        font-size: 1.0rem;
        line-height: 1.2;
        margin-bottom: 14px
,    }

    .about__title{
        font-size: 1.7rem;
    }
    .about__paragrah{
        font-size:1.0rem;
        text-align: center;

    }
    .about__icons:last-of-type{
        grid-column: 1/-1;
    }
    .hover-galeria img{
        width: 50%;
    }
    .hover-galeria p{
        color:#fff;
        font-size: .5rem;
    
    }

    /* testimony 800px */

    .testimony__complete{
        display: flex;
        flex-wrap: wrap;  
    }
    .testimony2__complete{
        display: flex;
        flex-wrap: wrap;  
    }
    .testimony3__complete{
        display: flex;
        flex-wrap: wrap;  
    }
    .testimony4__complete{
        display: flex;
        flex-wrap: wrap;  
    }

    /* testimony 800px */
    
    .director__container{
        grid-template-columns: 30px 1fr 30px;
    }

    .director__body{
        grid-template-columns: 1fr;
        grid-template-rows: max-content max-content;
        gap: 3em;
        justify-items:center ;
    }

    .director__img{
        width: 250px;
        height: 250px;
        
    }
    
    .director__review{
        margin-bottom: 15px;
    }

    .questions__copy{
        width: 100%;
    }

    .footer__container{
        flex-wrap: wrap;
    }

    .nav--footer{
        width: 100%;
        justify-items: center;
    }

    .nav__link--footer{
        width: 100%;
        justify-content: space-evenly;
        margin: 0;
    }

    .footer__form{
        width: 100%;
        justify-content: space-evenly;
    }

    .footer__input{
        flex: 1;
    }

}

@media (max-width:600px){
    .hero__title{
        font-size: 1.5rem;
        justify-content: center;
        align-items: center;
        margin-bottom: 2px;
        margin-top: 2px;
        padding: 5px;
    }

    .hero__paragraph{
        font-size: .7rem;
        margin-bottom: 1em;
    }
    .logo .logo_picture{
        display: flex;
        position: relative;
    }

    .subtitle{
        font-size: 1.8rem;
    }

    .testimony{
        --padding-container: 60px 0;
    }

    .testimony__container{
        grid-template-columns: 28px 1fr 28px;
        gap: .9em;
    }

    .testimony__title{
        width: 80%;
        display: grid;
        text-align: center;
    }

    .testimony__img{
        width: 95%;
        height: 95%;
    }

    .testimony__arrow{
        width: 100%;
    }

    .testimony__course{
        margin-top: 15px;
    }
    /*---testimony---- */
    .testimony2{
        --padding-container: 60px 0;
    }

    .testimony2__container{
        grid-template-columns: 28px 1fr 28px;
        gap: .9em;
    }
    .testimony2__title{
        width: 80%;
        display: grid;
        text-align: center;
    }

    .testimony2__img{
        width: 95%;
        height: 95%;
    }

    .testimony2__arrow{
        width: 100%;
    }
    
    .testimony2__course{
        margin-top: 15px;
    }
      /*---testimony---- */ 

      .testimony3{
        --padding-container: 60px 0;
    }

    .testimony3__container{
        grid-template-columns: 28px 1fr 28px;
        gap: .9em;
    }

    .testimony3__title{
        width: 80%;
        display: grid;
        text-align: center;
    }

    .testimony3__img{
        width: 95%;
        height: 95%;
    }

    .testimony3__arrow{
        width: 100%;
    }
    
    .testimony3__course{
        margin-top: 15px;
    }
      /*---testimony---- */ 
      
      .testimony4{
        --padding-container: 60px 0;
    }

    .testimony4__container{
        grid-template-columns: 28px 1fr 28px;
        gap: .9em;
    }

    .testimony4__title{
        width: 80%;
        display: grid;
        text-align: center;
    }

    .testimony4__img{
        width: 95%;
        height: 95%;
    }

    .testimony4__arrow{
        width: 100%;
    }
    
    .testimony4__course{
        margin-top: 15px;
    }
      /*---testimony---- */ 
        
    .director{
        --padding-container: 60px 0;
    }

    .director__container{
        grid-template-columns: 28px 1fr 28px;
        gap: .9em;
    }

    .director__arrow{
        width: 100%;
    }

    .questions__title{
        font-size: 1rem;
    }

    .footer__title{
        justify-self: start;
        margin-bottom: 15px;
    }

    .nav--footer{
        padding-bottom: 60px;
    }

    .nav__link--footer{
        justify-content: space-between;
    }

    .footer__inputs{
        flex-wrap: wrap;
    }

    .footer__input{
        flex-basis: 100%;
        margin: 0;
        margin-bottom: 16px;
    }

    .footer__submit{
        margin-right: auto;
        margin-left: 0;

    }
}
