﻿/* ==========================================================================
   GLOBAL & RESET
   ========================================================================== */
html, body {
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    font-family: 'Source Sans Pro', sans-serif;
}

/* ==========================================================================
   ANIMACIONES GLOBALES (Keyframes)
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pop-effect {
    0% {
        transform: scale(1);
    }

    25% {
        transform: scale(1.2);
    }

    60% {
        transform: scale(0.95);
    }

    100% {
        transform: scale(1);
    }
}

/* ==========================================================================
   1. MAIN BANNER (Full Bleed)
   ========================================================================== */
.main-banner {
    width: 100%;
    position: relative;
    margin-top: 0;
    height: 600px;
    overflow: hidden;
    box-sizing: border-box;
    z-index: 1;
}

    .main-banner .banner-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: -2;
        object-fit: cover;
        object-position: 80% center;
        opacity: 0;
        animation: fadeInUp 1s 0.2s ease-out forwards;
    }

    .main-banner::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(104, 189, 242, 0.7) 0%, rgba(180, 222, 249, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
        z-index: -1;
        pointer-events: none;
    }

    .main-banner .banner-content {
        position: absolute;
        top: 55%;
        left: 8%;
        transform: translateY(-50%);
        z-index: 1;
        max-width: 50%;
    }

        .main-banner .banner-content h1,
        .main-banner .banner-content h2,
        .main-banner .banner-content p,
        .main-banner .banner-content .banner-actions {
            opacity: 0;
        }

            .main-banner .banner-content h1.gradient-text {
                margin: 0 0 0.1rem 0;
                font-family: 'Plus Jakarta Sans', sans-serif;
                font-size: 60px;
                font-weight: 700;
                line-height: 1.25;
                animation: fadeInUp 1s 0.5s ease-out forwards;
                background: linear-gradient(49deg, rgba(13, 74, 230, 1) 49%, rgba(53, 168, 224, 0.5) 69%);
                -webkit-background-clip: text;
                background-clip: text;
                color: transparent;
            }

            .main-banner .banner-content h1 span {
                display: block;
            }

        .main-banner .banner-content h2 {
            margin: .1rem 0 0.8rem;
            font-family: 'Plus Jakarta Sans', sans-serif;
            font-size: 58px;
            font-weight: 700;
            line-height: 1.1;
            color: #252B42;
            animation: fadeInUp 1s 0.6s ease-out forwards;
        }

        .main-banner .banner-content p {
            margin-bottom: 20px;
            font-family: 'Source Sans Pro', sans-serif;
            font-size: 17px;
            font-weight: 400;
            line-height: 1.5;
            color: #6F6F6E;
            animation: fadeInUp 1s 0.8s ease-out forwards;
        }

        .main-banner .banner-content .banner-actions {
            display: flex;
            gap: 16px;
            margin-top: 12px;
            animation: fadeInUp 1s 1s ease-out forwards;
        }

    /* Botones Banner */
    .main-banner .btn-primary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 152px;
        height: 45px;
        padding: 12px 24px;
        background: #0D4AE6;
        color: #fff;
        border: none;
        border-radius: 37px;
        font-size: 1rem;
        text-decoration: none;
        transition: background-color 0.5s, transform 0.3s;
        box-sizing: border-box;
    }

        .main-banner .btn-primary:hover {
            background: #0935A9;
            transform: scale(1.05);
            box-shadow: 0 8px 30px rgba(13, 74, 230, 0.35);
        }

    .main-banner .btn-secondary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 152px;
        height: 45px;
        padding: 12px 24px;
        background: transparent;
        color: #000000;
        border: 1px solid #000000;
        border-radius: 37px;
        font-size: 1rem;
        text-decoration: none;
        transition: all 0.3s;
        box-sizing: border-box;
    }

        .main-banner .btn-secondary:hover {
            border-color: #00A3E0;
            color: #00A3E0;
            transform: scale(1.05);
        }

/* Responsive Banner */
@media (min-width: 768px) and (max-width: 1024px) {
    .main-banner {
        height: 500px;
    }

        .main-banner .banner-content {
            max-width: 55%;
            left: 7%;
        }

            .main-banner .banner-content h1.gradient-text,
            .main-banner .banner-content h2 {
                font-size: 36px;
            }

            .main-banner .banner-content p {
                font-size: 16px;
            }
}

