:root {
    /* Tonos inspirados en DigitalOcean y GitHub */
    --bg-color: #0B0F19; /* Azul espacial hiper oscuro */
    --card-bg: #111827; /* Gris azulado para las tarjetas */
    --text-main: #F3F4F6;
    --text-dim: #9CA3AF;
    --accent: #8B5CF6; /* El violeta tecnológico */
    --accent-glow: rgba(139, 92, 246, 0.4);
    --border-light: rgba(139, 92, 246, 0.15); /* Bordes sutiles de neón */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 80%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.clear-bg { 
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    margin: 2rem 0 !important; 
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.8rem;
}

/* =========================================
   NAVBAR & LOGO (Estructura Definitiva)
   ========================================= */

nav.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 85px;
    z-index: 1000;
    padding: 0;
    background: rgba(11, 15, 25, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

nav.navbar .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    max-width: 1240px;
    gap: 4rem;
}

/* Control estricto y profesional del logo: GIGANTE Y FLUIDO */
.nav-logo {
    height: 80px !important; /* Llevado al máximo posible sin romper el nav */
    max-height: none !important;
    width: auto !important;
    object-fit: contain !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease !important;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.2));
}

.nav-logo:hover {
    transform: scale(1.06) translateY(-2px) !important;
    filter: drop-shadow(0 8px 15px rgba(139, 92, 246, 0.5)) !important;
}

.fallback-logo {
    font-weight: bold;
    font-size: 2rem;
    color: white;
}

/* Estado compacto al scrollear */
nav.navbar.is-compact {
    height: 70px;
    background: rgba(11, 15, 25, 0.90);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Botón del Nav */
.btn-nav {
    padding: 0.58rem 1.35rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, #8B5CF6, #9d4edd);
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1), 0 6px 18px rgba(139, 92, 246, 0.28);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn-nav:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 20px rgba(139, 92, 246, 0.4) !important;
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: white !important;
}

/* =========================================
   HERO SECTION UNIFICADO (Ajustado al 80% real)
   ========================================= */

.hero {
    position: relative;
    width: 100%; 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background-image: url("../hero-bg.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-color: #0a0a0e;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(10, 10, 14, 0.95) 0%, rgba(10, 10, 14, 0.70) 45%, rgba(10, 10, 14, 0.20) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 45%, rgba(123, 44, 191, 0.35), rgba(123, 44, 191, 0.10) 40%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: screen;
}

.hero:hover::after {
    opacity: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 750px;
    width: 100%;
    padding: 0;
    text-align: center;
    animation: fadeInHero 1s ease-out forwards;
}

.hero-content h2 {
    font-size: 0.9rem; /* Achicado para imitar el zoom */
    color: var(--text-dim);
    margin-bottom: 0.6rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-content h1 {
    /* Topes reducidos para que no ocupe tanta pantalla */
    font-size: clamp(2.2rem, 4.5vw, 3.2rem); 
    line-height: 1.15;
    margin-bottom: 1.2rem;
    color: var(--text-main);
    font-weight: 700;
}

.hero-content .divider {
    width: 100px;
    height: 4px;
    background-color: var(--accent);
    margin: 0 auto 1.2rem auto;
    border-radius: 2px;
}

.hero-content p {
    font-size: 0.95rem; /* Achicado para imitar el zoom */
    color: var(--text-dim);
    margin-bottom: 2rem;
}

@keyframes fadeInHero {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   COMPONENTES GLOBALES Y SECCIONES
   ========================================= */

section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-align: center;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: linear-gradient(135deg, var(--accent), #9d4edd);
    color: white;
}
.btn-primary:hover {
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: white;
}
.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.10);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Grillas Generales */
.features, .why-us, .team, .process, .testimonials, .contact {
    padding: 6rem 0;
}

.features-grid, .why-grid, .team-grid, .process-grid, .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card, .why-card, .team-card, .process-card, .testimonial-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #333;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover, .why-card:hover, .team-card:hover, .process-card:hover, .testimonial-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 10px 30px var(--accent-glow);
}

.feature-card .icon, .team-icon { font-size: 3.2rem; margin-bottom: 1.2rem; color: var(--accent); }
.feature-card h3, .why-card h3, .team-card h3, .process-card h3 { color: var(--accent); margin-bottom: 1rem; font-size: 1.3rem; }
.feature-card p, .why-card p, .team-card p, .process-card p { color: var(--text-dim); font-size: 0.95rem; }

/* Casos Específicos */
.why-us, .testimonials {
    background: linear-gradient(145deg, #1a1a1a, #121212);
    border-radius: 20px;
    margin: 4rem 0;
}

.process-number { font-size: 3rem; font-weight: 700; color: var(--accent); opacity: 0.3; margin-bottom: 1rem; }

/* Video Demo */
.video-demo { text-align: center; padding: 80px 0; }
.video-shell {
    position: relative;
    width: min(980px, 92vw);
    aspect-ratio: 16 / 9;
    margin: 24px auto 18px;
    border-radius: 18px;
    overflow: hidden;
    background: #05060a;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .55);
    border: 1px solid rgba(255, 255, 255, .08);
    cursor: pointer;
}
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); filter: saturate(1.05) contrast(1.05); }
.video-overlay { position: absolute; inset: 0; background: radial-gradient(circle at 50% 40%, rgba(141, 64, 255, 0.25), rgba(0, 0, 0, 0.55) 60%, rgba(0, 0, 0, 0.75)); transition: opacity .25s ease; }
.video-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(12, 10, 24, .55); color: #fff; font-size: 28px; line-height: 1; display: grid; place-items: center; z-index: 3; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); backdrop-filter: blur(6px); }
.video-shell:hover .video-overlay { opacity: 0.9; }
.video-shell.is-playing .video-poster, .video-shell.is-playing .video-overlay, .video-shell.is-playing .video-play { display: none; }
.video-iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.video-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }

