:root {
    --primary-color: #56D2C3;
    --secondary-color: #4A5EE5;
    --bg-light: #F8F9FB;
}

* {
    font-family: 'Plus Jakarta Sans';
}

body {
    overflow-x: hidden;
    max-width: 100vw;
}

.container {
    max-width: 1440px;
}

header {
    position: absolute;
	width: 100%;
	left: 50%;
	transform: translate(-50%);
}

footer {
    background-image: url('../../img/BG.png');
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;

    padding-top: 228px;
    height: 395px;

    display: flex;
    align-items: flex-end;
}


/* HERO */
#hero {
    background-image: url('../../img/hero.png');
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;

    padding-top: 228px;
    height: 1073px;
}

#hero>div.row {
    max-width: 958px;
    margin: 0 auto;
}

#hero h1 {
    font-size: 4rem;
    font-weight: 700;
}

#hero span {
    color: var(--primary-color);
    display: inline-block;
}

#hero p {
    opacity: 0;
    animation: fadeIn 1s ease-in forwards;
}

#hero a {
    opacity: 0;
    animation: fadeIn 2s ease-in forwards;
}

@media (max-width: 1024px) {
    #hero {
        height: 919px;
    }
}

@media (max-width: 768px) {
    #hero h1 {
        font-size: 3rem;
    }

    #hero h1,
    #hero p {
        max-width: 594px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 575px) {
    #hero {
        height: 654px;
        padding-top: 165px;
    }
    #hero h1 {
        font-size: 2rem;
    }
}

/* OVERHERO */
#overhero {
    position: absolute;
    margin-top: -400px;
    display: flex;
    justify-content: center;
}

@media (max-width: 1024px) {
    #overhero {
        margin-top: -300px;
    }
}

@media (max-width: 911px) {
    #overhero {
        margin-top: -250px;
    }
}

@media (max-width: 675px) {
    #overhero {
        margin-top: -170px;
    }
}

@media (max-width: 575px) {
    #overhero {
        margin-top: -90px;
    }
}

@media (max-width: 487px) {
    #overhero {
        margin-top: -170px;
    }
}

@media (max-width: 425px) {
    #overhero {
        margin-top: -90px;
    }
}

/* FIRST SECTION */

#first-section {
    margin-top: 283px;
}

#first-section .h2 {
    font-size: 3rem;
}

@media (max-width: 768px) {
    #first-section .h2 {
        font-size: 2rem;
    }
}

/* BENEFITS */
#benefits-mobile,
#benefits {
    background-color: var(--bg-light);
}

.benefit {
    padding: 32px;
    max-height: 200px; /* Altura inicial */
    transition: max-height 1s ease;
    overflow: hidden;
}

.benefit img,
.benefit p {
    display: none;
}

.benefit.active {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0px 4px 21px 0px #DEE1F4;
    max-height: 500px;
}

.benefit.active img,
.benefit.active p {
    display: block;
    transform: translateY(50px); /* Desplazado hacia abajo */
    animation: elevateFadeIn 0.5s ease-out forwards; /* Animación */
}

.benefits-mobile {
    overflow: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    width: calc(100% + 48px);
    padding-right: 48px;
    padding-left: 48px;

    display: flex;
    gap: 16px;
}

.benefit-card {
    width: 500px;
    padding: 24px;
    flex: 0 0 auto;
}

.benefit-card .benefit-image {
    aspect-ratio: 452 / 350;
}

#benefit-image {
    object-fit: cover;
    height: 100%;
    width: auto;
}

@media (max-width: 630px) {
    .benefit-card {
        width: 350px;
    }

    .benefits-mobile {
        gap: 8px;
        flex-direction: column;
        align-items: center;
    }

    .benefits-mobile .benefit-card {
        box-shadow: 0px 4px 21px 0px #DEE1F4;
        border-radius: 16px;
    }

    .benefits-mobile .benefit-card .benefit-image {
        display: none;
    }
}

/* PRODUCTS */

#product {
    background-image: url('../../img/bg-products.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#product h3 {
    font-size: 2.5rem;
    font-weight: 700;
    max-width: 514px;
}

.products {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    max-width: 816px;
}

.products>div {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0px 4px 21px 0px #DEE1F4;
    width: 100%;
    max-width: 339px;
    padding: 16px;
}

.products h4 {
    font-size: 1.25rem;
    font-weight: 700;
}

@media (max-width: 768px) {
    #product h3 {
        font-size: 2rem;
    }
}

@media (max-width: 425px) {
    #product h3 {
        font-size: 1.5rem;
    }

    #product {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* CLIENTS */
