/*----------------------------------- ROOT ----------------------------------*/

:root{
    --primary-color: #2e5673;
    --secondary-color: #f0be51;
    --font-color: #2e5673;
    --button-color: #779bbe;
}

/*----------------------------------- FONTS ----------------------------------*/

@font-face {
    font-family: 'calibri',sans-serif;
    src: url(../assets/fonts/calibri.ttf) format('truetype');
    font-weight: normal;
    font-style: normal;
}

/*---------------------------------- GLOBALS ----------------------------------*/

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'calibri',sans-serif;
    scroll-behavior: smooth;
}

.max-content{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 1280px;
}

section{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding: 60px 0;
}

h2{
    font-size: 35px;
}

p{
    font-size: 20px;
}

a{
    text-decoration: none;
    color: #fff;
}

/*---------------------------------- HEADER ----------------------------------*/

header{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--primary-color);
    height: 80px;
    position: relative;
}

header .max-content{
    justify-content: space-between;

}

.header-menu{
    width: 0px;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

/*---------------- IMG HEADER ----------------*/

header .img-container img{
    width: 190px;
}


/*---------------- NAV HEADER ----------------*/
.nav-header{
    display: flex;
    justify-content: end;
    align-items: center;
    height: 100%;
    gap: 40px;
    width: 65%;

}

.nav-header ul{
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    font-size: 20px;
}

.nav-header li{
    list-style: none;
}

.nav-header a{
    transition: all .2s ease-in-out;
}

.header-link-1, .header-link-2, .header-link-3, .header-link-4, .header-link-5{
    color: var(--secondary-color);
}

.nav-header a:hover{
    color: var(--secondary-color);
}


/*---------------- WORK WITH US BUTTON ----------------*/

.work-link{
    padding: 10px 20px;
    border-radius: 10px;
    background: var(--secondary-color);
    color: var(--primary-color);
    font-weight: 600;
}

.nav-header .work-link:hover{
    color: var(--primary-color);
}

/*---------------------------------- HERO ----------------------------------*/


/*---------------- IMG BACKGROUND ----------------*/
.clients-hero-section{
    background: #faf5f5;
}

.hero-section, .hero-about-us-section{
    background-image: url('../assets/images/PORTADA-4.png');
    height: 80vh;
    justify-content: center;
    background-position: right;
    background-size: cover;
    background-repeat: no-repeat;
}

.hero-about-us-section{
    background-image: url('../assets/images/image-8.png');
}

.hero-contact-section{
    background-image: url('../assets/images/banner-contact.jpeg');
    height: 50vh;
    justify-content: center;
    background-position: top;
    background-size: cover;
    background-repeat: no-repeat;
    padding-bottom: 0px;
}

.hero-work-section{
    background-image: url('../assets/images/banner-work-with-us.jpeg');
    height: 50vh;
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: cover;
    display: flex;
    justify-content: center;
    
}
/*---------------- TEXT HERO ----------------*/

.title-hero-container, .title-clients-container{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    gap: 25px;
}

.title-clients-container{
    text-align: center;
    color: var(--font-color);
}

.title-hero-container h2{
    color: #fff;
    text-align: center;
    font-family: 'calibri',sans-serif;
    text-shadow: 0 0 10px #000;
}

.title-hero-container h3{
    color: var(--secondary-color);
    text-align: center;
    font-size: 35px;
    text-shadow: 0 0 10px #000;
}

.hero-services-section .max-content{
    border-bottom: 2px solid var(--secondary-color);
    height: 40vh;
    padding-bottom: 50px;
}

.title-services-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 30px;
    text-align: center;
    color: var(--font-color);

}

.title-work-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align:center;
    gap: 20px;
    color: #fff;
}

/*---------------------------------- MAIN ----------------------------------*/

main{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 60px 0;
}

.main-contact{
    margin-top: 0px;
}

/*---------------------------------- TRANSPORT SECTION ----------------------------------*/


/*---------------- INFO CONTAINER ----------------*/
.info-container-1, .info-container-2{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 20px;
    flex-direction: row-reverse;
    max-width: 1200px;
}

.transport-section .max-content{
    flex-direction: column;
    gap: 30px;
}

.info-container-2{
    flex-direction: row;
}

.text-container{
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 50%;
    color: var(--font-color);
}


