
.container {
    width: 90%;
    max-width: 81em;
    margin: 0 auto;
    padding: var(--padding-container);
}

.hero {
    width: 100%;
    height: 100px;
    max-height: 600px;
    position: relative;
    display: grid;
    grid-template-rows: 100px 1fr;
    color: #F0F8FF;
}

/* Nav */

.nav {
    --padding-container: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav__logo img{
    height: 250px;
    width: 350px;
    cursor: pointer;
}


.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: gray;
    text-decoration: none;
    position: relative;
    text-decoration: none;
}

.nav__links::after{
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #6db7b5;
    left: 0;
    bottom: -2px;
    transition: width 0.5s ease-in-out;
}

.nav__links:hover {
    color: var(--color-title); /* Cambia el color al hacer hover */
    transform: scale(1.1); /* Amplía ligeramente el elemento */
    text-shadow: #6db7b5; /* Agrega un efecto de brillo */
  }

.nav__links:hover::after{
    width: 100%;
}


.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: 2rem;
}

.hero__title img {
    max-width: 100%;  /* Evita que la imagen sobrepase su contenedor */
    height: auto;  /* Mantiene la proporción de la imagen */
    display: block; /* Evita espacios no deseados */
    margin: 0 auto; /* Centra la imagen */
}

@media (max-width: 550px) {
    .hero__title img {
        width: 80%; /* Ajusta el tamaño de la imagen para pantallas pequeñas */
    }
}

/* .hero__paragraph {
    margin-bottom: 20px;
} */

.cta {
    display: inline-block;
    background-color: #a9cce3;
    justify-self: center;
    color: #fff;
    text-decoration: none;
    padding: 13px 30px;
    border-radius: 32px;
}



@media (max-width:800px){
    .nav__menu{
        display: block;
    }

    .nav__link--menu{
        position: fixed;
        background-color: #fbd5e5;
        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;
    }


    .about__main{
        gap: 2em;
    }

    .about__icons:last-of-type{
        grid-column: 1/-1;
    }


    .conocimiento__container{
        grid-template-columns: 1fr;
        grid-template-rows: max-content 1fr;
        gap: 3em;
        text-align: center;
    }

    .conocimiento__picture{
        grid-row: 1/2;
        justify-self: center;
    }

    .testimonio__container{
        grid-template-columns: 30px 1fr 30px;
    }

    .testimonio__body{
        grid-template-columns: 1fr;
        grid-template-rows: max-content max-content;
        gap: 3em;
        justify-items:center ;
    }


    .testimonio__img{
        width: 200px;
        height: 200px;
        
    }

    .preguntas__copia{
        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__inputs{
        flex: 1;
    }

}


@media (max-width:600px){
    .hero__title{
        font-size: 2rem;
    }

    .hero__paragraph{
        font-size: 1rem;
    }

    .subtitle{
        font-size: 1.8rem;
    }

    .price__element{
        width: 90%;
    }

    .price__element--best{
        width: 90%;
        /* padding: 40px; */
    }

    .price__price{
        font-size: 2rem;
    }

    .testimonio{
        --padding-container: 60px 0;
    }

    .testimonio__container{
        grid-template-columns: 28px 1fr 28px;
        gap: .9em;
    }

    .testimonio__arrow{
        width: 100%;
    }

    .testimonio__course{
        margin-top: 15px;
    }

    .preguntas__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;
    }
}

@media (max-width: 900px) {
    .nav__logo img {
        width: 250px;
        height: auto;
    }
}

@media (max-width: 600px) {
    .nav__logo img {
        width: 180px;
        height: auto;
    }
}

@media (max-width: 400px) {
    .nav__logo img {
        width: 150px;
        height: auto;
    }
}