<!DOCTYPE html>
<html lang="es-CL" class="scroll-smooth">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <!-- Google Tag Manager -->
    <script>(function (w, d, s, l, i) {
            w[l] = w[l] || []; w[l].push({
                'gtm.start':
                    new Date().getTime(), event: 'gtm.js'
            }); var f = d.getElementsByTagName(s)[0],
                j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src =
                    'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f);
        })(window, document, 'script', 'dataLayer', 'GTM-KFQ5Z6WD');</script>
    <!-- End Google Tag Manager -->
    <title>Chapi | Identificación Inmediata de Conflictos de Interés con IA</title>
    <meta name="description"
        content="Chapi es la plataforma de compliance que te ayuda a identificar conflictos de interés entre trabajadores, proveedores y clientes de forma inmediata utilizando IA.">
    <meta name="keywords"
        content="Chapi, Compliance, Conflictos de Interés, KYC, Background Checks, Gestión de Riesgos, IA, Compliance Chile, Debida Diligencia">
    <meta name="author" content="Chapi AI">
    <meta name="robots" content="index, follow">
    <link rel="canonical" href="https://chapi.cl">
    <link rel="alternate" type="text/markdown" href="/index.md">

    <!-- AI Scraper Optimization -->
    <meta name="application-name" content="Chapi Compliance Platform">
    <meta name="theme-color" content="#00A6F4">

    <!-- OpenAI GPT Optimization -->
    <meta property="ai:title" content="Chapi - Plataforma de Compliance con IA para Chile">
    <meta property="ai:description"
        content="Chapi automatiza el compliance corporativo mediante IA. Identifica conflictos de interés entre empleados, proveedores y clientes. Realiza background checks, KYC y debida diligencia. Integración API disponible. Solución para empresas en Chile.">
    <meta property="ai:category" content="Business Software, Compliance, Risk Management, Artificial Intelligence">
    <meta property="ai:keywords"
        content="compliance, conflictos de interés, KYC, background checks, debida diligencia, gestión de riesgos, IA, inteligencia artificial, Chile, empresas, corporativo">

    <!-- Google AI & Search Optimization -->
    <meta name="google-site-verification" content="pending">
    <meta itemprop="name" content="Chapi - Compliance con IA">
    <meta itemprop="description"
        content="Plataforma de compliance que identifica conflictos de interés y realiza background checks con inteligencia artificial.">
    <meta itemprop="image" content="https://chapi.cl/assets/logo-full.png">

    <!-- Open Graph / Facebook / LinkedIn -->
    <meta property="og:type" content="website">
    <meta property="og:url" content="https://chapi.cl">
    <meta property="og:title" content="Chapi | Identificación Inmediata de Conflictos de Interés">
    <meta property="og:description"
        content="La plataforma de compliance que te ayuda a identificar conflictos de interés entre trabajadores, proveedores y clientes de forma inmediata.">
    <meta property="og:image" content="https://chapi.cl/assets/logo-full.png">
    <meta property="og:image:width" content="1200">
    <meta property="og:image:height" content="630">
    <meta property="og:locale" content="es_CL">
    <meta property="og:site_name" content="Chapi">

    <!-- Twitter -->
    <meta property="twitter:card" content="summary_large_image">
    <meta property="twitter:url" content="https://chapi.cl">
    <meta property="twitter:title" content="Chapi | Identificación Inmediata de Conflictos de Interés">
    <meta property="twitter:description"
        content="La plataforma de compliance que te ayuda a identificar conflictos de interés entre trabajadores, proveedores y clientes de forma inmediata.">
    <meta property="twitter:image" content="https://chapi.cl/assets/logo-full.png">

    <!-- Favicon -->
    <link rel="icon" type="image/png" href="assets/logo-icon.png">

    <!-- Performance Optimization: Resource Hints -->
    <link rel="preconnect" href="https://fonts.googleapis.com" crossorigin>
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link rel="dns-prefetch" href="https://app.supademo.com">
    <link rel="dns-prefetch" href="https://images.unsplash.com">

    <!-- Preload Critical Assets -->
    <link rel="preload" href="assets/logo-full.webp" as="image" type="image/webp">
    <link rel="preload" href="assets/styles.css" as="style">

    <!-- Structured Data (Schema.org) -->
    <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "Organization",
      "name": "Chapi",
      "alternateName": "Chapi AI",
      "url": "https://chapi.cl",
      "logo": "https://chapi.cl/assets/logo-full.png",
      "description": "Plataforma de compliance que te ayuda a identificar conflictos de interés entre trabajadores, proveedores y clientes de forma inmediata utilizando inteligencia artificial.",
      "foundingDate": "2024",
      "address": {
        "@type": "PostalAddress",
        "addressLocality": "Las Condes",
        "addressRegion": "Región Metropolitana",
        "addressCountry": "CL"
      },
      "contactPoint": {
        "@type": "ContactPoint",
        "contactType": "Sales",
        "availableLanguage": ["Spanish", "English"]
      },
      "sameAs": [
        "https://www.linkedin.com/company/chapi-cl/?viewAsMember=true"
      ],
      "areaServed": {
        "@type": "Country",
        "name": "Chile"
      },
      "knowsAbout": ["Compliance", "Risk Management", "Conflict of Interest", "KYC", "Background Checks", "Artificial Intelligence", "Due Diligence"]
    }
    </script>
    <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "SoftwareApplication",
      "name": "Chapi Compliance Platform",
      "operatingSystem": "Web",
      "applicationCategory": "BusinessApplication",
      "applicationSubCategory": "Compliance Management Software",
      "offers": {
        "@type": "Offer",
        "price": "0",
        "priceCurrency": "CLP",
        "availability": "https://schema.org/InStock",
        "priceValidUntil": "2026-12-31"
      },
      "description": "Plataforma SaaS de compliance que utiliza inteligencia artificial para identificar conflictos de interés, realizar background checks, KYC y debida diligencia de forma automatizada.",
      "featureList": [
        "Identificación de conflictos de interés",
        "Background checks automatizados",
        "KYC (Know Your Customer)",
        "Debida diligencia",
        "Integración API",
        "Análisis con IA",
        "Gestión de riesgos corporativos"
      ],
      "screenshot": "https://chapi.cl/assets/logo-full.png",
      "softwareVersion": "1.0",
      "provider": {
        "@type": "Organization",
        "name": "Chapi",
        "url": "https://chapi.cl"
      }
    }
    </script>

    <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "WebSite",
      "name": "Chapi",
      "url": "https://chapi.cl",
      "description": "Plataforma de compliance con inteligencia artificial para empresas en Chile",
      "inLanguage": "es-CL",
      "potentialAction": {
        "@type": "SearchAction",
        "target": "https://chapi.cl/?s={search_term_string}",
        "query-input": "required name=search_term_string"
      }
    }
    </script>

    <script type="application/ld+json">
    {
      "@context": "https://schema.org",
      "@type": "Service",
      "serviceType": "Compliance Management",
      "provider": {
        "@type": "Organization",
        "name": "Chapi",
        "url": "https://chapi.cl"
      },
      "areaServed": {
        "@type": "Country",
        "name": "Chile"
      },
      "hasOfferCatalog": {
        "@type": "OfferCatalog",
        "name": "Servicios de Compliance",
        "itemListElement": [
          {
            "@type": "Offer",
            "itemOffered": {
              "@type": "Service",
              "name": "Identificación de Conflictos de Interés",
              "description": "Detección automática de conflictos de interés entre empleados, proveedores y clientes usando IA"
            }
          },
          {
            "@type": "Offer",
            "itemOffered": {
              "@type": "Service",
              "name": "Background Checks",
              "description": "Verificación de antecedentes automatizada y en tiempo real"
            }
          },
          {
            "@type": "Offer",
            "itemOffered": {
              "@type": "Service",
              "name": "KYC y Debida Diligencia",
              "description": "Procesos de conocimiento del cliente y debida diligencia automatizados"
            }
          }
        ]
      }
    }
    </script>

    <!-- Tailwind CSS (CDN Fallback) -->
    <script src="https://cdn.tailwindcss.com"></script>
    <script>
        tailwind.config = {
            theme: {
                extend: {
                    colors: {
                        primary: '#00A6F4',
                        secondary: '#0D2A48',
                        'brand-green': '#00BBA7',
                        'brand-red': '#FB2C36',
                        'brand-yellow': '#FDC700',
                    },
                    fontFamily: {
                        redhat: ['Red Hat Display', 'sans-serif'],
                    },
                }
            }
        }
    </script>
    <!-- Tailwind CSS (Local Build) -->
    <link rel="stylesheet" href="assets/styles.css">
    <script src="assets/utm.js"></script>
    <link href="https://assets.calendly.com/assets/external/widget.css" rel="stylesheet">
    <script src="https://assets.calendly.com/assets/external/widget.js" type="text/javascript" async></script>

    <!-- Font Optimization -->
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@400;500;600;700;800;900&display=swap"
        rel="stylesheet" media="print" onload="this.media='all'">
    <noscript>
        <link href="https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@400;500;600;700;800;900&display=swap"
            rel="stylesheet">
    </noscript>
    <style>.chapi-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;}</style>
</head>

