/* ==========================================================================
   1. VARIABLES DE DISEÃO GLOBAL (MOCKUP 3: PREMIUM WARM NEUTRALS)
   ========================================================================== */
:root {
    /* --- MODO CLARO (Warm Neutrals) --- */
    --bg-body: #faf9f6;
    /* Off-white / Cream */
    --bg-navbar: rgba(250, 249, 246, 0.98);
    --border-color: #e5e0d8;
    /* Warm gray/beige border */
    --text-main: #2c2c2c;
    /* Dark charcoal / Almost black */
    --text-muted: #6b6a68;
    /* Warm muted gray */
    --bg-section-light: #f2efe9;
    /* Light beige for sections */
    --bg-card: #ffffff;
    /* Pure white for cards to pop */

    /* --- COLORES FIJOS PREMIUM (Mockup 3) --- */
    --bg-dark-fixed: #2c2c2c;
    /* Charcoal for footers/dark sections */
    --accent: #b8905b;
    /* Soft gold/bronze for buttons and highlights */
    --white: #ffffff;
    --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --navbar-height: 88px;
}

/* --- INTERRUPTOR DE MODO OSCURO GLOBAL --- */
[data-theme="dark"] {
    --bg-body: #0f172a;
    /* Gris Pizarra Profundo */
    --bg-navbar: rgba(15, 23, 42, 0.98);
    --border-color: #334155;
    --text-main: #f1f5f9;
    /* Texto claro de alta lectura */
    --text-muted: #94a3b8;
    --bg-section-light: #1e293b;
    --bg-card: #0f172a;
    /* Tarjetas con contraste elegante */
}

/* ==========================================================================
   2. RESET GENERAL Y CONFIGURACIÃN ESTRUCTURAL (FIX DEL FOOTER)
   ========================================================================== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Prevención de desajustes por modelo de caja (Box Model) */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: "Inter", sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    padding-top: var(--navbar-height);

    /* Configuración Flexbox para mantener el footer en la parte inferior */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition:
        background-color 0.3s ease,
        color 0.3s ease;
}

/* ACELERACIÃN POR HARDWARE PARA EL INTERCAMBIO DE LAYOUT (0ms JANK) */
main {
    flex: 1;
    /* El contenedor principal empuja al footer en páginas cortas */
    opacity: 1;
    will-change: opacity;
    /* Prepara a la tarjeta gráfica para un cambio inmediato */
    transition: opacity 0.12s ease-in-out;
    /* Duración exacta para absorber parpadeos */
}

/* Estado de transición ultrarrápido entre páginas */
main.layout-switching {
    opacity: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   3. CABECERA Y ENLACES (BOTÃN DE MODO CLARO/OSCURO A LA DERECHA)
   ========================================================================== */
.navbar {
    background-color: var(--bg-navbar);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 250px;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 1px;
    color: var(--text-main);
    text-decoration: none;
}

.logo-accent {
    color: var(--accent);
    font-weight: 400;
}

/* Agrupación derecha para alinear menú y botones juntos sin centrar el tema */
.nav-right {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 8px 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

/* BOTÃN DE MODO DE COLOR MINIMALISTA */
.theme-toggle-btn {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--text-main);
    cursor: pointer;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border-radius: 50%;
}

.theme-toggle-btn:hover {
    background-color: var(--bg-section-light);
    color: var(--accent);
}

/* MENÃ HAMBURGUESA MÃVIL */
.menu-toggle {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-main);
    cursor: pointer;
    display: none;
}

/* ==========================================================================
   4. COMPONENTE HERO (SECCIÃN PRINCIPAL)
   ========================================================================== */
.hero-section {
    background-color: var(--bg-dark-fixed);
    color: var(--white);
    padding: 75px 0 75px 0;
}

.hero-content {
    max-width: 900px;
    color: var(--white);
    padding: 0 20px;
    margin: 0 auto;
    text-align: center;
}

.hero-tagline {
    color: var(--accent);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 3px;
    display: inline-block;
    margin-bottom: 20px;
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-content h1 {
    color: #ffffff;
    font-size: 3.5rem;
    line-height: 1.2;
    font-weight: 700;
    margin-bottom: 24px;
    text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.6);
}

