// i18n strings for the landing page. Bilingual EN/ES.
// Positioned as B2B high-level Automation & Growth Specialist.
const COPY = {
  en: {
    nav: {
      services: 'Services',
      dashboard: 'Results',
      flow: 'Flows',
      about: 'About',
      work: 'Work',
      contact: 'Contact',
      cta: 'Book a Strategy Call',
    },
    hero: {
      pill: 'Automation & Growth Specialist',
      headline: ['Technical architectures', 'that eliminate friction.'],
      sub: 'I design technical architectures that eliminate operational friction and scale B2B businesses through AI and automation. Specialist in GoHighLevel, Make and custom OpenAI integrations — 100% bilingual (EN/ES).',
      cta: 'Book a Strategy Call',
      ghost: 'See the stack',
      status: 'Available · Q2 pipeline open',
      bilingual: '100% Bilingual · EN / ES',
    },
    stack: {
      label: 'Operating stack',
      items: ['Make', 'n8n', 'GoHighLevel', 'ChatGPT', 'Claude', 'Gemini', 'ClickUp', 'Notion'],
    },
    services: {
      eyebrow: 'What I build',
      title: 'Three capabilities. One technical backbone.',
      sub: 'I don\'t sell hours. I ship infrastructure — APIs, CRMs and complex workflows that keep running after the call ends.',
      cards: [
        {
          tag: '01 / Automation',
          title: 'Automation Systems',
          body: 'Architecture in Make and n8n to connect fragmented flows across tools. Event-driven pipelines designed to survive edge cases, not just the happy path.',
          bullets: ['Make / n8n blueprints', 'Webhook + REST orchestration', 'Error handling & retries'],
        },
        {
          tag: '02 / CRM',
          title: 'CRM Infrastructure',
          body: 'Configuration and optimization of GoHighLevel for high-volume lead management. Pipelines that route, score and close without operational leakage.',
          bullets: ['GoHighLevel setup & tuning', 'Lead routing & scoring', 'Multi-brand sub-accounts'],
        },
        {
          tag: '03 / AI',
          title: 'Applied AI',
          body: 'OpenAI API integrations for data processing, qualification and operational load reduction. AI layers that actually answer and trigger the right downstream action.',
          bullets: ['OpenAI API integrations', 'AI qualifiers & classifiers', 'Automated document parsing'],
        },
      ],
    },
    kpi: {
      eyebrow: 'Live operations',
      title: 'The dashboard is the proof.',
      sub: 'A slice of what a production workspace looks like once the flows are live.',
      cards: [
        { label: 'Customer recurrence lift', value: '+8%', delta: 'post-sale automation', spark: [4,5,5,6,7,7,8,9,10,11] },
        { label: 'Daily follow-ups automated', value: '30+', delta: 'zero human intervention', spark: [8,10,12,14,18,22,26,28,30,30] },
        { label: 'Response latency', value: '↓', delta: 'AI flows synced in real time', spark: [9,8,7,5,4,3,2,2,1,1] },
        { label: 'Pipelines under management', value: '17', delta: 'across 6 clients', spark: [8,9,10,11,12,13,14,15,16,17] },
      ],
      panel: {
        title: 'ops.granados / live',
        subtitle: 'production workspace',
        streamLabel: 'Event stream',
        metricsLabel: 'Throughput · last 24h',
      },
      events: [
        { t: '00s', type: 'lead', msg: 'New lead captured → GoHighLevel pipeline "Growth Q2"' },
        { t: '02s', type: 'ai', msg: 'Claude qualifier scored lead 87/100 · auto-tagged hot' },
        { t: '05s', type: 'sms', msg: 'Follow-up dispatched · GHL template v3' },
        { t: '11s', type: 'mail', msg: 'Drip sequence "14d-nurture" enrolled' },
        { t: '18s', type: 'ok', msg: 'Calendar link delivered · meeting booked' },
        { t: '22s', type: 'hook', msg: 'n8n webhook → ClickUp task #A-3219 created' },
      ],
    },
    flow: {
      eyebrow: 'Automation flows',
      title: 'What the architecture actually looks like.',
      sub: 'A sanitized canvas of a lead-to-cash workflow. This is not a diagram for a slide — it is how the system runs in production.',
      legend: ['Trigger', 'Logic', 'Integration', 'AI', 'Output'],
    },
    about: {
      eyebrow: 'About',
      title: 'Leading technical architecture at Cohen & Aguirre.',
      body: 'Since December 2025, I lead Technical Architecture & Automations at Cohen & Aguirre / Paralegal Iberconsulting. Self-taught engineer focused on measurable outcomes and B2B process optimization — CRMs that don\'t leak, AI layers that actually answer, APIs that hold under load. Based in Cabudare / Barquisimeto, Venezuela, operating for global markets in fully bilingual format.',
      chips: ['Cohen & Aguirre · Dec 2025–', 'Cabudare / Barquisimeto, VE', 'ES · EN native-level', 'Self-taught · results-driven'],
    },
    portfolio: {
      eyebrow: 'Automation flows',
      title: 'Workflows in production.',
      sub: 'Representative architecture diagrams from client engagements. Full case studies on request.',
      items: [
        { tag: 'B2B Ops · GHL', title: 'Multi-agent lead router with AI intake', meta: '18 scenarios · 3 sub-accounts' },
        { tag: 'Retention · Make', title: 'Post-sale retention engine', meta: '12 scenarios · GoHighLevel' },
        { tag: 'AI · Claude', title: 'Intake classifier → calendar booking', meta: 'n8n + GHL + Claude' },
        { tag: 'Ops · ClickUp', title: 'Automated document & task pipeline', meta: '6 scenarios · ClickUp + n8n' },
      ],
    },
    testimonials: {
      eyebrow: 'Signal',
      title: 'What operators say after 90 days.',
      items: [
        { quote: 'Ángel rebuilt our CRM from the ground up. We went from 3 missed leads a day to zero in under a month. Not a VA — an engineer.', name: 'M. Ortega', role: 'Founder, B2B agency' },
        { quote: 'The Make flows he shipped are still running untouched 6 months later. Clean error handling, proper logging. Rare.', name: 'J. Park', role: 'Head of Ops, DTC brand' },
        { quote: 'Finally someone who speaks both operator and engineer — in two languages. Our LATAM + US pipeline merged the same week.', name: 'L. Ruiz', role: 'Founder, SaaS agency' },
      ],
    },
    contact: {
      eyebrow: 'Start',
      title: 'Tell me about the stack.',
      sub: 'Short brief, honest numbers. I reply within 24h with either a plan or a polite no.',
      name: 'Full name',
      email: 'Work email',
      company: 'Company',
      type: 'Project type',
      typeOptions: ['B2B Ops · CRM', 'Make / n8n Automation', 'AI Integrations', 'Other'],
      budget: 'Budget range',
      budgetOptions: ['< $3k', '$3k – $10k', '$10k – $25k', '$25k+'],
      message: 'What are you trying to automate?',
      consent: 'I agree to be contacted about this project.',
      submit: 'Send brief',
      sending: 'Routing to webhook…',
      sent: 'Brief received. Expect a reply within 24h.',
      or: 'Or skip the form —',
      book: 'book a slot directly',
      errors: {
        name: 'Name is required',
        email: 'Valid email required',
        message: 'A short description helps',
        consent: 'Consent required',
      },
    },
    footer: {
      tagline: 'Automation & Growth Specialist',
      copy: '© 2026 Ángel Granados Verde. Built, not assembled.',
      links: ['LinkedIn', 'Email', 'Calendar'],
    },
  },
  es: {
    nav: {
      services: 'Servicios',
      dashboard: 'Resultados',
      flow: 'Flujos',
      about: 'Sobre mí',
      work: 'Proyectos',
      contact: 'Contacto',
      cta: 'Agendar llamada',
    },
    hero: {
      pill: 'Automation & Growth Specialist',
      headline: ['Arquitecturas técnicas', 'que eliminan la fricción.'],
      sub: 'Diseño arquitecturas técnicas que eliminan la fricción operativa y escalan negocios B2B mediante IA y automatización. Especialista en GoHighLevel, Make e integraciones personalizadas con OpenAI — 100% bilingüe (ES/EN).',
      cta: 'Agenda una llamada',
      ghost: 'Ver el stack',
      status: 'Disponible · pipeline Q2 abierto',
      bilingual: '100% Bilingüe · ES / EN',
    },
    stack: {
      label: 'Stack operativo',
      items: ['Make', 'n8n', 'GoHighLevel', 'ChatGPT', 'Claude', 'Gemini', 'ClickUp', 'Notion'],
    },
    services: {
      eyebrow: 'Qué construyo',
      title: 'Tres capacidades. Un backbone técnico.',
      sub: 'No vendo horas. Entrego infraestructura — APIs, CRMs y flujos complejos que siguen corriendo cuando termina la llamada.',
      cards: [
        {
          tag: '01 / Automatización',
          title: 'Sistemas de Automatización',
          body: 'Arquitectura en Make y n8n para conectar flujos fragmentados entre herramientas. Pipelines orientados a eventos, diseñados para sobrevivir edge cases, no solo el camino feliz.',
          bullets: ['Blueprints Make / n8n', 'Orquestación webhooks + REST', 'Manejo de errores y reintentos'],
        },
        {
          tag: '02 / CRM',
          title: 'Infraestructura CRM',
          body: 'Configuración y optimización de GoHighLevel para gestión de leads de alto volumen. Pipelines que rutean, puntúan y cierran sin fugas operativas.',
          bullets: ['Setup y tuning de GoHighLevel', 'Ruteo y scoring de leads', 'Sub-cuentas multi-marca'],
        },
        {
          tag: '03 / IA',
          title: 'IA Aplicada',
          body: 'Integración de APIs de OpenAI para procesamiento de datos, calificación y reducción de carga operativa. Capas de IA que de verdad responden y disparan la acción correcta.',
          bullets: ['Integraciones API OpenAI', 'Calificadores y clasificadores IA', 'Parseo automático de documentos'],
        },
      ],
    },
    kpi: {
      eyebrow: 'Operaciones en vivo',
      title: 'El dashboard es la prueba.',
      sub: 'Una muestra de cómo luce un workspace en producción con los flujos corriendo.',
      cards: [
        { label: 'Tasa de recurrencia', value: '+8%', delta: 'automatización de postventa', spark: [4,5,5,6,7,7,8,9,10,11] },
        { label: 'Seguimientos diarios automatizados', value: '30+', delta: 'sin intervención humana', spark: [8,10,12,14,18,22,26,28,30,30] },
        { label: 'Latencia de respuesta', value: '↓', delta: 'flujos IA sincronizados', spark: [9,8,7,5,4,3,2,2,1,1] },
        { label: 'Pipelines gestionados', value: '17', delta: 'en 6 clientes', spark: [8,9,10,11,12,13,14,15,16,17] },
      ],
      panel: {
        title: 'ops.granados / live',
        subtitle: 'workspace de producción',
        streamLabel: 'Stream de eventos',
        metricsLabel: 'Throughput · últimas 24h',
      },
      events: [
        { t: '00s', type: 'lead', msg: 'Nuevo lead capturado → pipeline GoHighLevel "Growth Q2"' },
        { t: '02s', type: 'ai', msg: 'Claude calificó lead 87/100 · auto-tag hot' },
        { t: '05s', type: 'sms', msg: 'Follow-up enviado · plantilla GHL v3' },
        { t: '11s', type: 'mail', msg: 'Secuencia "14d-nurture" activada' },
        { t: '18s', type: 'ok', msg: 'Link de calendario entregado · reunión agendada' },
        { t: '22s', type: 'hook', msg: 'Webhook n8n → tarea ClickUp #A-3219 creada' },
      ],
    },
    flow: {
      eyebrow: 'Automation flows',
      title: 'Así luce la arquitectura de verdad.',
      sub: 'Un canvas sanitizado de un workflow lead-to-cash. No es un diagrama para slide — es cómo corre el sistema en producción.',
      legend: ['Trigger', 'Lógica', 'Integración', 'IA', 'Output'],
    },
    about: {
      eyebrow: 'Sobre mí',
      title: 'Lidero la arquitectura técnica en Cohen & Aguirre.',
      body: 'Desde diciembre 2025 lidero la Arquitectura Técnica y Automatizaciones en Cohen & Aguirre / Paralegal Iberconsulting. Ingeniero autodidacta con enfoque en resultados cuantificables y optimización de procesos B2B — CRMs que no filtran, capas de IA que de verdad responden, APIs que aguantan bajo carga. Basado en Cabudare / Barquisimeto, Venezuela, operando para mercados globales en formato 100% bilingüe.',
      chips: ['Cohen & Aguirre · Dic 2025–', 'Cabudare / Barquisimeto, VE', 'ES · EN nivel nativo', 'Autodidacta · enfoque en resultados'],
    },
    portfolio: {
      eyebrow: 'Automation flows',
      title: 'Workflows en producción.',
      sub: 'Diagramas de arquitectura representativos de engagements con clientes. Casos de estudio completos bajo solicitud.',
      items: [
        { tag: 'B2B Ops · GHL', title: 'Router de leads multi-agente con IA', meta: '18 escenarios · 3 sub-cuentas' },
        { tag: 'Retención · Make', title: 'Motor de retención postventa', meta: '12 escenarios · GoHighLevel' },
        { tag: 'IA · Claude', title: 'Clasificador de intake → agendamiento', meta: 'n8n + GHL + Claude' },
        { tag: 'Ops · ClickUp', title: 'Pipeline automatizado de tareas y documentos', meta: '6 escenarios · ClickUp + n8n' },
      ],
    },
    testimonials: {
      eyebrow: 'Señal',
      title: 'Lo que dicen los operadores a los 90 días.',
      items: [
        { quote: 'Ángel reconstruyó nuestro CRM desde cero. Pasamos de 3 leads perdidos al día a cero en menos de un mes. No es un VA — es un ingeniero.', name: 'M. Ortega', role: 'Fundador, agencia B2B' },
        { quote: 'Los flujos Make que entregó siguen corriendo intactos 6 meses después. Manejo de errores limpio, logging adecuado. Raro.', name: 'J. Park', role: 'Head of Ops, marca DTC' },
        { quote: 'Por fin alguien que habla operador e ingeniero — en dos idiomas. Fusionamos el pipeline LATAM + US la misma semana.', name: 'L. Ruiz', role: 'Fundadora, agencia SaaS' },
      ],
    },
    contact: {
      eyebrow: 'Arranque',
      title: 'Cuéntame del stack.',
      sub: 'Brief corto, números honestos. Respondo en 24h con un plan o un no educado.',
      name: 'Nombre completo',
      email: 'Email de trabajo',
      company: 'Empresa',
      type: 'Tipo de proyecto',
      typeOptions: ['B2B Ops · CRM', 'Automatización Make / n8n', 'Integraciones IA', 'Otro'],
      budget: 'Rango de presupuesto',
      budgetOptions: ['< $3k', '$3k – $10k', '$10k – $25k', '$25k+'],
      message: '¿Qué quieres automatizar?',
      consent: 'Acepto ser contactado sobre este proyecto.',
      submit: 'Enviar brief',
      sending: 'Enviando al webhook…',
      sent: 'Brief recibido. Respuesta en 24h.',
      or: 'O salta el formulario —',
      book: 'agenda directamente',
      errors: {
        name: 'El nombre es obligatorio',
        email: 'Email válido requerido',
        message: 'Una descripción corta ayuda',
        consent: 'Consentimiento requerido',
      },
    },
    footer: {
      tagline: 'Automation & Growth Specialist',
      copy: '© 2026 Ángel Granados Verde. Construido, no ensamblado.',
      links: ['LinkedIn', 'Email', 'Calendario'],
    },
  },
};

window.COPY = COPY;
window.useI18n = function useI18n(lang) {
  return COPY[lang] || COPY.en;
};