@media (max-width: 767px) {
    .main-banner {
        height: 500px;
        min-height: 500px;
    }

        .main-banner .banner-content p br {
            display: none;
        }

        .main-banner .banner-content {
            top: 55%;
            left: 50%;
            transform: translate(-50%, -50%);
            max-width: 90%;
            text-align: center;
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            border-radius: 20px;
            padding: 2rem 1rem;
        }

            .main-banner .banner-content h1.gradient-text,
            .main-banner .banner-content h2 {
                font-size: 28px;
            }

            .main-banner .banner-content p {
                font-size: 14px;
                margin-bottom: 1rem;
                text-align: center;
            }

            .main-banner .banner-content .banner-actions {
                flex-direction: column;
                gap: 12px;
                align-items: center;
                justify-content: center;
                margin-top: 1rem;
            }

        .main-banner .btn-primary,
        .main-banner .btn-secondary {
            width: 80%;
            max-width: 200px;
            font-size: .9rem;
        }

        .main-banner .banner-image {
            object-position: 85% center;
        }
}

/* ==========================================================================
   2. INTRO HERO & STATS SECTION
   ========================================================================== */
.home-intro-hero {
    background-color: #FAFAFA;
    width: 100%;
    overflow-x: hidden;
    margin-top: 0;
    position: relative;
    z-index: 2; /* Enfrente del banner */
    padding: 1rem 2rem 4rem 2rem;
}

.style-flex-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.style-Text-Center {
    text-align: center;
}

.home-intro-hero .style-Title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 40px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    margin: 0 0 1rem 0;
    color: #000000;
    opacity: 0;
    animation: fadeInDown 0.5s ease-in-out forwards;
}

    .home-intro-hero .style-Title .gradient-text {
        background: linear-gradient(49deg, rgba(13, 74, 230, 1) 21%, rgba(53, 168, 224, 0.5) 56%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

.home-intro-hero .style-Subtitle {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #6F6F6E;
    text-align: center;
    max-width: 60ch;
    margin: 0 auto 3rem;
    line-height: 1.5;
}

/* Stats Section */
.stats-section {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    width: 100%;
}

    .stats-section > * {
        opacity: 0;
        animation: fadeInUp 0.7s ease-in-out forwards;
    }

        .stats-section > *:nth-child(1) {
            animation-delay: 0s;
        }

        .stats-section > *:nth-child(2) {
            animation-delay: 0.2s;
        }

        .stats-section > *:nth-child(3) {
            animation-delay: 0.4s;
        }

        .stats-section > *:nth-child(4) {
            animation-delay: 0.6s;
        }

    .stats-section .card {
        width: 240px;
        height: 238px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background-color: #FFFFFF;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
        padding: 1rem;
        box-sizing: border-box;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

        .stats-section .card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        }

        .stats-section .card .stat-icon {
            width: 50px;
            height: 50px;
            object-fit: contain;
            margin-bottom: 1rem;
        }

        .stats-section .card .stat-number {
            font-family: 'Source Sans Pro', sans-serif;
            font-weight: 700;
            font-size: 40px;
            line-height: 1.2;
            margin-bottom: 8px;
            color: #252B42;
        }

        .stats-section .card .stat-text {
            font-family: 'Source Sans Pro', sans-serif;
            font-weight: 400;
            font-size: 16px;
            line-height: 1.4;
            text-align: center;
            color: #737373;
            margin: 0;
        }

        .stats-section .card .stat-number.is-animating {
            animation: pop-effect 1.5s ease-out;
        }

@media (max-width: 1024px) {
    .stats-section {
        max-width: 600px;
    }
}

@media (max-width: 767px) {
    .stats-section {
        flex-direction: column;
    }

        .stats-section .card {
            width: 90%;
            max-width: 320px;
        }
}

/* ==========================================================================
   3. CONSULTORIA BANNER
   ========================================================================== */
.consultoria-banner {
    background-color: #D9EDFF;
    padding: 6rem 2rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    width: 100%;
    margin: 0;
    overflow-x: hidden;
    min-height: 300px;
}

.consultoria-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
    width: 100%;
    position: relative;
    z-index: 2;
    justify-content: flex-start;
    padding: 0 2rem;
}

.consultoria-img {
    width: 440px;
    height: 440px;
    border-radius: 1rem;
    object-fit: cover;
    flex-shrink: 0;
    margin-left: 4rem;
    opacity: 0;
    transform: translateX(50px);
}

.consultoria-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    max-width: 600px;
    margin-left: 0;
    margin-right: 2rem;
    height: 440px;
}