.hero-content p {
    color: #f1f5f9;
    font-size: 1.25rem;
    margin-bottom: 40px;
    font-weight: 400;
    text-shadow: 0px 2px 8px rgba(0, 0, 0, 0.8);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   5. BOTONES CORPORATIVOS Y ENLACES (CON WHATSAPP ESTÃTICO)
   ========================================================================== */
.btn {
    display: inline-block;
    text-decoration: none;
    padding: 16px 32px;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: var(--transition);
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-dark-fixed);
    box-shadow: 0px 4px 15px rgba(184, 144, 91, 0.4);
}

.btn-primary:hover {
    background-color: var(--white);
    color: var(--bg-dark-fixed);
    transform: translateY(-2px);
    box-shadow: 0px 6px 20px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background-color: rgba(0, 0, 0, 0.3);
    color: var(--white);
    border: 2px solid var(--white);
    backdrop-filter: blur(4px);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--text-main);
    transform: translateY(-2px);
}

/* BOTÃN WHATSAPP ESTÃTICO EN LÃNEA */
.btn-whatsapp {
    background-color: #25d366;
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-whatsapp:hover {
    background-color: #1ebc59;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* ==========================================================================
   6. SECCIÃN Y ESTRUCTURA DEL SLIDER DE SERVICIOS (CUADROS / TARJETAS FLUIDAS)
   ========================================================================== */
.services-section {
    padding: 100px 0;
}

.services-grid {
    align-items: start;
    /* Previene deformaciones de tamaño entre cards */
}

/* Contenedor principal del carrusel deslizable */
.slider-wrapper {
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Ocultamiento de barra de desplazamiento (Firefox) */
    -ms-overflow-style: none;
    /* Ocultamiento de barra de desplazamiento (Internet Explorer) */
}

.slider-wrapper::-webkit-scrollbar {
    display: none;
    /* Ocultamiento de barra de desplazamiento (Webkit: Chrome/Safari) */
}

.services-slider-grid {
    display: flex;
    gap: 32px;
    width: max-content;
}

/* Tarjeta de servicio optimizada para flujo de carrusel */
.service-card-slide {
    width: 360px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px 32px;
    border-radius: 6px;
    scroll-snap-align: start;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-card-slide:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 24px;
}

.service-card-slide h3 {
    font-size: 1.35rem;
    color: var(--text-main);
    margin-bottom: 16px;
}

/* Listados internos de viñetas en tarjetas de servicios */
.service-list {
    list-style: none;
    margin-top: 16px;
    padding: 0;
}

.service-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 14px;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
    text-align: left;
}

.service-list li i {
    position: absolute;
    left: 0;
    top: 4px;
    color: var(--accent);
    font-size: 1.1rem;
}

/* BOTONES DE NAVEGACIÃN (PLOMO APENAS NOTABLE - CON MARGEN DE SEPARACIÃN CORREGIDO) */
.slider-arrow {
    position: absolute;
    top: 55%;
    transform: translateY(-50%);
    background: transparent;
    border: 1px solid #d1d5db;
    color: #9ca3af;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    z-index: 10;
    transition: var(--transition);
}

.slider-arrow:hover {
    background-color: var(--bg-section-light);
    color: var(--accent);
    border-color: var(--accent);
}

/* Posicionamiento más separado para que no colisionen visualmente con los cuadros */
.arrow-left {
    left: -45px;
}

.arrow-right {
    right: -45px;
}

/* ==========================================================================
   7. SECCIÃN ¿QUIÃNES SOMOS? (HISTORIA, MISIÃN Y VISIÃN CON ICONO ADYACENTE)
   ========================================================================== */
.about-section {
    padding: 100px 0;
    background-color: var(--bg-body);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    margin-bottom: 80px;
}

.about-text h2 {
    font-size: 2.25rem;
    color: var(--text-main);
    margin-bottom: 12px;
}

.title-underline {
    width: 60px;
    height: 4px;
    background-color: var(--accent);
    margin-bottom: 24px;
    border-radius: 2px;
}

.about-text p {
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 1.05rem;
}

.highlight-text {
    border-left: 4px solid var(--accent);
    font-weight: 500;
    color: var(--text-main) !important;
    margin-top: 24px;
    background-color: var(--bg-section-light);
    padding: 16px;
    border-radius: 0 8px 8px 0;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    display: block;
    transition: var(--transition);
}

/* Bloque Misión/Visión */
.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.mv-card {
    background-color: var(--bg-section-light);
    padding: 40px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.mv-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

/* CABECERA CON ICONO AL COSTADO DEL SUBTÃTULO */
.mv-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.mv-title-icon {
    font-size: 1.85rem;
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.mv-card h3 {
    margin-bottom: 0 !important;
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--text-main);
}

.mv-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   8. SECCIÃN CLIENTES Y MÃTRICAS CORPORATIVAS
   ========================================================================== */
.clients-section {
    padding: 100px 0;
    background-color: var(--bg-section-light);
    transition: background-color 0.3s ease;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
    text-align: center;
}

.metric-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 8px;
}

.metric-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ==========================================================================
   9. CARRUSEL CÃCLICO INFINITO AUTOMÃTICO PARA LOGOS DE CLIENTES
   ========================================================================== */
.logos-section {
    padding: 80px 0;
    background-color: var(--bg-body);
    overflow: hidden;
}

.logo-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    background-color: var(--bg-section-light);
    display: flex;
    align-items: center;
}

