/*=============== 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 15rem !important;
}

.btn-free {
    margin-top: 1rem;
    display: inline-block;
    padding: 1rem 3rem;
    font-size: 1.2rem;
    border-radius: 1rem;
    border: .15rem solid var(--black);
    color: var(--black) !important;
    cursor: pointer;
    background: none;
}

.btn-free:hover {
    background: var(--red);
    color: #fff !important;
    text-decoration: none;
}

.title-green {
    font-size: 3.8rem;
    text-align: center;
    padding: 5rem 1rem 0rem 1rem;
    color: var(--green);
    font-weight: 500;
}

.title-red {
    font-size: 2.5rem;
    text-align: center;
    padding: 0rem 1rem 0rem 1rem;
    color: var(--red);
    font-weight: 500;
}

.enviroment {
    display: flex;
    padding: 5rem;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    line-height: 1.7;
    color: var(--black);
    margin-bottom: 0;
    text-align: justify;
}

.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 PEST CONTROL */

.header-pest-control {
    position: relative;
    text-align: center;
    background: linear-gradient(60deg, rgb(185, 30, 30) 0%, rgb(185, 30, 30) 100%);
    color: white;
}

.inner-header {
    height: 35vh;
    width: 100%;
    margin: 0;
    padding: 0;
}

.inner-header h1 {
    margin-top: 10rem;
    font-size: 4rem;
    font-weight: bold;
}

.flex {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.waves {
    position: relative;
    width: 100%;
    height: 15vh;
    margin-bottom: -7px;
    min-height: 100px;
    max-height: 150px;
}

.parallax>use {
    animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax>use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.parallax>use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.parallax>use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.parallax>use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }
    100% {
        transform: translate3d(85px, 0, 0);
    }
}

@media (max-width: 768px) {
    .waves {
        height: 40px;
        min-height: 40px;
    }
    h1 {
        font-size: 24px;
    }
}


/* ? END HEADER PEST CONTROL */


/* ? START SERVICE PEST CONTROL */

.container-pest-control {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
}

.card-pest-control {
    width: 300px;
    margin: .9rem;
    padding: 30px;
    background-color: var(--white);
    position: relative;
    transition: all 0.25s ease-in-out;
    border-radius: 2rem;
}

.card-pest-control .card__icon {
    width: 100%;
    margin-bottom: 40px;
}

.card-pest-control .card__icon img {
    width: 100%;
}

.card-pest-control .title-top {
    padding-bottom: 20px;
    color: var(--red);
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: capitalize;
}

.card-pest-control .title-down {
    margin-bottom: 10px;
    color: var(--black);
    font-size: .9rem;
    /* letter-spacing: 1px; */
    text-align: justify;
}

.card-pest-control.selected::before {
    content: "";
    height: 50%;
    position: absolute;
    right: -25px;
    bottom: -30px;
    /* background: url(https://i.imgur.com/WunqBPz.png); */
    background-position: right;
    background-size: 10px;
    z-index: -1;
}

.card-pest-control.selected {
    background-color: var(--red);
    box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.3);
}

.card-pest-control.selected .title-top {
    color: var(--white);
    font-size: 23px;
}

.card-pest-control.selected .title-down {
    color: var(--white);
    /* font-size: 1.4rem; */
}


/* ? END SERVICE PEST CONTROL */


/* ? START CHOOSE PEST CONTROL */

.viewport {
    position: relative;
    background-size: 200% 200%;
    height: auto;
    width: 100%;
    -webkit-animation: AnimationName 10s ease infinite;
    -moz-animation: AnimationName 10s ease infinite;
    animation: AnimationName 10s ease infinite;
}

@-webkit-keyframes AnimationName {
    0% {
        background-position: 0% 50%
    }
    50% {
        background-position: 100% 50%
    }
    100% {
        background-position: 0% 50%
    }
}

@-moz-keyframes AnimationName {
    0% {
        background-position: 0% 50%
    }
    50% {
        background-position: 100% 50%
    }
    100% {
        background-position: 0% 50%
    }
}

@keyframes AnimationName {
    0% {
        background-position: 0% 50%
    }
    50% {
        background-position: 100% 50%
    }
    100% {
        background-position: 0% 50%
    }
}

.cards .card p {
    margin: 0px;
    color: var(--black);
    font-weight: 400;
    font-size: 15px;
    line-height: 2rem;
    padding-left: 8%;
    padding-right: 8%;
    padding-top: 3%;
    padding-bottom: 8%;
    border-radius: 20px;
    cursor: pointer;
    transition: ease 1s;
    -webkit-transition: ease 1s;
}

.cards .card h3 {
    margin: 0px;
    color: var(--green);
    font-weight: 400;
    font-size: 18px;
    line-height: 90%;
    padding-left: 8%;
    padding-top: 8%;
    padding-bottom: 3%;
    border-radius: 20px;
    cursor: pointer;
    transition: ease 1s;
    -webkit-transition: ease 1s;
    font-weight: bold;
}

.viewport .cards {
    width: 100%;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 40px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.cards .card {
    width: 22%;
    position: relative;
    background-color: white;
    margin: 1.13%;
    border-radius: 5px;
    transition: 1s;
    -webkit-transition: 0.5s;
    cursor: pointer;
    flex: 1 1 auto;
}

.cards .card:hover {
    transform: scale(1.05);
    box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.3);
}

@media screen and (max-width: 1200px) {
    .cards .card {
        width: 30%;
        margin: 1.6%;
    }
}

@media screen and (max-width: 800px) {
    .cards .card {
        width: 45%;
        margin: 2.5%;
    }
}

@media screen and (max-width: 500px) {
    .cards .card {
        width: 98%;
        margin: 2%;
    }
}

