/* 001 - generales */

html {
    box-sizing: border-box;
    font-family: 'Helvetica', sans-serif;
    font-size: 16px;
    scroll-behavior: smooth;
}
    
*,
*::after,
*::before {
   box-sizing: inherit;
}
    
body {
   margin: 0;
   padding: 0;
   overflow-x: hidden;
}



ul, h1, h2, h3, h4, h5, h6{
    list-style: none;
    padding: 0;
    margin: 0;
}

a{
    text-decoration: none;
}


/* 002 - header */

.menu{
    position: fixed;
    width: 100%;
    background-color: #fff;
    color: #3c7645;
    height: 80px;
    font-weight: 600;
    z-index: 10000;
}

.menu__container{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    height: 100%;
    margin: 0 auto;
}

.menu__logo{
    height: 90%;
    padding: 3px 0;
}

.menu__logo img{
    height: 100%;
    margin-right: 30px;
}

.menu__links{
    height: 100%;
    transition: transform .5s;
    display: flex;
    justify-content: space-evenly;
}

.menu__item{
    list-style: none;
    position: relative;
    height: 100%;
    --clip: polygon(0 0, 100% 0, 100% 0, 0 0);
    --transform: rotate(-90deg);
}

.menu__item:hover{
    --clip: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    --transform: rotate(0);
}

.menu__link{
    color: #3c7645;
    text-decoration: none;
    padding: 0 15px;
    display: flex;
    height: 100%;
    align-items: center;
    transition: 0.3s;
}

.menu__link:hover{
    background-color: #3c7645;
    color: #fff;
}


.menu__arrow{
    transform: var(--transform);
    transition: transform .3s;
    display: block;
    margin-left: 3px;
}

.menu__nesting{
    list-style: none;
    transition:clip-path .3s;
    clip-path: var(--clip);
    position: absolute;
    right: 0;
    bottom: 0;
    width: max-content;
    transform: translateY(100%);
    background-color: #000000cb;
}

.menu__link--inside{
    padding: 30px 100px 30px 20px;
}

.menu__link--inside:hover{
    background-color: #185E95;
}

.menu__hamburguer{
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 15px;
    cursor: pointer;
    display: none;
}

.menu__img{
    display: block;
    width: 36px;
}

@media (max-width: 925px){

    .menu__container{
        justify-content: space-between;
    }

    .menu{
        background-color: #000;
    }

    .menu__hamburguer{
        display: flex;
    }

    .menu__item{
        --clip:0;
        overflow:hidden ;
    }

    .menu__item--active{
        --transform: rotate(0);
        --background: #5e7094;
    }

    .menu__item--show{
        background-color: var(--background);
    }


    .menu__links{
        position: fixed;
        max-width: 400px;
        width: 100%;
        top: 70px;
        bottom: 0;
        right: 0;
        background-color: #000;
        overflow-y: auto;
        display: grid;
        grid-auto-rows: max-content;
        transform: translateX(100%);
    }

    .menu__links--show{
        transform: unset;
        width: 100%;
    }

    .menu__link{
        padding: 25px 0;
        padding-left: 30px;
        height: auto;
    }

    .menu__arrow{
        margin-left: auto;
        margin-right: 20px;
    }

    .menu__nesting{
        display: grid;
        position: unset;
        width: 100%;
        transform: translateY(0);
        height: 0;
        transition: height .3s;
    }

    .menu__link--inside{
        width: 90%;
        margin-left: auto;
        border-left: 1px solid #798499;
    }
}

/*slider inicio*/