/* Efecto de máscara degradada en bordes laterales (Fade) */
.logo-slider::before,
.logo-slider::after {
    content: "";
    height: 100%;
    position: absolute;
    width: 200px;
    z-index: 2;
    pointer-events: none;
}

.logo-slider::before {
    left: 0;
    top: 0;
    background: linear-gradient(to right, var(--bg-body), transparent);
}

.logo-slider::after {
    right: 0;
    top: 0;
    background: linear-gradient(to left, var(--bg-body), transparent);
}

/* Riel interno que ejecuta la animación en bucle continuo */
.logo-slider-track {
    display: flex;
    align-items: center;
    width: calc(200px * 12);
    animation: scrollLogos 28s linear infinite;
}

.logo-slider-track:hover {
    animation-play-state: paused;
    /* Interrupción de animación en estado Hover (Pause) */
}

.logo-slide {
    width: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 30px;
}

.logo-slide img {
    max-width: 130px;
    max-height: 55px;
    height: auto;
    object-fit: contain;
    filter: grayscale(100%) opacity(50%);
    mix-blend-mode: multiply;
    transition: var(--transition);
}

.logo-slide img:hover {
    filter: grayscale(0%) opacity(100%);
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-200px * 6));
    }

    /* Desplazamiento calculado al 50% para bucle fluido */
}

/* ==========================================================================
   10. SECCIÃN CONTACTO Y FORMULARIO INTEGRAL PROTEGIDO
   ========================================================================== */
.contact-section {
    padding: 100px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 64px;
}

.contact-info-block h2 {
    font-size: 2.25rem;
    color: var(--text-main);
    margin-bottom: 16px;
}

.contact-info-block p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.info-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.info-item i {
    font-size: 1.8rem;
    color: var(--accent);
    background: var(--bg-section-light);
    padding: 12px;
    border-radius: 50%;
}

.info-item h4 {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.info-item p,
.info-item a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
}

/* DISEÃO DEL FORMULARIO EVITANDO DESPLAZAMIENTOS EXCEPCIONALES */
.minimal-form {
    background-color: var(--bg-section-light);
    padding: 40px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
    display: block;
    width: 100%;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-main);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    display: block;
    padding: 14px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    font-family: inherit;
    border-radius: 4px;
    color: var(--text-main);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-submit {
    background-color: var(--bg-dark-fixed);
    color: var(--white);
    width: 100%;
    padding: 16px;
    font-weight: 700;
    display: block;
}

.btn-submit:hover {
    background-color: var(--accent);
    color: var(--bg-dark-fixed);
}

/* ==========================================================================
   11. PIE DE PÃGINA (CRÃDITOS REDIRECCIONADOS A TECNO INSANE)
   ========================================================================== */
.main-footer {
    background-color: var(--bg-dark-fixed);
    color: #748396;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-credits a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.footer-credits a:hover {
    color: var(--white);
    text-decoration: underline;
}

/* ==========================================================================
   12. ACCESO DIRECTO FLOTANTE WHATSAPP
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    z-index: 9999;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    animation: whatsappGlow 4s infinite;
}

.whatsapp-float img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 2px 2px 15px rgba(37, 211, 102, 0.5);
}

/* ==========================================================================
   12b. GRILLA DE LOGOS - PÁGINA CLIENTES
   ========================================================================== */
.clients-page-section {
    padding: 60px 0 120px;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
    margin-top: 60px;
    padding: 40px 0;
}

.client-logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    background-color: transparent;
    border: none;
    min-height: 200px;
    overflow: visible;
    mix-blend-mode: multiply;
    transition: var(--transition);
}

.client-logo-card:hover {
    transform: translateY(-5px);
}

.client-logo-card img {
    display: block;
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 160px;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.35s ease;
}

.client-logo-card:hover img {
    transform: scale(1.12);
}

