/*=============== 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: 4rem 25rem !important;
}

.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: 3rem;
    text-align: center;
    padding: 5rem 1rem 0rem 1rem;
    color: var(--green);
    font-weight: 500;
}

.title-red {
    font-size: 2.8rem;
    text-align: center;
    padding: 2rem 1rem 0rem 1rem;
    color: var(--red);
    font-weight: 500;
}

.enviroment {
    font-size: 1.3rem;
    color: var(--black);
    padding: 4rem;
    justify-content: center;
    align-items: center;
    line-height: 1.7;
    margin-bottom: 0;
    text-align: justify;
    letter-spacing: 0.5px;
    word-spacing: 1px;
}

.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 TERMITE */

.header-prefoundation {
    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-prefoundation:after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 60%, rgba(27, 32, 48, 1) 100%);
}

.header-prefoundation:before {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    top: 2rem;
    left: 0;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    transform: translateZ(0);
    background: #1B2030 url(../../../images/termite-control/subterranean/prefoundation/prefoundation-home.webp) 50% 0 no-repeat;
    background-size: 100%;
    background-attachment: fixed;
        background-position: 20% 100%; /* Comienza abajo */
    animation: grow 360s linear 10ms infinite;
    transition: all 0.4s ease-in-out;
    z-index: -2
}

/* */

.header-partially {
    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-partially:after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 60%, rgba(27, 32, 48, 1) 100%);
}

.header-partially: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/termite-control/subterranean/partially/partially-trenched-home.webp) 50% 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
}

/* */

.header-bait {
    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-bait:after {
    content: "";
    width: 100%;
    height: 100%;
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: -1;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 60%, rgba(27, 32, 48, 1) 100%);
}

.header-bait: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/termite-control/subterranean/bait/bait-home1.webp) 50% 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
}

/* */

.info {
    flex: 0 0 auto;
    width: 50%
}

.info {
    width: 100%;
    padding: 15% 10% 0 10%;
    text-align: center;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.2)
}

.info h1 {
    font-size: 6rem;
    color: var(--white);
    font-weight: 700;
    margin-top: 27rem;
    /* text-shadow: 2px 0 0 #fff, -2px 0 0 #fff, 0 2px 0 #fff, 0 -2px 0 #fff, 1px 1px #fff, -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff; */
}

.meta {
    font-size: 1.6em;
    color: var(--white);
    font-weight: 700;
}

.meta {
    font-style: italic;
}


/* ? END HEADER TERMITE */


/* ? START ITEMS */

.items {
    font-size: 320%;
    counter: art;
}

@media (max-width: 200px) {
    .items {
        font-size: 62.5%;
    }
}

