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

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

body {
    font-family: 'Poppins', sans-serif;
    background: #ffffff;
    margin: 0;
}

.container {
    position: relative;
    width: 75%;
    margin: 0 auto;
    overflow: hidden;
    padding: var(--padding-container);
}

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

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



/* Nav */

/* .nav {
    --padding-container: 0;
    height: 90%;
    width: 100%;
    display: flex;
    align-items: center;
    background-color: #ffffff;
    opacity: 0.7;
    border-radius: 50px;
} */

.nav {
    --padding-container: 0;
    height: 10%;
    width: 100vw;
    display: flex;
    align-items: center;
    background-color: #ffffff;
    opacity: 0.96;
    position: fixed;
    z-index: 1000;
}

.nav .nav__logo{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0;
}
/* .nav .nav__logo img{
    height: clamp(3rem, 2vw, 3rem);
    padding: 0;
    border: 0;
    transition: calc(0.5s);
} */

.nav .nav__logo img {
    height: clamp(3rem, 2vw, 3rem);
    padding: 0;
    border: 0;
    transition: transform 0.4s ease-in-out, opacity 0.4s ease-in-out;
    animation: fadeInUp 0.6s ease-out;
}

/* Hover: agrandar un poco */
.nav .nav__logo img:hover {
    transform: scale(1.1);
    cursor: pointer;
}

/* Animación de entrada */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}



/* .nav__title {
    font-weight: 20px;
    font-size: clamp(1.5rem, 2vw, 2rem);
    color: rgba(79,129,189,255);
    font-family: 'Times New Roman', Times, serif;
    padding-bottom: 1.5rem;
    gap: 0px;
} */

.nav__title {
    font-weight: 20px;
    font-size: clamp(1.5rem, 2vw, 2rem);
    color: rgba(79,129,189,255);
    font-family: 'Times New Roman', Times, serif;
    padding-bottom: 0;
    margin: 0;
    width: max-content;
    animation: fadeInUp 0.6s ease-out 0.1s; /* empieza un poco después */
}



.nav_titles p{
    color: #1D293F;
    padding: 0;
    margin: -4px;
    padding-bottom: 0.5rem;
    font-size: 11px;
    text-align: right;
    padding-right: 0.3rem;
    animation: fadeInUp 0.6s ease-out 0.1s;   
}

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

/* .nav__links:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
} */

.nav__items {
    list-style: none;
}

.nav__links {
    color: #001A49; /* rgba(79,129,189,255);*/
    text-decoration:none;
    /* font-family: Verdana, sans-serif; */
    font-family: 'Roboto', sans-serif;
    /* font-family: 'Lato', sans-serif; */
    /* font-family: 'Lato', sans-serif; */
    /* font-family: 'Montserrat', sans-serif; */
    font-style: normal;
    font-size: clamp(0.9rem, 2vw, 1rem);
    position: relative;
    padding: 0px;
}

.nav__links:hover {
    font-weight: bold;
}

ul li a::before{
    content: '';
    width: 0px;
    height: 5px;
    background: rgba(79, 129, 189, 255);
    border-radius: 2.5px;
    position: absolute;
    top: 100%;
    left: 0;
    transition: .5s;
}

ul li:hover a:before{
    width: 50%;
    transform: translateX(100%);
}

.nav__link{
    padding-right: 20px;
}


.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: 90vw;
    min-width: 20vw;
    height: 500px;
    --padding-container: 0;
    display: grid;
    justify-content: center;
    grid-auto-rows: max-content;
    align-content: center;
    gap: 1em;
    padding: 0;
    text-align: center;
    top: 0.5vh; /* Alinea el contenedor con la parte superior de la página */
    width: 100%; /* Asegura que el contenedor ocupe todo el ancho */
    
}

.hero__title {
    font-size: 3rem;
}

.hero__paragraph {
    margin-bottom: 10px;
    font-family: 'Lato', sans-serif;
    font-size: 1.3rem;
    height: 100px;  
}

.cta {
    display: inline-block;
    background-color: #25D366;
    justify-self: center;
    color: #fff;
    text-decoration: none;
    padding: 13px 30px;
    border-radius: 32px;
}

/* About */

.about {
    text-align: center;
    padding: 5vh;
    
}

