/* Generales */
*{
    margin: 0;
    box-sizing: border-box;
}

body{
    font-family: "Inter", sans-serif;
}

.container{
    max-width: 1200px;
    width: 90%;
    margin-inline: auto;
    overflow: hidden;
}

.container_2{
    max-width: 900px;
    width: 90%;
    margin-inline: auto;
    overflow: hidden;
}

.container_3{
    max-width: 900px;
    width: 90%;
    margin-inline: auto;
}

/* Navegación */

.hero_nav{
    background-color: #F4F5FF;
    box-shadow: 0 8px 9px -4px rgba(235, 228, 255, 0.3), 0 4px 18px 0 rgba(235, 228, 255, 0.2);
    position: sticky;
    top: 0;
    left: 0;
    z-index: 2;
    
    animation: enhance-nav linear both;
    animation-timeline: scroll(root);
    animation-range: 0 200px;
}

.hero{
    background-color: #F4F5FF;
}

.nav{
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;

    --url-menu: url("./assets/menu.svg");
    --opacity-menu: 0;
    --transform-menu: translateY(-120%);
    --pointer-menu: none;

}

.nav:has( :checked ){
    --url-menu: url("./assets/close.svg");
    --opacity-menu: 1;
    --transform-menu: translate(0);
    --pointer-menu: unset;
}

.nav__logo{
    width: 40%;
    max-width: 160px;
}

.nav__img{
    width: 100%;
    display: block;
}

.nav__menu{
    position: absolute;
    top: 80px;
    inset-inline: 0;
    padding: 30px 5%;
    background-color:rgba(244, 245, 255);

    pointer-events: var(--pointer-menu);

    opacity: var(--opacity-menu);
    transform: var(--transform-menu);
    

    transition: .8s opacity, transform .8s;
}

