/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
    --header-height: 3.5rem;

    /*========== Colors ==========*/
    /*Color mode HSL(hue, saturation, lightness)*/
    --black-color: hsl(220, 24%, 12%);
    --black-color-light: hsl(220, 24%, 15%);
    --black-color-lighten: hsl(220, 20%, 18%);
    --white-color: #fff;
    --body-color: hsl(220, 100%, 97%);

    --green: #04762d;
    --black: #130f40;
    --red: #b91e1e;
    --red-light: #C65858;
    --white: #fff;
    --gris: #EFF3F5;
    --gris-claro: #FFFFFF;
    --light-color: #696969;
    --negro: #000;
    --box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .1);
    --border: .2rem solid rgba(0, 0, 0, .1);
    --outline: .1rem solid rgba(0, 0, 0, .1);
    --outline-hover: .2rem solid var(--black);
    --gradient: linear-gradient(270deg, var(--red), var(--green));
    --gradient-top-bottom: linear-gradient(to bottom, #04762d, #b91e1e);
    --gradient-left-right: linear-gradient(to right, #04762d, #b91e1e);

    /*========== Font and typography ==========*/
    /*.5rem = 8px | 1rem = 16px ...*/
    --body-font: "Montserrat", sans-serif;
    --normal-font-size: .938rem;

    /*========== Font weight ==========*/
    --font-regular: 400;
    --font-semi-bold: 600;

    /*========== z index ==========*/
    --z-tooltip: 10;
    --z-fixed: 100;
}

/*=============== BASE ===============*/
* {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    border: none;
}

html {
    /*font-size: 62.5%;*/
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

html::-webkit-scrollbar {
    width: 12px;
}

html::-webkit-scrollbar-track {
    background: transparent;
}

html::-webkit-scrollbar-thumb {
    background: var(--red);
    border-radius: 5px;
}

@-webkit-keyframes fadeIn {
    0% {
        -webkit-transform: translateY(-2rem);
        transform: translateY(-2rem);
        opacity: 0;
    }
}

@keyframes fadeIn {
    0% {
        -webkit-transform: translateY(-2rem);
        transform: translateY(-2rem);
        opacity: 0;
    }
}

/*  */

section {
    padding: 2rem 25rem;
}

.btn-free {
    margin-top: 1rem;
    display: inline-block;
    padding: .8rem 3rem;
    font-size: 1rem;
    border-radius: .5rem;
    border: .2rem solid var(--black);
    color: var(--black);
    cursor: pointer;
    background: none;
}

.btn-free:hover {
    background: var(--red);
    color: #fff;
    text-decoration: none;
}

.title-green {
    font-size: 2.5rem;
    text-align: center;
    padding: 5rem 1rem 0rem 1rem;
    color: var(--green);
    font-weight: 500;
}

.title-red {
    font-size: 3rem;
    text-align: center;
    padding: 2rem 1rem 0rem 1rem;
    color: var(--red);
    font-weight: 500;
}

.enviroment {
    display: flex;
    padding: 4rem;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    line-height: 2;
    color: var(--black);
    margin-bottom: 0;
}

.centrar {
    text-align: center;
}


.space {
    background: #eee;
}

ul {
    list-style: none;
    /* Color highlighting when pressed on mobile devices */
    /*-webkit-tap-highlight-color: transparent;*/
}

a {
    text-decoration: none !important;
    color: var(--white) !important;
}

.container__home {
    max-width: 1120px;
    margin-inline: 1.5rem;
}


/*? START HEADER CONTACT */

.header-contact {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    align-content: flex-start;
    height: 50vw;
    min-height: 400px;
    max-height: 55rem;
    min-width: 300px;
    color: #eee;
}

.header-contact:after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient( rgba(0, 0, 0, 0.1) 20%, rgba(27, 32, 48, 1) 100%);
}

.header-contact:before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0rem;
    left: 0;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    transform: translateZ(0);
    background: #1B2030 url(../images/contact/contact-home.webp) 20% 0 no-repeat;
    background-size: 100%;
    background-attachment: fixed;
    animation: grow 360s linear 10ms infinite;
    transition: all 0.4s ease-in-out;
    z-index: -2
}

.title-principal h1 {
    position: relative;
    text-align: center;
    font-size: 10rem;
    color: var(--white);
    margin-top: 40rem;
    font-weight: 700;
}

.title-secundario h2 {
    position: absolute;
    top: 83%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    color: var(--red);
    font-weight: 800;
    border-radius: 1rem;
    letter-spacing: 3px;
    text-shadow: 2px 0 0 var(--white), -2px 0 0 var(--white), 0 2px 0 var(--white), 0 -2px 0 var(--white), 2px 2px var(--white), -2px -2px 0 var(--white), 2px -2px 0 var(--white), -2px 2px 0 var(--white);
}

.meta {
    font-size: 1.6em;
    color: var(--white);
    font-weight: 700;
}

.meta {
    font-style: italic;
}


/* ? END HEADER CONTACT */


/* ? START CONTACT */

.contact .row-contact {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 3rem;
}

.contact .row-contact .map {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 30rem;
    flex: 1 1 30rem;
    height: 80rem;

}

.contact .row-contact .form {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 40rem;
    flex: 1 1 40rem;
    text-align: center;

}