.subtitle {
    color: var(--color-title);
    font-size: 2rem;
    margin-bottom: 25px;
}


.about__paragraph {
    line-height: 1.7;
    text-align: justify;
    
}

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


.about__icons {
    display: grid;
    gap: 1em;
    justify-items: center;
    width: 260px;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 5%;
    background-color: #1D293F;
    box-shadow: 0 0 5px 5px rgba(0, 3, 43, 0.5);
    color: white;
}
.about__icons ion-icon{
    color: #fff;
    width: 50px;
    height: 50px;
    background-image: radial-gradient(#494c90 0.5px, transparent 0.5px), radial-gradient(#00ff11 0.1px, #1D293F 30px);
}
.about__icon {
    width: 40px;
    padding: 20px;
    
}

.about__title{
    margin: 0;
}

.about__paragrah{
    text-align: center;
    margin: 0;
}

/* coverage */
.slider {
    display: flex;
    height: auto;
    margin: auto;
    overflow: hidden;
    align-items: center;
    width: 80%;
    position: relative;
}

.slider::before, .slider::after {
    position: absolute;
    top: 0;
    width: 23.958%;
    height: 100%;
    content: "";
    z-index: 1;
    pointer-events: none;
}

.slider::before {
    left: 0;
    background: linear-gradient(to right, #ffffff 10%, rgba(255, 255, 255, 0));
}

.slider::after {
    right: 0;
    background: linear-gradient(to left, #ffffff 10%, rgba(255, 255, 255, 0));
}

.slider-track {
    display: flex;
    width: calc(180px * 14);
    animation: scroll 15s linear infinite;
    white-space: nowrap;
    padding: 5vh;
    padding-top: 0vh;
}

.slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 180px;
}

.slide img {
    width: 70px;
    height: 40px;
    padding: 10px;
    background-color: white;
    cursor: pointer;
    margin: 10px;
    border-radius: 20px;
    
}

.slider .slide h4{
    padding: 0px;
    margin: 0%;
    
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-180px * 9));
    }
}


/* Knowledge */

.knowledge {
    background-color: #e5e5f7;
    background-image: radial-gradient(#444cf7 0.5px, transparent 0.5px), radial-gradient(#444cf7 0.5px, #ffffff 0.9px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    overflow: hidden;
}

.knowledge__container{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
    align-items: center;
    padding: 5vh;
}

.knowledge__picture{
    max-width: 500px;
}

.knowledge__paragraph{
    line-height: 1.7;
    margin-bottom: 15px;
    text-align: justify;
}


.knowledge__img{
    width: 100%;
    display: block;
    box-shadow: 0 0 20px 20px rgba(22, 230, 53, 0);
    border-radius: 5%;
    overflow: hidden;
}

/* Testimony */

.testimony{
    background-color: #e5e5f7;
    
}

.testimony__container{
    display: grid;
    grid-template-columns: 50px 1fr 50px;
    gap: 1em;
    align-items: center;
    padding: 1vh;
    width: 90vw;
    
}

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


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

.testimony__img{
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 30%;
}

.testimony__texts{
    max-width: 80vw;
    text-align: justify;

}

.testimony__course{
    background-color: rgb(5, 14, 41);
    color: #fff;
    display: inline-block;
    padding: 5px;
}

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

/* Questions */

.questions{
    text-align: center;
    padding: 3vh;
}

.questions__container{
    display: grid;
    gap: 2em;
    padding: 1vh;
    /*padding-bottom: 10px;*/

}

.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: 10px 0 10px;
    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;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    height: 0;
    transition: height .3s;
}

.questions__img{
    display: block;
}

.questions__copy{
    width: 60%;
    margin: 0 auto;
    margin-bottom: 30px;
}

/* share */

.share {
    position: fixed;
    bottom: 5px; 
    right: 5px; 
    display: flex;
    justify-content: center; 
    align-items: center;
    z-index: 1;      
}