.carousel{
    height: 100vh;
    width: 100%;
    overflow: hidden;
    position: relative;
}
.carousel .list .item{
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0 0 0 0;
}
.carousel .list .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel .list .item .content{
    position: absolute;
    top: 20%;
    width: 1140px;
    max-width: 80%;
    left: 50%;
    transform: translateX(-50%);
    padding-right: 30%;
    box-sizing: border-box;
    color: #fff;
    text-shadow: 0 5px 10px #0004;
}
.carousel .list .item .author{
    font-weight: bold;
    letter-spacing: 10px;
}
.carousel .list .item .title,
.carousel .list .item .topic{
    font-size: 5em;
    font-weight: bold;
    line-height: 1.3em;
    margin: 0;
    padding: 0;
}
.carousel .list .item .topic{
    color: #7ec24d;
}
.carousel .list .item .buttons{
    display: grid;
    grid-template-columns: repeat(2, 130px);
    grid-template-rows: 40px;
    gap: 15px;
    margin-top: 20px;
}
.carousel .list .item .buttons a{
    border: none;
    background-color: #3c7645;
    color: #fff;
    letter-spacing: 3px;
    font-family: Poppins;
    font-weight: 500;
    display: flex;
    justify-self: center;
    align-items: center;
    padding: 5px 15px;
    text-decoration: none;
}
.carousel .list .item .buttons a:nth-child(2){
    background-color: transparent;
    border: 1px solid #3c7645;
    color: #eee;
    display: flex;
    justify-self: center;
    align-items: center;
    padding: 5px 15px;
    text-decoration: none;
}
/* thumbail */
.thumbnail{
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: max-content;
    z-index: 100;
    display: flex;
    gap: 20px;
}
.thumbnail .item{
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
}
.thumbnail .item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}
.thumbnail .item .content{
    color: #fff;
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: 10px;
}
.thumbnail .item .content .title{
    font-weight: 500;
}
.thumbnail .item .content .description{
    font-weight: 300;
}
/* arrows */
.arrows{
    position: absolute;
    top: 80%;
    right: 52%;
    z-index: 100;
    width: 300px;
    max-width: 30%;
    display: flex;
    gap: 10px;
    align-items: center;
}
.arrows button{
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #eee4;
    border: none;
    color: #fff;
    font-family: monospace;
    font-weight: bold;
    transition: .5s;
}
.arrows button:hover{
    background-color: #fff;
    color: #000;
}

/* animation */
.carousel .list .item:nth-child(1){
    z-index: 1;
}

/* animation text in first item */