/* Contacto y Formularios */
.contact-container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3rem; }
.contact-info h3 { margin-bottom: 1rem; color: var(--accent); }
.contact-info p { color: var(--text-dim); margin-bottom: 2rem; }
.contact-methods { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2rem; }
.contact-method { background: var(--card-bg); padding: 1.5rem; border-radius: 8px; border: 1px solid #333; transition: all 0.3s ease; }
.contact-method:hover { border-color: var(--accent); transform: translateX(5px); }
.method-icon { font-size: 2.5rem; margin-bottom: 0.8rem; color: var(--accent); }
.contact-method h4 { color: var(--accent); margin-bottom: 0.5rem; }
.contact-method p { font-size: 0.9rem; margin-bottom: 0.5rem; }
.contact-method a { color: var(--text-main); text-decoration: none; font-weight: 600; }

.contact-form { background: var(--card-bg); padding: 2rem; border-radius: 12px; border: 1px solid #333; }
.contact-form form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form input, .contact-form textarea { background: var(--bg-color); border: 1px solid #333; color: var(--text-main); padding: 1rem; border-radius: 5px; font-family: 'Inter', sans-serif; transition: border-color 0.3s; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); }
.contact-form button { width: 100%; }

/* CTA Section */
.cta-section { background: linear-gradient(145deg, #1e1e1e, #121212); padding: 4rem; border-radius: 15px; text-align: center; border: 1px solid var(--accent); box-shadow: 0 10px 30px var(--accent-glow); margin: 4rem 0; }
.cta-section h2 { margin-bottom: 1rem; }
.cta-section p { color: var(--text-dim); margin-bottom: 2rem; }

/* =========================================
   CARRUSEL INFINITO
   ========================================= */
.tech-carousel-section { background-color: #05080F; padding: 3rem 0; border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); overflow: hidden; position: relative; }
.carousel-track { display: flex; width: max-content; animation: scroll-left 100s linear infinite; }
.carousel-track:hover { animation-play-state: paused; }
.carousel-item { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 1.1rem; font-weight: 500; padding: 0 2rem; }
.carousel-item .dot { color: var(--accent); font-size: 1.5rem; margin-left: 1rem; }
@keyframes scroll-left { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* =========================================
   STICKY TECH BOT (KODAR Bot) - GIGANTE
   ========================================= */
.sticky-tech-bot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 75px; 
    height: 75px;
    background: linear-gradient(135deg, var(--accent), #5b21b6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    box-shadow: 0 0 20px var(--accent-glow), inset 0 0 15px rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: bot-pulse 3s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-tech-bot .eva-bot-img {
    width: 55px !important; 
    height: 55px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9));
    transform: translate(6px, -2px) !important;
    transform-origin: bottom left !important;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.sticky-tech-bot::before {
    content: "¡Hablemos!";
    position: absolute;
    right: 85px;
    background: var(--card-bg);
    color: var(--text-main);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid var(--border-light);
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.sticky-tech-bot:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.sticky-tech-bot:hover { 
    transform: translateY(-5px) scale(1.02); 
    animation: none; 
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.6); 
}

/* INTERACCIÓN SUAVE: Mantiene su posición de despegue, se inclina apenas y casi no crece */
.sticky-tech-bot:hover .eva-bot-img { 
    transform: translate(9px, -9px) scale(1.04) rotate(4deg) !important; 
}

@keyframes bot-pulse { 0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.5); } 70% { box-shadow: 0 0 0 20px rgba(139, 92, 246, 0); } 100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); } }



/* =========================================
   ANIMACIONES ON-SCROLL
   ========================================= */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); will-change: opacity, transform; }