.consultoria-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 40px;
    font-weight: 600;
    color: #0E091E;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 3;
    display: block;
    opacity: 0;
    transform: translateX(-50px);
}

    .consultoria-title .title-line {
        display: block !important;
        width: 100% !important;
        line-height: 1.3 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

        .consultoria-title .title-line:nth-child(2),
        .consultoria-title .title-line:nth-child(3) {
            white-space: nowrap !important;
        }

    .consultoria-title .gradient-text {
        font-weight: 700;
        background: linear-gradient(90deg, #0D4AE6 -10%, #1A7DD9 30%, rgba(53, 168, 224, 0.5) 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        display: inline;
        vertical-align: baseline;
        padding: 0;
        margin: 0;
    }

.consultoria-desc {
    margin: 0 0 1.5rem 0;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    color: #000000;
    max-width: 500px;
    text-align: left;
    position: relative;
    z-index: 3;
    opacity: 0;
}

.consultoria-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem 2.5rem;
    margin: 0 0 2rem 0;
    position: relative;
    z-index: 3;
    opacity: 0;
}

    .consultoria-list p {
        margin: 0;
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-size: 19px;
        font-weight: 500;
        color: #000000;
        white-space: nowrap;
    }

.consultoria-btn-container {
    margin-top: 0;
    position: relative;
    z-index: 3;
    opacity: 0;
}

.consultoria-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    padding: 14px 24px;
    background-color: #0D4AE6;
    color: #FFF;
    border-radius: 37px;
    text-decoration: none;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 4;
    width: 214px;
    height: 50px;
    box-sizing: border-box;
}

    .consultoria-btn:hover {
        background-color: #0935A9;
        color: #FFF;
        text-decoration: none;
        transform: scale(1.05);
        box-shadow: 0 8px 30px rgba(13, 74, 230, 0.35);
    }

/* Animaciones Consultoria */
@media (prefers-reduced-motion: no-preference) {
    .consultoria-banner.in-view .consultoria-img {
        animation: slideInFromRight 0.7s ease-out 0.3s forwards;
    }

    .consultoria-banner.in-view .consultoria-title {
        animation: slideInFromLeft 0.5s ease-out forwards;
    }

    .consultoria-banner.in-view .consultoria-desc {
        animation: fadeIn 0.5s ease-out 0.3s forwards;
    }

    .consultoria-banner.in-view .consultoria-list {
        animation: fadeIn 0.5s ease-out 0.4s forwards;
    }

    .consultoria-banner.in-view .consultoria-btn-container {
        animation: fadeIn 0.5s ease-out 0.6s forwards;
    }
}

/* Responsive Consultoria */
@media (max-width: 1024px) {
    .consultoria-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .consultoria-content {
        order: 1;
        align-items: center;
        height: auto;
        margin: 0;
        max-width: 90%;
    }

    .consultoria-img {
        order: 2;
    }

    .consultoria-title, .consultoria-desc {
        text-align: center;
    }

    .consultoria-desc {
        max-width: 500px;
    }

    .consultoria-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .consultoria-banner {
        min-height: 500px;
    }

    .consultoria-title {
        font-size: 28px;
    }

    .consultoria-desc {
        font-size: 16px;
    }

    .consultoria-img {
        display: block;
        width: 90%;
        max-width: 450px;
        height: auto;
        margin-top: 20px;
    }
}

@media (max-width: 767px) {
    .consultoria-banner {
        min-height: 700px;
        padding: 4rem 1rem;
    }

    .consultoria-title {
        font-size: 24px;
        line-height: 1.2;
    }

        .consultoria-title .gradient-text {
            font-size: 26px;
            line-height: 1.2;
        }

    .consultoria-desc {
        font-size: 14px;
    }

    .consultoria-img {
        display: block;
        width: 80%;
        max-width: 300px;
        height: auto;
        margin: 16px auto 0 auto;
    }

    .consultoria-btn-container {
        margin-top: 16px;
    }

    .consultoria-title br {
        display: none;
    }

    .consultoria-content {
        align-items: center;
        text-align: center;
    }

    .consultoria-list {
        align-items: center;
    }
}
/* ==========================================================================
   4. CARRUSEL CLIENTES
   ========================================================================== */
.clientes-carousel-section-final {
    position: relative;
    height: 300px;
    background: linear-gradient(0deg, rgba(221, 242, 254, 1) 20%, rgba(221, 242, 254, 1) 40%, rgba(255, 255, 255, 1) 100%, rgba(255, 255, 255, 1) 50%);
    overflow: hidden;
    padding-top: 4rem;
}

    .clientes-carousel-section-final::after {
        content: '';
        position: absolute;
        bottom: -70px;
        left: -10%;
        width: 120%;
        height: 120px;
        background: white;
        border-radius: 50%;
        z-index: 1;
    }

.clientes-carousel-content-final {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    padding-bottom: 5rem;
    box-sizing: border-box;
    top: -20px;
}

.clientes-carousel-text-final {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #333;
    text-align: center;
    max-width: 800px;
    line-height: 1.6;
    margin-bottom: 3.5rem;
}

