html {
    font-size: 62.5%;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

body {
    font-size: 1.6rem;
    font-family: "Roboto", sans-serif;

    &.menu-mobile-active {
        overflow: hidden;
    }
}

/* reset */
* {
    margin: 0;
    padding: 0;
}

/* fonts */
.roboto-light {
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.roboto-regular {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.roboto-medium {
    font-family: "Roboto", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.roboto-bold {
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.roboto-black {
    font-family: "Roboto", sans-serif;
    font-weight: 900;
    font-style: normal;
}

/* estilos globales */
h1 {
    font-size: 3.8rem;
}

h2 {
    font-size: 3.4rem;
}

h3 {
    font-size: 3rem;
}

h4 {
    font-size: 2.6rem;
}

img {
    max-width: 100%;
}


/* utilities */
.contenedor {
    width: min(90%, 120rem);
    margin: 0 auto;
}

.section {
    margin: 5rem auto;
}

.text-center {
    text-align: center;
}

.paragraph {
    font-size: 1.8rem;
    text-align: justify;
    margin: 2rem 0;
}

.conocenos-section,
.nuestros-servicios,
.clientes,
.mainInsumos {
    overflow-x: hidden;
}

/* ************************** header ************************************ */
/* ************************** header ************************************ */
/* ************************** header ************************************ */
/* ************************** header ************************************ */
.site-header {
    height: 100vh;
    background-image: url(../img/site-header.jpg);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    position: relative;

    &::after {
        content: "";
        display: block;
        position: absolute;
        width: 100%;
        height: 100%;
        background-color: rgb(0 0 0 / 60%);
        top: 0;
    }
}

.site-header__contenido {
    position: relative;
    z-index: 2;
}

.site-header--pages {
    background-color: #212529;

    & .site-header__barra {
        padding: 1rem 2rem;

        & .site-header__logo {
            gap: 2rem;
        }
    }
}


.site-header--mobile {
    position: relative;
    z-index: 2;
    color: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.site-header--desktop {
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.site-header__barra {
    display: flex;
    align-items: center;
    color: #fff;
    padding-top: 3rem;
    gap: 2rem;

    &.fixedNav {
        position: fixed;
        background-color: #212529;
        left: 0;
        padding: 1rem 2rem;
        right: 0;
        transition: all .8s ease-in-out;
        top: 0;

        & .site-header__logo {
            gap: 1.2rem;
        }

        & .site-header__img {
            width: 8rem;
            height: 8rem;
        }

        & .site-header__p {
            font-size: 1.8rem;
        }
    }
}


.site-header__logo {
    display: flex;
    align-items: center;

    & .site-header__img {
        width: 10rem;
        height: 10rem;
    }

    & .site-header__p {
        font-size: 2.2rem;
        text-align: center;
    }
}

.site-header__barraMenu {
    font-size: 4rem;
}

.site-header__contenidoTexto {
    padding-bottom: 15rem;

    & .site-header__contenidoTexto__h3 {
        text-transform: uppercase;
        line-height: 1.5;
        font-size: 3.5rem;
    }
}

/* site header desktop */
.site-header-desktop__barra {
    & .site-header-desktop__nav {
        display: flex;
        justify-content: space-between;
        padding-top: 5rem;

        & a {
            color: #fff;
            font-size: 2.5rem;
            text-decoration: none;

            &:hover {
                color: #000;
            }
        }

        & .nav--1 {
            & a {
                margin-right: 4rem;
            }
        }
    }
}

.site-header-desktop__contenido {
    display: flex;
    align-items: center;
    padding-bottom: 10rem;
    gap: 2rem;

    & .logoEmpresa {
        display: flex;
        align-items: center;
        gap: 4rem;
        flex-basis: calc(60% - 2rem);

        & img {
            width: 18rem;
        }

        & h1 {
            width: 50%;
            text-align: center;
        }
    }

    & .descripcion {
        flex-basis: calc(40% - 2rem);
        background-color: #008f6c;
        padding: 2rem;
        border-radius: .5rem;

        & p {
            font-size: 2.5rem;
            text-align: justify;
        }
    }

}

.site-header-desktop {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 0;
    color: #fff;

    & .logo-desktop {
        display: inherit;
        align-items: inherit;
        column-gap: 2rem;

        & img {
            width: 8rem;
        }

        & p {
            font-size: 2.4rem;
        }
    }

    & .nav-desktop {
        & a {
            text-decoration: none;
            font-size: 2rem;
            margin-right: 2rem;
            color: #fff;

            &:hover {
                border-bottom: .2rem solid;
            }
        }
    }
}

/* menu mobile js */
.nav-mobile {
    background-color: rgb(0 0 0 / 95%);
    z-index: 3;
    color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    & .nav-mobile__ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        list-style: none;

        & .nav-mobile__li {
            margin-bottom: 6rem;

            & a {
                font-size: 3.5rem;
                color: #fff;
                text-decoration: none;
            }
        }
    }

    & .cerrar-menu-mobile {
        position: absolute;
        top: 4rem;
        right: 4rem;
        font-size: 4rem;
    }
}


/* *************** sobre nosotros *********************************** */
/* *************** sobre nosotros *********************************** */
/* *************** sobre nosotros *********************************** */
/* *************** sobre nosotros *********************************** */
@media screen and (min-width: 1024px) {
    .conocenos-section-contenido__sobre-nosotros__contenedor {
        display: flex;
        gap: 3rem;
        padding: 2rem;
    }

    .sobre-nosotros__contenedor-item {
        box-shadow: 0 0 1rem #333;
        padding: 1rem 2rem;
        border-radius: .5rem;

        &:nth-child(1) {
            flex-basis: calc(50%);
        }

        &:nth-child(2),
        &:nth-child(3) {
            flex-basis: calc(25%);
        }
    }
}

/* *************** Nuestros Servicios *********************************** */
/* *************** Nuestros Servicios *********************************** */
/* *************** Nuestros Servicios *********************************** */
/* *************** Nuestros Servicios *********************************** */
.nuestros-servicios {

    & .nuestros-servicios__enlace {
        display: flex;
        justify-content: flex-end;

        & a {
            text-decoration: none;
            font-size: 2.5rem;
            color: #000;
        }
    }
}

@media screen and (min-width: 1024px) {
    .nuestros-servicios-contenedor {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 4rem;
    }
}

.nuestros-servicios-contenedor__item {
    margin: 2rem 0;

    & h3 {
        margin-bottom: 2rem;
    }

    & .nuestros-servicios-contenedor__item__ul {
        margin-left: 2rem;
        margin-bottom: 2rem;
    }

    & img {
        width: 100%;
        height: 20rem;
        border-radius: .5rem;
    }
}

@media screen and (min-width: 1024px) {
    .nuestros-servicios-contenedor__item {
        flex-basis: calc(33.3% - 2rem);
    }
}

.nuestros-servicios-desktop {
    overflow-x: hidden;
    padding: 2rem;
}


/* *************** Clientes ********* *********************************** */
/* *************** Clientes ********* *********************************** */
/* *************** Clientes ********* *********************************** */
/* *************** Clientes ********* *********************************** */
@media screen and (max-width: 1024px) {
    .clientes-contenedor-desktop {
        display: none;
    }
}

@media screen and (min-width: 1024px) {
    .clientes-contenedor-mobile {
        display: none;
    }
}

.clientes__cliente {
    & h3 {
        margin: 2rem 0;
    }
}

.clientes-contenedor-desktop {
    width: 75vw;
    height: auto;
    margin: auto;
    overflow: hidden;

    & .slide-track {
        display: flex;
        align-items: center;
        width: calc(100rem * 8);
        animation: slide 10s linear infinite;
        height: auto;

        & .slide {
            width: 100rem;
            height: 10rem;

            & img {
                width: 100%;
                height: 100%;
            }
        }
    }

    & .slide-track-2 {
        animation: slide2 10s linear infinite;
        display: flex;
        align-items: center;
        width: calc(100rem * 8);
        height: auto;

        & .slide {
            width: 100rem;
            height: 10rem;

            & img {
                width: 100%;
                height: 100%;
            }
        }
    }
}

@keyframes slide {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-100rem * 1));
    }
}

@keyframes slide2 {
    0% {
        transform: translateX(calc(-100rem * 1));
    }

    100% {
        transform: translateX(0);
    }
}

/* *************** Footer ********* *********************************** */
/* *************** Footer ********* *********************************** */
/* *************** Footer ********* *********************************** */
/* *************** Footer ********* *********************************** */
.bg-footer {
    background-color: #212529;
    padding: 2rem;
}

.contenidoFooter {
    color: #fff;
}

@media screen and (min-width: 1024px) {
    .contenidoFooter {
        display: flex;
        justify-content: space-between;
        gap: 4rem;
    }
}

.contenidoFooterItem {
    & .contenidoFooterItem__child {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin: 4rem 0;

        & .img-footer,
        span {
            flex-basis: calc(30% - 2rem);
        }

        & img {
            width: 7rem;
        }

        & p {
            font-size: 2rem;
            flex-basis: calc(70% - 2rem);
        }

        & span {
            font-size: 5rem;
        }

        &.whatsapp>a>span {
            color: green;
        }
    }
}

@media screen and (min-width: 1024px) {
    .contenidoFooterItem {
        flex-basis: calc(50%);

        & .contenidoFooterItem__child {
            & a>span {
                text-align: center;
            }
        }
    }
}


/* *************** Derechos ********* *********************************** */
/* *************** Derechos ********* *********************************** */
/* *************** Derechos ********* *********************************** */
/* *************** Derechos ********* *********************************** */
.derechos {
    background-color: #333;
    color: #fff;
    padding: 1rem 0;

    & p {
        font-size: 2rem;
    }
}


/* *************** pages ********* *********************************** */
/* *************** pages ********* *********************************** */
/* *************** pages ********* *********************************** */
/* *************** pages ********* *********************************** */

/* Insumos */
.insumosMain {


    & .insumosMainItem__img {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        row-gap: 4rem;

        & img {
            width: 20rem;
            height: auto;
        }
    }

    @media screen and (min-width: 1024px) {
        .insumosMainItem__img {
            flex-direction: row;
            justify-content: space-between;
            column-gap: 4rem;

            & img {
                width: 18rem;
                height: auto;
            }
        }
    }
}


/* Formulario */
.formContainer {
    background-color: #fff;
    box-shadow: 0 0 1rem #b5b5b5;
    border-radius: .5rem;
}

@media screen and (min-width: 1024px) {
    .formContainer {
        display: flex;
        gap: 10rem;
        padding: 4rem;

        & .formContainerDescription {
            flex-basis: calc(25%);
        }

        & .formContainerFormulario {
            flex-basis: calc(75%);
        }
    }
}

.formContainerDescription {
    padding: 2rem;

    &>h4 {
        color: #2d4a8a;
        font-size: 1.6rem;
    }

    &>h2 {
        border-bottom: .2rem solid #2d4a8a;
    }

    &>h2,
    >h4 {
        margin-bottom: 1rem;
    }

    & .descriptionItemContainer {
        margin: 2rem 0;

        & .descriptionItem {
            display: flex;
            column-gap: 2rem;
            align-items: center;
            margin: 2rem 0;

            & .itemContainerSpan {
                background-color: #2d4a8a;
                display: inline-block;
                padding: 2rem;
                border-radius: 50%;

                & span {
                    font-size: 3rem;
                }
            }

        }

    }

}

.formContainerFormulario {
    background-color: #f7f9fe;
    padding: 2rem;
    border-radius: .5rem;

    &>h4 {
        color: #2d4a8a;
        font-size: 1.6rem;
    }

    &>h2 {
        border-bottom: .2rem solid #2d4a8a;
    }

    &>h2,
    >h4 {
        margin-bottom: 1rem;
    }

    & label,
    input {
        display: block;
    }

    & input:not([type="submit"]),
    textarea {
        width: 100%;
        padding: 1rem 3rem;
        margin: 1rem 0;
        font-size: 2rem;
        border-radius: .5rem;
        border: .1rem solid #000;
    }

    & input[type="submit"] {
        font-size: 2rem;
        width: 100%;
        padding: 1rem 3rem;
        margin-top: 2rem;
        background-color: #263045;
        color: #fff;
        border-radius: .5rem;
        border: none;
        opacity: 30%;

        &.active-submit {
            opacity: unset;

            &:hover {
                cursor: pointer;
                background-color: #2d4a8a;
            }
        }
    }

    & .formularioItems {
        margin: 2rem 0;
    }

    @media screen and (min-width: 1024px) {
        & .formularioItems {
            display: grid;
            gap: 2rem;
            grid-template-areas:
                "nombre empresa"
                "telefono email"
                "asunto asunto"
                "mensaje mensaje"
                "submit submit"
            ;
        }

        & .itemFormulario {
            &:nth-child(5) {
                grid-area: asunto;
            }

            &:nth-child(6) {
                grid-area: mensaje;
            }

            &:nth-child(7) {
                grid-area: submit;
            }

        }
    }
}