/*=============== 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: 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 TERMITE */

.header-termite {
    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 TERMITE */


/*? START BLOG TERMITE */

.blog-termite .box-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 1rem;
    margin: 1rem;
}

.blog-termite .box-container .box {
    overflow: hidden;
    border-radius: 1rem;
    box-shadow: var(--box-shadow);
    background: #fff;
}

.blog-termite .box-container .box img {
    height: 22rem;
    width: 100%;
    object-fit: cover;
}

.blog-termite .box-container .box .content {
    position: relative;
    height: 20vh;
    text-align: center;
}

.blog-termite .box-container .box .content h3 {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--green);
    font-weight: bold;
    margin: 1rem;
}

.blog-termite .box-container .box:hover {
    outline: var(--outline-hover);
    outline-offset: 0rem;
}

.blog-termite .box-container .box .content p {
    line-height: 1.8;
    color: var(--negro);
    font-size: 1.5rem;
    padding: .5rem 0;
}


/*? END BLOG TERMITE */


/*? START SIGN TERMITE */

.container-termites {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
}

.card-termites {
    width: 320px;
    margin: 20px;
    padding: 30px;
    background-color: var(--white);
    position: relative;
    transition: all 0.25s ease-in-out;
    border-radius: 2rem;
}

.card-termites .card__icon {
    width: 100%;
    margin-bottom: 40px;
}

.card-termites .card__icon img {
    width: 100%;
}

.card-termites .title-top {
    padding-bottom: 20px;
    color: var(--red);
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: capitalize;
}

.card-termites .title-down {
    margin-bottom: 10px;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-transform: capitalize;
}

.card-termites.selected::before {
    content: "";
    height: 50%;
    position: absolute;
    right: -25px;
    bottom: -30px;
    background-position: right;
    background-size: 10px;
    z-index: -1;
}

.card-termites.selected {
    background-color: var(--red);
    box-shadow: 15px 15px 30px rgba(0, 0, 0, 0.3);
}


/*? END SIGN TERMITE */


/*? START PROTOCOL TERMITE */

.termidor {
    text-align: center;
}

.termidor img {
    width: 20%;
    margin-top: 8rem;
}

a.btn {
    background: var(--green);
    border-radius: 4px;
    box-shadow: 0 2px 0px 0 rgba(0, 0, 0, 0.25);
    color: #ffffff;
    display: inline-block;
    padding: 6px 30px 8px;
    position: relative;
    text-decoration: none;
    transition: all 0.1s 0s ease-out;
}

.no-touch a.btn:hover {
    background: var(--red);
    box-shadow: 0px 8px 2px 0 rgba(0, 0, 0, 0.075);
    transform: translateY(-2px);
    transition: all 0.25s 0s ease-out;
}

.no-touch a.btn:active,
a.btn:active {
    /*box-shadow: 0 1px 0px 0 rgba(255, 255, 255, 0.25);*/
    transform: translate3d(0, 1px, 0);
    transition: all 0.025s 0s ease-out;
}

div.cards {
    margin: 2rem auto;
    max-width: 960px;
    text-align: center;
}

div.card {
    background: #ffffff;
    display: inline-block;
    margin: 8px;
    max-width: 300px;
    perspective: 1000;
    position: relative;
    text-align: left;
    transition: all 0.3s 0s ease-in;
    width: 300px;
    z-index: 1;
}

div.card img {
    max-width: 300px;
    border-radius: 1rem;
}

div.card .card__image-holder {
    /*background: rgba(0, 0, 0, 0.1);*/
    height: 0;
    padding-bottom: 75%;
}

div.card div.card-title {
    background: #ffffff;
    padding: 6px 15px 10px;
    position: relative;
    z-index: 0;
}

div.card div.card-title a.toggle-info {
    border-radius: 32px;
    height: 32px;
    padding: 0;
    position: absolute;
    right: 15px;
    top: 10px;
    width: 32px;
}

div.card div.card-title a.toggle-info span {
    background: #ffffff;
    display: block;
    height: 2px;
    position: absolute;
    top: 16px;
    transition: all 0.15s 0s ease-out;
    width: 12px;
}

div.card div.card-title a.toggle-info span.left {
    right: 14px;
    transform: rotate(45deg);
}

div.card div.card-title a.toggle-info span.right {
    left: 14px;
    transform: rotate(-45deg);
}

div.card div.card-title h3 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.05em;
    margin: 0;
    padding: 0;
}

div.card div.card-title h3 small {
    display: block;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.025em;
}

div.card div.card-description {
    padding: 0 15px 10px;
    position: relative;
    font-size: 15px;
}

div.card div.card-actions {
    box-shadow: 0 2px 0px 0 rgba(0, 0, 0, 0.075);
    padding: 10px 15px 20px;
    text-align: center;
}

div.card div.card-flap {
    /*background: #d9d9d9;*/
    position: absolute;
    width: 100%;
    transform-origin: top;
    transform: rotateX(-90deg);
}

div.card div.flap1 {
    transition: all 0.3s 0.3s ease-out;
    z-index: -1;
}

div.card div.flap2 {
    transition: all 0.3s 0s ease-out;
    z-index: -2;
}

div.cards.showing div.card {
    cursor: pointer;
    opacity: 0.6;
    transform: scale(0.88);
}

.no-touch div.cards.showing div.card:hover {
    opacity: 0.94;
    transform: scale(0.92);
}

div.card.show {
    opacity: 1 !important;
    transform: scale(1) !important;
}

div.card.show div.card-title a.toggle-info {
    background: #ff6666 !important;
}

div.card.show div.card-title a.toggle-info span {
    top: 15px;
}

div.card.show div.card-title a.toggle-info span.left {
    right: 10px;
}

div.card.show div.card-title a.toggle-info span.right {
    left: 10px;
}

div.card.show div.card-flap {
    background: #ffffff;
    transform: rotateX(0deg);
}

div.card.show div.flap1 {
    transition: all 0.3s 0s ease-out;
}

div.card.show div.flap2 {
    transition: all 0.3s 0.2s ease-out;
}


/*? END PROTOCOL TERMITE */


/* ? 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;
    }

    .card-termites {
        width: 300px;
    }

}

@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: .1rem;
        padding: .8rem 2rem;
        font-size: .8rem;
        border-radius: 1rem;
    }


    /*? START HEADER TERMITE */

    .inner-header h1 {
        margin-top: 4rem;
        font-size: 2rem;
    }

    /*? END HEADER TERMITE */


    /* ? 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 PROTOCOL TERMITE */

    .termidor img {
        width: 50%;
    }

    /*? END PROTOCOL TERMITE */


    /*? START BLOG TERMITE */

    .blog-termite .box-container .box .content h3 {
        font-size: 1.7rem;
        line-height: 1.8;
        margin: 1rem;
    }
    .blog-termite .box-container .box .content {
        height: 18vh;
    }


    /*? END BLOG TERMITE */

}