#clients {
    padding-left: 120px;
    padding-right: 120px;
}

.client-card {
    background-color: #fff;
    box-shadow: 0px 4px 21px 0px #DEE1F4;
    padding: 32px;
    border-radius: 16px;
    max-width: 584px;
    width: 100%;
}

.client-card .name {
    color: var(--secondary-color);
}

.client-card img {
    width: 50px;
}

.client-card img.avatar {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

@media (max-width: 1024px) {
    #clients {
        padding-left: 56px;
        padding-right: 56px;
    }
}

@media (max-width: 425px) {
    #clients {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* CONTACT BANNER */
#contact-banner {
    background-image: url('../../img/bg-banner.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    border-radius: 24px;
    padding: 80px 104px;
    margin: 40px 0 80px;
}

#contact-banner .h3 {
    font-size: 1.8rem;
}

#contact-banner p {
    max-width: 789px;
}

@media (max-width: 1024px) {
    #contact-banner {
        padding: 40px;
    }

    #contact-banner img {
        width: 74px;
        height: auto;
    }
}

@media (max-width: 767px) {
    #contact-banner img {
        order: 1;
        margin-bottom: 144px;
    }

    #contact-banner p {
        order: 2;
    }
}

/* CONTACT */
#contact {
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-left: 120px;
    padding-right: 120px;

    background-image: url('../../img/bg-products.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

#contact h3 {
    max-width: 550px;
    font-size: 2.2rem;
    font-weight: 700;
}

@media (max-width: 1024px) {
    #contact {
        min-height: 600px;
        justify-content: flex-start;
        padding-left: 56px;
        padding-right: 56px;
    }
}

@media (max-width: 425px) {
    #contact h3 {
        font-size: 1.5rem;
    }

    #contact {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* UNDERFOOTER */
#underfooter img {
    height: auto;
}

@media (max-width: 425px) {
    #underfooter img {
        max-width: 100px;
    }
}


/* ELEMENTS */

h2.secondary {
    color: var(--secondary-color);
    font-weight:600;
    font-size: 1rem;
    text-transform: uppercase;
}


/* TOM SELECT */
#language-select-ts-control {
    display: none !important;
}

.ts-control, .ts-wrapper.single.input-active .ts-control,
.full .ts-control {
    background-color: transparent;
    color: #fff;
    text-transform: uppercase;
    border: none;
    display: flex;
    justify-content: flex-end;
}
.ts-dropdown {
    border-radius: 5px;
    height: 88px;
    font-size: 16px;
    text-align: center;
    box-shadow: 0px 4px 8px -2px #66666626;
    min-width: 112px;
    left: -30px;
}

.ts-dropdown .option {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 44px;
}

.ts-dropdown .option.active {
    font-weight: 700;
    border-radius: 5px;
}


/* FORM */
form {
    position: absolute;
    width: 100%;
    max-width: 501px;
    top: 84px;

    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0px 16px 80px -20px #00000014;
    padding: 32px;
}

#thank-you-message {
    display: none;
    margin-top: 20px;
}

@media (max-width: 1199px) {
    form {
        top: 550px;
        left: 50%;
        transform: translate(-50%, -50%);
    }
}

@media (max-width: 655px) {
    form {
        max-width: 90%;
        top: 600px;
    }
}

@media (max-width: 425px) {
    form {
        top: 480px;
    }
}

/* CUSTOM BOOTSTRAP*/

.container-fluid .row {
    max-width: 1440px;
    width: 100%;
}

.btn {
    border-color: var(--primary-color);
}
.btn:hover {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
}

.btn-primary {
    background-color: var(--primary-color);
    width: 100%;
    font-size: 18px;
}

.h2 {
    font-size: 2.5rem;
    max-width: 1200px;
    text-align: center;
    font-weight: 700;
}

.form-label {
    color: #222;
    font-size: 14px;
}

.form-control {
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid #77777740;
}

.form-control::-webkit-input-placeholder { /* Chrome, Safari, Edge */
    color: #000;
    font-size: 16px;
}
.form-control:-moz-placeholder { /* Firefox 18- */
    color: #000;
    font-size: 16px;
}
.form-control::-moz-placeholder { /* Firefox 19+ */
    color: #000;
    font-size: 16px;
}
.form-control:-ms-input-placeholder { /* IE 10+ */
    color: #000;
    font-size: 16px;
}

@media (max-width: 425px) {
    .h2 {
        font-size: 1.5rem;
    }
}

/* ANIMATIONS */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes elevateFadeIn {
    0% {
        opacity: 0;
        transform: translateY(50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}