.menu{
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu .toggle{
    position: relative;
    width: 80px;
    height: 80px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    box-shadow: 0 25px 15px rgba(0,0,0,0.25),
    0 25px 20px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 3em;
    color: #25D366;
    z-index: 10000;
}

.menu .toggle ion-icon{
    position: absolute;
    opacity: 0;
    transition: 0.5s;

}

.menu .toggle ion-icon:nth-child(1){
    opacity: 1;
    transform: rotate(360deg);
}

.menu.active .toggle ion-icon:nth-child(1){
    opacity: 0;
    transform: rotate(0deg);
}

.menu.active .toggle ion-icon:nth-child(2){
    opacity: 1;
    transform: rotate(360deg);
}

.menu li{
    position: absolute;
    left: 0;
    list-style: none;
    transform-origin: 110px;
    transition: 0.5s;
    transition-delay: calc(0.05s * var(--i));
    transform: rotate(calc(360deg /5 * var(--i)));
    scale: 0;
    z-index: 1;
    border-radius: 50%;
    overflow: hidden;
}

.menu li::before{
    content: '';
    position: absolute;
    top: 0;
    left: -30px;
    width: 20px;
    height: 100%;
    background: #fff;
    z-index: 10;
    transform: skewX(325deg) translateX(0);
    box-shadow: -5px 0 0 #fff5;
    transition: 0.5s;
}

.menu li:hover::before{
    transform: skewX(325deg) translateX(180px);
    box-shadow: -50px 0 0 #fff5;

}


.menu.active li{
    scale: 1;
}

.menu li a{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80px;
    height: 80px;
    background: var(--clr);
    color: #fff;
    font-size: 2.25em;
    border-radius: 50%;
    transform: rotate(calc(360deg / -5 * var(--i)));
    box-shadow: 0 3px 4px rgba(0,0,0,0.15);
}

/*WhatsApp*/

.wha{
    display: none;
    justify-content: center;;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 30vh;
    background-color: rgba(0, 0, 0, 0.01);
    padding-bottom: 5vh;
    justify-self: center;
    
}


.wha-content {
    display:flexbox;
    flex-direction: column;
    justify-content: center;
    align-content: center;
    text-align: center;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.9);
    margin: 10% auto;
    padding: 0;
    border-radius: 10px;
    border: 2px solid #25d366;;
    width: 50%;
    max-width: 400px;
    max-height: 80vh; /* Altura máxima de la ventana modal */
    overflow-y: auto; /* Activa el scroll vertical si el contenido es largo */
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}


.closeWha {
    float: right;
    font-size: 30px;
    cursor: pointer;
    margin-right: 2vw;
}


.wha-header {
    display: flex;
    align-items: center;
    justify-content:space-evenly;
    background-color: #25d366;
    width: 100%;
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    text-align: left;
}

.perfil-nombre{
    display: flex;
    align-items: center;
    justify-content:flex-start;
    width: 90%;   
}

.enLinea{
    font-size: 0.9em;
}

.lista-header {
    list-style-type: none; 
    padding: 0; 
    margin: 0;
  }
  .lista-header h4{
    padding: 0;
    margin: 0; 
  }

.perfil img{
    margin: 10px;
    height: 50px;
    width: 50px;
    border-radius: 50%;
    background-color: #001A49;;
    object-fit: cover;
    object-position: 50% 20%;
}

.wha-text .cta{
    color: black;
    margin: 10px;
}


.message {
    background-color: #262924;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
    padding: 10px;
    margin: 10px;
    max-width: 90%;
    position: relative;
    clear: both;
    float: left;
    
}
.message::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 0;
    width: 0;
    height: 0;
    border-top: 15px solid #262924; /*DCF8C6*/
    border-left: 15px solid transparent;
}
.message-text {
    word-wrap: break-word;
}
.message-time {
    font-size: 0.7em;
    color: rgba(255, 255, 255, 0.45);
    text-align: right;
    margin-top: 5px;
}

/* Footer */
/* color #1D293F */
.footer{
    background-color: rgb(0, 0, 0);
    
}

/* .footer__title{
    font-weight: lighter;
    font-size: 2rem;
    margin-bottom: 30px;
    padding: 0;
    margin: 0;
    font-family: 'Times New Roman', Times, serif;
} */

.footer__title {
    font-weight: lighter;
    font-size: 2rem;
    font-family: 'Times New Roman', Times, serif;
    margin: 0;
    padding: 0;
    margin-bottom: 30px;
}

.footer__title, .footer__newsletter{
    color: #ffffff;
    padding-bottom: 0px;
    margin: 0;
}


.footer__container{
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #a23131;
    padding-bottom: 5px;
    padding: 20px;
}