article {
    --wide: 0;
    --base: calc(var(--wide)*5rem);
    --size: 1.25rem;
    --left: calc(.5*(1 + var(--wide))*5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    margin: 2em auto;
    padding-left: calc(var(--wide)*7.5rem);
    width: 32em;
    max-width: 90%;
    min-height: 6.25rem;
    font: 1em/1.25 roboto, trebuchet ms, verdana, arial, sans-serif;
    counter-increment: art;
    filter: drop-shadow(-1px 3px 3px rgba(0, 0, 0, 0.15));
}

@media (min-width: 640px) {
    article {
        --wide: 1;
    }
}

article:before,
article:after {
    position: absolute;
}

article:before {
    left: 0.5em;
    color: #fff;
    font-size: var(--base);
    content: "0" counter(art);
}

article:after {
    --grad: linear-gradient(#fff, #e0e0e0);
    top: 0;
    right: 0;
    bottom: -1.25em;
    left: 0;
    z-index: -1;
    padding-left: inherit;
    border-bottom: solid 0.9375em transparent;
    transform: skewx(calc(var(--wide)*-22.5deg));
    background: var(--grad) 100% 50%/calc(100% - (var(--base) + var(--left) + var(--wide)*var(--size)) + 1px) 100% no-repeat padding-box, var(--grad) calc(var(--base) + (1 + 2*var(--wide))*var(--size)) 50%/var(--size) 100% no-repeat padding-box, radial-gradient(ellipse at 100% 50%, rgba(0, 0, 0, 0.13), transparent 35%) 0 50%/var(--size) 250% content-box, linear-gradient(var(--c0) 50%, var(--c1) 0) padding-box, radial-gradient(rgba(0, 0, 0, 0.1), transparent 70%) 100% 100%/calc(100% - (var(--base) + 2*var(--size))) 1.25em border-box no-repeat;
    content: "";
    padding: 0 10rem;
}

.items-span {
    font-size: 1.2rem;
    padding-left: var(--left);
    padding-right: 1rem;
    margin: 1rem .5rem 1rem 2rem;
    line-height: 1.7;
    text-align: justify;
    letter-spacing: 0.5px;
    word-spacing: 1px;
}

.items-title {
    background: linear-gradient(var(--c0), var(--c1));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-transform: capitalize;
    filter: brightness(0.85);
}


/* ? END ITEMS */


/* ? START TIMELINE */

.clearfix,
.m-timeline li {
    zoom: 1;
}

.clearfix:before,
.m-timeline li:before,
.clearfix:after,
.m-timeline li:after {
    content: " ";
    display: table;
}

.clearfix:after,
.m-timeline li:after {
    clear: both;
}

.m-timeline {
    margin: 0 20px;
}

.m-timeline ul {
    padding: 0;
    margin: 0;
}

.m-timeline li {
    position: relative;
    list-style-type: none;
    clear: both;
}

.m-timeline .module-header {
    text-transform: uppercase;
    text-align: center;
}

.m-timeline .module-canvas:before,
.m-timeline .m-timeline .text-canvas:before {
    display: none;
}

.m-timeline .module-canvas {
    position: relative;
    padding-top: 20px;
}

.m-timeline .line {
    position: absolute;
    left: 50%;
    top: 0px;
    bottom: 0px;
    z-index: 1;
    width: 4px;
    background: url("http://assets.bagenda.com/codepen/images/bg-dot.png") repeat-y left top;
    margin-left: -2px;
    display: none;
}

.m-timeline .text {
    margin-bottom: 30px;
}

.m-timeline .text-canvas {
    position: relative;
    background-color: var(--gris);
    color: #000;
    padding: 1em;
}

.m-timeline .text-canvas:before {
    display: none;
    content: " ";
    position: absolute;
    z-index: 1;
    right: -36px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background-color: red;
    border-radius: 50%;
}

.m-timeline .text-canvas:after {
    display: block;
    content: " ";
    position: absolute;
    z-index: 1;
    left: 50%;
    bottom: -8.5px;
    box-sizing: border-box;
    transform: translateX(-50%) rotate(-135deg);
    width: 15px;
    height: 15px;
    background-color: inherit;
    border: 1px solid #000;
    border-right: none;
    border-bottom: none;
}

.m-timeline .text-canvas h3 {
    font-size: 1.5rem;
    text-transform: capitalize;
    font-weight: bold;
    margin-bottom: 1rem;
}

.m-timeline .text-canvas p {
    font-size: .9rem;
    line-height: 1.7;
    text-align: justify;
    letter-spacing: 0.5px;
    word-spacing: 1px;
}

.m-timeline .text-canvas p:last-child {
    margin-bottom: 0;
}

.m-timeline .graphics {
    text-align: center;
    margin-bottom: 15px;
}

.m-timeline .graphics img {
    max-width: 50%;
    margin-left: 2rem;
}

.m-timeline .gleft img {
    max-width: 50%;
    margin-right: 2rem;
}

.m-timeline .content-table {
    display: table;
    width: 100%;
}

.m-timeline .content-table-cell {
    display: table-cell;
    vertical-align: middle;
}

@media only screen and (min-width: 35.5em) {
    .m-timeline {
        margin: 0 40px;
    }
    .m-timeline.vertical-align li {
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-align-items: center;
        align-items: center;
        -webkit-flex-direction: row;
        flex-direction: row;
        -ms-flex-wrap: wrap;
        -webkit-flex-wrap: wrap;
        flex-wrap: wrap;
    }
    .m-timeline.vertical-align li:nth-child(even) {
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        display: flex;
        -webkit-align-items: center;
        align-items: center;
        -webkit-flex-direction: row-reverse;
        flex-direction: row-reverse;
        -ms-flex-wrap: wrap;
        -webkit-flex-wrap: wrap;
        flex-wrap: wrap;
    }
    .m-timeline.vertical-align .graphics,
    .m-timeline.vertical-align .text {
        -webkit-box-flex: 0 1 50%;
        -moz-box-flex: 0 1 50%;
        -webkit-flex: 0 1 50%;
        -ms-flex: 0 1 50%;
        flex: 0 1 50%;
    }
    .m-timeline .line {
        display: block;
    }
    .m-timeline .text-canvas:before {
        display: block;
    }
    .m-timeline .text-canvas:after {
        bottom: inherit;
        top: 50%;
        right: -16px;
        left: inherit;
        transform: translateY(-50%) translateX(-50%) rotate(135deg);
    }
    .m-timeline .graphics,
    .m-timeline .text {
        width: 50%;
        float: left;
        margin: 0;
        box-sizing: border-box;
    }
    .m-timeline .text {
        padding-right: 30px;
    }
    .m-timeline .graphics img {
        width: 100%;
    }
    .m-timeline li {
        margin-bottom: 30px;
    }
    .m-timeline li:nth-child(odd) .graphics {
        float: right;
        text-align: left;
    }
    .m-timeline li:nth-child(odd) .text {
        float: left;
    }
    .m-timeline li:nth-child(even) .text {
        padding-right: 0;
        padding-left: 30px;
    }
    .m-timeline li:nth-child(even) .text-canvas:after {
        left: -1px;
        transform: translateY(-50%) translateX(-50%) rotate(-45deg);
    }
    .m-timeline li:nth-child(even) .text-canvas:before {
        right: auto;
        left: -34.5px;
    }
    .m-timeline li:nth-child(even) .graphics {
        float: left;
        text-align: right;
    }
    .m-timeline li:nth-child(even) .text {
        float: right;
    }
}

@media only screen and (min-width: 48em) {
    .m-timeline .graphics img {
        width: auto;
    }
}

/* ? END TIMELINE */


/* ? START THREE PROCESS */

.container-cards {
    position: relative;
    width: auto;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 70px;
}

.container-cards .card {
    position: relative;
    max-width: 20rem;
    height: 230px;
    background: #fff;
    margin: 30px 10px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    transition: 0.3s ease-in-out;
}

.container-cards .card:hover {
    height: 380px;
}

.container-cards .card a {
    text-decoration: none;
}

.container-cards .card .imgBx {
    position: relative;
    width: 260px;
    height: 260px;
    top: -60px;
    left: 20px;
    z-index: 1;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.container-cards .card .imgBx img {
    max-width: 100%;
    border-radius: 4px;
}

.container-cards .card .content {
    position: relative;
    margin-top: -140px;
    padding: -1px 15px;
    text-align: center;
    color: #111;
    visibility: hidden;
    opacity: 0;
}

.container-cards .card .content h2 {
    font-size: 25px;
    text-transform: capitalize;
    color: var(--red);
    font-weight: bold;
}

.container-cards .card .content p {
    font-size: 15px;
}

.container-cards .card:hover .content {
    visibility: visible;
    opacity: 1;
    margin-top: -40px;
    transition-delay: 0.3s;
}


/* ? END THREE PROCESS */

/* ? START BUTTON */

.container-button {
    display: flex;
    justify-content: center;
}

.learn-more {
    position: relative;
    display: inline-block;
    cursor: pointer;
    outline: none;
    border: 0;
    vertical-align: middle;
    text-decoration: none;
    background: transparent;
    padding: 0;
    font-size: inherit;
    font-family: inherit;
    width: 40rem;
    height: auto;
}

.learn-more .circle {
    transition: all 0.8s cubic-bezier(0.65, 0, 0.076, 1);
    position: relative;
    display: block;
    margin: 0 2rem 0 0;
    width: 4rem;
    height: 4rem;
    background: var(--red);
    border-radius: 1.6rem;
}

.learn-more .circle .icon {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
    background: #fff;
}

.learn-more .circle .icon.arrow {
    transition: all 0.45s cubic-bezier(0.65, 0, 0.076, 1);
    left: 0.625rem;
    width: 1.125rem;
    height: 0.125rem;
    background: none;
}

.learn-more .circle .icon.arrow::before {
    position: absolute;
    content: '';
    top: -0.25rem;
    right: 0.0725rem;
    width: 0.625rem;
    height: 0.625rem;
    border-top: 0.125rem solid #fff;
    border-right: 0.125rem solid #fff;
    transform: rotate(45deg);
}

.learn-more .button-text {
    transition: all 0.8s cubic-bezier(0.65, 0, 0.076, 1);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    font-size: 1.5rem;
    padding: 1rem 1.7rem;
    margin: 0 0 0 1.85rem;
    color: var(--green);
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    text-transform: uppercase;
}

.learn-more:hover .circle {
    width: 100%;
}

.learn-more:hover .circle .icon.arrow {
    background: #fff;
    transform: translate(1rem, 0);
}

.learn-more:hover .button-text {
    color: #fff;
}


/* ? END BUTTON */


/* 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) {

    section {
        padding: 4rem 15rem !important;
    }

    .title-red {
        font-size: 2.1rem;
    }

    /* ? START HEADER TERMITE */

    .header-prefoundation {
        max-height: 45rem !important;
    }

    .header-partially {
        max-height: 45rem !important;
    }

    .header-bait {
        max-height: 45rem !important;
    }

    .info {
        padding: 5% 10% 0 10%;
    }

    .info h1 {
        font-size: 4.8rem;
        margin-top: 33rem;
    }

    /* ? END HEADER TERMITE */


}

@media (max-width: 768px) {

    .nav__logo img {
        width: 15rem !important;
    }

    section {
        padding: 2rem 0 !important;
    }

    .enviroment {
        padding: 1rem;
        font-size: .8rem;
    }

    .title-green {
        font-size: 1.5rem;
        padding: 1rem;
    }

    .title-red {
        font-size: 2rem;
        padding: 1rem .2rem 1rem .2rem;
        line-height: 2.5rem;
    }

    .btn-free {
        margin: 0 0 1rem 0;
    }

    .title-principal {
        font-size: 4.5rem;
        padding-top: 17rem;
    }
    .title-secundario {
        top: 88%;
        left: 50%;
        font-size: 1.05rem;
    }

    .text-principal{
        margin: 0 1rem;
    }

    /* ? */


    /* ? START HEADER TERMITE */

    .header-prefoundation {
        min-height: 17rem;
    }
    .header-prefoundation:before {
        width: 110%;
        left: -1rem;
        height: 44vh; /* Ajusta el alto del contenedor según necesites */
        background: #1B2030 url(../../../images/termite-control/subterranean/prefoundation/prefoundation-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 */
    }

    .header-partially {
        min-height: 17rem;
    }
    .header-partially:before {
        width: 110%;
        left: -1rem;
        height: 44vh; /* Ajusta el alto del contenedor según necesites */
        background: #1B2030 url(../../../images/termite-control/subterranean/partially/partially-trenched-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 */
    }

    .header-bait {
        min-height: 17rem;
    }
    .header-bait:before {
        width: 110%;
        left: -1rem;
        height: 44vh; /* Ajusta el alto del contenedor según necesites */
        background: #1B2030 url(../../../images/termite-control/subterranean/bait/bait-home1.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 */
    }

    .info {
        padding: 5% 10% 0 10%;
    }

    .info h1 {
        font-size: 2rem;
        margin-top: 11rem;
    }

    .header-partially .info h1 {
        font-size: 1.7rem;
        margin-top: 11rem;
    }

    /* ? END HEADER TERMITE */


    /* ? START TIMELINE */

    .m-timeline .text-canvas span {
        font-size: 1.1rem;
    }

    .m-timeline .text-canvas p {
        font-size: .8rem;
    }

    .m-timeline .graphics img {
        max-width: 80%;
    }

    /* ? END TIMELINE */


    /* ? START THREE PROCESS */

    .container-cards .card .imgBx {
        left: 0px;
    }

    /* ? END THREE PROCESS */


    /* ? START ITEMS */

    .items-span {
        font-size: .8rem;
        margin: 1rem 0;
    }

    /* ? END ITEMS */

    /* ? START BUTTON */

    .learn-more {
        width: 22rem;
    }

    .learn-more .button-text {
        font-size: 1.4rem;
        padding: 0rem;
        line-height: 1.5;
    }

    .learn-more .circle {
        width: 2rem;
        height: 2rem;
    }

    .learn-more .circle .icon.arrow {
        width: .7rem;
    }

    /* ? END BUTTON */

}