.contact .row-contact .form .icons-container {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact .row-contact .form .icons-container .icons {
    -webkit-box-flex: 1;
    -ms-flex: 1 1 17rem;
    flex: 1 1 17rem;
    text-align: center;
}

.contact .row-contact .form .icons-container .icons a {
    text-decoration: none;
}

.contact .row-contact .form .icons-container .icons .icons-redes {
    height: 3rem;
    width: 3rem;
    line-height: 6rem;
    border-radius: 50%;
    background: var(--red);
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact .row-contact .form .icons-container .icons h3 {
    padding: .5rem 0;
    font-size: 1.1rem;
    text-transform: uppercase;
    color: var(--black);
}

.contact .row-contact .form .icons-container .icons p {
    font-size: 1rem;
    line-height: 2;
    color: var(--black);
}

.contact .row-contact .form .icons-container .icons p:hover {
    color: var(--red);
    font-weight: bold;
}

.contact .row-contact .form .box {
    padding: 1.2rem 1.4rem;
    font-size: 1.2rem;
    color: var(--black);
    background: none;
    border: 0.1rem solid var(--black);
    text-transform: none;
    width: 100%;
    margin: .7rem 0;
}

.contact .row-contact .form form .box:focus {
    border-color: var(--black);
    border: 0.25rem solid var(--black);

}

.contact .row-contact .form form textarea {
    height: 15rem;
    resize: none;
}

.container-contact {
    max-width: 1100px;
    margin: auto;
    font-size: 15px;
}

.container-contact {
    display: block;
    position: relative;
    padding: 5px 0 0 10px;
    margin: 10px;
    cursor: pointer;
    font-size: 18px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.container-contact input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 28px;
    width: 28px;
    background-color: #FF0000;
    border: 2px solid var(--black);
}

.container-contact:hover input~.checkmark {
    background-color: #27ae60;
}

.container-contact input:checked~.checkmark {
    background-color: #27ae60;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.container-contact input:checked~.checkmark:after {
    display: block;
}

.container-contact .checkmark:after {
    left: 10px;
    top: 2px;
    width: 8px;
    height: 15px;
    border: solid white;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.title-contact {
    font-size: 3.8rem;
    text-align: center;
    padding: 2rem 1rem 3rem 1rem;
    color: var(--green);
    font-weight: bold;
}


/* ? END CONTACT */


/* TODO: START SWEERT ALERT*/
.swal2-popup {
    font-size: 15px !important;
}

.swal2-styled {
    padding: 10px 32px 10px 32px !important;
    margin: 20px 10px 0px 10px !important;
    width: 170px;
    height: 45px;
}
/* TODO: END SWEERT ALERT*/


/* TODO: MEDIA QUERYES */

@media only screen and (min-device-width: 1200px) and (max-device-width: 1600px) {

    /*? START HEADER ABOUT */

    .container-contact {
        font-size: 16px;
        padding: 5px 0 0 30px;
        margin: 10px;
    }

    .header-contact {
        max-height: 45rem !important;
    }

    .title-principal h1 {
        font-size: 10rem;
        margin-top: 34rem;
    }
    .title-secundario h2 {
        top: 88%;
        left: 50%;
        font-size: 2.5rem;
    }
    /*? END HEADER ABOUT */

    .contact .row-contact .map {
        height: 20rem;
    }

}

@media (max-width: 768px) {

    .nav__logo img {
        width: 15rem !important;
    }

    section {
        padding: 0;
    }

    .enviroment {
        padding: 1rem;
        font-size: .8rem;
    }

    .title-green {
        font-size: 1rem;
        padding: 2rem;
    }

    .title-red {
        font-size: 2rem;
        padding: 1rem;
    }

    .btn-free {
        margin: 0 0 1rem 0;
    }

    .title-principal h1 {
        font-size: 4.5rem;
        margin-top: 12rem;
    }
    .title-secundario h2{
        top: 86%;
        left: 50%;
        font-size: 1rem;
    }

    /*? START HEADER TERMITE */

    .inner-header h1 {
        margin-top: 90px;
    }

    /*? END HEADER TERMITE */


    /*? START HEADER CONTACT */

    .contact .map {
        height: 18rem;
        padding: 2rem 0;
    }

    .contact .row-contact .map {
        height: 14rem;
    }

    .contact .row-contact {
        gap: 0rem;
    }

    .contact .row-contact .form {
        text-align: center;
        padding: 0rem 1rem;
    }

    .contact .row-contact .form .box {
        padding: 1rem 1rem;
        font-size: 1rem;
        width: 100%;
    }

    .checkmark {
        height: 20px;
        width: 20px;
    }

    .container-contact {
        padding: 0 1.25rem;
        margin: 0.1rem;
        font-size: .8rem;
    }

    .container-contact .checkmark:after {
        left: 6px;
        top: 2px;
        width: 5px;
        height: 9px;
    }

    .header-contact {
        min-height: 17rem;
    }

    .header-contact:before {
        width: 125%;
        left: 0rem;
        height: 44vh; /* Ajusta el alto del contenedor según necesites */
        background: #1B2030 url(../images/contact/contact-home.webp);

        background-size: contain; /* La imagen cubrirá todo el contenedor */
        background-position: center; /* Centra la imagen en el contenedor */
        background-repeat: no-repeat; /* Evita que la imagen se repita */
    }



    /* ? START CONTACT */

    .contact .row-contact .form .icons-container .icons {
        flex: 1 1 1rem;
    }

    .contact .row-contact .form .icons-container .icons h3 {
        font-size: .9rem !important;
    }

    .contact .row-contact .form .icons-container .icons p {
        font-size: .7rem;
        line-height: 2;
        color: var(--black);
    }

    .contact .row-contact .form .icons-container .icons .icons-redes {
        height: 2rem;
        width: 2rem;
        margin-bottom: .5rem;
    }

    /* ? END CONTACT */


}