.footer__container.container{
    text-align: center;
    padding: 20px;
}

.nav--footer{
    padding-bottom: 2px;
    display: grid;
    gap: 1em;
    grid-auto-flow: row;
    height: 100%;
    color: white;
    margin: 0;
    padding: 0;
}

.nav__link--footer{
    margin: 0;
    margin-right: 20px;
    flex-wrap: wrap;
    
}
.nav__link--footer a{
    color:white;
    font-family: Verdana, sans-serif;
    font-style: normal;
    font-size: 2.2vh;
}

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

.footer__copyright{
    font-weight: 300;
    font-family: Verdana, sans-serif;
    font-style: normal;
}

.footer__icons{
    margin-bottom: 10px;
}

.footer__img{
    width: 30px;
}
@media (max-width:800px){
    
    
    .nav__menu{
        display: block;
        padding-right: 4%;
        
    }

    .nav__link--menu{
        position: fixed;
        background-color: #1D293F;
        top: 0;
        left: 20vw;
        height: max-content;
        width: 60%;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
        z-index: 100;
        opacity: 0;
        pointer-events: none;
        transition: .7s opacity;
        border-left: 8px solid rgb(255, 255, 255);
    }

    .nav__items a{
        color: #ffffff;
        font-family: Verdana, sans-serif;
        font-style: normal;
    }


    .nav__link--show{
        display: flex;
        --show: block;
        opacity:1 ;
        pointer-events: unset;
        border-radius: 10px;
        
        
    }

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

    .hero__title{
        font-size: 2.5rem;
    }


    .about__main{
        gap: 2em;
    }

    .about__icons:last-of-type{
        grid-column: 1/-1;
    }


    .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;
    }

    .testimony__container{
        grid-template-columns: 50px 1fr 50px;
    }

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


    .testimony__img{
        width: 200px;
        height: 200px;
        
    }

    .questions__copy{
        width: 100%;
    }
}

@media (max-width:600px){


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

    .hero{
        min-height: 450px;
        max-height: 100px;
        position: relative;
        display: grid;
        grid-template-rows: 100px 1fr;
        color: #fff;

    }

    .hero__title{
        font-size: 1.5rem;
        margin: 10px;
    }

    .hero__paragraph{
        font-size: 1rem;
        margin: 10px;
    }

    .subtitle{
        font-size: 1.8rem;
    }

    .about__main {  
        padding: 1vw;   
    }

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

    .testimony__container{
        display: grid;
        grid-template-columns: 50px 1fr 50px;
        gap: 0.1em;
        align-items: center;
        padding: 0;
        margin: 0; 
        
    }
    

    .testimony__arrow{
        width: 100%;
    }

    .testimony__course{
        margin-top: 15px;
    }

    .testimony__picture{
        margin: 0;
    }

    .testimony__img{
        width: 200px;
        height: 200px;
    }
    


    .questions__title{
        font-size: 1rem;
    }

    .footer__container {
        flex-direction: column;
        padding: 40px 20px; /* más espacio vertical */
        gap: 30px;
    }

    .questions__padding{
        width: 80%;
    }

    .nav--footer {
        padding-bottom: 30px;
        gap: 1.5em; /* más separación entre ítems */
    }

    .nav__link--footer {
        display: flex;
        flex-direction: column;   /* cambia de fila a columna */
        align-items: center;      /* centra los links */
        gap: 10px;                /* espacio vertical entre links */
        width: 100%;
        margin: 0 auto;
        padding: 0;
        overflow-wrap: break-word;
    }

    .nav__link--footer a {
        font-size: 2.5vh;
        margin: 5px 0;
    }


    .menu .toggle{
        width: 50px;
        height: 50px;
    }
    .menu li a{
        width: 50px;
        height: 50px;
    }

    .menu.active li{
        scale: 1;
        
    }
    .menu{
        width: 140px;
        height: 140px; 
    }

    .menu li {
        transform-origin: 70px;
    }

    .menu .toggle{
        width: 50px;
        height: 50px;
    }
    .menu li a{
        width: 50px;
        height: 50px;
    }

    .menu.active li{
        scale: 1;
        
    }
    .menu{
        width: 140px;
        height: 140px; 
    }

    .menu li {
        transform-origin: 70px;
    }

    .wha-content {
        width: 90%;
    }

}