<body class="bg-white text-secondary font-redhat antialiased">

    <!-- Navigation -->
    <nav class="fixed w-full z-50 transition-all duration-300 bg-white/95 backdrop-blur-md shadow-sm" id="navbar">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
            <div class="flex justify-between items-center h-20">
                <div class="flex-shrink-0 flex items-center">
                    <a href="index.html" class="flex items-center">
                        <picture>
                            <source srcset="assets/logo-full.webp" type="image/webp">
                            <img src="assets/logo-full.png" alt="Chapi Logo" class="h-10 w-auto" width="292"
                                height="100" fetchpriority="high">
                        </picture>
                    </a>
                </div>

                <!-- Centered Menu with Mega Menus -->
                <nav class="hidden lg:flex flex-1 justify-center items-center space-x-1">
                    <!-- Centered Menu with Mega Menus -->



                    <!-- Soluciones Mega Menu -->
                    <div class="nav-item-dropdown-mega group">
                        <button
                            class="px-3 py-2 text-secondary/80 hover:text-primary transition-colors font-bold text-xs uppercase tracking-widest flex items-center">
                            Soluciones
                            <svg class="ml-1 w-3 h-3 transition-transform group-hover:rotate-180" fill="none"
                                viewBox="0 0 24 24" stroke="currentColor">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="3"
                                    d="M19 9l-7 7-7-7" />
                            </svg>
                        </button>
                        <div class="mega-menu pt-4 pb-12">
                            <div class="max-w-7xl mx-auto px-8 grid grid-cols-4 gap-8">
                                <!-- Col 1: Soluciones -->
                                <div>
                                    <h4 class="mega-menu-column-title">Soluciones</h4>
                                    <div class="space-y-1">
                                        <a href="#ia-funcionamiento" class="mega-menu-link">
                                            <span class="mega-menu-title">Chequeo de antecedentes</span>
                                        </a>
                                        <a href="#ia-funcionamiento" class="mega-menu-link">
                                            <span class="mega-menu-title">Monitoreo y alertas</span>
                                        </a>
                                        <a href="#mallas-relaciones" class="mega-menu-link">
                                            <span class="mega-menu-title">Conflictos de interés</span>
                                        </a>
                                        <a href="#funcionalidades" class="mega-menu-link">
                                            <span class="mega-menu-title">Prevención de delitos</span>
                                        </a>
                                    </div>
                                </div>
                                <!-- Col 2: Modelos -->
                                <div>
                                    <h4 class="mega-menu-column-title">Modelos de Verificación</h4>
                                    <div class="space-y-1">
                                        <a href="#funcionalidades" class="mega-menu-link">
                                            <span class="mega-menu-title">KYC – Personas</span>
                                        </a>
                                        <a href="#funcionalidades" class="mega-menu-link">
                                            <span class="mega-menu-title">KYB – Empresas</span>
                                        </a>
                                        <a href="#funcionalidades" class="mega-menu-link">
                                            <span class="mega-menu-title">KYP – Proveedores</span>
                                        </a>
                                    </div>
                                </div>
                                <!-- Col 3: Cómo funciona -->
                                <div>
                                    <h4 class="mega-menu-column-title">Cómo funciona</h4>
                                    <div class="space-y-1">
                                        <a href="#ia-funcionamiento" class="mega-menu-link">
                                            <span class="mega-menu-title">Inteligencia Accionable</span>
                                        </a>
                                        <a href="#ia-funcionamiento" class="mega-menu-link">
                                            <span class="mega-menu-title">IA Aplicada al Riesgo</span>
                                        </a>
                                        <a href="#ia-funcionamiento" class="mega-menu-link">
                                            <span class="mega-menu-title">Riesgo Configurable</span>
                                        </a>
                                    </div>
                                </div>
                                <!-- Col 4: Highlight -->
                                <div
                                    class="bg-gray-50 rounded-3xl p-8 border border-secondary/5 flex flex-col items-start jutify-center">
                                    <span
                                        class="bg-primary/10 text-primary px-3 py-1 rounded-full text-[10px] font-black uppercase tracking-widest mb-4">Destacado</span>
                                    <h5 class="text-xl font-black text-secondary tracking-tight mb-2">Compliance en
                                        tiempo real, sin fricción</h5>
                                    <p class="text-secondary/50 text-xs font-medium leading-relaxed mb-6">Automatiza
                                        verificaciones y reduce riesgos con información confiable.</p>
                                    <div class="space-y-3 w-full">
                                        <a href="#funcionalidades"
                                            class="block w-full text-center py-2 bg-secondary text-white rounded-xl text-xs font-bold hover:bg-primary transition-colors">Ver
                                            funcionalidades</a>
                                        <a href=""
                                            onclick="return abrirCalendlyPopup();"
                                            class="block w-full text-center py-2 border border-secondary/10 rounded-xl text-xs font-bold text-secondary hover:bg-white transition-all">Agendar
                                            demo</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- Integraciones Mega Menu -->
                    <div class="nav-item-dropdown-mega group">
                        <button
                            class="px-3 py-2 text-secondary/80 hover:text-primary transition-colors font-bold text-xs uppercase tracking-widest flex items-center">
                            Integraciones
                            <svg class="ml-1 w-3 h-3 transition-transform group-hover:rotate-180" fill="none"
                                viewBox="0 0 24 24" stroke="currentColor">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="3"
                                    d="M19 9l-7 7-7-7" />
                            </svg>
                        </button>
                        <div class="mega-menu pt-4 pb-12">
                            <div class="max-w-7xl mx-auto px-8 grid grid-cols-3 gap-8">
                                <div>
                                    <h4 class="mega-menu-column-title">Integraciones Operativas</h4>
                                    <div class="space-y-1">
                                        <a href="#integraciones-negocio" class="mega-menu-link">
                                            <span class="mega-menu-title">Plataformas de Negocio</span>
                                        </a>
                                        <a href="#integraciones-negocio" class="mega-menu-link">
                                            <span class="mega-menu-title">Flujos Actuales</span>
                                        </a>
                                        <a href="#integraciones-negocio" class="mega-menu-link">
                                            <span class="mega-menu-title">Verificación In-Process</span>
                                        </a>
                                    </div>
                                </div>
                                <div>
                                    <h4 class="mega-menu-column-title">Integraciones Técnicas</h4>
                                    <div class="space-y-1">
                                        <a href="#api-tecnica" class="mega-menu-link">
                                            <span class="mega-menu-title">API-First</span>
                                        </a>
                                        <a href="#api-tecnica" class="mega-menu-link">
                                            <span class="mega-menu-title">Vía URL / Webhooks</span>
                                        </a>
                                        <a href="#api-tecnica" class="mega-menu-link">
                                            <span class="mega-menu-title">Sistemas Existentes</span>
                                        </a>
                                    </div>
                                </div>
                                <div
                                    class="bg-secondary rounded-3xl p-8 border border-white/10 flex flex-col items-start">
                                    <div
                                        class="w-10 h-10 bg-primary/20 rounded-xl flex items-center justify-center text-primary mb-4">
                                        <svg class="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
                                                d="M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4" />
                                        </svg>
                                    </div>
                                    <h5 class="text-xl font-black text-white tracking-tight mb-2">API-first, lista
                                        para
                                        integrarse</h5>
                                    <p class="text-white/40 text-xs font-medium leading-relaxed mb-6">Conecta Chapi
                                        a tu
                                        ecosistema actual de forma segura y escalable.</p>
                                    <a href="#api-tecnica"
                                        class="inline-flex items-center text-primary font-black uppercase tracking-widest text-[10px] hover:text-white transition-colors">
                                        Solicitar Documentación
                                        <svg class="ml-2 w-3 h-3" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="3"
                                                d="M9 5l7 7-7 7" />
                                        </svg>
                                    </a>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- MarketPlace Link -->
                    <a href="marketplace.html"
                        class="px-3 py-2 text-secondary/80 hover:text-primary transition-colors font-bold text-xs uppercase tracking-widest flex items-center">
                        Marketplace
                    </a>

                    <!-- Industrias Mega Menu -->
                    <div class="nav-item-dropdown-mega group">
                        <button
                            class="px-3 py-2 text-secondary/80 hover:text-primary transition-colors font-bold text-xs uppercase tracking-widest flex items-center">
                            Industrias
                            <svg class="ml-1 w-3 h-3 transition-transform group-hover:rotate-180" fill="none"
                                viewBox="0 0 24 24" stroke="currentColor">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="3"
                                    d="M19 9l-7 7-7-7" />
                            </svg>
                        </button>
                        <div class="mega-menu pt-4 pb-12">
                            <div class="max-w-7xl mx-auto px-8 grid grid-cols-4 gap-8">
                                <div>
                                    <h4 class="mega-menu-column-title">Sectores</h4>
                                    <div class="space-y-1">
                                        <a href="construccion.html" class="mega-menu-link">
                                            <span class="mega-menu-title">Construcción</span>
                                        </a>
                                        <a href="retail.html" class="mega-menu-link">
                                            <span class="mega-menu-title">Retail</span>
                                        </a>
                                        <a href="finanzas.html" class="mega-menu-link">
                                            <span class="mega-menu-title">Finanzas - Banca</span>
                                        </a>
                                        <a href="rrhh.html" class="mega-menu-link">
                                            <span class="mega-menu-title">RRHH - Staffing</span>
                                        </a>
                                        <a href="seleccion.html" class="mega-menu-link">
                                            <span class="mega-menu-title">Selección</span>
                                        </a>
                                    </div>
                                </div>
                                <div>
                                    <h4 class="mega-menu-column-title">Infraestructura</h4>
                                    <div class="space-y-1">
                                        <a href="mineria.html" class="mega-menu-link">
                                            <span class="mega-menu-title">Minería</span>
                                        </a>
                                        <a href="salud.html" class="mega-menu-link">
                                            <span class="mega-menu-title">Salud - Isapres</span>
                                        </a>
                                        <a href="logistica.html" class="mega-menu-link">
                                            <span class="mega-menu-title">Logística - Transporte</span>
                                        </a>
                                        <a href="agricola.html" class="mega-menu-link">
                                            <span class="mega-menu-title">Agrícola</span>
                                        </a>
                                    </div>
                                </div>
                                <div
                                    class="col-span-2 bg-gray-50 rounded-3xl p-8 border border-secondary/5 flex flex-col items-start justify-center">
                                    <h5 class="text-xl font-black text-secondary tracking-tight mb-2">Especialistas
                                        por industria</h5>
                                    <p class="text-secondary/50 text-xs font-medium leading-relaxed mb-6">Soluciones
                                        de compliance adaptadas a los riesgos específicos de cada sector económico.
                                    </p>
                                    <a href="#industrias"
                                        class="block py-2 text-primary font-black text-xs uppercase tracking-widest hover:underline transition-all">Ver
                                        todas las industrias</a>
                                </div>
                            </div>
                        </div>
                    </div>

                    <!-- Funcionalidades Mega Menu -->
                    <div class="nav-item-dropdown-mega group">
                        <button
                            class="px-3 py-2 text-secondary/80 hover:text-primary transition-colors font-bold text-xs uppercase tracking-widest flex items-center">
                            Funcionalidades
                            <svg class="ml-1 w-3 h-3 transition-transform group-hover:rotate-180" fill="none"
                                viewBox="0 0 24 24" stroke="currentColor">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="3"
                                    d="M19 9l-7 7-7-7" />
                            </svg>
                        </button>
                        <div class="mega-menu pt-4 pb-12">
                            <div class="max-w-7xl mx-auto px-8 grid grid-cols-4 gap-8">
                                <div>
                                    <h4 class="mega-menu-column-title">Tecnología CORE</h4>
                                    <div class="space-y-1">
                                        <a href="#paso-alertas" class="mega-menu-link">
                                            <span class="mega-menu-title">Monitoreo 24/7</span>
                                        </a>
                                        <a href="#paso-analisis" class="mega-menu-link">
                                            <span class="mega-menu-title">Análisis Semántico IA</span>
                                        </a>
                                        <a href="#paso-alertas" class="mega-menu-link">
                                            <span class="mega-menu-title">Indicadores de Riesgo</span>
                                        </a>
                                    </div>
                                </div>
                                <div>
                                    <h4 class="mega-menu-column-title">Data & Compliance</h4>
                                    <div class="space-y-1">
                                        <a href="#paso-extraccion" class="mega-menu-link">
                                            <span class="mega-menu-title">Listas Internacionales</span>
                                        </a>
                                        <a href="#paso-analisis" class="mega-menu-link">
                                            <span class="mega-menu-title">Modelos Predictivos</span>
                                        </a>
                                        <a href="#paso-alertas" class="mega-menu-link">
                                            <span class="mega-menu-title">Alertas en Tiempo Real</span>
                                        </a>
                                    </div>
                                </div>
                                <div
                                    class="col-span-2 bg-secondary rounded-3xl p-8 flex flex-col items-start justify-center text-white overflow-hidden relative">
                                    <div class="absolute inset-0 opacity-10">
                                        <svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg">
                                            <defs>
                                                <pattern id="nodes-nav" x="0" y="0" width="40" height="40"
                                                    patternUnits="userSpaceOnUse">
                                                    <circle cx="2" cy="2" r="1" fill="white" />
                                                </pattern>
                                            </defs>
                                            <rect width="100%" height="100%" fill="url(#nodes-nav)" />
                                        </svg>
                                    </div>
                                    <div class="relative z-10">
                                        <h5 class="text-xl font-black tracking-tight mb-2">Potencia tu Compliance
                                            con IA</h5>
                                        <p class="text-white/60 text-xs font-medium leading-relaxed mb-6">Nuestra
                                            tecnología automatiza la revisión de perfiles y la detección de patrones
                                            de riesgo.</p>
                                        <a href="#ia-funcionamiento"
                                            class="inline-flex items-center text-primary font-black uppercase tracking-widest text-[10px] hover:text-white transition-colors">Saber
                                            más</a>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>

                    <a href="#testimonios"
                        class="px-3 py-2 text-secondary/80 hover:text-primary transition-colors font-bold text-xs uppercase tracking-widest flex items-center">
                        Testimonios
                    </a>
                    <a href="#blog"
                        class="px-3 py-2 text-secondary/80 hover:text-primary transition-colors font-bold text-xs uppercase tracking-widest flex items-center">
                        Blog
                    </a>

                </nav>

                <!-- Right Buttons -->
                <div class="hidden md:flex items-center space-x-3">
                    <a href="https://app.chapi.cl/home/"
                        class="text-secondary/80 hover:text-primary transition-all font-bold text-sm px-6 py-2.5 rounded-full border border-secondary/10 hover:border-primary/20">Entrar</a>
                    <a href=""
                        onclick="return abrirCalendlyPopup();"
                        class="bg-primary text-white px-6 py-2.5 rounded-full font-bold hover:shadow-lg hover:shadow-primary/30 transition-all transform hover:-translate-y-0.5 text-sm flex items-center group">
                        Agendar Demo
                        <svg class="ml-2 w-4 h-4 transform group-hover:translate-x-1 transition-transform" fill="none"
                            viewBox="0 0 24 24" stroke="currentColor">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
                                d="M14 5l7 7m0 0l-7 7m7-7H3" />
                        </svg>
                    </a>
                </div>

                <!-- Mobile menu button -->
                <div class="lg:hidden flex items-center">
                    <button class="text-secondary p-2" id="mobile-menu-button">
                        <svg class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
                                d="M4 6h16M4 12h16m-7 6h7" />
                        </svg>
                    </button>
                </div>
            </div>
        </div>
    </nav>

    <!-- Mobile Menu Container (Hidden by default) -->
    <div id="mobile-menu" class="hidden fixed inset-0 z-[60] bg-white pt-24 px-6 overflow-y-auto">
        <div class="flex justify-between items-center absolute top-6 right-6">
            <button class="p-2 text-secondary" id="mobile-menu-close">
                <svg class="w-8 h-8" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
                </svg>
            </button>
        </div>

        <div class="space-y-6 pb-20">
            <!-- Soluciones -->
            <div class="space-y-4">
                <h4 class="text-[10px] font-black uppercase tracking-widest text-secondary/40">Soluciones</h4>
                <div class="grid grid-cols-1 gap-4 pl-2">
                    <a href="#ia-funcionamiento" class="block font-bold text-lg text-secondary">Chequeo de
                        Antecedentes</a>
                    <a href="#ia-funcionamiento" class="block font-bold text-lg text-secondary">Monitoreo y
                        Alertas</a>
                    <a href="#contacto" class="block font-bold text-lg text-secondary">Conflictos de Interés</a>
                    <a href="#compliance" class="block font-bold text-lg text-secondary">Prevención de Delitos</a>
                </div>
            </div>

            <!-- Integraciones -->
            <div class="space-y-4">
                <h4 class="text-[10px] font-black uppercase tracking-widest text-secondary/40">Integraciones</h4>
                <div class="grid grid-cols-1 gap-4 pl-2">
                    <a href="#integraciones-negocio" class="block font-bold text-lg text-secondary">Para Negocio</a>
                    <a href="#api-tecnica" class="block font-bold text-lg text-secondary">Para Técnicos (API)</a>
                </div>
            </div>

            <!-- Industrias -->
            <div class="space-y-4">
                <h4 class="text-[10px] font-black uppercase tracking-widest text-secondary/40">Industrias</h4>
                <div class="grid grid-cols-2 gap-4 pl-2">
                    <a href="construccion.html" class="block font-bold text-sm text-secondary">Construcción</a>
                    <a href="retail.html" class="block font-bold text-sm text-secondary">Retail</a>
                    <a href="finanzas.html" class="block font-bold text-sm text-secondary">Finanzas</a>
                    <a href="rrhh.html" class="block font-bold text-sm text-secondary">RRHH</a>
                    <a href="seleccion.html" class="block font-bold text-sm text-secondary">Selección</a>
                    <a href="mineria.html" class="block font-bold text-sm text-secondary">Minería</a>
                    <a href="salud.html" class="block font-bold text-sm text-secondary">Salud</a>
                    <a href="logistica.html" class="block font-bold text-sm text-secondary">Logística</a>
                    <a href="agricola.html" class="block font-bold text-sm text-secondary">Agrícola</a>
                </div>
            </div>

            <div class="h-px bg-gray-100"></div>

            <a href="#funcionalidades" class="block font-black text-2xl text-secondary">Funcionalidades</a>
            <a href="marketplace.html" class="block font-black text-2xl text-secondary">Marketplace</a>
            <a href="#testimonios" class="block font-black text-2xl text-secondary">Testimonios</a>
            <a href="#blog" class="block font-black text-2xl text-secondary">Blog</a>

            <div class="pt-8 space-y-4">
                <a href=""
                    onclick="return abrirCalendlyPopup();"
                    class="block w-full text-center py-4 bg-primary text-white rounded-2xl font-black text-lg">Agendar
                    Demo</a>
                <a href="https://app.chapi.cl/home/"
                    class="block w-full text-center py-4 border border-secondary/10 rounded-2xl font-bold text-secondary">Entrar</a>
            </div>
        </div>
    </div>

    <main id="main-content">
        <!-- Hero Section -->
        <section class="relative min-h-[90vh] flex items-center pt-10 pb-12 overflow-hidden hero-gradient" itemscope
            itemtype="https://schema.org/WebPageElement">
            <!-- Background Nodes Pattern -->
            <div class="absolute inset-0 z-0 opacity-[0.05] pointer-events-none">
                <svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg">
                    <defs>
                        <pattern id="nodes" x="0" y="0" width="100" height="100" patternUnits="userSpaceOnUse">
                            <circle cx="10" cy="10" r="1.5" fill="#0D2A48" />
                            <circle cx="50" cy="40" r="2" fill="#0D2A48" />
                            <circle cx="90" cy="10" r="1.5" fill="#0D2A48" />
                            <circle cx="20" cy="80" r="1.5" fill="#0D2A48" />
                            <line x1="10" y1="10" x2="50" y2="40" stroke="#0D2A48" stroke-width="0.5" />
                            <line x1="50" y1="40" x2="90" y2="10" stroke="#0D2A48" stroke-width="0.5" />
                            <line x1="50" y1="40" x2="20" y2="80" stroke="#0D2A48" stroke-width="0.5" />
                        </pattern>
                    </defs>
                    <rect width="100%" height="100%" fill="url(#nodes)" />
                </svg>
            </div>
            <div class="absolute inset-0 bg-gradient-to-b from-white via-transparent to-white z-0"></div>

            <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10">
                <div class="grid lg:grid-cols-2 gap-12 items-center">
                    <div class="space-y-6">
                        <div
                            class="inline-flex items-center space-x-2 bg-primary/10 text-primary px-4 py-1.5 rounded-full text-sm font-semibold tracking-wide uppercase">
                            <span class="relative flex h-2 w-2">
                                <span
                                    class="animate-ping absolute inline-flex h-full w-full rounded-full bg-primary opacity-75"></span>
                                <span class="relative inline-flex rounded-full h-2 w-2 bg-primary"></span>
                            </span>
                            <span>Compliance 2.0 con IA</span>
                        </div>
                        <h1 class="text-5xl lg:text-7xl font-black text-secondary leading-[0.95] tracking-tight"
                            itemprop="headline">
                            Conoce con quién <span class="text-primary">trabajas:</span><br>
                            Clientes, Proveedores y Personas
                        </h1>
                        <p class="text-lg text-secondary/50 max-w-xl leading-relaxed font-semibold"
                            itemprop="description">
                            Verifica el historial legal de causas públicas y reputacionales en segundos, con tecnología
                            diseñada para que tomes decisiones informadas y seguras.
                        </p>
                        <div class="flex flex-col sm:flex-row space-y-4 sm:space-y-0 sm:space-x-4">
                            <a href="#contacto"
                                class="bg-[#0D2A48] text-white px-8 py-4 rounded-2xl font-black text-lg hover:bg-primary transition-all shadow-2xl shadow-[#0D2A48]/30 flex items-center justify-center transform hover:scale-105">
                                Probar Gratis
                                <svg class="ml-2 w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="3"
                                        d="M14 5l7 7m0 0l-7 7m7-7H3" />
                                </svg>
                            </a>
                            <a href="#ia-funcionamiento"
                                class="bg-white text-secondary border-2 border-secondary/5 px-8 py-4 rounded-2xl font-black text-lg hover:border-primary/20 hover:shadow-xl transition-all flex items-center justify-center transform hover:scale-105">
                                Ver Soluciones
                            </a>
                        </div>
                        <div class="flex items-center space-x-6 pt-4">
                            <div class="flex -space-x-2">
                                <div
                                    class="w-14 h-14 rounded-full border-2 border-white bg-white shadow-sm flex items-center justify-center overflow-hidden p-2">
                                    <img src="assets/logo-dole.png" alt="Dole"
                                        class="max-w-full max-h-full object-contain" width="40" height="40">
                                </div>
                                <div
                                    class="w-14 h-14 rounded-full border-2 border-white bg-white shadow-sm flex items-center justify-center overflow-hidden p-2">
                                    <img src="assets/logo-manpower.jpg" alt="ManpowerGroup"
                                        class="max-w-full max-h-full object-contain" width="40" height="40">
                                </div>
                                <div
                                    class="w-14 h-14 rounded-full border-2 border-white bg-white shadow-sm flex items-center justify-center overflow-hidden p-2">
                                    <img src="assets/logo-cmpc.png" alt="CMPC"
                                        class="max-w-full max-h-full object-contain" width="40" height="40">
                                </div>
                            </div>
                            <p class="text-sm text-secondary/60 font-medium">
                                <span class="text-secondary font-bold">+400 empresas</span> ya confían en nosotros
                            </p>
                        </div>
                    </div>

                    <!-- Hero Illustration: Official Check Dashboard View -->
                    <div class="relative hidden lg:flex lg:justify-end animate-float">
                        <div
                            class="relative z-10 bg-white rounded-[2rem] shadow-[0_32px_80px_-20px_rgba(13,42,72,0.1)] border border-gray-100 overflow-hidden w-full max-w-[580px]">
                            <!-- Top Header -->
                            <div class="flex justify-between items-start px-8 py-6">
                                <div>
                                    <h4 class="text-3xl font-black text-black mb-2 tracking-tighter">Bruce Wayne</h4>
                                    <div
                                        class="flex items-center space-x-4 text-[10px] text-black/40 font-bold uppercase tracking-widest">
                                        <span class="flex items-center"><svg class="w-3 h-3 mr-1.5" fill="currentColor"
                                                viewBox="0 0 20 20">
                                                <path
                                                    d="M10 2a8 8 0 100 16 8 8 0 000-16zm1 11H9v-2h2v2zm0-4H9V7h2v2z" />
                                            </svg> 12.345.678-9</span>
                                        <span class="flex items-center"><svg class="w-3 h-3 mr-1.5" fill="currentColor"
                                                viewBox="0 0 20 20">
                                                <path
                                                    d="M6 2a1 1 0 00-1 1v1h10V3a1 1 0 00-1-1H6zM4 6h12v11a2 2 0 01-2 2H6a2 2 0 01-2-2V6z" />
                                            </svg> 29-01-2026</span>
                                    </div>
                                </div>
                                <button
                                    class="bg-[#EBF5FF] text-primary px-4 py-2 rounded-full text-[10px] font-black uppercase tracking-widest flex items-center hover:bg-primary hover:text-white transition-all shadow-sm">
                                    <svg class="w-3 h-3 mr-1.5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="3"
                                            d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4" />
                                    </svg>
                                    Descargar PDF
                                </button>
                            </div>

                            <!-- Tabs -->
                            <div class="px-8 border-b border-gray-50 flex space-x-10">
                                <button
                                    class="py-4 text-[10px] font-black text-primary border-b-2 border-primary uppercase tracking-widest">Check</button>
                                <button
                                    class="py-4 text-[10px] font-black text-black/40 hover:text-black uppercase tracking-widest">Malla
                                    Societaria</button>
                                <button
                                    class="py-4 text-[10px] font-black text-black/40 hover:text-black uppercase tracking-widest">Conflictos
                                    de Interés</button>
                            </div>

                            <!-- Summary Grid with White Cards -->
                            <div class="p-6 bg-gray-50/50 grid grid-cols-4 gap-3">
                                <!-- Riesgo -->
                                <div
                                    class="bg-white p-4 rounded-xl shadow-sm border border-gray-100 flex flex-col justify-between h-24">
                                    <span
                                        class="text-[9px] font-black text-black/40 uppercase flex items-center tracking-widest">
                                        Riesgo <svg class="ml-1 w-2.5 h-2.5" fill="none" viewBox="0 0 24 24"
                                            stroke="currentColor">
                                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5"
                                                d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
                                        </svg>
                                    </span>
                                    <div class="flex items-center space-x-1">
                                        <span class="text-2xl font-black text-brand-red tracking-tight">Alto</span>
                                        <div
                                            class="w-4 h-4 rounded-full bg-brand-red/10 flex items-center justify-center text-brand-red shrink-0">
                                            <svg class="w-2.5 h-2.5" fill="none" viewBox="0 0 24 24"
                                                stroke="currentColor">
                                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="3"
                                                    d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
                                            </svg>
                                        </div>
                                    </div>
                                </div>
                                <!-- Laboral -->
                                <div
                                    class="bg-white p-4 rounded-xl shadow-sm border border-gray-100 flex flex-col justify-between h-24">
                                    <span
                                        class="text-[9px] font-black text-black/40 uppercase tracking-widest">Laboral</span>
                                    <div class="flex items-center justify-between">
                                        <div class="flex flex-col -space-y-1">
                                            <span class="text-2xl font-black text-black">2</span>
                                            <span class="text-[8px] font-bold text-black/30">Causas</span>
                                        </div>
                                        <div
                                            class="w-4 h-4 rounded-full bg-brand-yellow/10 flex items-center justify-center text-brand-yellow shrink-0">
                                            <svg class="w-2.5 h-2.5" fill="none" viewBox="0 0 24 24"
                                                stroke="currentColor">
                                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="3"
                                                    d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" />
                                            </svg>
                                        </div>
                                    </div>
                                </div>
                                <!-- Penal -->
                                <div
                                    class="bg-white p-4 rounded-xl shadow-sm border border-gray-100 flex flex-col justify-between h-24">
                                    <span
                                        class="text-[9px] font-black text-black/40 uppercase tracking-widest">Penal</span>
                                    <div class="flex items-center justify-between">
                                        <span class="text-2xl font-black text-black">6</span>
                                        <div
                                            class="w-4 h-4 rounded-full bg-brand-yellow/10 flex items-center justify-center text-brand-yellow shrink-0">
                                            <svg class="w-2.5 h-2.5" fill="none" viewBox="0 0 24 24"
                                                stroke="currentColor">
                                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="3"
                                                    d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" />
                                            </svg>
                                        </div>
                                    </div>
                                </div>
                                <!-- Civil -->
                                <div
                                    class="bg-white p-4 rounded-xl shadow-sm border border-gray-100 flex flex-col justify-between h-24">
                                    <span
                                        class="text-[9px] font-black text-black/40 uppercase tracking-widest">Civil</span>
                                    <div class="flex items-center justify-between">
                                        <span class="text-2xl font-black text-black">5</span>
                                        <div
                                            class="w-4 h-4 rounded-full bg-brand-yellow/10 flex items-center justify-center text-brand-yellow shrink-0">
                                            <svg class="w-2.5 h-2.5" fill="none" viewBox="0 0 24 24"
                                                stroke="currentColor">
                                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="3"
                                                    d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" />
                                            </svg>
                                        </div>
                                    </div>
                                </div>
                            </div>

                        </div>
                    </div>

                    <!-- Decorative Background Graph -->
                    <div class="absolute inset-0 -z-10 opacity-[0.02] pointer-events-none">
                        <svg viewBox="0 0 100 100" class="w-full h-full text-secondary">
                            <path d="M0,80 Q25,20 50,80 T100,20 L100,100 L0,100 Z" fill="currentColor"></path>
                        </svg>
                    </div>
                </div>
            </div>
        </section>


        <!-- Data Sources Ticker -->
        <div class="bg-gray-50 border-y border-secondary/5 py-8 overflow-hidden">
            <div class="max-w-7xl mx-auto px-4 mb-4">
                <p class="text-center text-xs font-bold text-secondary/40 uppercase tracking-widest">Fuentes públicas de
                    datos:
                    <defs>
            </div>
            <ul class="chapi-sr-only" aria-label="Fuentes oficiales integradas">
            <li>SII</li>
            <li>REGISTRO CIVIL</li>
            <li>PODER JUDICIAL</li>
            <li>CMF</li>
            <li>TGR</li>
            <li>DIRECCIÓN DEL TRABAJO</li>
        </ul>
        <div class="flex animate-scroll-logos whitespace-nowrap" aria-hidden="true" data-fuentes-carrusel></div>
        <script>(function(){var s=["SII","REGISTRO CIVIL","PODER JUDICIAL","CMF","TGR","DIRECCI\u00d3N DEL TRABAJO"];var h='<div class="flex shrink-0 items-center space-x-16 pr-16">'+s.map(function(x){return '<span class="text-2xl font-black text-secondary/20">'+x+'</span>';}).join('')+'</div>';document.querySelectorAll('[data-fuentes-carrusel]').forEach(function(el){el.innerHTML=h.repeat(10);});})();</script>
        </div>



        <!-- Propuesta de Valor Section -->
        <section id="funcionalidades" class="py-24 bg-white relative overflow-hidden" itemscope
            itemtype="https://schema.org/WebPageElement">
            <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10 text-center">
                <div class="max-w-4xl mx-auto">
                    <h2 class="text-primary font-bold tracking-wider uppercase text-sm mb-6">Nuestra Propuesta</h2>
                    <h3 class="text-4xl lg:text-5xl font-bold text-secondary mb-8" itemprop="name">
                        Chapi: una plataforma que automatiza el compliance, previene delitos corporativos y protege tu
                        empresa con IA
                    </h3>
                    <p class="text-xl text-secondary/60 leading-relaxed mb-12" itemprop="description">
                        Automatizamos la verificación de antecedentes laborales, penales, judiciales y civiles, pero
                        también
                        vamos más allá: Conectamos tu empresa con soluciones de <span
                            class="text-secondary font-bold">KYC</span> (Know Your Customer), <span
                            class="text-secondary font-bold">KYB</span> (Know Your Business) y <span
                            class="text-secondary font-bold">KYP</span> (Know Your Provider) adaptadas al mercado
                        chileno y
                        su legislación.
                    </p>
                    <div class="grid grid-cols-3 gap-8">
                        <div class="p-6 rounded-2xl bg-gray-50 border border-secondary/5">
                            <div class="text-2xl font-black text-primary mb-2">KYC</div>
                            <div class="text-xs text-secondary/40 font-bold uppercase">Customer</div>
                        </div>
                        <div class="p-6 rounded-2xl bg-gray-50 border border-secondary/5">
                            <div class="text-2xl font-black text-primary mb-2">KYB</div>
                            <div class="text-xs text-secondary/40 font-bold uppercase">Business</div>
                        </div>
                        <div class="p-6 rounded-2xl bg-gray-50 border border-secondary/5">
                            <div class="text-2xl font-black text-primary mb-2">KYP</div>
                            <div class="text-xs text-secondary/40 font-bold uppercase">Provider</div>
                        </div>
                    </div>
                </div>
            </div>
        </section>


        <!-- IA / Cómo funciona (Chapi Experience + AI Copilot) -->
        <section id="ia-funcionamiento" class="py-32 bg-gray-50 relative overflow-hidden" itemscope
            itemtype="https://schema.org/HowTo">
            <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10">
                <div class="grid lg:grid-cols-2 gap-20 items-center">
                    <div class="space-y-10">
                        <div>
                            <h2 class="text-primary font-black tracking-widest uppercase text-sm mb-4">Tu experto en
                                cumplimiento 24/7</h2>
                            <h3 class="text-5xl lg:text-7xl font-black text-secondary tracking-tighter leading-[0.9] mb-8"
                                itemprop="name">
                                De datos crudos a inteligencia <span class="text-primary">accionable</span></h3>
                            <p class="text-xl text-secondary/60 font-medium" itemprop="description">No solo entregamos
                                información; construimos el
                                contexto necesario para que tu empresa opere con total seguridad.</p>
                        </div>

                        <div class="space-y-8">
                            <div class="flex items-start space-x-6" itemprop="step" itemscope id="paso-extraccion"
                                itemtype="https://schema.org/HowToStep">
                                <div
                                    class="w-12 h-12 bg-white rounded-2xl shadow-sm border border-secondary/5 flex items-center justify-center shrink-0">
                                    <span class="font-black text-primary">01</span>
                                </div>
                                <div>
                                    <h4 class="font-bold text-xl text-secondary mb-2" itemprop="name">Extracción
                                        Multi-fuente</h4>
                                    <p class="text-secondary/50 text-sm" itemprop="text">Consultamos en tiempo real más
                                        de
                                        50 fuentes
                                        oficiales nacionales e internacionales.</p>
                                </div>
                            </div>
                            <div class="flex items-start space-x-6" itemprop="step" itemscope id="paso-analisis"
                                itemtype="https://schema.org/HowToStep">
                                <div
                                    class="w-12 h-12 bg-white rounded-2xl shadow-sm border border-secondary/5 flex items-center justify-center shrink-0">
                                    <span class="font-black text-primary">02</span>
                                </div>
                                <div>
                                    <h4 class="font-bold text-xl text-secondary mb-2" itemprop="name">Análisis semántico
                                        con
                                        IA</h4>
                                    <p class="text-secondary/50 text-sm" itemprop="text">Nuestra IA interpreta causas
                                        complejas y te ayuda a detectar patrones de riesgo.</p>

                                </div>
                            </div>
                            <div class="flex items-start space-x-6" itemprop="step" itemscope id="paso-alertas"
                                itemtype="https://schema.org/HowToStep">
                                <div
                                    class="w-12 h-12 bg-white rounded-2xl shadow-sm border border-secondary/5 flex items-center justify-center shrink-0">
                                    <span class="font-black text-primary">03</span>
                                </div>
                                <div>
                                    <h4 class="font-bold text-xl text-secondary mb-2" itemprop="name">Alertas
                                        Predictivas
                                    </h4>
                                    <p class="text-secondary/50 text-sm" itemprop="text">Recibe notificaciones
                                        inmediatas
                                        antes de que el
                                        riesgo se convierta en un problema real.</p>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="relative">
                        <div class="absolute -inset-4 rounded-[3rem] bg-primary/10 blur-[40px] opacity-30"></div>
                        <div
                            class="relative bg-white rounded-3xl shadow-2xl border border-secondary/5 overflow-hidden max-w-[440px] mx-auto scale-95 lg:scale-100">
                            <!-- Card Header -->
                            <div class="flex items-center px-8 py-6 border-b border-gray-50">
                                <div
                                    class="w-12 h-12 bg-primary rounded-xl flex items-center justify-center text-white text-2xl shadow-lg shadow-primary/20">
                                    ✨
                                </div>
                                <span class="ml-4 text-xl font-black text-secondary tracking-tight">Resumen IA</span>
                            </div>

                            <!-- Card Content -->
                            <div class="p-8 space-y-8 text-[13px] leading-relaxed">
                                <div>
                                    <h5 class="font-black text-secondary mb-4 uppercase tracking-wider text-[11px]">
                                        Resumen
                                        rápido</h5>
                                    <ul class="space-y-3 font-medium">
                                        <li class="flex items-center text-secondary/70">
                                            <span class="text-xl mr-3">🏛️</span> <span
                                                class="font-bold text-secondary mr-2">PEP:</span> Si
                                        </li>
                                        <li class="flex items-center text-secondary/70">
                                            <span class="text-xl mr-3">🌐</span> <span
                                                class="font-bold text-secondary mr-2">Sanciones internacionales:</span>
                                            Sin
                                            coincidencias
                                        </li>
                                        <li class="flex items-center text-red-600">
                                            <span class="text-xl mr-3">🚩</span> <span class="font-bold mr-2">Lista
                                                interna:</span> Coincidencia por Conflicto de Interés
                                        </li>
                                    </ul>
                                </div>

                                <div class="space-y-4 pt-4 border-t border-gray-50">
                                    <p class="flex items-start text-secondary/70">
                                        <span class="text-xl mr-3">⚖️</span>
                                        <span><span class="font-bold text-secondary">Causas Civiles:</span> 2 como
                                            Demandado
                                            (2021, 2023) y 1 como Demandante (2018).</span>
                                    </p>

                                    <div class="flex items-start text-secondary/70">
                                        <span class="text-xl mr-3">👮</span>
                                        <div class="space-y-2">
                                            <p class="font-bold text-secondary">Causas Penales:</p>
                                            <ul class="list-disc pl-5 space-y-1">
                                                <li><span class="font-bold text-secondary">Desórdenes:</span> 1 caso
                                                    (2017),
                                                    concluido.</li>
                                                <li><span class="font-bold text-secondary">Lesiones:</span> 1 caso
                                                    (2019),
                                                    concluido.</li>
                                            </ul>
                                        </div>
                                    </div>

                                    <p class="flex items-start text-secondary/70">
                                        <span class="text-xl mr-3">🧑‍💼</span>
                                        <span><span class="font-bold text-secondary">Causas Laborales:</span> 1 denuncia
                                            contra AGROINDUSTRIAS DEL NORTE S.A. por tutela.</span>
                                    </p>
                                </div>

                                <!-- Consideration Box -->
                                <div class="bg-gray-50 rounded-2xl p-6 border border-gray-100">
                                    <p class="font-black text-secondary mb-2 text-[11px] uppercase tracking-wider">
                                        Análisis
                                        Copilot:</p>
                                    <p class="text-secondary/70 font-medium italic">
                                        "El perfil presenta un historial mixto. Si bien las causas penales están
                                        concluidas
                                        y son de baja gravedad, la coincidencia en Lista Interna por Conflicto de
                                        Interés
                                        requiere una evaluación dirigida por el oficial de cumplimiento."
                                    </p>
                                </div>

                                <!-- Footer -->
                                <div
                                    class="pt-4 flex justify-end items-center text-[10px] text-secondary/40 font-medium">
                                    <svg class="w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
                                            d="M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15" />
                                    </svg>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
        </section>

        <!-- Mallas Familiares y Societarias -->
        <section id="mallas-relaciones" class="py-32 bg-white overflow-hidden">
            <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
                <div class="grid lg:grid-cols-2 gap-16 items-center">
                    <!-- Text Content -->
                    <div class="order-2 lg:order-1">
                        <h2 class="text-primary font-bold tracking-wider uppercase text-sm mb-4">Mallas y Vínculos</h2>
                        <h3 class="text-4xl lg:text-5xl font-black text-secondary mb-6 tracking-tighter">
                            Visualiza relaciones que no aparecen en un chequeo tradicional
                        </h3>
                        <p class="text-xl text-secondary/60 font-medium mb-10">
                            Chapi analiza y conecta vínculos familiares y societarios para revelar posibles conflictos
                            de
                            interés, participaciones cruzadas y riesgos ocultos detrás de personas y empresas.
                        </p>

                        <div class="space-y-6 mb-10">
                            <div class="flex items-start">
                                <div
                                    class="w-6 h-6 bg-primary/10 rounded-full flex items-center justify-center shrink-0 mt-1">
                                    <svg class="w-4 h-4 text-primary" fill="currentColor" viewBox="0 0 20 20">
                                        <path fill-rule="evenodd"
                                            d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z"
                                            clip-rule="evenodd" />
                                    </svg>
                                </div>
                                <p class="ml-4 text-secondary/70 font-medium">Relaciones familiares relevantes entre
                                    personas clave</p>
                            </div>
                            <div class="flex items-start">
                                <div
                                    class="w-6 h-6 bg-primary/10 rounded-full flex items-center justify-center shrink-0 mt-1">
                                    <svg class="w-4 h-4 text-primary" fill="currentColor" viewBox="0 0 20 20">
                                        <path fill-rule="evenodd"
                                            d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z"
                                            clip-rule="evenodd" />
                                    </svg>
                                </div>
                                <p class="ml-4 text-secondary/70 font-medium">Participaciones y vínculos societarios
                                    entre
                                    empresas</p>
                            </div>
                            <div class="flex items-start">
                                <div
                                    class="w-6 h-6 bg-primary/10 rounded-full flex items-center justify-center shrink-0 mt-1">
                                    <svg class="w-4 h-4 text-primary" fill="currentColor" viewBox="0 0 20 20">
                                        <path fill-rule="evenodd"
                                            d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z"
                                            clip-rule="evenodd" />
                                    </svg>
                                </div>
                                <p class="ml-4 text-secondary/70 font-medium">Conexiones indirectas que pueden generar
                                    conflictos de interés</p>
                            </div>
                            <div class="flex items-start">
                                <div
                                    class="w-6 h-6 bg-primary/10 rounded-full flex items-center justify-center shrink-0 mt-1">
                                    <svg class="w-4 h-4 text-primary" fill="currentColor" viewBox="0 0 20 20">
                                        <path fill-rule="evenodd"
                                            d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z"
                                            clip-rule="evenodd" />
                                    </svg>
                                </div>
                                <p class="ml-4 text-secondary/70 font-medium">Estructuras complejas, simplificadas en
                                    una
                                    sola vista</p>
                            </div>
                        </div>

                        <p class="text-sm font-bold text-secondary/40 italic">Todo con información trazable y auditable.
                        </p>
                    </div>

                    <!-- Visual Mockup (HTML Implementation) -->
                    <div class="order-1 lg:order-2 relative">
                        <div class="absolute -inset-4 bg-primary/20 blur-[60px] opacity-20"></div>

                        <!-- Card Container -->
                        <div
                            class="relative bg-white rounded-[2rem] shadow-[0_32px_80px_-20px_rgba(13,42,72,0.1)] border border-gray-100 overflow-hidden w-full mx-auto transform hover:scale-[1.02] transition-transform duration-500">

                            <!-- Header -->
                            <div class="flex justify-between items-start px-8 py-6">
                                <div>
                                    <h4 class="text-3xl font-black text-black mb-2 tracking-tighter">Inversiones Santa
                                        María
                                    </h4>
                                    <div
                                        class="flex items-center space-x-4 text-[10px] text-black/40 font-bold uppercase tracking-widest">
                                        <span class="flex items-center"><svg class="w-3 h-3 mr-1.5" fill="currentColor"
                                                viewBox="0 0 20 20">
                                                <path
                                                    d="M10 2a8 8 0 100 16 8 8 0 000-16zm1 11H9v-2h2v2zm0-4H9V7h2v2z" />
                                            </svg> 76.432.190-K</span>
                                        <span class="flex items-center"><svg class="w-3 h-3 mr-1.5" fill="currentColor"
                                                viewBox="0 0 20 20">
                                                <path
                                                    d="M6 2a1 1 0 00-1 1v1h10V3a1 1 0 00-1-1H6zM4 6h12v11a2 2 0 01-2 2H6a2 2 0 01-2-2V6z" />
                                            </svg> 24-03-2026</span>
                                    </div>
                                </div>
                                <button
                                    class="bg-[#EBF5FF] text-primary px-4 py-2 rounded-full text-[10px] font-black uppercase tracking-widest flex items-center shadow-sm">
                                    <svg class="w-3 h-3 mr-1.5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="3"
                                            d="M4 16v1a3 3 0 003 3h10a3 3 0 003-3v-1m-4-4l-4 4m0 0l-4-4m4 4V4" />
                                    </svg>
                                    Informe PDF
                                </button>
                            </div>

                            <!-- Tabs -->
                            <div class="px-8 border-b border-gray-50 flex space-x-8">
                                <button
                                    class="py-4 text-[10px] font-black text-black/40 hover:text-black uppercase tracking-widest transition-colors">Global
                                    Check</button>
                                <button
                                    class="py-4 text-[10px] font-black text-primary border-b-2 border-primary uppercase tracking-widest">Malla
                                    Societaria</button>
                                <button
                                    class="py-4 text-[10px] font-black text-black/40 hover:text-black uppercase tracking-widest transition-colors">Conflictos</button>
                            </div>

                            <!-- Graph Canvas (Updated: Compact & Framed) -->
                            <!-- Graph Canvas (Updated: Simplified & Clean 8-Node Layout) -->
                            <!-- Graph Canvas (Updated: Exact Fashion Park Layout - Optimizada) -->
                            <div
                                class="relative h-[550px] bg-slate-50 w-full overflow-hidden border-t border-gray-100 cursor-grab active:cursor-grabbing font-sans select-none">

                                <!-- Container for Pan/Zoom (Scaled to fit) -->
                                <div class="absolute inset-0 flex items-center justify-center transform scale-[0.4] sm:scale-[0.5] md:scale-[0.55] origin-center -translate-x-[20%]"
                                    style="margin-left: -230px;">

                                    <!-- The User's Layout Container (1613x800 base) -->
                                    <div style="position: relative; width: 1613px; height: 1000px;">

                                        <!-- SVG Connections (Manually drawn to match coordinates) -->
                                        <svg class="absolute inset-0 w-full h-full pointer-events-none z-0"
                                            style="overflow: visible;">
                                            <!-- Lines from Center (886, 525) to others -->
                                            <!-- Adjusted coordinates based on snippet translation (X+473, Y+15) -->

                                            <!-- 1. Center to North (Jorge Cristian / Roberto G) -->
                                            <line x1="886" y1="525" x2="973" y2="238" stroke="#cbd5e1"
                                                stroke-width="2" />

                                            <!-- 2. Center to North West (Peng Chou / Transportes Z) -->
                                            <line x1="886" y1="525" x2="604" y2="205" stroke="#fc8181"
                                                stroke-width="2" />

                                            <!-- 3. Center to West (Jiumiao / Constructora B&B) -->
                                            <line x1="886" y1="525" x2="513" y2="445" stroke="#cbd5e1"
                                                stroke-width="2" />

                                            <!-- 4. Center to South West (Jorge Alfredo / Agricola Sur) -->
                                            <line x1="886" y1="525" x2="548" y2="687" stroke="#cbd5e1"
                                                stroke-width="2" />

                                            <!-- 5. Center to South (Orlando / Maria L) -->
                                            <line x1="886" y1="525" x2="863" y2="915" stroke="#cbd5e1"
                                                stroke-width="2" />

                                            <!-- 6. Center to South East (Ariana / Serv Globales) -->
                                            <line x1="886" y1="525" x2="1275" y2="713" stroke="#fc8181"
                                                stroke-width="2" />

                                            <!-- 7. Center to East (Hector / Pedro J) -->
                                            <line x1="886" y1="525" x2="1088" y2="603" stroke="#cbd5e1"
                                                stroke-width="2" />

                                            <!-- 8. Center to North East (Mauricio / Trans Norte) -->
                                            <line x1="886" y1="525" x2="1272" y2="413" stroke="#cbd5e1"
                                                stroke-width="2" />
                                        </svg>

                                        <!-- NODES (Using new styling based on snippet) -->

                                        <!-- CENTER: INVERSIONES SANTA MARÍA (Mapped to Commercial Fashion S Park) -->
                                        <div
                                            style="position: absolute; left: 886px; top: 525px; transform: translate(-50%, -50%);">
                                            <div
                                                class="bg-white rounded-xl shadow-lg border-2 border-primary p-4 flex flex-col items-center w-64 text-center ring-4 ring-primary/5">
                                                <div class="absolute -top-4 w-8 h-8 bg-white rounded-full flex items-center justify-center border-2 border-primary text-primary shadow-sm"
                                                    title="Informe disponible">
                                                    <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"
                                                        fill="currentColor" class="w-4 h-4">
                                                        <path fill-rule="evenodd"
                                                            d="M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z"
                                                            clip-rule="evenodd"></path>
                                                    </svg>
                                                </div>
                                                <div
                                                    class="w-12 h-12 bg-primary/10 rounded-full flex items-center justify-center text-2xl mb-2">
                                                    🏢
                                                </div>
                                                <div class="font-black text-secondary uppercase text-sm leading-tight">
                                                    INVERSIONES SANTA MARÍA</div>
                                                <div
                                                    class="mt-1 text-[10px] text-secondary/60 font-bold tracking-widest">
                                                    HOLDING</div>
                                            </div>
                                        </div>

                                        <!-- 1. NORTH: ROBERTO G. (Mapped to Jorge Cristian) -->
                                        <div
                                            style="position: absolute; left: 973px; top: 238px; transform: translate(-50%, -50%);">
                                            <div
                                                class="bg-white rounded-xl shadow-md border border-gray-100 p-3 flex flex-col items-center w-40 text-center relative hover:-translate-y-1 transition-transform cursor-pointer">
                                                <div
                                                    class="absolute top-2 right-2 w-5 h-5 bg-brand-green rounded-full flex items-center justify-center text-white border-2 border-white shadow-sm">
                                                    <svg class="w-3 h-3" fill="none" viewBox="0 0 24 24"
                                                        stroke="currentColor">
                                                        <path stroke-linecap="round" stroke-linejoin="round"
                                                            stroke-width="3" d="M5 13l4 4L19 7">
                                                        </path>
                                                    </svg>
                                                </div>
                                                <div
                                                    class="w-10 h-10 bg-gray-50 rounded-full flex items-center justify-center text-xl mb-2">
                                                    👤
                                                </div>
                                                <div class="font-bold text-secondary text-xs">ROBERTO G.</div>
                                                <div class="text-[9px] text-gray-400 uppercase font-bold mt-1">SOCIO
                                                </div>
                                            </div>
                                        </div>

                                        <!-- 2. NORTH EAST: TRANS. NORTE (Mapped to Mauricio) -->
                                        <div
                                            style="position: absolute; left: 1272px; top: 413px; transform: translate(-50%, -50%);">
                                            <div
                                                class="bg-white rounded-xl shadow-md border border-gray-100 p-3 flex flex-col items-center w-40 text-center relative hover:-translate-y-1 transition-transform cursor-pointer">
                                                <div
                                                    class="absolute top-2 right-2 w-5 h-5 bg-brand-green rounded-full flex items-center justify-center text-white border-2 border-white shadow-sm">
                                                    <svg class="w-3 h-3" fill="none" viewBox="0 0 24 24"
                                                        stroke="currentColor">
                                                        <path stroke-linecap="round" stroke-linejoin="round"
                                                            stroke-width="3" d="M5 13l4 4L19 7">
                                                        </path>
                                                    </svg>
                                                </div>
                                                <div
                                                    class="w-10 h-10 bg-gray-50 rounded-full flex items-center justify-center text-xl mb-2">
                                                    🏢
                                                </div>
                                                <div class="font-bold text-secondary text-xs">TRANS. NORTE</div>
                                                <div class="text-[9px] text-gray-400 uppercase font-bold mt-1">FILIAL
                                                    (80%)
                                                </div>
                                            </div>
                                        </div>

                                        <!-- 3. EAST: PEDRO J. (Mapped to Hector) -->
                                        <div
                                            style="position: absolute; left: 1088px; top: 603px; transform: translate(-50%, -50%);">
                                            <div
                                                class="bg-white rounded-xl shadow-md border border-gray-100 p-3 flex flex-col items-center w-40 text-center relative hover:-translate-y-1 transition-transform cursor-pointer">
                                                <div
                                                    class="absolute top-2 right-2 w-5 h-5 bg-brand-green rounded-full flex items-center justify-center text-white border-2 border-white shadow-sm">
                                                    <svg class="w-3 h-3" fill="none" viewBox="0 0 24 24"
                                                        stroke="currentColor">
                                                        <path stroke-linecap="round" stroke-linejoin="round"
                                                            stroke-width="3" d="M5 13l4 4L19 7">
                                                        </path>
                                                    </svg>
                                                </div>
                                                <div
                                                    class="w-10 h-10 bg-gray-50 rounded-full flex items-center justify-center text-xl mb-2">
                                                    👤
                                                </div>
                                                <div class="font-bold text-secondary text-xs">PEDRO J.</div>
                                                <div class="text-[9px] text-gray-400 uppercase font-bold mt-1">DIRECTOR
                                                </div>
                                            </div>
                                        </div>

                                        <!-- 4. SOUTH EAST: SERV. GLOBALES (Mapped to Ariana) -->
                                        <div
                                            style="position: absolute; left: 1275px; top: 713px; transform: translate(-50%, -50%);">
                                            <div
                                                class="bg-white rounded-xl shadow-md border-2 border-red-100 p-3 flex flex-col items-center w-44 text-center relative hover:-translate-y-1 transition-transform cursor-pointer">
                                                <div
                                                    class="absolute top-2 right-2 w-5 h-5 bg-brand-red rounded-full flex items-center justify-center text-white border-2 border-white shadow-sm animate-pulse">
                                                    <svg class="w-3 h-3" fill="none" viewBox="0 0 24 24"
                                                        stroke="currentColor">
                                                        <path stroke-linecap="round" stroke-linejoin="round"
                                                            stroke-width="3"
                                                            d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z">
                                                        </path>
                                                    </svg>
                                                </div>
                                                <div
                                                    class="w-10 h-10 bg-red-50 rounded-full flex items-center justify-center text-xl mb-2">
                                                    🏢</div>
                                                <div class="font-bold text-secondary text-xs">SERV. GLOBALES</div>
                                                <div class="text-[9px] text-brand-red uppercase font-bold mt-1">
                                                    CONFLICTO
                                                </div>
                                            </div>
                                        </div>

                                        <!-- 5. SOUTH: MARIA L. (Mapped to Orlando) -->
                                        <div
                                            style="position: absolute; left: 863px; top: 915px; transform: translate(-50%, -50%);">
                                            <div
                                                class="bg-white rounded-xl shadow-md border border-gray-100 p-3 flex flex-col items-center w-40 text-center relative hover:-translate-y-1 transition-transform cursor-pointer">
                                                <div
                                                    class="absolute top-2 right-2 w-5 h-5 bg-brand-green rounded-full flex items-center justify-center text-white border-2 border-white shadow-sm">
                                                    <svg class="w-3 h-3" fill="none" viewBox="0 0 24 24"
                                                        stroke="currentColor">
                                                        <path stroke-linecap="round" stroke-linejoin="round"
                                                            stroke-width="3" d="M5 13l4 4L19 7">
                                                        </path>
                                                    </svg>
                                                </div>
                                                <div
                                                    class="w-10 h-10 bg-gray-50 rounded-full flex items-center justify-center text-xl mb-2">
                                                    👤
                                                </div>
                                                <div class="font-bold text-secondary text-xs">MARÍA L.</div>
                                                <div class="text-[9px] text-gray-400 uppercase font-bold mt-1">SOCIA
                                                </div>
                                            </div>
                                        </div>

                                        <!-- 6. SOUTH WEST: AGRICOLA SUR (Mapped to Jorge Alfredo) -->
                                        <div
                                            style="position: absolute; left: 548px; top: 687px; transform: translate(-50%, -50%);">
                                            <div
                                                class="bg-white rounded-xl shadow-md border border-gray-100 p-3 flex flex-col items-center w-40 text-center relative hover:-translate-y-1 transition-transform cursor-pointer">
                                                <div
                                                    class="absolute top-2 right-2 w-5 h-5 bg-brand-green rounded-full flex items-center justify-center text-white border-2 border-white shadow-sm">
                                                    <svg class="w-3 h-3" fill="none" viewBox="0 0 24 24"
                                                        stroke="currentColor">
                                                        <path stroke-linecap="round" stroke-linejoin="round"
                                                            stroke-width="3" d="M5 13l4 4L19 7">
                                                        </path>
                                                    </svg>
                                                </div>
                                                <div
                                                    class="w-10 h-10 bg-gray-50 rounded-full flex items-center justify-center text-xl mb-2">
                                                    🏢
                                                </div>
                                                <div class="font-bold text-secondary text-xs">AGRÍCOLA SUR</div>
                                                <div class="text-[9px] text-gray-400 uppercase font-bold mt-1">
                                                    RELACIONADA
                                                </div>
                                            </div>
                                        </div>

                                        <!-- 7. WEST: CONSTRUCTORA B&B (Mapped to Jiumiao) -->
                                        <div
                                            style="position: absolute; left: 513px; top: 445px; transform: translate(-50%, -50%);">
                                            <div
                                                class="bg-white rounded-xl shadow-md border border-gray-100 p-3 flex flex-col items-center w-40 text-center relative hover:-translate-y-1 transition-transform cursor-pointer">
                                                <div
                                                    class="absolute top-2 right-2 w-5 h-5 bg-brand-green rounded-full flex items-center justify-center text-white border-2 border-white shadow-sm">
                                                    <svg class="w-3 h-3" fill="none" viewBox="0 0 24 24"
                                                        stroke="currentColor">
                                                        <path stroke-linecap="round" stroke-linejoin="round"
                                                            stroke-width="3" d="M5 13l4 4L19 7">
                                                        </path>
                                                    </svg>
                                                </div>
                                                <div
                                                    class="w-10 h-10 bg-gray-50 rounded-full flex items-center justify-center text-xl mb-2">
                                                    🏢
                                                </div>
                                                <div class="font-bold text-secondary text-xs">CONSTRUCTORA B&B</div>
                                                <div class="text-[9px] text-gray-400 uppercase font-bold mt-1">
                                                    RELACIONADA
                                                </div>
                                            </div>
                                        </div>

                                        <!-- 8. NORTH WEST: TRANSPORTES Z. (Mapped to Peng Chou) -->
                                        <div
                                            style="position: absolute; left: 604px; top: 205px; transform: translate(-50%, -50%);">
                                            <div
                                                class="bg-white rounded-xl shadow-md border-2 border-red-100 p-3 flex flex-col items-center w-40 text-center relative hover:-translate-y-1 transition-transform cursor-pointer">
                                                <div
                                                    class="absolute top-2 right-2 w-5 h-5 bg-brand-red rounded-full flex items-center justify-center text-white border-2 border-white shadow-sm animate-pulse">
                                                    <svg class="w-3 h-3" fill="none" viewBox="0 0 24 24"
                                                        stroke="currentColor">
                                                        <path stroke-linecap="round" stroke-linejoin="round"
                                                            stroke-width="3"
                                                            d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z">
                                                        </path>
                                                    </svg>
                                                </div>
                                                <div
                                                    class="w-10 h-10 bg-red-50 rounded-full flex items-center justify-center text-xl mb-2">
                                                    🏢</div>
                                                <div class="font-bold text-secondary text-xs">TRANSPORTES Z.</div>
                                                <div class="text-[9px] text-brand-red uppercase font-bold mt-1">
                                                    PROVEEDOR
                                                </div>
                                            </div>
                                        </div>

                                    </div>
                                </div>
                            </div>
                            <!-- End Card Container -->
                        </div>
                        <!-- End Visual Column -->
                    </div>
                </div>
        </section>

        <!-- Integration Hub Section -->
        <section id="integraciones-negocio" class="py-24 bg-white relative overflow-hidden">
            <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
                <div class="text-center mb-16">
                    <h2 class="text-primary font-bold tracking-wider uppercase text-sm mb-4">Integraciones sin Fricción
                    </h2>
                    <h3 class="text-4xl lg:text-5xl font-black text-secondary tracking-tighter">Conecta Chapi a tu
                        ecosistema
                    </h3>
                </div>
                <div class="grid lg:grid-cols-2 gap-20 items-center">
                    <!-- Visual del Hub de Integración -->
                    <div class="flex justify-center order-2 lg:order-1">
                        <div class="integration-hub-wrapper scale-90 lg:scale-110">
                            <div class="hub-center-hex relative p-0 bg-transparent shadow-none border-none">
                                <picture>
                                    <source srcset="assets/logo-icon.webp" type="image/webp">
                                    <img src="assets/logo-icon.png" alt="Chapi Isotipo"
                                        class="w-full h-full object-contain" width="120" height="135">
                                </picture>
                            </div>

                            <!-- Nodes (16 items in two rings: 10 outer, 6 inner) -->

                            <!-- Outer Ring (10 items) -->
                            <div class="hub-logo-node floating-node float-delayed-1" style="left: 50%; top: 0%;">
                                <picture>
                                    <source srcset="assets/buk.webp" type="image/webp">
                                    <img src="assets/buk.png" alt="Buk - integración de RRHH con Chapi" loading="lazy" width="60" height="40">
                                </picture>
                            </div>
                            <div class="hub-logo-node floating-node float-delayed-4" style="left: 82%; top: 12%;">
                                <picture>
                                    <img src="assets/netsuite.png" alt="Oracle NetSuite - integración con Chapi" loading="lazy" width="85" height="55">
                                </picture>
                            </div>
                            <div class="hub-logo-node floating-node float-delayed-2" style="left: 97%; top: 35%;">
                                <picture>
                                    <img src="assets/manager.png" alt="Manager" loading="lazy" width="60" height="40">
                                </picture>
                            </div>
                            <div class="hub-logo-node floating-node float-delayed-3" style="left: 98%; top: 62%;">
                                <picture>
                                    <img src="assets/oracle.png" alt="Oracle ERP - integración con Chapi" loading="lazy" width="60" height="40">
                                </picture>
                            </div>
                            <div class="hub-logo-node floating-node float-delayed-1" style="left: 82%; top: 88%;">
                                <picture>
                                    <img src="assets/softland.png" alt="Softland - integración con Chapi" loading="lazy" width="60" height="40">
                                </picture>
                            </div>
                            <div class="hub-logo-node floating-node float-delayed-4" style="left: 50%; top: 98%;">
                                <picture>
                                    <img src="assets/defontana.png" alt="Defontana - integración con Chapi" loading="lazy" width="60"
                                        height="40">
                                </picture>
                            </div>
                            <div class="hub-logo-node floating-node float-delayed-2" style="left: 18%; top: 88%;">
                                <picture>
                                    <source srcset="assets/senegocia.webp" type="image/webp">
                                    <img src="assets/senegocia.png" alt="Senegocia - integración de compras con Chapi" loading="lazy" width="60"
                                        height="40">
                                </picture>
                            </div>
                            <div class="hub-logo-node floating-node float-delayed-3" style="left: 3%; top: 65%;">
                                <picture>
                                    <img src="assets/sap.jpg" alt="SAP ERP - integración con Chapi" loading="lazy" width="60" height="40">
                                </picture>
                            </div>
                            <div class="hub-logo-node floating-node float-delayed-1" style="left: 3%; top: 35%;">
                                <picture>
                                    <img src="assets/sap-ariba.png" alt="SAP Ariba - integración de procurement con Chapi" loading="lazy" width="60"
                                        height="40">
                                </picture>
                            </div>
                            <div class="hub-logo-node floating-node float-delayed-2" style="left: 18%; top: 12%;">
                                <picture>
                                    <img src="assets/wherex.png" alt="Wherex - integración de licitaciones con Chapi" loading="lazy" width="60" height="40">
                                </picture>
                            </div>

                            <!-- Inner Ring (6 items) -->
                            <div class="hub-logo-node floating-node float-delayed-3" style="left: 50%; top: 24%;">
                                <picture>
                                    <source srcset="assets/talana.webp" type="image/webp">
                                    <img src="assets/talana.png" alt="Talana - integración de RRHH con Chapi" loading="lazy" width="60" height="40">
                                </picture>
                            </div>
                            <div class="hub-logo-node floating-node float-delayed-1" style="left: 74%; top: 37%;">
                                <picture>
                                    <source srcset="assets/rexplus.webp" type="image/webp">
                                    <img src="assets/rexplus.png" alt="Rex+ - integración de gestión laboral con Chapi" loading="lazy" width="60" height="40">
                                </picture>
                            </div>
                            <div class="hub-logo-node floating-node float-delayed-4" style="left: 74%; top: 63%;">
                                <picture>
                                    <source srcset="assets/trabajando.webp" type="image/webp">
                                    <img src="assets/trabajando.png" alt="Trabajando.com - integración de reclutamiento con Chapi" loading="lazy" width="60"
                                        height="40">
                                </picture>
                            </div>
                            <div class="hub-logo-node floating-node float-delayed-2" style="left: 50%; top: 76%;">
                                <picture>
                                    <source srcset="assets/laborum.webp" type="image/webp">
                                    <img src="assets/laborum.png" alt="Laborum - integración de reclutamiento con Chapi" loading="lazy" width="60" height="40">
                                </picture>
                            </div>
                            <div class="hub-logo-node floating-node float-delayed-3" style="left: 26%; top: 63%;">
                                <picture>
                                    <source srcset="assets/hiringroom.webp" type="image/webp">
                                    <img src="assets/hiringroom.png" alt="Hiring Room - integración ATS con Chapi" loading="lazy" width="60"
                                        height="40">
                                </picture>
                            </div>
                            <div class="hub-logo-node floating-node float-delayed-1" style="left: 26%; top: 37%;">
                                <picture>
                                    <source srcset="assets/aira.webp" type="image/webp">
                                    <img src="assets/aira.png" alt="Aira - integración de selección con Chapi" loading="lazy" width="60" height="40">
                                </picture>
                            </div>
                        </div>
                    </div>
                    <!-- Textos de Integración -->
                    <div class="space-y-10 order-1 lg:order-2">
                        <div class="space-y-6">
                            <p class="text-xl text-secondary/80 leading-relaxed font-medium">
                                La verificación ocurre dentro del proceso, <span class="text-primary font-bold">no como
                                    un
                                    paso adicional</span> ni una tarea manual.
                            </p>

                            <div
                                class="bg-white p-8 rounded-[2.5rem] border border-secondary/5 shadow-sm relative overflow-hidden group hover:shadow-xl transition-all duration-500">
                                <div
                                    class="absolute top-0 left-0 w-2 h-full bg-primary/20 group-hover:bg-primary transition-colors">
                                </div>
                                <h4 class="text-2xl font-black text-secondary mb-4 italic">“Si ya tienes procesos
                                    definidos,
                                    Chapi se integra sin fricción.”</h4>
                                <p class="text-secondary/60 text-lg">
                                    Accede a resúmenes de riesgo inteligentes directamente desde tus portales, sin
                                    cambiar
                                    cómo trabaja tu equipo.
                                </p>
                            </div>
                        </div>

                        <ul class="space-y-4">
                            <li class="flex items-center text-lg text-secondary/80 font-bold">
                                <svg class="w-6 h-6 text-brand-green mr-3" fill="none" viewBox="0 0 24 24"
                                    stroke="currentColor">
                                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="3"
                                        d="M5 13l4 4L19 7" />
                                </svg>
                                Menos fricción operativa
                            </li>
                            <li class="flex items-center text-lg text-secondary/80 font-bold">
                                <svg class="w-6 h-6 text-brand-green mr-3" fill="none" viewBox="0 0 24 24"
                                    stroke="currentColor">
                                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="3"
                                        d="M5 13l4 4L19 7" />
                                </svg>
                                Decisiones más rápidas y con contexto
                            </li>
                            <li class="flex items-center text-lg text-secondary/80 font-bold">
                                <svg class="w-6 h-6 text-brand-green mr-3" fill="none" viewBox="0 0 24 24"
                                    stroke="currentColor">
                                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="3"
                                        d="M5 13l4 4L19 7" />
                                </svg>
                                Adopción inmediata, sin cambios de proceso
                            </li>
                        </ul>

                        <p
                            class="text-secondary/50 text-base leading-relaxed border-t border-secondary/5 pt-8 font-medium">
                            RRHH, reclutamiento, abastecimiento y finanzas utilizan estas integraciones para tomar
                            decisiones seguras sin frenar la operación.
                        </p>
                    </div>
                </div>
            </div>
        </section>

        <!-- Marketplace Preview Section -->
        <section id="marketplace-preview" class="py-32 bg-white overflow-hidden relative">
            <!-- Decorative background elements -->
            <div
                class="absolute top-0 right-0 w-96 h-96 bg-primary/5 rounded-full blur-3xl -translate-y-1/2 translate-x-1/2">
            </div>
            <div
                class="absolute bottom-0 left-0 w-96 h-96 bg-brand-green/5 rounded-full blur-3xl translate-y-1/2 -translate-x-1/2">
            </div>

            <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10">
                <div class="text-center mb-20 scroll-reveal">
                    <h2 class="text-primary font-bold tracking-wider uppercase text-sm mb-4">Ecosistema</h2>
                    <h3 class="text-4xl lg:text-5xl font-black text-secondary tracking-tighter mb-6">
                        Chapi <span class="text-primary">Marketplace</span>
                    </h3>
                    <p class="text-xl text-secondary/60 max-w-3xl mx-auto font-medium">
                        Conecta Chapi con las herramientas de RRHH, ERP y fuentes oficiales que ya utilizas. Automatiza
                        el compliance sin cambiar tu forma de trabajar.
                    </p>
                </div>

                <!-- Logo Wall / Grid Preview -->
                <div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-5 gap-8 mb-20">
                    <!-- Buk -->
                    <div
                        class="flex flex-col items-center justify-center p-8 bg-white rounded-[2rem] shadow-sm ring-1 ring-secondary/5 hover:border-primary/20 hover:shadow-xl transition-all group scroll-reveal">
                        <img src="assets/buk.png" alt="Buk - integración de RRHH con Chapi" class="h-12 w-auto object-contain mb-4 transition-all">
                        <span
                            class="text-[10px] font-black uppercase tracking-widest text-secondary/30 group-hover:text-primary">RRHH</span>
                    </div>
                    <!-- SAP -->
                    <div class="flex flex-col items-center justify-center p-8 bg-white rounded-[2rem] shadow-sm ring-1 ring-secondary/5 hover:border-primary/20 hover:shadow-xl transition-all group scroll-reveal"
                        style="transition-delay: 100ms;">
                        <img src="assets/sap.jpg" alt="SAP ERP - integración con Chapi" class="h-12 w-auto object-contain mb-4 transition-all">
                        <span
                            class="text-[10px] font-black uppercase tracking-widest text-secondary/30 group-hover:text-primary">ERP</span>
                    </div>

                    <div class="flex flex-col items-center justify-center p-8 bg-white rounded-[2rem] shadow-sm ring-1 ring-secondary/5 hover:border-primary/20 hover:shadow-xl transition-all group scroll-reveal"
                        style="transition-delay: 200ms;">
                        <img src="assets/oracle.png" alt="Oracle ERP - integración con Chapi"
                            class="h-12 w-auto object-contain mb-4 transition-all">
                        <span
                            class="text-[10px] font-black uppercase tracking-widest text-secondary/30 group-hover:text-primary">Enterprise</span>
                    </div>
                    <div class="flex flex-col items-center justify-center p-8 bg-white rounded-[2rem] shadow-sm ring-1 ring-secondary/5 hover:border-primary/20 hover:shadow-xl transition-all group scroll-reveal"
                        style="transition-delay: 300ms;">
                        <img src="assets/talana.png" alt="Talana - integración de RRHH con Chapi"
                            class="h-12 w-auto object-contain mb-4 transition-all">
                        <span
                            class="text-[10px] font-black uppercase tracking-widest text-secondary/30 group-hover:text-primary">Payroll</span>
                    </div>
                    <div class="flex flex-col items-center justify-center p-8 bg-white rounded-[2rem] shadow-sm ring-1 ring-secondary/5 hover:border-primary/20 hover:shadow-xl transition-all group scroll-reveal"
                        style="transition-delay: 400ms;">
                        <img src="assets/netsuite.png" alt="Oracle NetSuite - integración con Chapi"
                            class="h-12 w-auto object-contain mb-4 transition-all">
                        <span
                            class="text-[10px] font-black uppercase tracking-widest text-secondary/30 group-hover:text-primary">Cloud
                            ERP</span>
                    </div>
                </div>

                <!-- CTA -->
                <div class="text-center scroll-reveal">
                    <a href="marketplace.html"
                        class="inline-flex items-center justify-center bg-secondary text-white px-10 py-5 rounded-2xl font-black text-lg hover:bg-primary transition-all shadow-2xl shadow-secondary/20 group transform hover:-translate-y-1">
                        Ver todas las integraciones
                        <svg class="ml-3 w-6 h-6 transform group-hover:translate-x-2 transition-transform" fill="none"
                            viewBox="0 0 24 24" stroke="currentColor">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="3"
                                d="M14 5l7 7m0 0l-7 7m7-7H3" />
                        </svg>
                    </a>
                    <p class="mt-8 text-secondary/40 text-xs font-bold uppercase tracking-widest">
                        +20 conectores nativos y API agnóstica
                    </p>
                </div>
            </div>
        </section>

        <!-- Visual Divider -->
        <div class="h-px bg-gradient-to-r from-transparent via-secondary/10 to-transparent max-w-7xl mx-auto"></div>

        <!-- Visual Stats Counter -->
        <section class="py-24 bg-secondary text-white relative overflow-hidden" itemscope
            itemtype="https://schema.org/ItemList">
            <div class="absolute inset-0 opacity-10">
                <svg width="100%" height="100%" xmlns="http://www.w3.org/2000/svg">
                    <defs>
                        <pattern id="stats-nodes-alt" x="0" y="0" width="100" height="100"
                            patternUnits="userSpaceOnUse">
                            <circle cx="10" cy="10" r="1" fill="white" />
                        </pattern>
                    </defs>
                    <rect width="100%" height="100%" fill="url(#stats-nodes-alt)" />
                </svg>
            </div>
            <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10">
                <div class="grid grid-cols-2 lg:grid-cols-4 gap-12 text-center">
                    <div class="space-y-2" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
                        <div class="text-4xl lg:text-5xl font-black text-primary tracking-tighter" itemprop="name">+15M
                        </div>
                        <p class="text-xs font-black uppercase tracking-widest text-white/40" itemprop="description">
                            Perfiles procesados</p>
                    </div>
                    <div class="space-y-2" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
                        <div class="text-4xl lg:text-5xl font-black text-primary tracking-tighter" itemprop="name">+2M
                        </div>
                        <p class="text-xs font-black uppercase tracking-widest text-white/40" itemprop="description">
                            Alertas de riesgo detectadas</p>
                    </div>
                    <div class="space-y-2" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
                        <div class="text-4xl lg:text-5xl font-black text-primary tracking-tighter" itemprop="name">+50
                        </div>
                        <p class="text-xs font-black uppercase tracking-widest text-white/40" itemprop="description">
                            Fuentes oficiales integradas</p>
                    </div>
                    <div class="space-y-2" itemprop="itemListElement" itemscope itemtype="https://schema.org/ListItem">
                        <div class="text-4xl lg:text-5xl font-black text-primary tracking-tighter" itemprop="name">99,9%
                        </div>
                        <p class="text-xs font-black uppercase tracking-widest text-white/40" itemprop="description">
                            Disponibilidad de la plataforma</p>
                    </div>
                </div>
            </div>
        </section>



        <section id="industrias" class="py-32 bg-gray-50/50 relative overflow-hidden">
            <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10">
                <div class="text-center mb-20">
                    <h2 class="text-primary font-black tracking-widest uppercase text-sm mb-4">Soluciones Sectoriales
                    </h2>
                    <h3 class="text-4xl lg:text-6xl font-black text-secondary tracking-tighter">Especialistas por
                        Industria
                    </h3>
                    <p class="text-xl text-secondary/50 mt-6 max-w-2xl mx-auto font-medium">Adaptamos nuestra tecnología
                        a
                        los desafíos específicos de cumplimiento de cada sector económico.</p>
                </div>

                <div class="grid lg:grid-cols-12 gap-8 lg:gap-10">
                    <!-- Finanzas - Large Card (Span 8) -->
                    <a href="finanzas.html"
                        class="lg:col-span-8 bg-gradient-to-br from-white to-[#F0F7FF] rounded-[3rem] p-10 lg:p-14 flex flex-col justify-between hover:shadow-2xl hover:shadow-primary/20 transition-all duration-700 group border border-primary/10 relative overflow-hidden">
                        <div
                            class="absolute -top-24 -right-24 w-64 h-64 bg-primary/10 rounded-full blur-3xl group-hover:bg-primary/20 transition-colors duration-700">
                        </div>
                        <div class="relative z-10">
                            <div
                                class="w-20 h-20 rounded-[2rem] bg-white shadow-xl shadow-primary/10 flex items-center justify-center text-5xl mb-12 transition-all duration-700 group-hover:scale-110 group-hover:rotate-6">
                                💰
                            </div>
                            <h4 class="text-3xl lg:text-4xl font-bold text-secondary mb-6 tracking-tight">Finanzas -
                                Banca</h4>
                            <p class="text-lg lg:text-xl text-secondary/60 leading-relaxed max-w-2xl font-medium mb-10">
                                <strong class="text-primary block mb-3 text-xl lg:text-2xl">Mitiga riesgos financieros
                                    críticos.</strong>
                                Análisis profundo de sociedades y relaciones para procesos de alta complejidad.
                            </p>
                        </div>
                        <span
                            class="relative z-10 text-sm font-black text-primary uppercase tracking-widest flex items-center group-hover:translate-x-2 transition-transform">
                            Ver solución completa
                            <svg class="ml-2 w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5"
                                    d="M14 5l7 7m0 0l-7 7m7-7H3" />
                            </svg>
                        </span>
                    </a>

                    <!-- Retail - Light Card (Span 4) -->
                    <a href="retail.html"
                        class="lg:col-span-4 bg-[#FFFBF0] rounded-[3rem] p-10 flex flex-col justify-between hover:shadow-xl transition-all duration-700 group border border-brand-yellow/20">
                        <div class="relative z-10 flex flex-col h-full items-center text-center justify-center">
                            <div
                                class="w-20 h-20 rounded-[2rem] bg-white shadow-lg flex items-center justify-center text-5xl mb-10 transition-transform duration-700 group-hover:scale-110">
                                🛒
                            </div>
                            <h4 class="text-3xl font-bold text-secondary mb-6">Retail</h4>
                            <p class="text-secondary/60 leading-relaxed font-medium mb-8">
                                <strong class="text-primary block mb-3 text-lg">Operaciones de alto volumen.</strong>
                                Detección masiva de conflictos de interés y riesgos corporativos.
                            </p>
                            <span
                                class="text-xs font-black text-primary uppercase tracking-widest flex items-center group-hover:translate-x-2 transition-transform">
                                Conocer más
                                <svg class="ml-2 w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5"
                                        d="M14 5l7 7m0 0l-7 7m7-7H3" />
                                </svg>
                            </span>
                        </div>
                    </a>

                    <!-- Salud - Green Card (Span 4) -->
                    <a href="salud.html"
                        class="lg:col-span-4 bg-[#F0FFF9] rounded-[3rem] p-10 flex flex-col justify-between hover:shadow-xl transition-all duration-500 group border border-brand-green/10">
                        <div>
                            <div
                                class="w-20 h-20 rounded-[2rem] bg-white shadow-md flex items-center justify-center text-4xl mb-8 group-hover:bg-brand-green group-hover:text-white transition-all duration-500">
                                🏥
                            </div>
                            <h4 class="text-3xl font-bold text-secondary mb-6">Salud</h4>
                            <p
                                class="text-lg text-secondary/60 leading-relaxed font-medium border-l-4 border-brand-green pl-6 mb-8">
                                Control normativo y verificación de prestadores institucionales.
                            </p>
                        </div>
                        <span
                            class="text-xs font-black text-brand-green uppercase tracking-widest flex items-center group-hover:translate-x-2 transition-transform">
                            Explorar
                            <svg class="ml-2 w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5"
                                    d="M14 5l7 7m0 0l-7 7m7-7H3" />
                            </svg>
                        </span>
                    </a>

                    <!-- Logística - Blue Card (Span 4) -->
                    <a href="logistica.html"
                        class="lg:col-span-4 bg-[#F0F7FF] rounded-[3rem] p-10 flex flex-col justify-between hover:shadow-xl transition-all duration-500 group border border-primary/10">
                        <div>
                            <div
                                class="w-20 h-20 rounded-[2rem] bg-white shadow-md flex items-center justify-center text-4xl mb-8 group-hover:bg-primary group-hover:text-white transition-all duration-500">
                                🚚
                            </div>
                            <h4 class="text-2xl font-bold text-secondary mb-6 tracking-tight">Logística - Transporte
                            </h4>
                            <p
                                class="text-lg text-secondary/60 leading-relaxed font-medium border-l-4 border-primary pl-6 mb-8">
                                Control de terceros y riesgos en la cadena de suministros.
                            </p>
                        </div>
                        <span
                            class="text-xs font-black text-primary uppercase tracking-widest flex items-center group-hover:translate-x-2 transition-transform">
                            Explorar
                            <svg class="ml-2 w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5"
                                    d="M14 5l7 7m0 0l-7 7m7-7H3" />
                            </svg>
                        </span>
                    </a>

                    <!-- RRHH - White Card (Span 4) -->
                    <a href="rrhh.html"
                        class="lg:col-span-4 bg-white rounded-[3rem] p-10 flex flex-col justify-between hover:shadow-xl transition-all duration-500 group border border-gray-100">
                        <div>
                            <div
                                class="w-20 h-20 rounded-[2rem] bg-gray-50 flex items-center justify-center text-4xl mb-8 group-hover:bg-secondary group-hover:text-white transition-all duration-500 text-3xl">
                                🧑‍💼
                            </div>
                            <h4 class="text-3xl font-bold text-secondary mb-6">RRHH</h4>
                            <p
                                class="text-lg text-secondary/60 leading-relaxed font-medium border-l-4 border-secondary/20 pl-6 mb-8">
                                Verificación de personas para contrataciones seguras.
                            </p>
                        </div>
                        <span
                            class="text-xs font-black text-secondary uppercase tracking-widest flex items-center group-hover:translate-x-2 transition-transform">
                            Explorar
                            <svg class="ml-2 w-4 h-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5"
                                    d="M14 5l7 7m0 0l-7 7m7-7H3" />
                            </svg>
                        </span>
                    </a>

                    <!-- Minería - Half-Width Light (Span 6) -->
                    <a href="mineria.html"
                        class="lg:col-span-6 bg-[#F1F4F9] rounded-[3rem] p-12 flex items-center justify-between hover:shadow-xl transition-all duration-700 group border border-primary/10 relative overflow-hidden">
                        <div class="flex items-center gap-10 relative z-10">
                            <div
                                class="w-24 h-24 rounded-[2.5rem] bg-white shadow-md flex items-center justify-center text-5xl shrink-0 group-hover:scale-110 transition-transform duration-700">
                                ⛏️
                            </div>
                            <div>
                                <h4 class="text-3xl font-bold text-secondary mb-4">Minería</h4>
                                <p class="text-xl text-secondary/60 leading-relaxed font-medium">
                                    Gestión de riesgos y proveedores estratégicos.
                                </p>
                            </div>
                        </div>
                        <svg class="w-8 h-8 text-secondary/20 group-hover:text-primary group-hover:translate-x-2 transition-all"
                            fill="none" viewBox="0 0 24 24" stroke="currentColor">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5"
                                d="M14 5l7 7m0 0l-7 7m7-7H3" />
                        </svg>
                    </a>

                    <!-- Construcción - Half-Width (Span 6) -->
                    <a href="construccion.html"
                        class="lg:col-span-6 bg-[#F8F9FA] rounded-[3rem] p-12 flex items-center justify-between shadow-sm hover:shadow-xl transition-all duration-700 group border border-gray-100">
                        <div class="flex items-center gap-10">
                            <div
                                class="w-24 h-24 rounded-[2.5rem] bg-white shadow-md flex items-center justify-center text-5xl shrink-0 group-hover:scale-110 transition-transform duration-700">
                                🏗️
                            </div>
                            <div>
                                <h4 class="text-3xl font-bold text-secondary mb-4">Construcción</h4>
                                <p class="text-xl text-secondary/60 leading-relaxed font-medium">
                                    Control de contratistas y cumplimiento en obra.
                                </p>
                            </div>
                        </div>
                        <svg class="w-8 h-8 text-secondary/20 group-hover:text-primary group-hover:translate-x-2 transition-all"
                            fill="none" viewBox="0 0 24 24" stroke="currentColor">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5"
                                d="M14 5l7 7m0 0l-7 7m7-7H3" />
                        </svg>
                    </a>

                    <!-- Agrícola - Half-Width Green (Span 6) -->
                    <a href="agricola.html"
                        class="lg:col-span-6 bg-[#F0FFF9] rounded-[3rem] p-12 flex items-center justify-between hover:shadow-xl transition-all duration-500 group border border-brand-green/20 relative overflow-hidden">
                        <div class="flex items-center gap-10 relative z-10">
                            <div
                                class="w-24 h-24 rounded-[2.5rem] bg-white shadow-lg flex items-center justify-center text-5xl shrink-0 group-hover:bg-brand-green group-hover:text-white transition-all duration-700">
                                🌱
                            </div>
                            <div>
                                <h4 class="text-3xl font-bold text-secondary mb-4">Agrícola</h4>
                                <p class="text-xl text-secondary/60 leading-relaxed font-medium">
                                    Trazabilidad en el agro y control de riesgos.
                                </p>
                            </div>
                        </div>
                        <svg class="w-8 h-8 text-brand-green/20 group-hover:text-brand-green group-hover:translate-x-2 transition-all"
                            fill="none" viewBox="0 0 24 24" stroke="currentColor">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5"
                                d="M14 5l7 7m0 0l-7 7m7-7H3" />
                        </svg>
                    </a>

                    <!-- Selección - Half-Width Purple (Span 6) -->
                    <a href="seleccion.html"
                        class="lg:col-span-6 bg-[#F8F5FF] rounded-[3rem] p-12 flex items-center justify-between hover:shadow-xl transition-all duration-500 group border border-[#8B5CF6]/10 relative overflow-hidden">
                        <div class="flex items-center gap-10 relative z-10">
                            <div
                                class="w-24 h-24 rounded-[2.5rem] bg-white shadow-lg flex items-center justify-center text-5xl shrink-0 group-hover:scale-110 transition-transform duration-700">
                                🎯
                            </div>
                            <div>
                                <h4 class="text-3xl font-bold text-secondary mb-4">Selección</h4>
                                <p class="text-xl text-secondary/60 leading-relaxed font-medium">
                                    Agiliza el reclutamiento de candidatos con background profiling.
                                </p>
                            </div>
                        </div>
                        <svg class="w-8 h-8 text-secondary/20 group-hover:text-[#8B5CF6] group-hover:translate-x-2 transition-all"
                            fill="none" viewBox="0 0 24 24" stroke="currentColor">
                            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5"
                                d="M14 5l7 7m0 0l-7 7m7-7H3" />
                        </svg>
                    </a>
                </div>
            </div>
        </section>

        <div class="h-1 bg-gray-100"></div>

        <!-- How teams use Chapi Section (Inspired by diio) -->
        <section id="equipos" class="py-32 bg-white overflow-hidden">
            <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
                <div class="text-center mb-20">
                    <h2 class="text-4xl lg:text-5xl font-black text-secondary tracking-tighter mb-6">
                        Así usan Chapi los equipos dentro de tu empresa
                    </h2>
                    <p class="text-xl text-secondary/60 max-w-3xl mx-auto font-medium">
                        Nos adaptamos a los distintos roles dentro de una organización. Cada área la utiliza para
                        responder preguntas distintas, pero todas con un mismo objetivo: tomar decisiones con más
                        contexto y
                        menos riesgo.
                    </p>
                </div>

                <div class="relative">
                    <!-- Advanced Bento Grid for 7 items -->
                    <div class="grid lg:grid-cols-12 gap-8 lg:gap-10">

                        <!-- RRHH - Large Feature Card (Span 8) -->
                        <div
                            class="lg:col-span-8 bg-gradient-to-br from-white to-[#F0F7FF] rounded-[3rem] p-10 lg:p-14 flex flex-col justify-between hover:shadow-2xl hover:shadow-primary/20 transition-all duration-700 group border border-primary/10 relative overflow-hidden">
                            <div
                                class="absolute -top-24 -right-24 w-64 h-64 bg-primary/10 rounded-full blur-3xl group-hover:bg-primary/20 transition-colors duration-700">
                            </div>
                            <div class="relative z-10 h-full flex flex-col justify-between">
                                <div>
                                    <div
                                        class="w-20 h-20 rounded-[2rem] bg-white shadow-xl shadow-primary/10 flex items-center justify-center text-4xl mb-12 transition-all duration-700 group-hover:scale-110 group-hover:rotate-6">
                                        💼
                                    </div>
                                    <h4 class="text-3xl lg:text-4xl font-bold text-secondary mb-6 tracking-tight">
                                        RRHH
                                    </h4>
                                    <p
                                        class="text-lg lg:text-xl text-secondary/60 leading-relaxed max-w-2xl font-medium mb-10">
                                        <strong class="text-primary block mb-3 text-xl lg:text-2xl">Contrata con
                                            información, no con
                                            supuestos.</strong>
                                        Evalúa personas, detecta conflictos de interés y respalda decisiones de
                                        contratación
                                        y post-ingreso con una trazabilidad completa.
                                    </p>
                                </div>
                            </div>
                        </div>

                        <!-- Finanzas - Compact Navy Card (Span 4) -->
                        <div
                            class="lg:col-span-4 bg-[#0D2A48] rounded-[3rem] p-10 flex flex-col justify-between hover:shadow-2xl hover:shadow-secondary/30 transition-all duration-700 group relative overflow-hidden">
                            <div
                                class="absolute inset-0 bg-gradient-to-tr from-primary/20 to-transparent opacity-0 group-hover:opacity-100 transition-opacity duration-700">
                            </div>
                            <div class="relative z-10 flex flex-col h-full items-center text-center justify-center">
                                <div
                                    class="w-20 h-20 rounded-[2rem] bg-white/10 backdrop-blur-xl border border-white/20 flex items-center justify-center text-5xl mb-10 transition-transform duration-700 group-hover:scale-125">
                                    💰
                                </div>
                                <h4 class="text-3xl font-bold text-white mb-6">Finanzas</h4>
                                <p class="text-white/60 leading-relaxed font-medium">
                                    <strong class="text-primary block mb-3">Reduce el riesgo crítico.</strong>
                                    Analiza relaciones y exposiciones antes de aprobar pagos u operaciones clave.
                                </p>
                            </div>
                        </div>

                        <!-- Compliance - Balanced Green Card (Row 2, Span 4) -->
                        <div
                            class="lg:col-span-4 bg-[#F0FFF9] rounded-[3rem] p-10 flex flex-col hover:shadow-xl transition-all duration-500 group border border-brand-green/10">
                            <div
                                class="w-20 h-20 rounded-[2rem] bg-white shadow-md flex items-center justify-center text-4xl mb-8 group-hover:bg-brand-green group-hover:text-white transition-all duration-500">
                                🛡️
                            </div>
                            <h4 class="text-3xl font-bold text-secondary mb-6">Compliance</h4>
                            <p
                                class="text-lg text-secondary/60 leading-relaxed font-medium border-l-4 border-brand-green pl-6">
                                Monitorea riesgos de forma continua. Centraliza alertas y señales de incumplimiento en
                                tiempo real.
                            </p>
                        </div>

                        <!-- Abastecimiento - Balanced Blue Card (Row 2, Span 4) -->
                        <div
                            class="lg:col-span-4 bg-[#F0F7FF] rounded-[3rem] p-10 flex flex-col hover:shadow-xl transition-all duration-500 group border border-primary/10">
                            <div
                                class="w-20 h-20 rounded-[2rem] bg-white shadow-md flex items-center justify-center text-4xl mb-8 group-hover:bg-primary group-hover:text-white transition-all duration-500">
                                📦
                            </div>
                            <h4 class="text-3xl font-bold text-secondary mb-6">Abastecimiento</h4>
                            <p
                                class="text-lg text-secondary/60 leading-relaxed font-medium border-l-4 border-primary pl-6">
                                Decide con quién contratar. Evalúa proveedores e identifica relaciones cruzadas de
                                riesgo.
                            </p>
                        </div>

                        <!-- Gestión de Proveedores - Balanced Navy Card (Row 2, Span 4) -->
                        <div
                            class="lg:col-span-4 bg-gray-50 rounded-[3rem] p-10 flex flex-col hover:shadow-xl transition-all duration-500 group border border-secondary/5">
                            <div
                                class="w-20 h-20 rounded-[2rem] bg-white shadow-md flex items-center justify-center text-4xl mb-8 group-hover:bg-secondary group-hover:text-white transition-all duration-500">
                                🤝
                            </div>
                            <h4 class="text-3xl font-bold text-secondary mb-6">Gestión de Proveedores</h4>
                            <p
                                class="text-lg text-secondary/60 leading-relaxed font-medium border-l-4 border-secondary/20 pl-6">
                                Controla el riesgo durante toda la relación. Recibe alertas dinámicas ante cambios de
                                impacto.
                            </p>
                        </div>

                        <!-- Legal - Broad White Card (Row 3, Span 6) -->
                        <div
                            class="lg:col-span-6 bg-white rounded-[3rem] p-12 flex items-center shadow-lg shadow-gray-100 hover:shadow-2xl transition-all duration-700 group border border-gray-100">
                            <div class="flex flex-col sm:flex-row items-center gap-10">
                                <div
                                    class="w-20 h-20 rounded-[2rem] bg-primary/5 flex items-center justify-center text-5xl shrink-0 group-hover:bg-primary group-hover:text-white transition-all duration-700 group-hover:rotate-6">
                                    ⚖️
                                </div>
                                <div>
                                    <h4 class="text-3xl font-bold text-secondary mb-4">Legal</h4>
                                    <p class="text-xl text-secondary/60 leading-relaxed font-medium">
                                        Respalda decisiones sensibles con evidencia trazable para fiscalizaciones y
                                        análisis
                                        de riesgo legal de alto nivel.
                                    </p>
                                </div>
                            </div>
                        </div>

                        <!-- Gerencia - Broad Navy Card (Row 3, Span 6) -->
                        <div
                            class="lg:col-span-6 bg-gradient-to-br from-[#0D2A48] to-[#153a61] rounded-[3rem] p-12 flex items-center hover:shadow-2xl hover:shadow-secondary/40 transition-all duration-700 group relative overflow-hidden">
                            <div
                                class="absolute inset-0 bg-[url('https://www.transparenttextures.com/patterns/carbon-fibre.png')] opacity-5">
                            </div>
                            <div class="flex flex-col sm:flex-row items-center gap-10 relative z-10">
                                <div
                                    class="w-20 h-20 rounded-[2rem] bg-white/10 backdrop-blur-xl border border-white/20 flex items-center justify-center text-5xl shrink-0 group-hover:scale-110 transition-transform duration-700">
                                    🧠
                                </div>
                                <div>
                                    <h4 class="text-3xl font-bold text-white mb-4">Dirección - Gerencia</h4>
                                    <p class="text-xl text-white/60 leading-relaxed font-medium">
                                        Visibilidad total para decisiones estratégicas. Obtén una visión transversal de
                                        riesgos a nivel organizacional de forma consolidada.
                                    </p>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </section>

        <div class="h-1 bg-gray-100"></div>

        <!-- Integraciones técnicas – API first -->
        <section id="api-tecnica" class="py-32 bg-secondary text-white relative overflow-hidden">
            <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10">
                <div class="grid lg:grid-cols-2 gap-16 items-center">
                    <div class="space-y-8">
                        <div>
                            <h2 class="text-primary font-bold tracking-wider uppercase text-xs mb-4">Para equipos
                                técnicos
                            </h2>
                            <h3 class="text-3xl lg:text-4xl font-black text-white mb-6 leading-tight">API-first, lista
                                para
                                integrarse a tu ecosistema</h3>
                        </div>
                        <ul class="space-y-6">
                            <li class="flex items-start">
                                <span
                                    class="bg-primary/20 text-primary w-6 h-6 rounded-lg flex items-center justify-center mr-4 shrink-0 font-bold text-[10px] mt-1">01</span>
                                <p class="text-white/70">API Robusta para conectar Chapi con tus sistemas internos y
                                    externos.</p>
                            </li>
                            <li class="flex items-start">
                                <span
                                    class="bg-primary/20 text-primary w-6 h-6 rounded-lg flex items-center justify-center mr-4 shrink-0 font-bold text-[10px] mt-1">02</span>
                                <p class="text-white/70">Uptime del 99.9% garantizado para operaciones críticas.</p>
                            </li>
                        </ul>
                    </div>
                    <!-- Visual API Code Mockup -->
                    <div
                        class="bg-[#050B1A] rounded-2xl border border-white/10 shadow-2xl overflow-hidden font-mono text-xs lg:text-sm">
                        <div class="bg-white/5 px-4 py-3 border-b border-white/5 flex items-center justify-between">
                            <div class="flex space-x-2">
                                <div class="w-3 h-3 rounded-full bg-red-500/50"></div>
                                <div class="w-3 h-3 rounded-full bg-yellow-500/50"></div>
                                <div class="w-3 h-3 rounded-full bg-green-500/50"></div>
                            </div>
                            <span class="text-white/20 text-[9px] uppercase font-bold tracking-widest">verify.sh</span>
                        </div>
                        <div class="p-6 space-y-4">
                            <p class="text-primary">curl <span class="text-white">-X POST</span>
                                https://app.chapi.cl/api/check</p>
                            <p class="text-white/60">-H <span class="text-primary">"Authorization: Token
                                    &lt;token&gt;"</span> <br> -d
                                '{"rut": "12.345.678-9"}'</p>
                        </div>
                    </div>
                </div>
            </div>
        </section>



        <!-- Testimonios Section -->
        <section id="testimonios" class="py-24 bg-gray-50 overflow-hidden">
            <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
                <div class="text-center mb-16">
                    <h2 class="text-primary font-bold tracking-wider uppercase text-sm mb-4">Testimonios</h2>
                    <h3 class="text-4xl lg:text-5xl font-black text-secondary tracking-tighter">Lo que dicen nuestros
                        clientes</h3>
                </div>
                <div class="grid md:grid-cols-2 gap-8">
                    <!-- Testimonio 1: Steve Perez -->
                    <div
                        class="bg-white p-10 rounded-[2.5rem] shadow-sm border border-secondary/5 relative flex flex-col justify-between group hover:shadow-xl transition-all duration-500">
                        <div>
                            <div class="mb-6">
                                <span class="text-primary font-black text-xl leading-tight block mb-4">“Reducimos
                                    errores y
                                    aceleramos contrataciones masivas.”</span>
                            </div>
                            <p class="text-secondary/50 text-sm leading-relaxed mb-8 font-medium">
                                Desde que empezamos a usar Chapi, nuestro proceso de reclutamiento ha cambiado para
                                mejor.
                                La plataforma es muy fácil de usar, súper intuitiva. Valoramos que podemos revisar el
                                historial de las personas directamente desde cualquier página web donde aparezca el rut,
                                lo
                                que nos ahorra muchísimo tiempo. Además, la opción de carga masiva de información nos ha
                                permitido trabajar con grandes volúmenes de datos de manera rápida y ordenada.
                            </p>
                        </div>
                        <div class="flex items-center pt-6 border-t border-gray-50">
                            <div
                                class="w-14 h-14 rounded-full bg-secondary/5 border border-secondary/10 flex items-center justify-center mr-4 shrink-0 overflow-hidden group-hover:bg-white group-hover:border-primary/20 transition-all">
                                <img src="assets/logo-policomp.png" alt="Policomp Logo"
                                    class="w-full h-full object-cover grayscale group-hover:grayscale-0 transition-all">
                            </div>
                            <div>
                                <h4 class="font-bold text-secondary">Steve Perez</h4>
                                <p class="text-xs text-secondary/40 font-bold uppercase tracking-widest">Policomp</p>
                            </div>
                        </div>
                    </div>

                    <!-- Testimonio 2: Patricio Silva -->
                    <div
                        class="bg-white p-10 rounded-[2.5rem] shadow-sm border border-secondary/5 relative flex flex-col justify-between group hover:shadow-xl transition-all duration-500">
                        <div>
                            <div class="mb-6">
                                <span class="text-primary font-black text-xl leading-tight block mb-4">“Búsqueda de
                                    antecedentes eficiente para la toma de decisiones.”</span>
                            </div>
                            <p class="text-secondary/50 text-sm leading-relaxed mb-8 font-medium">
                                La incorporación de Chapi en los procesos internos de RRHH ha significado un avance
                                notable
                                en eficiencia y productividad. La adición de plug-in en navegadores ha eficientado la
                                búsqueda de antecedentes significativos para la toma de decisiones, mejorando la gestión
                                de
                                información y fortaleciendo la comunicación entre áreas.
                            </p>
                        </div>
                        <div class="flex items-center pt-6 border-t border-gray-50">
                            <div
                                class="w-14 h-14 rounded-full bg-secondary/5 border border-secondary/10 flex items-center justify-center mr-4 shrink-0 overflow-hidden group-hover:bg-white group-hover:border-primary/20 transition-all">
                                <img src="assets/logo-sercoing.png" alt="SERCOING Logo"
                                    class="w-full h-full object-cover grayscale group-hover:grayscale-0 transition-all">
                            </div>
                            <div>
                                <h4 class="font-bold text-secondary">Patricio Silva</h4>
                                <p class="text-xs text-secondary/40 font-bold uppercase tracking-widest">SERCOING</p>
                            </div>
                        </div>
                    </div>

                    <!-- Testimonio 3: Margarita Cisterna -->
                    <div
                        class="bg-white p-10 rounded-[2.5rem] shadow-sm border border-secondary/5 relative flex flex-col justify-between group hover:shadow-xl transition-all duration-500">
                        <div>
                            <div class="mb-6">
                                <span class="text-primary font-black text-xl leading-tight block mb-4">“Atención cercana
                                    y
                                    una herramienta que mejora constantemente.”</span>
                            </div>
                            <p class="text-secondary/50 text-sm leading-relaxed mb-8 font-medium">
                                Como empresa estamos muy contentos de haber tomado la decisión de trabajar con CHAPI e
                                incorporarla en nuestros procesos. Es una plataforma que aporta un gran valor a nuestro
                                trabajo, con un servicio integral, atención cercana y respuestas rápidas.
                            </p>
                        </div>
                        <div class="flex items-center pt-6 border-t border-gray-50">
                            <div
                                class="w-14 h-14 rounded-full bg-secondary/5 border border-secondary/10 flex items-center justify-center mr-4 shrink-0 overflow-hidden group-hover:bg-white group-hover:border-primary/20 transition-all">
                                <img src="assets/logo-maclean.png" alt="Grupo Maclean Logo"
                                    class="w-full h-full object-cover grayscale group-hover:grayscale-0 transition-all">
                            </div>
                            <div>
                                <h4 class="font-bold text-secondary">Margarita Cisterna</h4>
                                <p class="text-xs text-secondary/40 font-bold uppercase tracking-widest">Grupo Maclean
                                </p>
                            </div>
                        </div>
                    </div>

                    <!-- Testimonio 4: Paola Ortiz -->
                    <div
                        class="bg-white p-10 rounded-[2.5rem] shadow-sm border border-secondary/5 relative flex flex-col justify-between group hover:shadow-xl transition-all duration-500">
                        <div>
                            <div class="mb-6">
                                <span class="text-primary font-black text-xl leading-tight block mb-4">“Procesos de
                                    selección más ágiles, seguros y transparentes.”</span>
                            </div>
                            <p class="text-secondary/50 text-sm leading-relaxed mb-8 font-medium">
                                En Relix hemos dado un paso clave en la modernización de nuestro trabajo al incorporar a
                                Chapi, una plataforma basada en inteligencia artificial que está transformando de manera
                                concreta nuestros procesos de selección. Hemos logrado optimizar la revisión de los
                                perfiles
                                de los candidatos.
                            </p>
                        </div>
                        <div class="flex items-center pt-6 border-t border-gray-50">
                            <div
                                class="w-14 h-14 rounded-full bg-secondary/5 border border-secondary/10 flex items-center justify-center mr-4 shrink-0 overflow-hidden group-hover:bg-white group-hover:border-primary/20 transition-all">
                                <img src="assets/logo-relix_water.jpg" alt="Relix Water Logo"
                                    class="w-full h-full object-cover grayscale group-hover:grayscale-0 transition-all">
                            </div>
                            <div>
                                <h4 class="font-bold text-secondary">Paola Ortiz</h4>
                                <p class="text-xs text-secondary/40 font-bold uppercase tracking-widest">Relix Water</p>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>

        <section id="blog" class="py-20 bg-white">
            <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
                <div class="flex flex-col md:flex-row justify-between items-end mb-16">
                    <div class="max-w-2xl">
                        <h2 class="text-primary font-bold tracking-wider uppercase text-xs mb-4">Blog y Noticias</h2>
                        <h3 class="text-4xl lg:text-5xl font-black text-secondary tracking-tighter leading-none mb-6">
                            Perspectivas de Compliance</h3>
                    </div>

                </div>
                <div class="grid md:grid-cols-3 gap-6">
                    <!-- Blog Post 1: Diario Financiero -->
                    <a href="https://www.df.cl/noticias/site/docs/20250901/20250901211101/suplemento_20250902_b.pdf"
                        target="_blank" rel="noopener noreferrer" class="group block cursor-pointer">
                        <div class="rounded-2xl overflow-hidden mb-4 aspect-[16/9] bg-gray-100 relative">
                            <img src="https://images.unsplash.com/photo-1504711434969-e33886168f5c?auto=format&fit=crop&w=800&q=80"
                                alt="Artículo de prensa sobre Chapi en Diario Financiero"
                                class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500">
                        </div>
                        <div
                            class="flex items-center text-[10px] text-primary font-bold uppercase tracking-widest mb-2">
                            <span>Prensa</span>
                            <span class="mx-2 text-gray-300">•</span>
                            <span class="text-secondary/40">Sept 2025</span>
                        </div>
                        <h4
                            class="text-lg font-bold text-secondary group-hover:text-primary transition-colors mb-2 line-clamp-2 leading-tight">
                            Fundadores de Rex+ y Talana crean plataforma de Compliance con IA</h4>
                        <p class="text-secondary/50 text-xs line-clamp-2">Monitoreo de personas naturales y jurídicas
                            para
                            reducir riesgos KYC.</p>
                    </a>
                    <!-- Blog Post 2: Conflicto de Interés -->
                    <a href="blog-conflicto-de-interes.html" class="group block cursor-pointer">
                        <div class="rounded-2xl overflow-hidden mb-4 aspect-[16/9] bg-gray-100 relative">
                            <img src="https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=800&q=80"
                                alt="Guía sobre conflictos de interés empresariales"
                                class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500">
                        </div>
                        <div
                            class="flex items-center text-[10px] text-primary font-bold uppercase tracking-widest mb-2">
                            <span>Guía</span>
                            <span class="mx-2 text-gray-300">•</span>
                            <span class="text-secondary/40">Ética</span>
                        </div>
                        <h4
                            class="text-lg font-bold text-secondary group-hover:text-primary transition-colors mb-2 line-clamp-2 leading-tight">
                            Conflicto de Interés: ¿Qué es y cómo afecta a tu empresa?</h4>
                        <p class="text-secondary/50 text-xs line-clamp-2">Gestión estratégica para cumplir con la Ley
                            20.393.</p>
                    </a>
                    <!-- Blog Post 3: Alianza Buk & Chapi -->
                    <a href="https://www.buk.cl/blog/alianza-buk-chapi-conflictos-de-interes" target="_blank"
                        rel="noopener noreferrer" class="group block cursor-pointer">
                        <div class="rounded-2xl overflow-hidden mb-4 aspect-[16/9] bg-gray-100 relative">
                            <img src="https://images.unsplash.com/photo-1521791136064-7986c2920216?auto=format&fit=crop&w=800&q=80"
                                alt="Alianza estratégica entre Buk y Chapi para detección de conflictos"
                                class="w-full h-full object-cover group-hover:scale-105 transition-transform duration-500">
                        </div>
                        <div
                            class="flex items-center text-[10px] text-primary font-bold uppercase tracking-widest mb-2">
                            <span>Alianza</span>
                            <span class="mx-2 text-gray-300">•</span>
                            <span class="text-secondary/40">HR Tech</span>
                        </div>
                        <h4
                            class="text-lg font-bold text-secondary group-hover:text-primary transition-colors mb-2 line-clamp-2 leading-tight">
                            Alianza Buk & Chapi: Detectando Conflictos de Interés en HR</h4>
                        <p class="text-secondary/50 text-xs line-clamp-2">Automatización de riesgos en el ecosistema de
                            personas.</p>
                    </a>
                </div>
            </div>
        </section>

        <!-- CTA / Contact Section -->
        <section id="contacto" class="py-32 bg-secondary text-white relative overflow-hidden" itemscope
            itemtype="https://schema.org/ContactPage">
            <!-- Decoration -->
            <div class="absolute inset-0 z-0">
                <div
                    class="absolute top-0 right-0 w-[50%] h-[100%] bg-primary/10 blur-[150px] rounded-full translate-x-1/2 -translate-y-1/2">
                </div>
                <div
                    class="absolute bottom-0 left-0 w-[50%] h-[100%] bg-brand-green/5 blur-[150px] rounded-full -translate-x-1/2 translate-y-1/2">
                </div>
            </div>

            <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10">
                <div class="grid lg:grid-cols-2 gap-20 items-center">
                    <div>
                        <h2 class="text-primary font-black tracking-widest uppercase text-xs mb-6">Contáctanos</h2>
                        <h3 class="text-5xl lg:text-7xl font-black text-white mb-8 tracking-tighter leading-[0.9]">
                            ¿Listo para transformar tu <span class="text-primary">compliance?</span>
                        </h3>
                        <p class="text-xl text-white/60 mb-12 max-w-xl font-medium">Agenda una demostración
                            personalizada y
                            descubre cómo Chapi puede proteger a tu empresa del riesgo reputacional con tecnología de
                            vanguardia.</p>

                        <div class="grid sm:grid-cols-2 gap-8">
                            <div class="flex items-start space-x-4" itemprop="email" itemscope
                                itemtype="https://schema.org/ContactPoint">
                                <div
                                    class="w-10 h-10 rounded-xl bg-white/5 border border-white/10 flex items-center justify-center shrink-0">
                                    <svg class="w-5 h-5 text-primary" fill="none" viewBox="0 0 24 24"
                                        stroke="currentColor">
                                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
                                            d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" />
                                    </svg>
                                </div>
                                <div>
                                    <h4 class="text-white font-bold text-sm mb-1">Email</h4>
                                    <p class="text-white/40 text-sm" itemprop="email">contacto@chapi.cl</p>
                                </div>
                            </div>
                            <div class="flex items-start space-x-4" itemprop="address" itemscope
                                itemtype="https://schema.org/PostalAddress">
                                <div
                                    class="w-10 h-10 rounded-xl bg-white/5 border border-white/10 flex items-center justify-center shrink-0">
                                    <svg class="w-5 h-5 text-primary" fill="none" viewBox="0 0 24 24"
                                        stroke="currentColor">
                                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
                                            d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" />
                                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
                                            d="M15 11a3 3 0 11-6 0 3 3 0 016 0z" />
                                    </svg>
                                </div>
                                <div>
                                    <h4 class="text-white font-bold text-sm mb-1">Ubicación</h4>
                                    <p class="text-white/40 text-sm" itemprop="addressLocality">Los Militares 5001, Piso
                                        4,
                                        Las Condes</p>
                                    <meta itemprop="addressCountry" content="CL">
                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="relative">
                        <div class="absolute -inset-4 bg-primary/20 blur-3xl opacity-20"></div>
                        <div class="relative bg-white rounded-[3rem] p-8 lg:p-12 shadow-2xl">
                            <form id="contactForm" class="space-y-6">
                                <div class="grid md:grid-cols-2 gap-6">
                                    <div class="space-y-2">
                                        <label for="contact-nombre"
                                            class="text-[10px] font-black uppercase tracking-widest text-secondary/40 ml-1">Nombre
                                            Completo</label>
                                        <input type="text" id="contact-nombre" name="nombre"
                                            placeholder="Ej: Juan Pérez" required
                                            class="w-full px-6 py-4 rounded-2xl bg-gray-50 text-secondary border-transparent focus:bg-white focus:border-primary focus:ring-4 focus:ring-primary/10 transition-all font-medium">
                                    </div>
                                    <div class="space-y-2">
                                        <label for="contact-email"
                                            class="text-[10px] font-black uppercase tracking-widest text-secondary/40 ml-1">Email
                                            Corporativo</label>
                                        <input type="email" id="contact-email" name="email"
                                            placeholder="juan@empresa.com" required
                                            class="w-full px-6 py-4 rounded-2xl bg-gray-50 text-secondary border-transparent focus:bg-white focus:border-primary focus:ring-4 focus:ring-primary/10 transition-all font-medium">
                                    </div>
                                </div>
                                <div class="space-y-2">
                                    <label for="contact-telefono"
                                        class="text-[10px] font-black uppercase tracking-widest text-secondary/40 ml-1">Teléfono</label>
                                    <input type="tel" id="contact-telefono" name="telefono"
                                        placeholder="+56 9 1234 5678" required
                                        class="w-full px-6 py-4 rounded-2xl bg-gray-50 text-secondary border-transparent focus:bg-white focus:border-primary focus:ring-4 focus:ring-primary/10 transition-all font-medium">
                                </div>
                                <div class="space-y-2">
                                    <label for="contact-empresa"
                                        class="text-[10px] font-black uppercase tracking-widest text-secondary/40 ml-1">Empresa</label>
                                    <input type="text" id="contact-empresa" name="empresa" placeholder="Tu Empresa S.A."
                                        required
                                        class="w-full px-6 py-4 rounded-2xl bg-gray-50 text-secondary border-transparent focus:bg-white focus:border-primary focus:ring-4 focus:ring-primary/10 transition-all font-medium">
                                </div>
                                <div class="space-y-2">
                                    <label for="contact-mensaje"
                                        class="text-[10px] font-black uppercase tracking-widest text-secondary/40 ml-1">Mensaje
                                        (Opcional)</label>
                                    <textarea rows="3" id="contact-mensaje" name="mensaje"
                                        placeholder="¿En qué podemos ayudarte?"
                                        class="w-full px-6 py-4 rounded-2xl bg-gray-50 text-secondary border-transparent focus:bg-white focus:border-primary focus:ring-4 focus:ring-primary/10 transition-all font-medium resize-none"></textarea>
                                </div>
                                <button type="submit"
                                    class="w-full bg-primary text-white py-6 rounded-[2rem] font-black text-xl hover:shadow-2xl hover:shadow-primary/40 transition-all transform hover:-translate-y-1 active:scale-[0.98] mt-4 uppercase tracking-tighter">
                                    Agendar mi Demo Ahora
                                </button>
                            </form>

                            <!-- Success Message -->
                            <div id="successMessage" role="alert"
                                class="hidden mt-8 bg-gradient-to-r from-green-50 to-emerald-50 border-2 border-green-500 rounded-3xl p-8 transform transition-all relative">
                                <button type="button" id="closeSuccessMessage" aria-label="Cerrar mensaje"
                                    class="absolute top-4 right-4 text-green-600 hover:text-green-800 transition-colors p-1">
                                    <svg class="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
                                            d="M6 18L18 6M6 6l12 12"></path>
                                    </svg>
                                </button>
                                <div class="flex items-start space-x-4">
                                    <div class="flex-shrink-0">
                                        <div
                                            class="w-12 h-12 bg-green-500 rounded-2xl flex items-center justify-center">
                                            <svg class="w-6 h-6 text-white" fill="none" viewBox="0 0 24 24"
                                                stroke="currentColor">
                                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="3"
                                                    d="M5 13l4 4L19 7"></path>
                                            </svg>
                                        </div>
                                    </div>
                                    <div class="flex-1">
                                        <h3 class="text-xl font-black text-green-900 mb-2">¡Mensaje Enviado con Éxito!
                                        </h3>
                                        <p class="text-green-700 font-medium">Gracias por tu interés. Nos pondremos en
                                            contacto contigo pronto para agendar tu demo.</p>
                                    </div>
                                </div>
                            </div>

                            <!-- Error Message -->
                            <div id="errorMessage" role="alert"
                                class="hidden mt-8 bg-gradient-to-r from-red-50 to-rose-50 border-2 border-red-500 rounded-3xl p-8 transform transition-all relative">
                                <button type="button" id="closeErrorMessage" aria-label="Cerrar mensaje"
                                    class="absolute top-4 right-4 text-red-600 hover:text-red-800 transition-colors p-1">
                                    <svg class="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                                        <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
                                            d="M6 18L18 6M6 6l12 12"></path>
                                    </svg>
                                </button>
                                <div class="flex items-start space-x-4">
                                    <div class="flex-shrink-0">
                                        <div class="w-12 h-12 bg-red-500 rounded-2xl flex items-center justify-center">
                                            <svg class="w-6 h-6 text-white" fill="none" viewBox="0 0 24 24"
                                                stroke="currentColor">
                                                <path stroke-linecap="round" stroke-linejoin="round" stroke-width="3"
                                                    d="M6 18L18 6M6 6l12 12"></path>
                                            </svg>
                                        </div>
                                    </div>
                                    <div class="flex-1">
                                        <h3 class="text-xl font-black text-red-900 mb-2">Error al enviar</h3>
                                        <p class="text-red-700 font-medium">Hubo un problema al enviar tu mensaje. Por
                                            favor, intenta nuevamente.</p>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
    </main>

    <!-- Newsletter Section -->
    <section id="formulario" class="py-24 bg-gray-50 relative overflow-hidden">
        <!-- Decoration -->
        <div class="absolute top-0 right-0 -mr-24 -mt-24 w-96 h-96 rounded-full bg-primary/5 blur-3xl"></div>
        <div class="absolute bottom-0 left-0 -ml-24 -mb-24 w-64 h-64 rounded-full bg-brand-green/5 blur-3xl"></div>

        <div class="max-w-4xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10">
            <div class="bg-white rounded-[3rem] p-8 lg:p-12 shadow-xl shadow-secondary/5 text-center relative border border-gray-100">
                <h3 class="text-3xl lg:text-4xl font-black text-secondary mb-4 tracking-tight">Conoce nuestras novedades</h3>
                <p class="text-secondary/60 font-medium mb-8 max-w-2xl mx-auto text-lg">Únete a nuestra comunidad y mantente al día con las últimas actualizaciones de Chapi.</p>
                
                <form id="newsletterForm" action="https://form-suscripcion-newsletter-web-643931406092.europe-west1.run.app" method="POST" class="w-full max-w-xl mx-auto">
                    <div class="flex flex-col sm:flex-row gap-4 mb-6">
                        <div class="flex-grow text-left">
                            <input type="email" id="newsletter-email" name="email" placeholder="Ingresa tu correo" required
                                class="w-full px-6 py-4 rounded-2xl bg-gray-50 text-secondary border border-transparent focus:bg-white focus:border-primary focus:ring-4 focus:ring-primary/10 transition-all font-medium">
                        </div>

                        <button type="submit"
                            class="bg-primary text-white px-10 py-4 rounded-2xl font-black text-lg hover:shadow-lg hover:shadow-primary/40 transition-all transform hover:-translate-y-1 active:scale-[0.98] whitespace-nowrap">
                            Suscribirme
                        </button>
                    </div>

                    <p id="newsletter-feedback" class="text-sm font-medium mb-4 hidden" role="status" aria-live="polite"></p>

                    <p class="text-xs text-secondary/50 font-medium">
                        Al enviar mi correo, acepto recibir correos electrónicos con información y novedades de Chapi y sus servicios.
                    </p>
                </form>
                <script>
                (function () {
                    var form = document.getElementById('newsletterForm');
                    if (!form) return;
                    var feedback = document.getElementById('newsletter-feedback');
                    form.addEventListener('submit', function (e) {
                        e.preventDefault();
                        var emailInput = document.getElementById('newsletter-email');
                        var email = (emailInput && emailInput.value || '').trim();
                        if (!email) return;
                        var submitBtn = form.querySelector('button[type="submit"]');
                        var originalText = submitBtn ? submitBtn.textContent : '';
                        if (submitBtn) { submitBtn.disabled = true; submitBtn.textContent = 'Enviando...'; }
                        if (feedback) { feedback.classList.add('hidden'); feedback.textContent = ''; }
                        fetch(form.action, {
                            method: 'POST',
                            headers: { 'Content-Type': 'application/json', 'Accept': 'application/json' },
                            body: JSON.stringify({ email: email })
                        }).then(function (res) {
                            if (!res.ok) throw new Error('HTTP ' + res.status);
                            form.reset();
                            if (feedback) {
                                feedback.textContent = '¡Gracias! Te suscribiste correctamente.';
                                feedback.className = 'text-sm font-medium mb-4 text-green-600';
                            }
                        }).catch(function () {
                            if (feedback) {
                                feedback.textContent = 'No pudimos completar la suscripción. Intenta nuevamente más tarde.';
                                feedback.className = 'text-sm font-medium mb-4 text-red-600';
                            }
                        }).finally(function () {
                            if (submitBtn) { submitBtn.disabled = false; submitBtn.textContent = originalText; }
                        });
                    });
                })();
                </script>
            </div>
        </div>
    </section>

    <!-- Footer Section -->
    <footer class="bg-white pt-32 pb-12 relative overflow-hidden" itemscope itemtype="https://schema.org/WPFooter">
        <div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 relative z-10">
            <div class="grid lg:grid-cols-12 gap-16 mb-24">
                <!-- Branding -->
                <div class="lg:col-span-4 space-y-8">
                    <img src="assets/logo-full.png" alt="Chapi Logo" class="h-10 w-auto">
                    <p class="text-secondary/50 text-lg leading-relaxed font-medium" itemprop="description">
                        Potenciando
                        el compliance
                        corporativo con inteligencia artificial para un ecosistema empresarial más íntegro y seguro.
                    </p>
                    <div class="flex space-x-4">
                        <a href="https://www.linkedin.com/company/chapi-cl/?viewAsMember=true"
                            class="w-12 h-12 rounded-2xl bg-secondary/5 flex items-center justify-center hover:bg-primary hover:text-white transition-all group">
                            <svg class="w-5 h-5" fill="currentColor" viewBox="0 0 24 24">
                                <path
                                    d="M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z" />
                            </svg>
                        </a>
                    </div>
                </div>

                <!-- Nav Links -->
                <div class="lg:col-span-2 text-left">
                    <h4 class="text-secondary font-black uppercase tracking-widest text-[10px] leading-normal mb-8">Producto
                    </h4>
                    <ul class="space-y-4">
                        <li><a href="#funcionalidades"
                                class="text-secondary/60 hover:text-primary transition-colors font-bold text-sm">Funcionalidades</a>
                        </li>
                        <li><a href="#api-tecnica"
                                class="text-secondary/60 hover:text-primary transition-colors font-bold text-sm">Integración
                                API</a></li>
                        <li><a href="marketplace.html"
                                class="text-secondary/60 hover:text-primary transition-colors font-bold text-sm">Marketplace</a>
                        </li>
                        <li><a href="#blog"
                                class="text-secondary/60 hover:text-primary transition-colors font-bold text-sm">Noticias</a>
                        </li>
                    </ul>
                </div>

                <div class="lg:col-span-2 text-left">
                    <h4 class="text-secondary font-black uppercase tracking-widest text-[10px] leading-normal mb-8">Compañía
                    </h4>
                    <ul class="space-y-4">
                        <li><a href="#"
                                class="text-secondary/60 hover:text-primary transition-colors font-bold text-sm">Sobre
                                Nosotros</a></li>
                        <li><a href="#industrias"
                                class="text-secondary/60 hover:text-primary transition-colors font-bold text-sm">Industrias</a>
                        </li>

                        <li><a href="#contacto"
                                class="text-secondary/60 hover:text-primary transition-colors font-bold text-sm">Contacto</a>
                        </li>
                    </ul>
                </div>

                <!-- Contact Info -->
                <div class="lg:col-span-4 space-y-8 text-left">
                    <h4 class="text-secondary font-black uppercase tracking-widest text-[10px] leading-normal mb-8">Oficina
                        Central
                    </h4>
                    <div class="space-y-6">
                        <div class="flex items-start space-x-4">
                            <div class="w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center shrink-0">
                                <svg class="w-5 h-5 text-primary" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
                                        d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" />
                                </svg>
                            </div>
                            <p class="text-secondary/60 font-medium">Los Militares 5001, Piso 4.<br>Las Condes,
                                Santiago, Chile.</p>
                        </div>
                        <div class="flex items-start space-x-4">
                            <div class="w-10 h-10 rounded-xl bg-primary/10 flex items-center justify-center shrink-0">
                                <svg class="w-5 h-5 text-primary" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
                                        d="M3 8l7.89 5.26a2 2 0 002.22 0L21 8M5 19h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" />
                                </svg>
                            </div>
                            <a href="mailto:contacto@chapi.cl"
                                class="text-secondary/60 hover:text-primary transition-colors font-bold">contacto@chapi.cl</a>
                        </div>
                    </div>
                </div>
            </div>

            <div
                class="pt-12 border-t border-secondary/5 flex flex-col md:flex-row justify-between items-center space-y-4 md:space-y-0 text-center md:text-left">
                <p class="text-secondary/40 text-xs font-bold uppercase tracking-widest">© 2026 CHAPI.CL - Todos los
                    derechos reservados. Una empresa <span class="text-secondary/80">TSB</span>.</p>
                <div class="flex space-x-8">
                    <a href="terminos.html"
                        class="text-secondary/40 hover:text-secondary text-xs font-bold uppercase tracking-widest transition-colors">Términos</a>
                    <a href="privacidad.html"
                        class="text-secondary/40 hover:text-secondary text-xs font-bold uppercase tracking-widest transition-colors">Privacidad</a>
                </div>
            </div>
        </div>
    </footer>






    <!-- Script for Navbar and Animations -->
    <script>
        // Navbar scroll effect - sin cambiar altura para evitar CLS
        window.onscroll = function () {
            var navbar = document.getElementById("navbar");
            if (window.pageYOffset > 50) {
                navbar.classList.add("bg-white/90", "backdrop-blur-xl", "shadow-xl");
                navbar.classList.add("scrolled");
            } else {
                navbar.classList.remove("bg-white/90", "backdrop-blur-xl", "shadow-xl");
                navbar.classList.remove("scrolled");
            }
        };

        // Mobile menu toggle
        const mobileMenuButton = document.getElementById('mobile-menu-button');
        const mobileMenuClose = document.getElementById('mobile-menu-close');
        const mobileMenu = document.getElementById('mobile-menu');

        if (mobileMenuButton && mobileMenu && mobileMenuClose) {
            const mobileMenuLinks = mobileMenu.querySelectorAll('a');

            mobileMenuButton.addEventListener('click', () => {
                mobileMenu.classList.remove('hidden');
                document.body.style.overflow = 'hidden';
            });

            const closeMobileMenu = () => {
                mobileMenu.classList.add('hidden');
                document.body.style.overflow = '';
            };

            mobileMenuClose.addEventListener('click', closeMobileMenu);
            mobileMenuLinks.forEach(link => {
                link.addEventListener('click', closeMobileMenu);
            });
        }

        // Intersection Observer for scroll reveal
        const observerOptions = {
            threshold: 0.1
        };

        const observer = new IntersectionObserver((entries) => {
            entries.forEach(entry => {
                if (entry.isIntersecting) {
                    entry.target.classList.add('active');
                }
            });
        }, observerOptions);

        document.querySelectorAll('.scroll-reveal').forEach((el) => {
            observer.observe(el);
        });

        // Form submission handler
        const contactForm = document.getElementById('contactForm');
        const successMessage = document.getElementById('successMessage');
        const closeSuccessBtn = document.getElementById('closeSuccessMessage');

        // Close success message button
        if (closeSuccessBtn && successMessage) {
            closeSuccessBtn.addEventListener('click', () => {
                successMessage.classList.add('hidden');
            });
        }

        // Close error message button
        const closeErrorBtn = document.getElementById('closeErrorMessage');
        const errorMessage = document.getElementById('errorMessage');
        if (closeErrorBtn && errorMessage) {
            closeErrorBtn.addEventListener('click', () => {
                errorMessage.classList.add('hidden');
            });
        }

        if (contactForm) {
            contactForm.addEventListener('submit', async (e) => {
                e.preventDefault();

                // Get form data
                const formData = new FormData(contactForm);
                const utmData = typeof getUtmParams === 'function' ? getUtmParams() : {};
                const data = {
                    nombre: formData.get('nombre'),
                    email: formData.get('email'),
                    telefono: formData.get('telefono'),
                    empresa: formData.get('empresa'),
                    mensaje: formData.get('mensaje'),
                    pagina_origen: window.location.pathname
                };
                // Agregar UTM y otros params desde cookie
                Object.keys(utmData).forEach(function (key) {
                    data[key] = utmData[key];
                });

                // Get submit button
                const submitButton = contactForm.querySelector('button[type="submit"]');
                const originalText = submitButton.textContent;
                submitButton.textContent = 'Enviando...';
                submitButton.disabled = true;

                try {
                    const response = await fetch('https://form-contacto-web-643931406092.europe-west1.run.app/', {
                        method: 'POST',
                        headers: {
                            'Content-Type': 'application/json',
                        },
                        body: JSON.stringify(data)
                    });

                    if (response.ok) {
                        // Show success message
                        successMessage.classList.remove('hidden');
                        successMessage.classList.add('animate-fade-in');

                        // Reset form
                        contactForm.reset();

                        // Scroll to success message
                        successMessage.scrollIntoView({ behavior: 'smooth', block: 'nearest' });

                        // Hide message after 10 seconds
                        setTimeout(() => {
                            successMessage.classList.add('hidden');
                        }, 10000);

                        // GTM event
                        try {
                            dataLayer.push({
                                event: "form_submit",
                                form_id: "demo_request",
                                email: data.email
                            });
                        } catch (e) { }
                    } else {
                        throw new Error('Error en el envío');
                    }
                } catch (error) {
                    // Show error message instead of alert
                    const errorDiv = document.getElementById('errorMessage');
                    if (errorDiv) {
                        errorDiv.classList.remove('hidden');
                        errorDiv.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
                    } else {
                        alert('Hubo un error al enviar el formulario. Por favor, intenta nuevamente.');
                    }
                    console.error('Error:', error);
                } finally {
                    submitButton.textContent = originalText;
                    submitButton.disabled = false;
                }
            });
        }
    </script>

    <!-- Floating Action Button -->
    <div class="fixed bottom-8 right-8 z-[60] flex items-center space-x-4">
        <a href=""
            onclick="return abrirCalendlyPopup();"
            class="bg-primary text-white p-4 rounded-3xl shadow-[0_20px_40px_rgba(0,166,244,0.4)] hover:shadow-[0_25px_50px_rgba(0,166,244,0.6)] transition-all transform hover:scale-110 flex items-center space-x-3 group pr-8">
            <div class="w-10 h-10 bg-white/20 rounded-2xl flex items-center justify-center">
                <svg class="w-5 h-5" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                    <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2.5"
                        d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" />
                </svg>
            </div>
            <span class="font-black text-sm tracking-widest uppercase">Agendar Demo</span>
        </a>
    </div>
    <!-- Google Tag Manager (noscript) -->
    <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KFQ5Z6WD" height="0" width="0"
            style="display:none;visibility:hidden"></iframe></noscript>
    <!-- End Google Tag Manager (noscript) -->
</body>

</html>