.carousel-wrapper-final {
    position: relative;
    width: 100%;
    max-width: 1320px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.carousel-viewport-final {
    width: 1027px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    height: 70px;
    padding: 10px 0;
}

    .carousel-viewport-final::before,
    .carousel-viewport-final::after {
        content: '';
        position: absolute;
        top: 0;
        bottom: 0;
        z-index: 2;
        width: 60px;
        pointer-events: none;
    }

    .carousel-viewport-final::before {
        left: 0;
        background: linear-gradient(to right, rgba(221, 242, 254, 1), transparent);
    }

    .carousel-viewport-final::after {
        right: 0;
        background: linear-gradient(to left, rgba(221, 242, 254, 1), transparent);
    }

.carousel-track-final {
    display: flex;
    flex-wrap: nowrap;
    gap: 65px;
    width: max-content;
    transition: margin-left 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    align-items: center;
}

.carousel-logo-final {
    flex-shrink: 0;
    width: 117px;
    height: 58px;
    object-fit: contain;
    display: block;
    transition: transform 0.3s ease;
    padding: 0;
    box-sizing: border-box;
}

    .carousel-logo-final:hover {
        transform: scale(1.1);
    }

.carousel-arrow-final {
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: 5px;
    width: 12px;
    height: 22px;
    flex-shrink: 0;
    outline: none;
}

    .carousel-arrow-final:hover {
        transform: scale(1.1);
    }

.clientes-carousel-section-final:hover .carousel-arrow-final {
    opacity: 1;
    visibility: visible;
}

/* --- DEFINICIÓN DE ANIMACIÓN SCROLL (Solo se usa en móvil) --- */
@keyframes mobileScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-33.333%);
    }
}

/* Responsive Carrusel (TABLET - JS Activo) */
@media (max-width: 1024px) {
    .clientes-carousel-text-final {
        font-size: 20px;
        margin-bottom: 2.5rem;
    }

    .carousel-wrapper-final {
        max-width: 800px;
        gap: 20px;
    }

    .carousel-viewport-final {
        width: 650px;
        height: 55px;
        padding: 10px 0;
    }

    .carousel-track-final {
        gap: 32px;
    }

    .carousel-logo-final {
        width: 106px;
        height: 53px;
    }
}
/* =========================================
   CORRECCIÓN FINAL MÓVIL (Sin traslapes)
   ========================================= */
@media (max-width: 768px) {

    /* 1. Espaciado del carrusel: le damos aire para que los logos no choquen */
    .clientes-carousel-section-final {
        height: auto !important;
        min-height: auto !important;
        padding-top: 2rem !important;
        padding-bottom: 3.5rem !important; /* Espacio para que respiren los logos */
        overflow: visible !important;
    }

    /* 2. Ajuste de la curva blanca (el decorativo del fondo) */
    .clientes-carousel-section-final::after {
        bottom: -30px !important; /* Subimos la curva para que no tape el texto de abajo */
        height: 80px !important;  /* Curva más sutil */
    }

    /* 3. Sección de Confianza: la bajamos un poco para que no muerda los logos */
    .confianza-section {
        margin-top: 0 !important; 
        padding-top: 2rem !important; /* Empuja el texto "Confianza" hacia abajo */
        z-index: 10 !important;
    }

    /* 4. El título "Confianza" es demasiado grande para móvil, hay que ajustarlo */
    .confianza-section .confianza-title {
        font-size: 30px !important; /* Tamaño legible en celular */
        line-height: 1.1 !important;
        margin-top: 0 !important;
        text-align: center !important;
    }

    /* 5. Aseguramos que los logos se vean bien */
    .carousel-viewport-final {
        height: 70px !important;
        margin-bottom: 0 !important;
    }

    .carousel-track-final {
        animation: mobileScroll 25s linear infinite !important; /* Un poquito más rápido */
    }
}
/* ==========================================================================
   5. SECCIÓN CONFIANZA
   ========================================================================== */