/* ==========================================================================
   13. MEDIA QUERIES (OPTIMIZACIÃN Y ADAPTACIÃN RESPONSIVA EN MÃVILES)
   ========================================================================== */
@media (max-width: 1240px) {
    .slider-arrow {
        display: none;
        /* En pantallas táctiles se prioriza el arrastre nativo manual con el dedo */
    }

    .arrow-left {
        left: 0;
    }

    .arrow-right {
        right: 0;
    }
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-image {
        order: -1;
        /* Reordenamiento visual para dispositivos móviles (Mobile-First) */
    }

    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-right {
        gap: 12px;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-body);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
        border-top: 1px solid var(--border-color);
        padding: 20px;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-links {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 2.2rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .hero-actions .btn {
        display: block;
        width: 100%;
    }

    .service-card-slide {
        width: 290px;
        padding: 32px 24px;
    }

    .services-slider-grid {
        gap: 16px;
    }

    .logo-slider::before,
    .logo-slider::after {
        width: 80px;
        /* Difuminado más angosto en pantallas móviles */
    }

    .logo-slide {
        width: 160px;
        padding: 0 20px;
    }

    @keyframes scrollLogos {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(calc(-160px * 6));
        }
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .minimal-form {
        padding: 24px;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .client-logo-card {
        padding: 20px 16px;
        min-height: 110px;
    }

    .client-logo-card img {
        max-height: 80px;
    }
}

/* ==========================================================================
   CORRECCIÃN: FORZAR CENTRADO ABSOLUTO DE LOS TÃTULOS DE SECCIÃN
   ========================================================================== */
.section-header {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.section-header h2,
.section-header p {
    text-align: center !important;
    width: 100%;
}

/* ==========================================================================
   CARRUSEL DE LOGOS (INICIO / EFECTO CILINDRO INFINITO RESPONSIVO)
   ========================================================================== */
.home-logos-section,
.logos-section {
    background-color: var(--bg-body);
    padding: 25px 0 10px !important;
    border-top: 1px solid var(--border-color);
    overflow: hidden;
}

.home-logos-title {
    text-align: center;
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.logo-slider-cylinder {
    position: relative;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 5px 0 15px !important;
    margin-bottom: 0 !important;
    height: auto !important;
}

/* Sombras en los bordes para crear la ilusión de profundidad (cilindro) */
.logo-slider-cylinder::before,
.logo-slider-cylinder::after {
    content: "";
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.logo-slider-cylinder::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-body) 0%, transparent 100%);
}

.logo-slider-cylinder::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-body) 0%, transparent 100%);
}

/* Riel que contiene las imágenes girando */
.logo-slider-track-cylinder {
    display: flex;
    align-items: center;
    width: max-content !important;
    will-change: transform;
    animation: scrollCylinder 55s linear infinite;
}

.logo-slider-cylinder:hover .logo-slider-track-cylinder {
    animation-play-state: paused;
}

/* Cuadro individual de cada logo en tamaño GRANDE y PROMINENTE */
.logo-slide-large {
    flex: 0 0 250px !important;
    width: 250px !important;
    height: 110px !important;
    padding: 0 15px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    box-sizing: border-box !important;
}