/*---------------- IMG TRANSPORT ----------------*/

.img-transport-container{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
}

.img-transport-container img{
    width: 550px;
}


/*---------------- LIST TRANSPORT ----------------*/
.transport-section ul{
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 20px;
}

/*---------------------------------- OUR SERVICES SECTION ----------------------------------*/

.our-services-section .max-content{
    flex-direction: column;
    gap: 40px;
}

.our-services-section{
    background-image: url('../assets/images/Fondo-Nuestros-servicios.png');
    padding: 40px 0;
}

/*---------------- TITLE OUR SERVICES ----------------*/

.title-our-services-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    color: #fff;
    gap: 30px;
}

/*---------------- CARD OUR SERVICES ----------------*/

.card-our-services-container{
    display: grid;
    grid-template-areas: 
    " img1 img2 img3 img4"
    " img5 img6 img7 img8";
    gap: 20px;
}

.card-our-services-container img{
    width: 256px;
    height: 251px;
}

.our-services-img-1{
    grid-area: img1;
}
.our-services-img-2{
    grid-area: img2;
}
.our-services-img-3{
    grid-area: img3;
}
.our-services-img-4{
    grid-area: img4;
}
.our-services-img-5{
    grid-area: img5;
}
.our-services-img-6{
    grid-area: img6;
}
.our-services-img-7{
    grid-area: img7;
}
.our-services-img-8{
    grid-area: img8;
}

/*---------------------------------- COMPROMISE SECTION ----------------------------------*/

.compromise-section{
    background: var(--secondary-color);
}

.compromise-section .max-content{
    flex-direction: column;
    gap: 30px;
}

/*---------------- TITLE COMPROMISE ----------------*/

.title-compromise-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--font-color);
    text-align: center;
    gap: 20px;
}

/*---------------- CARD IMG COMPROMISE ----------------*/

.card-img-compromise{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    color: var(--font-color);
}

.img-compromise-container{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 50px;
}

.img-compromise-container img{
    width: 105px;
}

/*---------------------------------- BELIVE SECTION ----------------------------------*/

.belive-section .max-content{
    flex-direction: column;
    gap: 40px;
}

/*---------------- TITLE BELIVE ----------------*/

.title-belive-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    gap: 20px;
    color: var(--font-color);
}

/*---------------- TITLE CAROUSEL ----------------*/

.carousel-section{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.carousel-container{
    width: 100%;
    overflow-x: auto;
    display: flex; 
    gap: 20px;
}

.carousel-container::-webkit-scrollbar{
    display  : none;
}

.group{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    animation: spin 15s infinite linear;
}

.group img{
    width: 200px;
    border-radius: 15px;
    flex: 0 0 5rem;
}

/*---------------- EFFECT CAROUSEL BELIVE ----------------*/

@keyframes spin {

    0%{
        translate: 0;
    }

    100%{
        translate: -100%;
    }
}

/*---------------------------------- COVER SECTION ----------------------------------*/

.cover-section{
    background: #faf5f5;
}

.info-cover-container{
    display: flex;
    flex-direction: column;
    width: 50%;
    color: var(--font-color);
}

.img-cover-container{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50%;
}

.img-cover-container img{
    width: 210px;
}

/*---------------------------------- SELECT SECTION ----------------------------------*/

.select-section{
    background: var(--primary-color);
}

.select-section .max-content{
    flex-direction: column;
    gap: 50px;
    color: var(--secondary-color);

}

.select-section p{
    color: #fff;
    text-align: center;
}


/*---------------- TITLE SELECT SECTION ----------------*/

.title-select-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 20px;
}

/*---------------- CARD SELECT SECTION ----------------*/

.card-select-container{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    gap: 40px;
}

.card-select{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 300px;
    gap: 20px;
}

/*---------------------------------- CARD SERVICES SECTION ----------------------------------*/

.cards-services-section{
    margin: 0 0 100px 0;
}

.card-service{
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 300px ;
    width: 200px;
    text-align: center;
    color: var(--font-color);
    gap: 10px;
    text-wrap: pretty;
    margin: 0 20px;
}

.card-service img{
    width: 200px;
}

/*---------------------------------- TEXT CONTACT SECTION ----------------------------------*/