.confianza-section {
    width: 100%;
    background-color: #FFFFFF;
    padding: 0rem 0;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    position: relative;
    z-index: 2;
    padding-top: 0px;
}

    .confianza-section .container {
        padding: 0 15px;
    }

    .confianza-section .confianza-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        align-items: center;
    }

    .confianza-section .confianza-text {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-left: 0;
        width: 100%;
        max-width: none;
    }

    .confianza-section .confianza-quotes {
        position: absolute;
        top: 20px;
        left: 40px;
        height: 180px;
        width: auto;
        opacity: 1;
        z-index: -1;
    }

    .confianza-section .confianza-title {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-weight: bold;
        font-size: 50px;
        line-height: 1.2;
        margin: 0 0 1rem;
        position: relative;
        z-index: 1;
        font-variant-ligatures: none;
    }

    .confianza-section .gradient-text {
        background: linear-gradient(39deg, rgba(13, 74, 230, 1) 24%, rgba(53, 168, 224, 0.6) 84%);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
    }

    .confianza-section .confianza-title .confianza-black {
        background: linear-gradient(135deg, #0E091E, #0E091E);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
        white-space: nowrap;
    }

    .confianza-section .confianza-subtitle {
        font-family: 'Source Sans Pro', sans-serif;
        font-weight: 400;
        font-size: 24px;
        color: #333;
        margin: 1rem 0 0;
    }

    /* Panel Azul Derecho */
    .confianza-section .confianza-panel {
        display: flex;
        background-color: #8ECBF9;
        border-radius: 40px;
        padding: 2rem;
        width: 100%;
        box-sizing: border-box;
        gap: 1rem;
        align-items: center;
        height: auto;
        min-height: 480px;
        overflow: hidden;
        min-width: 45rem;
    }

    .confianza-section .panel-left-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        flex-basis: 28%;
        min-width: 150px;
    }

    .confianza-section .panel-right-content {
        display: flex;
        flex-direction: row;
        gap: 1rem;
        flex-basis: 72%;
        width: 100%;
        align-items: stretch;
    }

    .confianza-section .panel-intro {
        font-family: 'Source Sans Pro', sans-serif;
        font-size: 17px;
        font-weight: 400;
        color: #0E091E;
        margin: 0 0 1rem 0;
        line-height: 1.5;
        max-width: 200px;
    }

        .confianza-section .panel-intro span {
            color: #0D4AE6;
            font-weight: 700;
        }

    .confianza-section .panel-contact {
        font-family: 'Plus Jakarta Sans', sans-serif;
        font-weight: 500;
        font-size: 30px;
        color: #0E091E;
        line-height: 1.1;
        margin: 4rem 0 1.25rem 0;
    }

    /* Botones Confianza */
    .confianza-section .btn-outline,
    .confianza-section .btn-primary {
        border-radius: 30px;
        padding: 10px 28px;
        font-family: 'Source Sans Pro', sans-serif;
        font-weight: 700;
        font-size: 15px;
        text-decoration: none;
        text-align: center;
        white-space: nowrap;
        transition: all 0.2s ease;
        cursor: pointer;
        box-sizing: border-box;
        width: 100%;
        max-width: 240px;
        height: 53px;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .confianza-section .btn-primary {
        font-weight: 600;
        background-color: #0D4AE6;
        color: white;
        border: none;
    }

        .confianza-section .btn-primary:hover {
            background-color: #0B3DBD;
            transform: scale(1.1);
            box-shadow: 0 8px 30px rgba(13, 74, 230, 0.35);
        }

    .confianza-section .btn-outline {
        background-color: transparent;
        color: #0E091E;
        border: 2px solid #0E091E;
    }

        .confianza-section .btn-outline:hover {
            transform: scale(1.1);
        }

    /* Tarjetas Confianza */
    .confianza-section .confianza-card {
        flex: 1;
        background-color: #FFFFFF;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        overflow: hidden;
        transform: translateZ(0);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
        border: none;
        height: 22rem;
        width: 1rem;
    }

        .confianza-section .confianza-card:hover {
            transition: transform 0.3s ease;
            transform: scale(1.1);
        }

    .confianza-section .confianza-card-content {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }

    .confianza-section .confianza-card h4 {
        font-family: 'Source Sans Pro', sans-serif;
        font-weight: bold;
        font-size: 15px;
        color: #252B42;
        margin: 0 0 0.75rem;
    }

    .confianza-section .confianza-card p {
        font-family: 'Source Sans Pro', sans-serif;
        font-weight: 400;
        font-size: 14px;
        color: #737373;
        margin: 0;
        line-height: 1.6;
    }

    .confianza-section .confianza-card img {
        display: block;
        width: 100%;
        height: 135px;
        object-fit: cover;
        margin-top: auto;
        padding-bottom: 0.9rem;
    }

    /* Animaciones Confianza */
    .confianza-section .confianza-title,
    .confianza-section .confianza-subtitle,
    .confianza-section .confianza-panel,
    .confianza-section .btn-outline,
    .confianza-section .btn-primary,
    .confianza-section .card img {
        opacity: 0;
        transition: opacity 0.5s ease;
    }

    .confianza-section .confianza-title {
        transform: translateX(-50px);
        transition: opacity 0.5s ease, transform 0.5s ease;
    }

    .confianza-section.animate .confianza-title {
        opacity: 1;
        transform: translateX(0);
    }

    .confianza-section.animate .confianza-subtitle {
        opacity: 1;
        transition-delay: 0.3s;
    }

    .confianza-section.animate .confianza-panel {
        opacity: 1;
        transition-delay: 0.2s;
    }

    .confianza-section.animate .btn-outline {
        opacity: 1;
        transition-delay: 0.3s;
    }

    .confianza-section.animate .btn-primary {
        opacity: 1;
        transition-delay: 0.6s;
    }

    .confianza-section.animate .card:first-child img {
        opacity: 1;
        transition-delay: 0.4s;
    }

    .confianza-section.animate .card:last-child img {
        opacity: 1;
        transition-delay: 0.5s;
    }

/* Responsive Confianza */
@media (max-width: 1024px) {
    .confianza-section .confianza-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        top: -20px; /* Ajuste para tablet */
    }

    .confianza-section .confianza-text {
        text-align: center;
        margin: 0 auto 2rem;
    }

    .confianza-section .confianza-panel {
        flex-direction: column;
        height: auto;
        min-width: 0 !important;
        padding: 2rem 1.5rem;
    }

    .confianza-section .panel-left-content, .confianza-section .panel-right-content {
        flex-basis: auto;
        width: 100%;
    }

    .confianza-section .panel-left-content {
        align-items: center;
        text-align: center;
    }

    .confianza-section .panel-right-content {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .confianza-section .confianza-card {
        width: 100%;
        max-width: 400px;
        height: auto;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .confianza-section .confianza-content {
        width: 80%;
        margin: 0 auto;
    }

    .confianza-section .confianza-title {
        font-size: 28px;
        margin: -10px 0 1rem; /* Menos agresivo en tablet */
    }

    .confianza-section .confianza-subtitle {
        font-size: 16px;
    }

    .confianza-section .panel-right-content {
        flex-direction: row;
        justify-content: center;
    }

    .confianza-section .card {
        width: 45%;
        max-width: none;
    }
}

/* =========================================
   CORRECCIÓN FINAL MÓVIL (Altura Automática)
   ========================================= */
@media (max-width: 768px) {
    .clientes-carousel-section-final {
        /* CAMBIO CLAVE: Antes era 250px y cortaba el contenido. 
           Ahora es 'auto' para crecer lo que necesite. */
        height: auto;
        min-height: 350px;
        padding-bottom: 6rem; /* Espacio extra abajo para que no choque con la curva */
    }

    .clientes-carousel-text-final {
        font-size: 16px;
        max-width: 90%;
        margin-bottom: 1.5rem; /* Un poco menos de margen para acercar el carrusel */
    }

    .carousel-wrapper-final {
        max-width: 100%;
        padding: 0;
        gap: 0;
        overflow: hidden;
        margin-top: 10px; /* Un pelín de aire arriba */
    }

    .carousel-viewport-final {
        width: 100%;
        max-width: 100%;
        height: 70px;
        padding: 0;
        overflow: hidden;
    }

        /* Ocultamos elementos que estorban en móvil */
        .carousel-viewport-final::before,
        .carousel-viewport-final::after,
        .carousel-viewport-final::-webkit-scrollbar,
        .carousel-arrow-final {
            display: none !important;
        }

    /* Pista de animación */
    .carousel-track-final {
        display: flex;
        width: max-content;
        box-sizing: border-box;
        padding: 0;
        gap: 0;
        /* Bloqueamos JS desktop */
        margin-left: 0 !important;
        transition: none !important;
        /* Animación infinita */
        animation: mobileScroll 15s linear infinite;
    }

    .carousel-logo-final {
        display: block;
        width: 100px;
        height: 50px;
        object-fit: contain;
        flex-shrink: 0; /* Vital para que no se aplasten */
        margin: 0 20px;
    }
}

/* ==========================================================================
   6. CONTACT SECTION
   ========================================================================== */
.contact-section {
    padding: 1rem 0 1.5rem 0;
    background: #f2f2f2;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.contact-wrapper {
    position: relative;
    padding-top: 0.8rem;
}

.contact-background {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 90%;
    transform: translateY(-50%);
    background-color: #76C7FD;
    border-radius: 1.5rem;
    z-index: 0;
    overflow: hidden;
    opacity: 0;
    transition: opacity 0.7s ease-out;
}

    .contact-background.animate {
        opacity: 1;
    }

    .contact-background::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image: url('/Img/Home/contactSection.png');
        background-size: cover;
        background-position: center;
        opacity: 0.2;
        border-radius: 1.5rem;
        pointer-events: none;
        z-index: 1;
    }

    .contact-background::after {
        content: "";
        position: absolute;
        top: -50%;
        left: 8%;
        width: 35%;
        height: 100%;
        border-radius: 50%;
        pointer-events: none;
        background: radial-gradient(circle, rgba(217, 237, 255, 0.91) 0%, rgba(118, 199, 253, 0.86) 34%);
        z-index: 2;
    }

.contact-content {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
    padding: 0 4rem;
}

.contact-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin-left: 20px;
}