.reveal-scale { opacity: 0; transform: scale(0.92); transition: opacity 0.6s ease-out, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); will-change: opacity, transform; }
.reveal.active, .reveal-scale.active { opacity: 1; transform: translateY(0) scale(1); }

/* Footer */
footer { padding: 2rem 0; text-align: center; color: var(--text-dim); font-size: 0.9rem; border-top: 1px solid #333; margin-top: 4rem; }
footer a { color: var(--accent); text-decoration: none; -webkit-tap-highlight-color: transparent; }

/* =========================================
   MEDIA QUERIES (Mobile Centralizado)
   ========================================= */
@media (max-width: 768px) {
    /* Layout Base */
    body { padding-top: 75px; }
    .contact-container { grid-template-columns: 1fr; }
    .features-grid, .why-grid, .team-grid, .process-grid, .testimonials-grid { grid-template-columns: 1fr; }
    section h2 { font-size: 2rem; }
    
    /* Navbar Mobile */
    nav.navbar .container { padding: 0 1.5rem; }
    .nav-links a:not(.btn-nav) { display: none !important; }
    .nav-links .btn-nav { padding: 0.4rem 1rem !important; font-size: 0.9rem !important; }
    
    /* FIX: LOGO MOBILE GIGANTE, SIN ATADURAS */
    .nav-logo { height: 60px !important; max-height: none !important; } 
    
    /* Hero Mobile */
    .hero { padding-top: 0; }
    .hero::before { background: rgba(10, 10, 14, 0.75); }
    .hero-content { padding: 0 1.5rem; }
    .hero-content h1 { font-size: 2.2rem; }
    
    /* Botón Flotante Mobile GIGANTE */
    .sticky-tech-bot { width: 65px; height: 65px; bottom: 20px; right: 20px; }
    .sticky-tech-bot .eva-bot-img { width: 48px !important; height: 48px !important; }
}

.why-card h3 i {
    font-size: 1.5rem; 
    transform: translateY(2px); 
}

        .nav-container { 
            display: flex; 
            justify-content: space-between; 
            align-items: center; 
            width: 100%; 
            max-width: 1240px; 
            margin: 0 auto;
            padding: 0 3rem !important; 
            height: 100%; 
        }
        
        @media (max-width: 992px) {
            .nav-container { padding: 0 2rem !important; }
        }
        @media (max-width: 576px) {
            .nav-container { padding: 0 1.25rem !important; }
        }

        .logo-link { text-decoration: none; display: flex; align-items: center; height: 100%; }
        
        .logo {
            display: flex;
            align-items: center;
            height: 100%;
            width: 220px !important; /* Agrandado el contenedor */
            max-width: none !important;
        }
        
        /* LOGO DEL NAV: SUTIL Y ELEGANTE */
        .nav-logo { 
            width: 350px !important;
            height: 100px !important;
            max-width: none !important;
            max-height: none !important;
            object-fit: contain !important; 
            display: block !important; 
            transition: transform 0.4s ease-out, filter 0.4s ease-out !important; 
        }
        
        /* Hover sutil: apenas se hincha y luz muy tenue */
        .nav-logo:hover {
            transform: scale(1.03) !important;
            filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.2)) !important;
        }
        
        .fallback-logo { font-weight: bold; font-size: 1.8rem; color: white; }

        /* Links del Nav */
        .nav-links { display: flex; gap: 2rem; align-items: center; }
        .nav-links a { color: #9CA3AF; text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.3s; }
        .nav-links a:hover { color: #8B5CF6; }
        
        /* 3. HERO SECTION - ABOVE THE FOLD */
        .hero {
            position: relative;
            height: 100vh !important;
            width: 100vw !important; max-width: none !important;
            display: flex; flex-direction: column; justify-content: center; align-items: center;
            padding: 85px 0 0 0 !important; 
            margin: 0 !important; overflow: hidden;
            background-color: #0B0F19; 
            background-image: url("../hero-bg.png"); background-size: cover; background-position: center;
        }

        /* HERO COMPACTADO PARA ALEJARLO DEL CARRUSEL */
        .hero-content {
            width: 100%; max-width: 750px !important;
            text-align: center; margin: 0 auto;
            margin-top: -6vh;
            padding: 0 20px; z-index: 10;
            display: flex; flex-direction: column; align-items: center;
        }

        .hero-content h2 { font-size: 1.1rem !important; color: #9CA3AF; margin-bottom: 0.6rem !important; letter-spacing: 0.5px; }
        .hero-content h1 {
            font-size: clamp(2rem, 4.5vw, 3.5rem) !important;
            line-height: 1.15 !important; 
            margin-bottom: 0.8rem !important; /* Antes 1.5rem */
            color: #F3F4F6; font-weight: 700;
        }
        .hero-content .divider { width: 100px; height: 4px; background-color: #8B5CF6; margin: 0 auto 1rem auto !important; border-radius: 2px; }
        .hero-content p { font-size: 1.05rem !important; color: #9CA3AF; margin-bottom: 1.5rem !important; /* Antes 2.5rem */ max-width: 600px; }
        
        /* Botón del hero ligeramente más compacto */
        .btn-hero {
            padding: 0.8rem 2rem !important;
            font-size: 0.95rem !important;
        }

        /* 4. CARRUSEL FLOTANTE CON MÁSCARA FADE */
        .tech-carousel-section.floating-carousel {
            position: absolute; bottom: 0; left: 0; width: 100%;
            background: linear-gradient(to top, rgba(11, 15, 25, 1) 0%, rgba(11, 15, 25, 0) 100%) !important;
            border: none !important; padding: 3rem 0 1rem 0 !important; z-index: 10;
            /* Magia del fade en los bordes */
            -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
            mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
        }

        /* 5. RESTAURACIÓN GENERAL DE BOTONES */
        .btn {
            display: inline-block;
            padding: 1rem 2.5rem;
            border-radius: 6px;
            font-size: 1rem;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
            text-align: center;
        }
        
        .btn:hover {
            transform: translateY(-2px);
        }

        /* FIX DEL PARPADEO NEGRO EN EL BOTÓN DEL NAV */
        .btn-primary, .btn-nav {
            background: linear-gradient(135deg, #8B5CF6, #9d4edd);
            color: white !important;
        }

        .btn-primary:hover {
            box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
            opacity: 0.9;
        }
        
        .btn-nav {
            padding: 0.5rem 1.5rem;
            transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease !important; /* Animación limpia, sin background */
        }
        
        .btn-nav:hover {
            transform: translateY(-4px) !important;
            box-shadow: 0 8px 20px rgba(139, 92, 246, 0.5) !important;
            filter: brightness(1.15) !important; /* Ilumina en lugar de re-declarar el color */
        }

        .btn-secondary {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.18);
            color: white;
        }

        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.10);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        /* 6. RESTAURACIÓN DE BOTONES SOCIALES DEL FOOTER */
        .footer-socials {
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin-top: 1.5rem;
        }

        .footer-socials .social-link {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 45px;
            height: 45px;
            background: #111827; 
            color: #9CA3AF; 
            border-radius: 50%;
            font-size: 1.4rem;
            border: 1px solid rgba(255, 255, 255, 0.05);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            text-decoration: none;
        }

        .footer-socials .social-link:hover {
            color: white;
            background: #8B5CF6; 
            transform: translateY(-5px);
            box-shadow: 0 10px 20px rgba(139, 92, 246, 0.4);
            border-color: #8B5CF6;
        }

        /* 7. BOTON FLOTANTE KODAR (WhatsApp) */
        .sticky-tech-bot {
            position: fixed; bottom: 30px; right: 30px; 
            width: 75px; height: 75px; /* Más grande el contenedor */
            background: #a855f7; border-radius: 50%; display: flex; align-items: center; justify-content: center;
            box-shadow: 0 4px 20px rgba(168, 85, 247, 0.4); z-index: 999; text-decoration: none;
            transition: transform 0.3s ease;
        }
        
        .sticky-tech-bot:hover { transform: scale(1.05) translateY(-5px); }
        
        /* LOGO DEL BOT GIGANTE Y HOVER LIMPIO */
        .sticky-tech-bot .eva-bot-img { 
            width: 68px !important; /* Más grande la imagen interna */
            height: 68px !important;
            max-width: none !important;
            max-height: none !important;
            object-fit: contain !important; 
            display: block !important;
            transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        }
        
        /* Solo se hincha, sin rotar */
        .sticky-tech-bot:hover .eva-bot-img {
            transform: scale(1.15) !important;
        }
        
        .sticky-tech-bot .fallback-k { color: white; font-weight: 800; font-size: 1.8rem; font-family: 'Inter', sans-serif; }
    

/* Animaciones High-End */
        .premium-anim {
            opacity: 0;
            transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
        }
        .premium-fade-up { transform: translateY(40px); }
        .premium-slide-right { transform: translateX(-40px); }
        .premium-slide-left { transform: translateX(40px); }
        .premium-scale { transform: scale(0.95); }
        
        .premium-anim.is-visible {
            opacity: 1;
            transform: translate(0) scale(1);
        }

        /* Layouts Asimétricos estilo Stripe/GitHub */
        .split-section {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 4rem;
            padding: 8rem 0;
            overflow: hidden;
        }
        .split-section.reverse {
            flex-direction: row-reverse;
        }
        .split-content {
            flex: 1;
            max-width: 500px;
        }
        .split-content h2 {
            font-size: 2.5rem;
            line-height: 1.2;
            margin-bottom: 1.5rem;
            background: linear-gradient(90deg, #fff, var(--text-dim));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .split-content p {
            font-size: 1.1rem;
            color: var(--text-dim);
            margin-bottom: 2rem;
        }
        .split-visual {
            flex: 1;
            position: relative;
        }
        .dashboard-showcase {
            width: 130%; /* Sobresale intencionalmente para dar profundidad */
            border-radius: 12px;
            box-shadow: 0 25px 50px -12px rgba(123, 44, 191, 0.25);
            border: 1px solid rgba(255, 255, 255, 0.1);
        }
        .split-section.reverse .dashboard-showcase {
            margin-left: -30%; /* Compensa el ancho en reversa */
        }

        /* Tablas de Precios */
        .pricing-section {
            padding: 6rem 0;
            background: linear-gradient(180deg, var(--bg-color) 0%, #0d1117 100%);
        }
        .pricing-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
            gap: 2rem;
            margin-top: 4rem;
        }
        .pricing-card {
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 16px;
            padding: 2.5rem 2rem;
            display: flex;
            flex-direction: column;
            transition: transform 0.3s ease, border-color 0.3s ease;
        }
        .pricing-card:hover {
            transform: translateY(-5px);
            border-color: var(--accent);
        }
        .pricing-card.popular {
            background: linear-gradient(145deg, rgba(123, 44, 191, 0.1), rgba(255, 255, 255, 0.02));
            border-color: rgba(123, 44, 191, 0.5);
            position: relative;
        }
        .popular-badge {
            position: absolute;
            top: -12px;
            right: 20px;
            background: var(--accent);
            color: #fff;
            font-size: 0.75rem;
            font-weight: 700;
            padding: 4px 12px;
            border-radius: 20px;
            text-transform: uppercase;
            letter-spacing: 1px;
        }
        .pricing-price {
            font-size: 2.5rem;
            font-weight: 700;
            margin: 1.5rem 0;
            color: var(--text-main);
        }
        .pricing-price span {
            font-size: 1rem;
            color: var(--text-dim);
            font-weight: 400;
        }
        .pricing-features {
            list-style: none;
            margin-bottom: 2rem;
            flex-grow: 1;
        }
        .pricing-features li {
            margin-bottom: 1rem;
            font-size: 0.95rem;
            color: var(--text-dim);
            display: flex;
            align-items: center;
        }
        .pricing-features li i {
            color: var(--accent);
            margin-right: 10px;
        }
        
        @media (max-width: 900px) {
            .split-section, .split-section.reverse { flex-direction: column; padding: 4rem 0; }
            .dashboard-showcase { width: 100%; margin: 0 !important; }
        }
        

/* Layouts Asimétricos Limpios */
.split-section {
    display: flex;
    align-items: center; /* Usamos center para que la imagen mantenga su proporción perfecta */
    justify-content: space-between;
    gap: 3rem; /* Espacio justo para que respiren las columnas sin robarle a la imagen */
    padding: 5rem 0;
    width: 100%;
}
.split-section.reverse {
    flex-direction: row-reverse;
}
.split-content {
    flex: 1; /* El texto ocupa su parte justa */
    max-width: 480px; /* Le ponemos un tope al texto para que el resto del espacio se lo lleve la imagen */
}
.split-visual {
    flex: 1.5; /* La imagen se lleva la mayor parte del espacio, llegando hasta el final de la caja */
    position: relative;
    display: flex;
    justify-content: flex-end; /* Empuja la imagen contra el borde derecho */
}
.split-section.reverse .split-visual {
    justify-content: flex-start; /* Empuja la imagen contra el borde izquierdo cuando se invierte */
}

/* Efecto Shell Premium */
.image-shell {
    position: relative;
    width: 100%; /* Toma todo el flex: 1.5 disponible */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(123, 44, 191, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}
.image-shell img {
    width: 100%;
    height: auto;
    display: block;
}

/* Layouts Asimétricos Limpios (Bug Corregido) */
.split-section {
    display: flex;
    align-items: center; 
    justify-content: space-between;
    gap: 4rem; 
    padding: 5rem 0;
    width: 100%;
}
.split-section.reverse {
    flex-direction: row-reverse;
}
.split-content {
    flex: 1; 
    max-width: 480px; 
}
.split-visual {
    flex: 1.5; 
    position: relative;
    display: flex;
    flex-direction: column; /* LA MAGIA: Esto hace que las tarjetas se apilen hacia abajo y no se aplasten */
    justify-content: center;
}

/* Efecto Shell Premium (Con indicador de Zoom) */
.image-shell {
    position: relative;
    width: 100%; 
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(123, 44, 191, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
    cursor: zoom-in; /* Cambiamos el cursor al hacer hover */
}
.image-shell img {
    width: 100%;
    height: auto;
    display: block;
}
.image-shell-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(0deg, rgba(10,10,14,0.95) 0%, rgba(10,10,14,0.8) 60%, transparent 100%);
    padding: 3rem 1.5rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
    backdrop-filter: blur(4px);
}
.image-shell:hover .image-shell-caption {
    transform: translateY(0);
}

/* Botón flotante para indicar la acción de ampliar */
.zoom-hint {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(10, 10, 14, 0.8);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 30px;
    color: #fff;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(123, 44, 191, 0.4);
    z-index: 10;
}
.image-shell:hover .zoom-hint {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   LIGHTBOX SENIOR (Visor de imagen a pantalla completa)
   ========================================== */
.kodar-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 14, 0.95);
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.kodar-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}
.kodar-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.kodar-lightbox.active .kodar-lightbox-content {
    transform: scale(1) translateY(0);
}
.kodar-lightbox img {
    max-width: 100%;
    max-height: 75vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.kodar-lightbox-close {
    position: absolute;
    top: -45px;
    right: 0;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}
.kodar-lightbox-close:hover {
    color: var(--accent);
}
.lightbox-text {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-main);
}
.lightbox-text h3 {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
}
.lightbox-text p {
    color: var(--text-dim);
    font-size: 1rem;
}





.split-section.reverse .split-content .glass-card:hover {
    transform: translateX(-12px);
    border-color: rgba(255, 255, 255, 0.15);
}

/* En la sección invertida: Las tarjetas de la IZQUIERDA se mueven a la DERECHA (12px) */
.split-section.reverse .split-visual .glass-card.solution:hover {
    transform: translateX(12px);
    border-color: rgba(16, 185, 129, 0.4);
}

/* ==========================================
   ANIMACIÓN CROSSFADE (Dashboard)
   ========================================== */
.crossfade-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    background: var(--bg-color);
}

.crossfade-wrapper img.img-base {
    width: 100%;
    height: auto;
    display: block;
}

.crossfade-wrapper img.img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* La animación dura 8s, va y vuelve, creando el efecto de "mirar fotos" */
    animation: crossfadeAnim 8s infinite alternate ease-in-out; 
}

@keyframes crossfadeAnim {
    0%, 25% { opacity: 1; filter: blur(0px); }
    75%, 100% { opacity: 0; filter: blur(2px); }
}



/* ==========================================
   COMPONENTE: KODAR DASHBOARD SHOWCASE (7 IMÁGENES)
   ========================================== */
.kodar-showcase {
    width: 100%;
}

.crossfade-grid {
    display: grid;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(123, 44, 191, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer; /* Corregido: Manito clásica, adiós lupa */
    position: relative;
    background: var(--bg-color);
}

/* Ponemos todas las imágenes superpuestas en la misma celda */
.crossfade-grid img {
    grid-area: 1 / 1; 
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    opacity: 0; /* Todas arrancan invisibles */
    /* Animación total de 28 segundos (4s por cada una de las 7 imágenes) */
    animation: fade7 28s infinite; 
}

/* Le damos el retraso exacto a cada imagen para que entren una tras otra */
.crossfade-grid img:nth-child(2) { animation-delay: 0s; }
.crossfade-grid img:nth-child(3) { animation-delay: 4s; }
.crossfade-grid img:nth-child(4) { animation-delay: 8s; }
.crossfade-grid img:nth-child(5) { animation-delay: 12s; }
.crossfade-grid img:nth-child(6) { animation-delay: 16s; }
.crossfade-grid img:nth-child(7) { animation-delay: 20s; }
.crossfade-grid img:nth-child(8) { animation-delay: 24s; }

/* La llave mágica: Aparece, se queda un ratito, se difumina y desaparece */
@keyframes fade7 {
    0%   { opacity: 0; filter: blur(2px); }
    5%   { opacity: 1; filter: blur(0); }   /* Entra rápido */
    14%  { opacity: 1; filter: blur(0); }   /* Se queda quieta (14% de 28s son ~4s) */
    19%  { opacity: 0; filter: blur(2px); } /* Se va suavemente */
    100% { opacity: 0; filter: blur(2px); } /* Espera su turno invisible */
}

/* Textos y brillos fijos por encima de la animación */
.kodar-showcase-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(0deg, rgba(10,10,14,0.98) 0%, rgba(10,10,14,0.7) 50%, transparent 100%);
    padding: 4rem 1.5rem 1.5rem 1.5rem;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-main);
    z-index: 10;
    pointer-events: none;
}

.zoom-hint-permanent {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(123, 44, 191, 0.2);
    backdrop-filter: blur(8px);
    padding: 8px 16px;
    border-radius: 30px;
    color: #fff;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(123, 44, 191, 0.5);
    z-index: 10;
    animation: pulseHint 2.5s infinite;
    pointer-events: none;
}

@keyframes pulseHint {
    0% { box-shadow: 0 0 0 0 rgba(123, 44, 191, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(123, 44, 191, 0); }
    100% { box-shadow: 0 0 0 0 rgba(123, 44, 191, 0); }
}

/* ==========================================
   LIGHTBOX GALERÍA SENIOR
   ========================================== */
.kodar-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 14, 0.98);
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.kodar-lightbox.active {
    opacity: 1;
    pointer-events: auto;
}
.kodar-lightbox-content {
    position: relative;
    max-width: 90vw;
    width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.kodar-lightbox.active .kodar-lightbox-content {
    transform: scale(1) translateY(0);
}
.kodar-lightbox img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.1);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-nav:hover { background: var(--accent); transform: translateY(-50%) scale(1.1); }
.nav-prev { left: -70px; }
.nav-next { right: -70px; }

.kodar-lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}
.kodar-lightbox-close:hover { color: var(--accent); }

.lightbox-text {
    text-align: center;
    margin-top: 2rem;
    max-width: 800px;
}
.lightbox-text h3 {
    font-size: 1.8rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}
.lightbox-text p {
    color: var(--text-dim);
    font-size: 1.1rem;
    line-height: 1.6;
}


/* ==========================================
           EFECTO 3D ENFRENTADO (ULTRA PROFUNDO): Problemas vs Soluciones
           ========================================== */
        #erp-solutions {
            /* Bajamos a 800px para que el ojo note muchísimo más la fuga y el volumen */
            perspective: 800px; 
            overflow: visible;
        }

        /* Aseguramos que ambas columnas manejen el 3D hacia sus hijos */
        #erp-solutions .split-content,
        #erp-solutions .split-visual {
            position: relative;
            transform-style: preserve-3d; /* CLAVE para que los hijos floten en 3D */
        }

        /* Panel contenedor de cristal de fondo */
        #erp-solutions .split-content::before,
        #erp-solutions .split-visual::before {
            content: "";
            position: absolute;
            inset: -20px;
            background: linear-gradient(145deg, rgba(255, 255, 255, 0.03), transparent);
            border: 1px solid rgba(255, 255, 255, 0.04);
            border-radius: 24px;
            z-index: -1;
            pointer-events: none;
            opacity: 0;
            transition: opacity 1s ease;
            /* El fondo se queda atrás en el eje Z */
            transform: translateZ(-20px); 
        }

        #erp-solutions .split-content.is-visible::before,
        #erp-solutions .split-visual.is-visible::before {
            opacity: 1;
        }

        /* Columna de Problemas (Derecha): Gira 16 grados hacia adentro */
        #erp-solutions .split-content.is-visible {
            transform: rotateY(-16deg) translateX(-10px) translateZ(0) !important;
            transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
        }

        /* Columna de Soluciones (Izquierda): Gira 16 grados hacia adentro */
        #erp-solutions .split-visual.is-visible {
            transform: rotateY(16deg) translateX(10px) translateZ(0) !important;
            transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
        }

        /* === MAGIA DE PROFUNDIDAD: Textos y Tarjetas flotando === */
        
        /* Empujamos los títulos y párrafos hacia adelante */
        #erp-solutions .split-content h2,
        #erp-solutions .split-content p,
        #erp-solutions .split-visual h3 {
            transform: translateZ(35px);
            text-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
        }

        /* Las tarjetas glass-card flotan MUCHO más adelante para el efecto pop-out */
        #erp-solutions .glass-card {
            transform: translateZ(60px); 
            box-shadow: -15px 25px 30px -10px rgba(0, 0, 0, 0.6) !important; /* Exagera la distancia con el fondo */
            transition: transform 0.4s ease, border-color 0.4s ease;
        }

        #erp-solutions .split-visual .glass-card {
            /* Sombra direccional invertida para la columna opuesta (luz realista) */
            box-shadow: 15px 25px 30px -10px rgba(0, 0, 0, 0.6) !important;
        }

        /* En celulares anulamos TODO el 3D para mantener la legibilidad vertical */
        @media (max-width: 900px) {
            #erp-solutions .split-content.is-visible,
            #erp-solutions .split-visual.is-visible {
                transform: translate(0) scale3d(1, 1, 1) !important;
            }
            #erp-solutions .split-content::before,
            #erp-solutions .split-visual::before {
                display: none;
            }
            #erp-solutions .glass-card,
            #erp-solutions .split-content h2,
            #erp-solutions .split-content p,
            #erp-solutions .split-visual h3 {
                transform: translateZ(0);
                box-shadow: none !important;
                text-shadow: none;
            }
        }


@media (max-width: 1200px) {
    .nav-prev { left: 10px; }
    .nav-next { right: 10px; }
}