.info-contact-section{
    padding: 0;
    background: #faf5f5;
}

.info-contact-section .max-content{
    padding: 40px 0;
}

.text-contact-container{
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 20px;
    align-items: center;
    color: var(--font-color);
}


/*---------------------------------- FORM CONTACT SECTION ----------------------------------*/

.form-contact-section .max-content{
    gap: 40px;
    flex-direction: column;
}

.title-form-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    color: var(--font-color);
}

.form{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 20px;

}

.input-container{
    display: flex;
    flex-direction: column;
    width: 400px;
    font-family: 'calibri',sans-serif;
    font-size: 20px;
}

.input-container input{
    height: 2rem;
    border-radius: 5px;
    border: 1px solid #0009;
    font-size: 16px;
    padding: 0 5px;
}

.input-container label{
    padding-left: 1px;
}

.input-container input::placeholder{
    padding-left: 5px;
}

.input-container textarea{
    resize: none;
    font-size: 16px;
    height: 100px;
    padding: 2px 5px;
    border-radius: 5px;
}

.button-submit-container{
    display: flex;
    justify-content: start;
    width: 400px;
    flex-direction: column;
    gap: 10px;
}

.button-submit-container button{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 20px;
    border-radius: 5px;
    border: none;
    background: var(--primary-color);
    color: #fff;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all .1s ease-in-out;
    width: fit-content;
}

.button-submit-container button:hover{
    background: #25455c;
}

.form-contact-section .form select{
    height: 2rem;
    border-radius: 5px;
}

/*---------------------------------- FORM WORK WITH US SECTION ----------------------------------*/

.form-work-section{
    position: relative;
}

.input-work-container input{
    border: none;
    border-bottom: 1px solid #0006;
    height: 3rem;
    padding: 0 5px;
}

.cv-work-container{
    position: relative;
    height: fit-content;
}

.cv-work-container input{
    background: #fff;
    border: none;
    height: 5rem;
    border-bottom: 1px solid #0006;
    position: relative;
    width: 400px;
    
}

.file-container{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100px;
    position: relative;
    border: 2px dashed var(--primary-color);
    border-radius: 5px;
    cursor: pointer;

}

.file-container img{
    width: 40px;
    height: 40px;
    cursor: pointer;
}

.cv-work-container input::file-selector-button{
    padding: 10px 20px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 5px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    border: none;
}

.cv-work-container input[type="file"]{
    appearance: none;
    opacity: 0;
    width: 400px;
    height: 100px;
    cursor: pointer;
    position: absolute;
}

/*---------------------------------- FOOTER SECTION ----------------------------------*/

footer{
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    background: var(--primary-color);
    padding: 30px 0;
}

footer .max-content{
    flex-direction: column;
    gap: 30px;
    align-items: start;
}

/*---------------- TEXT FOOTER ----------------*/

.text-footer-container{
    display: flex;
    flex-direction: column;
    gap: 30px;
    color: #fff;
}

/*---------------- CONTACT BUTTON FOOTER ----------------*/

.contact-btn-footer{
    padding: 10px 20px;
    border-radius: 5px;
    background: #779bbe;
    font-weight: 600;
    width: fit-content;
    font-size: 20px;
}

/*---------------- ADDRESS AND CONTACT FOOTER ----------------*/

.address-container img, .contact-footer-container img{
    width: 25px;
}

.address-container span, .contact-footer-container span{
    display: flex;
    align-content: center;
    gap: 10px;
}

.address-container, .contact-footer-container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    color: #fff;
}

.info-footer-container{
    display: flex;
    justify-content: center;
    gap: 60px;
}

/*---------------- SOCIAL MEDIA FOOTER ----------------*/

.social-media-img{
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    width: 40px;
    padding: 5px;
    background: #fff;
}

.social-media-container{
    display: flex;
    justify-content: center;
    gap: 20px;
}

/*---------------------------------- MEDIA SCREEN SECTION ----------------------------------*/

