@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,600;1,700&display=swap');  /* Importando tipo de letra */

 /* Creando librerias utiles */
:root{
    --padding-container: 100px 0;
    --color-title: #001A49 ;
    
}



body {
    font-family: 'Poppins', sans-serif;  /* Aplicando tipo de letra importada */
}




/* =======================Boton de regreso ================== */

#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 25px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(175, 183, 193, 0.7);
    cursor: pointer;
    -webkit-transition: all .2s ease;
    transition: all .2s ease;
    z-index: 1100;
  }
  
  #back-to-top::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    margin: -4px auto;
    width: 12px;
    height: 12px;
    border-top: 2px solid #555;
    border-right: 2px solid #555;
    -webkit-transform: rotate(-45deg);
            transform: rotate(-45deg);
  }
  
  #back-to-top:hover {
    background: #2F89FC;
  }
  
  #back-to-top:hover::after {
    border-color: #fff;
  }

  /* ----------------- */

.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: 800px;
    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, #0000018c 0%, #0000018c 100% ), url(../images/img\ 8.jpg); 
    background-size: cover ;
    background-position: 50% 15% ;   /* Posicion de la imagen */
    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;
    cursor: pointer;



}

.nav__title2{
    font-weight: 300;
    cursor: pointer;
    width: 140px;
    margin-right: 40px;
 
}

.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__links:hover {
    color: #30e3f0;
    
}


.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{
    max-width: 800px;
    --padding-container: 0;
    display: grid;
    grid-auto-rows: max-content;
    align-content: center;
    gap: 1em;
    padding-bottom: 100px;
    text-align: center;

}

.hero__title{
    font-size: 3rem;
}

.hero__paragraph{
    margin-bottom: 20px;
    font-size: 1.8rem;
}

.cta{
    display: inline-block;
    background-color: #005da4 ;
    justify-self: center;
    color: #fff;
    text-decoration: none;
    padding: 13px 30px;
    border-radius: 32px;
}


/* ----------------------------------------------------------- About (acerca de) ----------------------------------------- */

.about{
    text-align: center;
}

.subtitle{
    color: var(--color-title);
    font-size: 2rem;
    margin-bottom: 25px;
}

.about__paragraph{
    line-height: 1.7;
}

.about__main{
    padding-top: 80px;
    display: grid;
    width: 90%;
    margin: 0 auto;
    gap: 1em;
    overflow: hidden;
    grid-template-columns: repeat(auto-fit, minmax(260px, auto));  /* Crea filas y columnas nuevas que se adaptan a movil de forma auto */
}

.about__icons{
    display: grid;
    gap: 1em;
    justify-items: center;
    width: 260px;
    overflow: hidden;
    margin: 0 auto;
    border: 4px solid;
    border-color: #2091f9;
    border-radius:30px ;
    padding: 30px;
}

.about__icon{
    width: 60px;
    cursor: pointer;
    transition: 1s width;
}

.about__icon:hover{
    width: 90px;
}


/* ------------------------------------   ¿Por qué estudiar Ingeniería Eléctrica? ------------------- */