.logo-slide-large img {
    max-width: 220px !important;
    max-height: 95px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    filter: none !important;
    -webkit-filter: grayscale(0) !important;
    opacity: 1 !important;
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* Interacción Hover: Escalado suave en computadoras */
.logo-slide-large:hover img {
    transform: scale(1.18) !important;
    cursor: pointer;
    z-index: 10;
    position: relative;
}

/* Animación infinita fluida basada en 50% de traslación */
@keyframes scrollCylinder {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Adaptación para pantallas medianas / Tablets */
@media (max-width: 768px) {
    .home-logos-section,
    .logos-section {
        padding-top: 20px !important;
        padding-bottom: 8px !important;
    }

    .home-logos-title {
        font-size: 1.05rem;
        margin-bottom: 15px;
        padding: 0 15px;
    }

    .logo-slider-cylinder::before,
    .logo-slider-cylinder::after {
        width: 45px;
    }

    .logo-slide-large {
        flex: 0 0 170px !important;
        width: 170px !important;
        height: 85px !important;
        padding: 0 10px !important;
    }

    .logo-slide-large img {
        max-width: 150px !important;
        max-height: 65px !important;
    }

    .logo-slider-track-cylinder {
        animation: scrollCylinder 45s linear infinite;
    }
}

/* Adaptación para celulares pequeños */
@media (max-width: 480px) {
    .home-logos-title {
        font-size: 0.95rem;
        letter-spacing: 0.5px;
    }

    .logo-slider-cylinder::before,
    .logo-slider-cylinder::after {
        width: 30px;
    }

    .logo-slide-large {
        flex: 0 0 150px !important;
        width: 150px !important;
        height: 75px !important;
        padding: 0 8px !important;
    }

    .logo-slide-large img {
        max-width: 134px !important;
        max-height: 55px !important;
    }

    .logo-slider-track-cylinder {
        animation: scrollCylinder 38s linear infinite;
    }
}

/* 3. Limitamos la altura de las cajas de logos genéricos */
.logo-slide {
    height: 90px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    display: flex;
    align-items: center;
}

/* ==========================================================================
   CORRECCIÃN: ALINEACIÃN VERTICAL PERFECTA EN LOS ÃTEMS DE CONTACTO
   ========================================================================== */
.info-item {
    align-items: center !important;
    /* Alineación vertical estandarizada */
}

.info-item h4 {
    margin-bottom: 2px !important;
    /* Pequeño respiro entre el título y el dato */
}

.info-item p {
    margin-bottom: 0 !important;
    /* Eliminación de márgenes colapsables */
    line-height: 1.4 !important;
    /* Ajusta el interlineado para que se vea más compacto */
}

.info-details {
    gap: 25px !important;
    /* Incremento de espaciado estructural (40px) */
}

/* ==========================================================================
   CORRECCIÃN: TEXTAREA DE CONTACTO (ANCHO PERFECTO Y AUTO-ALTURA)
   ========================================================================== */
.form-group textarea {
    width: 100% !important;
    /* Obligación de herencia de ancho del contenedor padre */
    max-width: 100% !important;
    /* Prevención de desbordamiento horizontal (Overflow X) */
    min-height: 150px;
    /* Configuración de altura base estándar */
    resize: none !important;
    /* Desactivación de propiedad Resize nativa del navegador */
    overflow-y: hidden;
    /* Ocultamiento de barra de desplazamiento vertical */
    box-sizing: border-box;
}

/* ==========================================================================
   14. HERO SLIDER AUTOMÃTICO INTEGRADO
   ========================================================================== */
.hero-slider {
    position: relative;
    width: 100%;
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--bg-dark-fixed);
    padding-top: 90px;
    padding-bottom: 30px;
    box-sizing: border-box;
}

.hero-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition:
        opacity 1.5s ease-in-out,
        transform 6s ease-out;
    transform: scale(1.05);
    z-index: 1;
}

.hero-slider .slide::after {
    content: "";
    position: absolute;
    inset: 0;
    /* Reducimos la opacidad para que las imágenes tengan mejor resolución y no se vean opacas */
    background: linear-gradient(90deg,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.15) 100%);
}

.hero-slider .slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.hero-slider .overlay-corporativo {
    position: relative;
    z-index: 3;
    width: 100%;
    padding: 100px 0;
}

@media (max-width: 768px) {
    .hero-slider .slide::after {
        background: linear-gradient(to top,
                rgba(15, 23, 42, 0.95) 0%,
                rgba(15, 23, 42, 0.8) 100%);
    }
}

/* ==========================================================================
   SECCIÓN DE CONSULTORES
   ========================================================================== */
.consultores-section {
    background-color: var(--bg-light);
}

.consultores-list {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 40px;
}

.consultor-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    gap: 30px;
}

.consultor-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

@media (min-width: 992px) {
    .consultor-card {
        flex-direction: row;
        align-items: flex-start;
        padding: 50px;
        gap: 50px;
    }
}

.consultor-img-wrapper {
    flex: 0 0 200px;
    height: 200px;
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    border-radius: 50%;
    border: 4px solid var(--bg-light);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.consultor-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.consultor-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.consultor-info h3 {
    color: var(--text-main);
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-weight: 700;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 12px;
    display: inline-block;
    align-self: flex-start;
}

.consultor-bio p {
    color: #4a5568;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 15px;
    text-align: justify;
}

.consultor-email {
    margin-top: 15px;
    font-weight: 600;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
}

.consultor-email i {
    font-size: 1.3rem;
}

/* ==========================================================================
   WHATSAPP GLOW ANIMATION
   ========================================================================== */
@keyframes whatsappGlow {

    0%,
    50%,
    100% {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }

    75% {
        box-shadow: 0 0 25px 12px rgba(37, 211, 102, 0.8);
    }
}