.nav__links{
    list-style:none;
    padding: 0;

    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav__link{
    color: #100606;
    text-decoration: none;
}

.nav__link:hover{
    color: #e0dcdc;
}

.nav__list{
    transition: translate .4s;
}

.nav__list:hover{
    translate: 0 5px;
}

.nav__buttons{
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.btn{
    text-align: center;
    padding: 1rem 2rem;
    background-color: #e0dcdc;
    text-decoration: none;
    border-radius: 4px;
    color: #000;

    min-width: max-content;
    width: 100%;
    border: 1px solid transparent;
    transition: translate .4s;
}

.btn:hover{
   translate: 0 10px; 
}

.btn--black{
    background-color: #3D3D3D;
    color: white;
}

.btn--black:focus{
    background-color: #252525;
}

.btn--white{
    background-color: #e0dcdc;
}

.btn--white:focus{
    background-color: #C8C4C4;
}

.nav__label{
    display: block;
    width: 40px;
    height: 40px;

    background-image: var(--url-menu);
    background-size: contain;
    background-position: center;
    cursor: pointer;

    transition: background-image .4s;
}

[id="menu"]{
    display: none;
}


/* Hero Main */

.main_about,
.main_technology{
    background-color: #EBE4FF;
}

.main_stages{
    background-color: #F4F5FF;
}

.hero__main{
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 4.5rem;
}

.hero__title{
    font-size: 2.5rem;
}

.hero__paragraph{
    margin: 2rem 0;
    line-height: 1.8;
}

.hero__vinetas{
    margin: 1rem 0;
    line-height: 1.8;
}

.hero__buttons{
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}


.hero__icon{
    vertical-align: top;
}

.hero__figure{
    max-width: 600px;
    margin: 0 auto;
}

  
.hero__img{
    width: 100%;
    border-radius: 10px;

    animation: fade-img-inicial linear both;
    animation-timeline: scroll(root);
    animation-range: 0 600px;
    /*animation-timeline: view();
    animation-range: entry 20% cover 50%;*/
    
}

.hero__form{
    max-width: 600px;
    display: flex;
    flex-direction: column;
}

.entryarea{
    /*position: relative;*/
    max-width: 600px;
    display: flex;
    flex-direction: column;
    height: 40px;
    line-height: 40px;
    margin: 0px 0px 20px 0px;
}

.entryarea_textarea{
   /* position: relative;*/
    max-width: 600px;
    display: flex;
    flex-direction: column;
    height: 80px;
    line-height: 40px;
    margin: 0px 0px 20px 0px;
}

input{
    /*position: absolute;*/
    width: 100%;
    line-height: 40px;
    border-radius: 10px;
    font-size: 16px;
    padding: 0 30px;
    border: 2px solid #EBE4FF;
    background-color: transparent;
    outline: none;
    
    transition: 0.1s ease;
    z-index: 1;
}


textarea{
    /*position: absolute;*/
    width: 100%;
    line-height: 40px;
    border-radius: 10px;
    font-size: 16px;
    padding: 0 30px;
    border: 2px solid #EBE4FF;
    background-color: transparent;
    outline: none;
    resize: none;
    form-sizing: content;
    max-height: 120px;
    
    transition: 0.1s ease;
    z-index: 1;
}

.labelline{
    position: absolute;
    color: #EBE4FF;
    font-size: 16px;
    padding: 0 25px;
    pointer-events: none;
    margin: 0 20px;
    background-color: #F4F5FF;
    transition: .2s ease;
}

input:hover,
textarea:hover{
   border: 2px solid #673DE6;
}

input:focus,
input:valid{
    color: #3D3D3D;
    border: 3px solid #3D3D3D;
}   

textarea:focus,
textarea:valid{
    color: #3D3D3D;
    border: 3px solid #3D3D3D;
}  
  
input:focus + .labelline,
input:valid + .labelline{
    color: #3D3D3D;
    height: 30px;
    line-height: 30px;
    padding: 0 12px;
    transform: translate(-15px, -16px) scale(0.88);
    z-index: 1;
}

textarea:focus + .labelline,
textarea:valid + .labelline{
    color: #3D3D3D;
    height: 30px;
    line-height: 30px;
    padding: 0 12px;
    transform: translate(-15px, -16px) scale(0.88);
    z-index: 1;
}


/* About */

.about{
    padding: 90px 0;
}

.about__title{
    font-size: 2.5rem;
}

.about__paragraph{
    margin-top: 1.5rem;
    line-height: 1.6;
}

.cards{
    margin-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.cards__article{
    width: 250px;
    max-width: 500px;
    flex-grow: 1;

    display: flex;
    gap: 1.5rem;
}

.cards__figure{
    width: 40px;
    height: 40px;
    background-color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cards__text{
    width: 50%;
    flex-grow: 1;
}

.cards__title{
    font-size: 1.3rem;
    margin-bottom: .8rem;
}

.cards__paragraph{
    line-height: 1.8;
}

/* Stages */

.stages{
    padding: 90px 0;
}


.stage__img{
    width: 100%;
    border-radius: 50%;
}


/* Technology */

.technology{
    padding: 80px 0;
}

.technology__title{
    font-weight: 300;
    font-size: 1.5rem;
    text-align: center;
}

.technology__container{
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.technology__img{
    width: 20%;
    max-width: 70px;
}

/* cta */

.cta{
    text-align: center;
    background-color:  #3D3D3D;
    color: white;
    border-radius: 10px;
    padding: 2rem 2.5rem;
}

.cta__title{
    font-size: 2rem;
    font-weight: 400;
}

.cta__paragraph{
    line-height: 1.8;
    margin: .9rem 0;
    color: #94a3b8;
}

.cta__btn{
    display: inline-block;
    color: black;
    background-color: #e0dcdc;
    text-decoration: none;
    padding: .7rem 1.4rem;
    border-radius: 10px;
}

.footer{
    background-color: #EBE4FF;
    display:flex;
    align-items: center;
    padding: 60px 0;
    justify-content: center;
    text-align: center;
    gap: 1rem;
}

/* productos */

.producto__main{
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 4.5rem;
}

.producto__figure{
    max-width: 600px;
    margin: 0 auto;
    cursor: pointer;
    box-shadow: 0 8px 9px -4px rgba(235, 228, 255, 0.3), 0 4px 18px 0 rgba(235, 228, 255, 0.2);
    
    animation: fade-img-producto linear both;
    animation-timeline: view();
    animation-range: entry 20% cover 50%;
    /*animation-timeline: scroll(root);
    animation-range: 0 600px;*/
    
}


.producto__img{
    width: 100%;
    border-radius: 10px;
}

.video__figure{
    max-width: 320px;
    max-height: 180px;
    margin: 0 auto;
}

.video__mp4{
    width: 100%;
    border-radius: 10px;
}


/* perfiles */

.perfil__main{
    padding: 30px 0;
    display: flex;
    flex-direction: column;
    gap: 4.5rem;
}

.perfil__figure{
    max-width: 300px;
    margin: 0 auto;
}

.perfil__img{
    width: 100%;
    border-radius: 50%;
}

.perfil__article{
    max-width: 600px;
    margin: 0 auto 1rem auto;
}

.perfil__title{
    font-size: 2.5rem;
}

.perfil_subtitle{
    margin: 2rem 0;
    font-size: 1.1rem;
}

.perfil__icon {
    width: 40px;
    height: 40px;
    background-color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.perfil__paragraph{
    margin: 0;
    line-height: 1.8;
}

.perfil__paragraph_2{
    padding: 5px;
    margin: 2rem 0;
    line-height: 1.8;
    border-style: solid;
    border-color: #e0dcdc;
    border-radius: 20px;
    border-width: 2px;
}

.redes__enlace{
    margin: 2rem 0;
    width: 250px;
    max-width: 500px;
    flex-grow: 1;
    
    color: #100606;
    text-decoration: none;

    display: flex;
    gap: 1.5rem;
}


.redes__enlace:hover{
    color: #e0dcdc;
}

@media (width > 768px) {
    .nav__logo{
        max-width: 200px;
    }

    .hero__main{
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
    
    .hero__form{
        min-width: 600px;
    }
    
    .perfil__main{
        flex-direction: row;
        align-items: stretch;
        justify-content: space-between;
    }
    
    .perfil__content{
        width: 600px;
    }
    
    .producto__figure{
        min-width: 600px;
    }
    
    .video__figure{
    min-width: 640px;
    min-height: 360px;
    }
    
}

@media (width > 1024px) {
    .nav{
        height: 120px;

        --opacity-menu: 1;
        --transform-menu: unset;
        --pointer-menu: unset;
    }

    .nav__menu{
        position: static;
        flex-grow: 1;

        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0;
        background-color: transparent;

    }

    .nav__links{
        margin: 0 auto;
        flex-direction: row;
        gap: 1rem;
    }

    .nav__label{
        display: none;
    }

}

/* Animacion con Java */

[data-animation="fade"]{
    opacity: 0;
    transform: translate(100%);
    transition: .6s ease-in .3s;
    
    --opacity: 1;
    --transform: translate(0);
}

[data-animation="fade-inv"]{
    opacity: 0;
    transform: translate(-100%);
    transition: .6s ease-in .3s;
    
    --opacity: 1;
    --transform: translate(0);
}

[data-animation="show"]{
    opacity: 0;
    transform: scale(0);
    transition: .6s ease-in .3s;
    
    --opacity: 1;
    --transform: scale(1);
}

[data-animation="up"]{
    opacity: 0;
    transform: translateY(100%);
    transition: .6s ease-in .3s;
    
    --opacity: 1;
    --transform: translateY(0);
}

[data-animation="up-inv"]{
    opacity: 0;
    transform: translateY(-100%);
    transition: .6s ease-in .3s;
    
    --opacity: 1;
    --transform: translateY(0);
}

.unset {
    opacity: var(--opacity);
    transform: var(--transform);
}

/* Animacion Nativa */


@keyframes enhance-nav {
    
    to {
     background-color:rgba(244, 245, 255, .4);   
     backdrop-filter: blur(5px);
    }
    
}    


@keyframes fade-img-inicial {
    
    from {
     opacity: 1;
     translate: 0 0;
     scale: 1;
     
     /*transform: translate(0, 0);
     transform: scale(1);*/
    }
    
    to {
     opacity: 0;
     translate: 0 100px;
     /*scale: .5;*/
     
     /*transform: translate(0, 100px);
     transform: scale(.5);*/   
    }
} 

@keyframes fade-img-producto {
    
    from {
     opacity: 0;
     translate: 0 100px;
     scale: .5;
    }
    
    to {
     opacity: 1;
     translate: 0 0;
     scale: 1;
    }
}  


    