.knowledge{
    background-color: #e5e5f7;
    background-image: radial-gradient(#444cf7 0.5px, #e5e5f7 0.5px);      /* Fondo de puntos */
    background-size: 10px 10px;
    overflow: hidden;
}

.knowledge__container{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
    align-items: center;
}

.knowledge__picture{
    max-width: 500px;

}

.knowledge__paragraph{
    line-height: 1.7;
    margin-bottom: 15px;
}


.knowledge__img{
    width: 100%;
    display: block;
}


/* -------------------------------------------------  Datos --------------------------------- */

.data__main{
    padding-top: 0px;
    display: grid;
    width: 90%;
    margin: 0 auto;
    gap: 1em;
    overflow: hidden;
    grid-template-columns: repeat(auto-fit, minmax(260px, auto));  /* Crea filas y columnas nuevas que se adaptan a movil de forma auto */
}

.data__icons{
    display: grid;
    gap: 1em;
    justify-items: center;
    width: 260px;
    overflow: hidden;
    margin: 0 auto;
    border: 4px solid;
    border-color: #2091f9;
    border-radius:30px ;
    padding: 30px;
    
}

.data__icon{
    width: 60px;
    cursor: pointer;
    transition: 1s width;
}

.data__icon:hover {
    width: 90px;
    

}



/* ------------------------------------------------- Laboratorio e intalaciones --------------------------------- */

.labs{
    background-color: #e5e5f7;
    background-image: radial-gradient(#444cf7 0.5px, #e5e5f7 0.5px);      /* Fondo de puntos */
    background-size: 10px 10px;
    overflow: hidden;
    padding: 45px;
    text-align: center;

    
}

.lab_subtitle {
    margin-left: 0;

}

.labs__paragraph{
    line-height: 1.9;
    margin-bottom: 15px;
    font-size: 18px;

}


.slider__container{
    width: 70%;
    margin: auto;
    overflow: hidden;
}

.slider{
    display: flex;
    padding: 0;
    width: 500%;
    animation: move-slide 30s infinite alternate;
}

@keyframes move-slide{
    0% { margin-left: 0; }
    15% { margin-left: 0; }

    20% { margin-left: -100%; }
    35% { margin-left: -100%;}

    40% { margin-left: -200%;}
    55% { margin-left: -200%;}

    60% { margin-left: -300%;}
    75% { margin-left: -300%;}

    80% { margin-left: -400%;}
    100% { margin-left: -400%;}

}

.slider__item{
    width: 100%;
    list-style: none;
    padding: 0;

}

.slider img{
    width: 100%;
    background-size: cover;
}

.flex-caption{
    padding: 3%;
    text-align: justify;
    margin-top: 0;
    background: #7a7abe;
    font-size: 14px;
    color: #fff;


}


/*----------------------------- Questions------------------------- */

.questions{
    text-align: center;
}

.questions__container{
    display: grid;
    gap: 2em;
    padding-top: 50px;
    
}

.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__copy{
    width: 60%;
    margin: 0 auto;
    margin-bottom: 30px;
}


/*----------------------------- Footer ------------------------- */

.footer{
    background-color: #1D293f;
}



.footer__title2 {
    font-weight: 300;
    width: 200px;
    margin-bottom: 20px;

    
    
}

.footer__newsletter{
    color: #fff;
}

.footer__container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #fff;
    padding-bottom: 60px;
}

.nav--footer{
    padding-bottom: 20px;
    display: grid;
    gap: 1em;
    grid-auto-flow: row;
    height: 100%;
}

.nav__link--footer{
    display: flex;
    margin: 0;
    margin-right: 20px;
    flex-wrap: wrap;
}

.footer__inputs{
    margin-top: 10px;
    overflow: hidden;
}

.footer__input {
    background-color: #fff;
    height: 50px;
    display: block;
    padding-left: 10px;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    border: none;
    
    margin-bottom: 15px;
}

.footer__text {
    background-color: #fff;
    min-height: 50px;
    display: block;
    padding-left: 9px;
    border-radius: 6px;
    font-size: 1rem;
    outline: none;
    border: none;
    
}

.footer__submit {
    margin-top: 13px;
    display: block;
    height: 50px;
    padding: 0 20px;
    background-color: #2091f9;
    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;
}

.footer__logo{
    font-weight: 300;
    width: 174px;
    
}




/* ============================================================== Responsive (Media queries) =============================== */


/* ------------ Tabletas --------- */

@media (max-width:811px){

    .nav__title{
        width: 400px;
    }

    .nav__title2{
        
        width: 140px;
    }

    /* ----- Menu de mobile ----- */
    .nav__menu{
        display: block;
    }


    .nav__link--menu{
        position: fixed;
        background-color: #1d293f;
        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;
        border: solid white 1px;
    }

    .nav__link--show{
        --show: block;
        opacity: 1;
        pointer-events: unset;
    }

    .nav__close{
        position: absolute;
        top: 30px;
        right: 30px;
        width: 30px;
        cursor: pointer;

    }
    /* ---- Hero - nav ---- */

    .hero__container{
        padding-bottom: 120px;
    }

    .hero__title{
        font-size: 2.5rem;
    }

    /* ---- main ---- */

    .about__main{
        gap: 2em;
    }

    .about__icons:last-of-type{
        grid-column: 1/-1;
    }


    /* ---- Data ---- */
    .data__main{
        gap: 2em;
    }

    .data__icons:last-of-type{
        grid-column: 1/-1;
    }

    /* ---- Porque estudiar ing electrica  ---- */

    .knowledge__container{
        grid-template-columns: 1fr;
        grid-template-rows: max-content 1fr;
        gap: 3em;
        text-align: center;
    }

    .knowledge__picture{
        grid-row: 1/2;
        justify-self: center;
    }

    /* --- Instalaciones y laboratorios --- */
    .labs{
        text-align: center;
    }

    /* --- Footer --- */

    .footer__container{
        flex-wrap: wrap;
    }

    .nav--footer{
        width: 100%;
        justify-items: center;
    }

    .nav__link--footer{
        width: 100%;
        justify-content: space-evenly;
        margin: 0;
        margin-bottom: 30px;
    }

    .footer__form{
        width: 100%;
        justify-content: space-evenly;
        margin: 0;
    }


    .footer__inputs{
        display: flex;
        flex-wrap: wrap;
    }

    .footer__input{
        flex: 1;
        flex-basis: 100%;
        margin-bottom: 16px;
    }

    .footer__text{
        flex: 1;
        flex-basis: 50%;
        
    }

    .footer__submit{
        margin-left: 15px;
        margin-top: 10%;
    }
}

/* --- Tableds pequeñas  --- */
@media (max-width:600px){

    .nav__title{
        width: 280px;
    }

    .hero__title{
        font-size: 2rem;
    }

    .nav__title2{
        width: 120px;
    }

    .hero__paragraph{
        font-size: 1.5rem;
    }

    .subtitle{
        font-size: 1.8rem;
    }

    .labs__paragraph{
        font-size: 16px;
    }

    .labs{
        padding: 20px;
    }
}

/* -------------------------- Celulares ------------------- */

@media (max-width:510px){

    .nav__title{
        width: 240px;
        
    }

    .nav__title2{
        width: 110px;
        margin-right: 23px;
    }

    .labs{
        padding: 15px;
    }


    .lab_subtitle{
        font-size: 1.7rem;
    }

    .labs__paragraph{
        line-height: 1.7;
    }

    .footer__title2{
        width: 190px;
    }


}

@media (max-width:440px){

    .nav__title{
        width: 190px;
    }

    .nav__title2{
        width: 90px;
        margin-right: 20px;
    }
     
    .hero__paragraph{
        font-size: 1.4rem;
    }


    .questions__title{
        font-size: 1rem;
    }

    /* --- Footer --*/

    .footer__title2{
        width: 170px;
    }


    .lab_subtitle{
        font-size: 1.33rem;
    }

    .flex-caption{
        font-size: 11px;
    }

    .footer__logo{
        justify-self: center;
        width: 140px;
    }

    

    .labs{
        padding: 10px;
    }



    .nav--footer{
        padding: 0;
        margin-bottom: 30px;
    }

    .footer__inputs{
        flex-wrap: wrap;
        
    }

    .footer__input{
        flex-basis: 100%;
        margin-bottom: 16px;
        
    }

    .footer__text{
        flex-basis: 100%;
        margin-bottom: 16px;
    }

    .footer__submit{
        margin-left: 0;
        margin-top: 0;
        width: 100%; 
        
    }

    .footer__newsletter{
        font-size: 1.2rem;
    }
}

@media (max-width:365px){

    .nav__title2{
        margin-right: 10px;
    }

    .nav__title{
        width: 175px;
    }
}