.card .card_img {
    width: 100%;
    height: 300px;
    position: reltive;
    border-radius: 5px 5px 0px 0px;
    background-size: cover;
    background-position: center center;
    background-color: #20e6b3;
    transition: 1s;
    -webkit-transition: 1s;
}

.card1 {
    background-image: url(../images/pest-control/immediate-assistance.webp);
}

.card2 {
    background-image: url(../images/pest-control/calm-confidence.webp);
}

.card3 {
    background-image: url(../images/pest-control/company-client.webp);
    top: 5rem;
}

.line {
    height: 2px;
    width: 84%;
    margin: auto;
    background-color: var(--black);
}

.zoomed {
    width: 100%;
}


/* ? END CHOOSE PEST CONTROL */


/* ? 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 */


/* ? START SIDEBAR */

.with-sidebar img {
    display: block;
    max-width: 100%;
    min-height: 100%;
    object-fit: cover;
}

.with-sidebar .box .inf {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow: hidden;
    max-width: 65em;
    max-width: 65ch;
    font-size: .9rem;
    text-align: justify;
}

.with-sidebar .box h3 {
    font-size: 1.5rem;
    line-height: 1.3;
    max-width: 30em;
    max-width: 30ch;
    font-weight: bold;
    color: var(--green);
}

.with-sidebar {
    --gap: 0;
    --not-sidebar-min-width: 40%;
    display: flex;
    flex-wrap: wrap;
    gap: var(--gap);
}

.with-sidebar> :first-child,
.with-sidebar.sidebar-right> :last-child {
    flex-grow: 1;
    flex-basis: var(--sidebar-width);
}

.with-sidebar> :last-child,
.with-sidebar.sidebar-right> :first-child {
    flex-basis: 0;
    flex-grow: 999;
    min-width: var(--not-sidebar-min-width);
}

.main-wrapper {
    --sidebar-width: 400px;
    --gap: 30px;
    padding: 50px;
    /* align-items: flex-start; */
}

.card-sidebar {
    --sidebar-width: 400px;
}

.card-sidebar .box {
    padding: 1.5rem;
    color: var(--color-dark);
    background-color: var(--color-light);
}

.card-sidebar {
    --width: 400px;
    min-height: 380px;
    box-shadow: 0 2px 1.6px rgba(0, 0, 0, 0.007), 0 4.5px 3.6px rgba(0, 0, 0, 0.01), 0 7.9px 6.3px rgba(0, 0, 0, 0.013), 0 12.5px 10px rgba(0, 0, 0, 0.015), 0 19.3px 15.5px rgba(0, 0, 0, 0.017), 0 30.1px 24.1px rgba(0, 0, 0, 0.02), 0 50px 40px rgba(0, 0, 0, 0.023), 0 100px 80px rgba(0, 0, 0, 0.03);
    border-radius: 1rem;
    overflow: hidden;
}

.card-sidebar .cat {
    font-weight: bold;
    color: var(--red);
    font-size: 1rem;
}

.card-sidebar .box {
    --color-light: #fff;
    --color-dark: #121130;
}

.stack {
    display: flex;
    flex-direction: column;
}

.stack[data-stack-split="3"]> :nth-child(3) {
    margin-bottom: auto;
}

.stack>* {
    margin-top: 0;
    margin-bottom: 0;
}

.stack>*+* {
    margin-top: 1rem;
}

.card-sidebar .stack {
    margin-top: 0;
}


/* ? END SIDEBAR */


/* 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: START WHATSAPP */

#icons {
    position:fixed;
    bottom:25px;
    right:25px;
    z-index: 99999;
}

.phone, .whatsapp, .email, .remove, .more {
    color:#fff;
    display: none;
    width: 50px;
    height: 50px;
    line-height: 68px;
    text-align: center;
    border-radius:50%;
    margin:15px 0;
    cursor:pointer;
    a {
        color:#fff;
    }
    i {
        font-size: 4rem !important;
    }
    &:hover {
        opacity:0.8;
    }
}

.more {
    display: block;
    background: #25D366;
}

.remove {
    background: #ff0000;
}

/* TODO: END  WHATSAPP */


/* TODO: MEDIA QUERYES */

@media only screen and (min-device-width: 1200px) and (max-device-width: 1600px) {

    section {
        padding: 4rem 15rem !important;
    }

    .card-pest-control {
        width: 230px;
        padding: 20px;
    }

    .card-pest-control .title-down {
        margin-bottom: 10px;
        color: var(--black);
        font-size: .8rem;
        /* letter-spacing: 1px; */
        text-align: justify;
    }

}

@media (max-width: 768px) {

    .nav__logo img {
        width: 15rem !important;
    }

    section {
        padding: 2rem 0 !important;
    }

    .enviroment {
        padding: 1rem;
        font-size: .85rem;
    }

    .title-green {
        font-size: 1rem;
        padding: 2rem;
    }

    .title-red {
        font-size: 2rem;
        padding: 1rem;
    }

    .btn-free {
        margin-top: 1rem;
        padding: .8rem 2rem;
        font-size: .8rem;
        border-radius: 1rem;
    }


    /* ? START HEADER PEST CONTROL */

    .inner-header h1 {
        margin-top: 4rem;
        font-size: 2rem;
    }

    /* ? END HEADER PEST CONTROL */


    /* ? START SERVICE PEST CONTROL */


    .card-pest-control {
        width: 400px;
    }

    /* ? END SERVICE PEST CONTROL */


    /* ? 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 */


    /* ? START SIDEBAR */

    .with-sidebar .box .inf {
        font-size: .8rem;
        line-height: 1.3rem;
        text-align: justify;
    }

    .main-wrapper {
        padding: 18px;
    }

    /* ? END SIDEBAR */

}