@media screen and (max-width: 768px){
    
    .open-menu{
        width: 40px;
        display: block;
    }

    .close-menu{
        width: 40px;
        display: none;
    }

    .nav-header{
        width: 100%;
        overflow: hidden;
        height: 0px;
        position: absolute;
        top: 80px;
        background: #faf5f5;
        flex-direction: column;
        align-items: start;
        transition: all .2s ease-in-out;
    }

    .nav-header ul{
        flex-direction: column;
        align-items: start;
        margin-left: 20px;
        overflow: hidden;
        background: transparent;
        padding: 0 0 20px;
        width: 100%;
    }

    .nav-header a{
        color: var(--font-color);
        font-size: 25px;
        width: 100%;
    }

    .work-link{
        margin-right: 70px;
        width: 150px;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        font-size: 12px;
    }

    .header .img-container{
        margin-left: 10px;
    }

    .header .img-container img{
        width: 120px;
    }

    /*---------------- HERO SECTION ----------------*/

    .hero-section h2, .hero-about-us-section h2{
        font-size: 30px;
    }

    .hero-section h3, .hero-about-us-section h3{
        font-size: 25px;
    }

    .hero-section, .hero-about-us-section{
        background-position: center;
        height: fit-content;
        background-size: cover;
    }

    
    /*---------------- HERO WORK WITH US SECTION ----------------*/

    .title-work-container{
        width: 90%;
    }

    /*---------------------------------- HERO CLIENTS SECTION ----------------------------------*/

    .clients-hero-section .max-content{
        width: 95%;
    }
    
    /*---------------- TRASPORT SECTION ----------------*/

    .info-container-1, .info-container-2{
        flex-direction: column;
    }

    .info-container-1{
        flex-direction: column-reverse;
    }

    .text-container{
        width: 95%;
    }

    .img-transport-container img{
        width: 350px;
    }

    /*---------------- OUR SERVICES SECTION ----------------*/

    .title-our-services-container{
        width: 95%;
        text-align: center;
    }

    .card-our-services-container{
        grid-template-areas: 
        " img1 img2 "
        " img3 img4 "
        " img5 img6 "
        " img7 img8 ";
        justify-items: center;
    }

    .card-our-services-container img{
        width: 175px;
        height: auto;
    }

    /*---------------- COMPROMISE SECTION ----------------*/

    .title-compromise-container{
        width: 95%;
    }

    .compromise-section .max-content{
        gap: 50px;
    }

    .img-compromise-container{
        flex-direction: column;
        align-content: center;
    }

    /*---------------- BELIVE SECTION ----------------*/

    .title-belive-container{
        width: 95%;
    }
    
    /*---------------- COVER SECTION ----------------*/

    .info-cover-container{
        width: 95%;
        text-align: center;
        gap: 20px;
    }

    .img-cover-container{
        width: 300px;
    }

    .cover-section .max-content{
        flex-direction: column;
        gap: 50px;
    }
    

    /*---------------- TRASPORT SECTION ----------------*/

    .title-select-container{
        width: 95%;
        text-align: center;
    }

    .text-container{
        width: 80%;
    }

    .card-select-container{
        flex-direction: column;
    }

    
    /*---------------- TRANSPORT SERVICES SECTION ----------------*/

    .info-transport-services-container-1, .info-transport-clients-container-1{
        flex-direction: column;
    }

    /*---------------- HERO SERVICES SECTION ----------------*/

    .hero-services-section .max-content{
        width: 90%;
    }

    .hero-services-section{
        height: fit-content;
        padding-bottom: 0;
    }

    
    /*---------------- TRANSPORT SERVICES SECTION ----------------*/

    .transport-services-section{
        padding-top: 0;
    }

    /*---------------- CARD SERVICES SECTION ----------------*/
    
    .cards-services-section .max-content{
        flex-direction: column;
        gap: 40px;
    }

    .card-service{
        height: fit-content;
        margin: 0;
        width: 90%;
    }

    .card-service img{
        width: 300px;
    }

    
    /*---------------- COMPANIES SECTION ----------------*/
    
    .companies-section{
        padding-top: 0px;
    }

    /*---------------- INFO CONTACT SECTION ----------------*/

    .text-contact-container{
        width: 90%;
    }

    /*---------------- INFO CONTACT SECTION ----------------*/

    .form{
        width: 95%;
    }

    .input-container{
        width: 90%;
    }

    .button-submit-container{
        width: 90%;
    }

    /*---------------- FOOTER SECTION ----------------*/

    footer .max-content{
        width: 95%;
    }

    .info-footer-container{
        flex-direction: column;

    }
}