.contact-title {
    margin: 0;
    font-size: clamp(2.4rem, 5.5vw, 3.2rem);
    font-weight: 700;
    line-height: 1.2;
    color: #FFFFFF;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.5s ease-out;
}

    .contact-title.animate {
        opacity: 1;
        transform: translateX(0);
    }

    /* CORRECCIÓN: 90100deg -> 90deg */
    .contact-title .gradient-line-contact {
        background-image: linear-gradient(90deg, rgba(13, 74, 230, 0.91) 37%, rgba(53, 168, 224, 0.86) 86%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .contact-title .line-1,
    .contact-title .line-2 {
        display: block;
        white-space: nowrap;
    }

.contact-subtitle {
    margin-top: 1.5rem;
    margin-left: -1rem;
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #FFFFFF;
    max-width: 700px;
    width: 100%;
    word-wrap: break-word;
    white-space: normal;
    opacity: 0;
    transition: opacity 0.5s ease-out;
}

    .contact-subtitle.animate {
        opacity: 0.9;
    }

/* Contact Form */
.contact-form-container {
    position: relative;
    border-radius: 2rem;
    padding: 2.5rem;
    background: white;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
    max-width: 420px;
    width: 100%;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out 0.3s, transform 0.6s ease-out 0.3s;
    pointer-events: none;
}

    .contact-form-container::before {
        content: '';
        position: absolute;
        inset: 0;
        padding: 1px;
        background: linear-gradient(90deg, rgba(118, 199, 253, 1) 20%, rgba(169, 214, 255, 1) 45%, rgba(255, 255, 255, 1) 63%);
        border-radius: inherit;
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: xor;
        -webkit-mask-composite: xor;
        pointer-events: none;
    }

    .contact-form-container.animate {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

.contact-form .form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    margin-bottom: 0.4rem;
    color: #6F6F6E;
    font-size: 0.875rem;
    font-family: 'Source Sans Pro', sans-serif;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    border: none;
    border-bottom: 1px solid #D9D9D9;
    padding: 0.45rem 0;
    font-size: 0.95rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: #252B42;
    font-weight: 600;
    background: transparent;
    transition: border-color 0.3s;
}

    .contact-form input:focus, .contact-form textarea:focus {
        outline: none;
        border-bottom-color: #0D4AE6;
    }

.contact-form textarea {
    resize: vertical;
    min-height: 50px;
}

.contact-form .form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.form-actions .btn-primary, .form-actions .btn-secondary {
    flex: 1 1 120px;
    height: 52px;
    width: 175px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.form-actions .btn-primary {
    background-color: #0D4AE6;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

    .form-actions .btn-primary:hover {
        background-color: #0a3bb8;
        transform: scale(1.1);
        box-shadow: 0 8px 30px rgba(13, 74, 230, 0.35);
    }

.form-actions .btn-secondary {
    background-color: #FFFFFF;
    color: #252B42;
    border-color: #D9D9D9;
}

    .form-actions .btn-secondary:hover {
        border-color: #0D4AE6;
        color: #0D4AE6;
        transform: scale(1.1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

/* Form States */
.btn-primary .btn-content {
    display: inline-block;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn-primary .success-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.contact-form.is-submitting .btn-primary {
    cursor: wait;
    background-color: #3d5a99;
}

.contact-form input:disabled, .contact-form textarea:disabled {
    background-color: #e9ecef;
    opacity: 0.7;
    cursor: not-allowed;
}

.contact-form.is-submitted .btn-primary {
    background-color: #28a745;
}

.contact-form.is-submitted .btn-content {
    opacity: 0;
    transform: translateY(10px);
}

.contact-form.is-submitted .success-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.form-success-message {
    color: #155724;
    font-size: 1rem;
    margin-top: 1rem;
    background-color: #d4edda;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid #c3e6cb;
}

/* Responsive Contact */
@media (max-width: 1024px) {
    .contact-content {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
        padding: 3rem 1.5rem;
    }

    .contact-text {
        order: 1;
        margin-left: 0;
        max-width: 600px;
    }

    .contact-title .line-1, .contact-title .line-2 {
        white-space: normal;
    }

    .contact-subtitle {
        margin-left: 0;
    }

    .contact-form-container {
        order: 2;
        width: 90%;
        max-width: 500px;
        margin: 0;
        transform: none;
        opacity: 1;
        pointer-events: auto;
    }

    .contact-background {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        transform: none;
        opacity: 1;
    }
}

@media (max-width: 991px) {
    .contact-title {
        font-size: clamp(2rem, 6vw, 2.5rem);
    }

    .contact-subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .contact-section {
        padding: 2rem 1rem;
    }

    .contact-content {
        padding: 2rem 1rem;
        gap: 2.5rem;
    }

    .contact-title {
        font-size: 1.8rem;
    }

    .contact-subtitle {
        font-size: 0.95rem;
    }

    .contact-form-container {
        width: 100%;
        padding: 2rem 1.5rem;
    }

    .contact-form textarea::placeholder {
        text-align: center;
    }

    .form-actions {
        flex-direction: column;
        align-items: center;
    }

        .form-actions .btn-primary, .form-actions .btn-secondary {
            flex: none;
            width: 100%;
            max-width: 280px;
            height: 56px;
        }
}

/* ==========================================================================
   7. FOOTER (Info Section)
   ========================================================================== */
.info-section {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem 1rem;
    background-color: #FFFFFF;
    box-sizing: border-box;
    min-height: 330px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.info-section__columna {
    flex-shrink: 0;
    min-width: 200px;
    padding: 0 15px;
    text-align: left;
    margin-bottom: 1.5rem;
    box-sizing: border-box;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

    .info-section__columna:first-child {
        animation-delay: 0.1s;
    }

    .info-section__columna:nth-child(2) {
        animation-delay: 0.3s;
    }

    .info-section__columna:nth-child(3) {
        animation-delay: 0.4s;
    }

    .info-section__columna:nth-child(4) {
        animation-delay: 0.5s;
    }

.info-section__logo {
    display: flex;
    align-items: center;
    min-width: auto;
}

.info-section__titulo {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    margin: 0 0 1rem 0;
}

.info-section__columna:nth-child(2) .info-section__titulo {
    font-size: 1.5rem;
    color: #252B42;
}

.info-section__columna:nth-child(3) .info-section__titulo {
    font-size: 1rem;
    color: #252B42;
    text-align: left;
    margin-bottom: 1rem;
}

.info-section__columna:nth-child(4) .info-section__titulo {
    font-size: 1rem;
    color: #252B42;
}

.info-section__columna p {
    font-family: 'Source Sans Pro', sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #737373;
    margin: 0 0 0.6rem 0;
}

.info-section__nav-lista {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

    .info-section__nav-lista li {
        margin-bottom: 0.6rem;
        text-align: left;
    }

.info-section__columna a {
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 600;
    font-size: 0.875rem;
    color: #737373;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

    .info-section__columna a:hover {
        color: #0D4AE6;
        text-decoration: underline;
    }

.info-section__linkedin-logo {
    width: 24px;
    height: 24px;
    margin-top: 12px;
    transition: all 0.3s ease;
}

    .info-section__linkedin-logo:hover {
        transform: scale(1.1);
        filter: brightness(1.1);
    }

    .info-section__linkedin-logo path {
        fill: #0077B5 !important;
    }

    .info-section__linkedin-logo:hover path {
        fill: #005885 !important;
    }

.info-section__columna svg path {
    fill: #737373;
    transition: fill 0.3s ease;
}

.info-section__columna a[href^="mailto:"]:hover + svg path {
    fill: #0D4AE6;
}

@media (max-width: 992px) {
    .info-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem 1rem;
        margin: 1rem auto;
        min-height: auto;
    }

    .info-section__columna {
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 300px;
        margin-bottom: 2rem;
        padding: 0;
    }

        .info-section__columna:first-child {
            margin-bottom: 1rem !important;
            padding: 0 !important;
        }

    .info-section__logo {
        justify-content: center;
        margin: 0;
        padding: 0;
    }

    .info-section__titulo {
        text-align: center !important;
        margin-bottom: 1rem;
    }

    .info-section__columna:nth-child(2) .info-section__titulo,
    .info-section__columna:nth-child(3) .info-section__titulo,
    .info-section__columna:nth-child(4) .info-section__titulo {
        text-align: center !important;
    }

    .info-section__nav-lista {
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .info-section__columna:nth-child(3) .info-section__nav-lista {
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .info-section__nav-lista li {
        text-align: center !important;
        margin-bottom: 0.8rem;
        width: 100%;
    }

    .info-section__columna:nth-child(3) .info-section__nav-lista li {
        text-align: center !important;
    }

    .info-section__columna p {
        text-align: center !important;
    }

    .info-section__columna a {
        text-align: center !important;
        display: inline-block;
        width: auto;
    }

    .info-section__linkedin-logo {
        margin: 12px auto 0;
        display: block;
    }
}