.carousel .list .item:nth-child(1) .content .author,
.carousel .list .item:nth-child(1) .content .title,
.carousel .list .item:nth-child(1) .content .topic,
.carousel .list .item:nth-child(1) .content .des,
.carousel .list .item:nth-child(1) .content .buttons
{
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent .5s 1s linear 1 forwards;
}
@keyframes showContent{
    to{
        transform: translateY(0px);
        filter: blur(0px);
        opacity: 1;
    }
}
.carousel .list .item:nth-child(1) .content .title{
    animation-delay: 0.5s!important;
}
.carousel .list .item:nth-child(1) .content .topic{
    animation-delay: 0.7s!important;
}
.carousel .list .item:nth-child(1) .content .des{
    animation-delay: 0.9s!important;
}
.carousel .list .item:nth-child(1) .content .buttons{
    animation-delay: 1.1s!important;
}
/* create animation when next click */
.carousel.next .list .item:nth-child(1) img{
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 30px;
    animation: showImage .5s linear 1 forwards;
}
@keyframes showImage{
    to{
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

.carousel.next .thumbnail .item:nth-last-child(1){
    overflow: hidden;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousel.prev .list .item img{
    z-index: 100;
}
@keyframes showThumbnail{
    from{
        width: 0;
        opacity: 0;
    }
}
.carousel.next .thumbnail{
    animation: effectNext .5s linear 1 forwards;
}

@keyframes effectNext{
    from{
        transform: translateX(150px);
    }
}

/* running time */

.carousel .time{
    position: absolute;
    z-index: 1000;
    width: 0%;
    height: 3px;
    background-color: #f1683a;
    left: 0;
    top: 0;
}

.carousel.next .time,
.carousel.prev .time{
    animation: runningTime 1s linear 1 forwards;
}
@keyframes runningTime{
    from{ width: 100%}
    to{width: 0}
}


/* prev click */

.carousel.prev .list .item:nth-child(2){
    z-index: 2;
}

.carousel.prev .list .item:nth-child(2) img{
    animation: outFrame 0.5s linear 1 forwards;
    position: absolute;
    bottom: 0;
    left: 0;
}
@keyframes outFrame{
    to{
        width: 150px;
        height: 220px;
        bottom: 50px;
        left: 50%;
        border-radius: 20px;
    }
}

.carousel.prev .thumbnail .item:nth-child(1){
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail .5s linear 1 forwards;
}
.carousel.next .arrows button,
.carousel.prev .arrows button{
    pointer-events: none;
}
.carousel.prev .list .item:nth-child(2) .content .author,
.carousel.prev .list .item:nth-child(2) .content .title,
.carousel.prev .list .item:nth-child(2) .content .topic,
.carousel.prev .list .item:nth-child(2) .content .des,
.carousel.prev .list .item:nth-child(2) .content .buttons
{
    animation: contentOut 0.8s linear 1 forwards!important;
}

@keyframes contentOut{
    to{
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
}
@media screen and (max-width: 678px) {
    .thumbnail{
        display: none;
    }

    .carousel .list .item .content{
        padding-right: 0;
    }
    .carousel .list .item .content .title{
        font-size: 30px;
    }
}

/*-----------------asesoria-----------------*/

.inicio-h1{
    text-align: center;
    margin-top: 50px;
    color: #3c7645;
    font-size: 3rem;
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.contenedor-asesoria{
    width: 100%;
    padding: 20px;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.asesoria-h4{
    color: #999999;
    font-size: 1.2rem;
    font-weight: 900;
    margin-top: 25px;
}

.asesoria-h3{
    color: #7ec24d;
    font-size: 2rem;
    font-weight: 900;
    padding-bottom: 3px;
    margin-top: 25px;
}

.asesoria-h3 em{
    border-bottom: 2px solid #3c7645;
}

.asesoria-flex{
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 50px;
    align-items: center;
}

.asesoria-article,
.asesoria-img{
    width: 45%;
}

.asesoria-img img{
    width: 70%;
    object-fit: cover;
}

.asesoria-text{
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 1.5;
    color: #676767;

}

.asesoria-btn{
    padding: 10px 20px;
    background: #7ec24d;
    border-radius: 5px;
    width: fit-content;
    color: #fff;
    margin-top: 20px;
    font-size: 1.5rem;
    transition: 0.5s;
}

.asesoria-btn:hover{
    transform: scale(1.1);
}

.compra{
    background: rgb(126,194,77);
    background: linear-gradient(0deg, rgba(126,194,77,1) 0%, rgba(60,118,69,1) 100%);
    padding: 50px 30px 25px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.compra-p{
    color: #fff;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.compra-btn{
    padding: 10px 20px;
    background: #fff;
    border-radius: 5px;
    width: fit-content;
    color: #7ec24d;
    margin-top: 20px;
    font-size: 1.5rem;    
    transition: 0.5s;
}

.compra-btn:hover{
    transform: scale(1.1);
}

.compra-materiales-grid{
    width: 100%;
    margin-top: 40px;
    padding: 10px 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
}

.compra-grid-item{
    width: 100%;
    height: 350px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    
}

.compra-grid-item img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    transition: 1s;
}

.compra-h5{
    width: 100%;
    height: auto;
    position: absolute;
    z-index: 1000;
    font-size: 1.5rem;
    background-color: #ffffffc0;
    text-align: center;
    padding: 10px;
    color: #3c7645;
}

.compra-grid-item:hover img{
    transform: scale(1.5);
}

.type-res-grid{
    width: 100%;
    margin-top: 40px;
    padding: 10px 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
    gap: 35px;
}

.type-res-item{
    width: 100%;
    padding: 5px 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #fff;
    border-radius: 25px;
    box-shadow: 0 4px 8px 1px #989898;
}

.type-res-item i{
    font-size: 4rem;
    margin-top: 10px;
    color: #3c7645;
}

.type-res-h4{
    margin-top: 25px;
    font-size: 1.5rem;
    font-style: italic;
    color: #7ec24d;
    text-align: center;
}

.type-res-p{
    color: #646464;
    font-size: 1.2rem;
    line-height: 1.3;
    text-align: justify;
    text-indent: 25px;
}

/*---------------footer--------------*/

.footer-container{
    width: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f1f1f1;
}

.footer-img{
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 20px 0;
    height: 125px;
}

.footer-img img{
    height: 100%;
}

.privacidad{
    color: #3c7645;
}

.copy-p{
    width: 100%;
    background-color: #e5e5e5;
    padding: 10px 25px;
    border-radius: 10px;
    margin-bottom: 0;text-align: center;
}

.footer-extras{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
}

.footer-extras-item{
    display: flex;
    justify-content: center;
}

.footer-item-p{
    text-align: center;
}

.footer-extras-item:nth-child(3){
    flex-direction: column;
    align-items: center;
}

.footer-enlaces .fa-brands{
    font-size: 2.5rem;
    color: #7ec24d;
    padding: 5px 15px;
}

@media screen and (max-width: 620px) {
    
    .footer-img{
        width: 90%;
        margin-left: auto;
        margin-right: auto;
        height: auto;
    }
    
    .footer-img img{
        width: 100%;
        height: auto;
    }

    .footer-extras{
        display: flex;
        flex-direction: column;
    }

    .footer-extras-item:nth-child(3){
        margin-top: 25px;
    }
}

/*---------nosotros---------------*/

.header-g{
    width: 100%;
    height: 380px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.bg-green{
    background-color: #3c7645b0;
    width: 100%;
    height: 100%;
    position: absolute;
}

.header-nosotros{
    background-image: url(../img/nosotros/nosotros-header.jpg);
    background-position-y: bottom;
    background-attachment: fixed;
    background-size: cover;
}

.header-h1{
    font-size: 3rem;
    font-weight: 900;
    position: relative;
    z-index: 3000;
    color: #fff;
}

.historia-contenedor{
    margin-top: 80px;
    width: 90%;
    position: relative;
    background-color: #fff;
    box-shadow: 0 2px 5px 1px #9a9a9a;
    border-radius: 25px 25px 5px 5px;
    display: flex;
    justify-content: center;
    background-color: #7ec24d;
    padding: 10px 35px;
}

.historia-text{
    color: #fff;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1.3;
    text-align: justify;
    text-indent: 25px;
}

.mision-vision{
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 45px;
    align-items: flex-start;
    margin-top: 40px;
}

.mision-vision-item{
    max-width: 45%;
    min-width: 320px;
    padding: 30px 15px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #eaffdb;
    color: #3c7645;
    border-radius: 25px 25px 5px 5px;
    box-shadow: 0 2px 5px 1px #9a9a9a;
    }

.mision-vision-p{
    line-height: 1.3;
    font-weight: 500;
    text-align: center;
}

.mision-vision-item .ms-item-img{
    width: 90%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 0 10px 1px #000;
}

.valores-contenedor{
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 60px;
}

.valores-flex{
    width: 100%;
    margin-top: 40px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.valores-article{
    flex-grow: 1;
    padding: 30px 15px;
    width: 15%;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.valores-h4{
    font-size: 1.3rem;
    color: #3c7645;
}

.valores-p{
    text-align: center;
    line-height: 1.3;
    font-weight: 500;
}

.valores-img{
    width: 100%;
    padding: 30px 20px;
    display: flex;
    justify-content: center;
}

.valores-img img{
    max-width: 960px;
    width: 70%;
    object-fit: cover;
    border-radius: 50%;
}

/*-------------servicios---------------------*/

.header-servicios{
    background-image: url(../img/servicos/servicios-header.png);
    background-position-y: bottom;
    background-attachment: fixed;
    background-size: cover;
    margin-bottom: 50px;
}

.servicios-flex{
    width: 100%;
    padding: 0 25px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
    overflow: hidden;
}

.servicios-article,
.servicios-img {
    width: 40%;
    max-width: 600px;
    height: 100%;
}

.servicios-article{
    padding: 15px;
    background-color: #3c7645;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.revers{
    flex-direction: row-reverse;
}

.btn-servicos{
    margin-top: 30px;
    background-color: #7ec24d;
    padding: 15px 20px;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    transition: 0.5s;
    width: max-content;
    border-radius: 8px;
}

.btn-servicos:hover{
    transform: translateY(-20px);
}

.servicios-img img{
    width: 100%;
    object-fit: cover;
    height: 100%;
}

@media screen and (max-width: 960px) {
    
    .servicios-flex{
        flex-direction: column;
        height: auto;
        max-width: none;
    }

    .servicios-article,
    .servicios-img{
        width: 90%;
    }
}

/*----------------contacto-------------------*/

.header-contacto{
    background-image: url(../img/servicos/servicios-header.png);
    background-position-y: bottom;
    background-attachment: fixed;
    background-size: cover;
}

.contacto-form{
    padding: 45px 20px;
    background-color: #3c7645;
}

.contac-form-flex{
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.form-section{
    width: 50%;
    min-width: 330px;
    padding: 20px;
    background-color: #7ec24d;
    border-radius: 25px;
}

.form-style{
    display: flex; 
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
    padding: 15px;
    margin-top: 20px;
}

input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}

.box-input,
.box-textarea{
    position: relative;
    width: 100%;
}

.textarea{
    height: 8rem;
}

.box-input .input-style,
.box-textarea .textarea{
    width: 100%;
    padding: 15px 10px;
    border: 1px solid #3c7645;
    background-color: transparent;
    border-radius: 5px;
    outline: none;
    color: #fff;
    font-size: 1rem;
    resize: none;
}

.box-input label,
.box-textarea label{
    position: absolute;
    left: 0;
    padding: 10px;
    pointer-events: none;
    font-size: 1rem;
    color: #fff;
    transition: 0.5s;
}

.box-input .input-style:valid ~ label,
.box-input .input-style:focus ~ label,
.box-textarea .input-style:focus ~ label{
    color: #fff;
    transform: translateX(10px) translateY(-5px);
    font-size: 0.8rem; 
    padding: 0 10px; 
    background-color: #3c7645;
    letter-spacing: 2px;
    border-radius: 3px;
}

legend{
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.5;
    color: #fff;
}

.contacto-section{
    width: 40%;
    min-width: 320px;
}

.contacto-info{
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 20px 0;
    align-items: flex-start;
}

.contacto-info-item{
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.contacto-info-item i{
    color: #fff;
    font-size: 1.5rem;
    padding: 10px;
}

.contacto-datos-container{
    display: flex;
    flex-direction: column;
    color: #fff;
    font-size: 1.2rem;
    padding: 10px 0;
}

.contacto-datos-titulo{
    font-weight: 600;
    letter-spacing: 2px;
}

.box-submit input{
    background-color: transparent;
    padding: 12px 30px;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    font-weight: 600;
}

.validacion-input{
    position: absolute;
    color: #fff;
    bottom: -25px;
    left: 20px;
    display: none;
}

.validacion-active{
    display: block;
}

/*-----------------gracias y aviso de privacidad----------------------*/

.gracias{
    width: 100%;
    min-height: 100vh;
    padding: 80px 30px 30px;
    background-color: #7ec24d;
    color: #fff;
}

.gracias-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.gracias-h1{
    font-size: 3rem;
}

.aviso-h3{
    font-size: 2.3rem;
}

.gracias-text,
.aviso-privacidad-ul{
    font-size: 2rem;
    line-height: 1.5;
    text-align: justify;
    margin: 0;
}

.gracias-img{
    width: 40%;
    min-width: 290px;
    border-radius: 30px;
}

.volver{
    text-decoration: none;
}

.volver-text{
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    color: #fff;
    transition: 0.6s;
    animation: moveinicio 2s infinite;
    margin-top: 20px;
}

@keyframes moveinicio{
    0%{
        transform: translateX(20px);
        opacity: 0.5;
    }
    50%{
        transform: translateX(-20px);
        opacity: 1;
    }

    100%{
        transform: translateX(20px);
        opacity: 0.5;
    }
}

.fa-arrow-left{
    margin-right: 5px;
}
