// i18n dictionary + helper. Registers window.I18N and window.useI18n hook.
const I18N = {
  es: {
    'skip': 'Ir al contenido',
    'nav.process': 'Proceso',
    'nav.method': 'Método',
    'nav.fit': 'Fit',
    'nav.about': 'Sobre',
    'nav.faq': 'FAQ',
    'nav.cta': 'Agendar llamada',

    'fit.label': 'Para quién es esto',
    'fit.title.a': '¿Somos el',
    'fit.title.em': 'partner indicado',
    'fit.title.b': ' para tu marca?',
    'fit.sub': 'Trabajamos solo con marcas donde podemos generar resultados reales. Honestidad antes que la venta.',
    'fit.yes.tag': 'Es para ti si',
    'fit.yes.h.a': 'Tu marca',
    'fit.yes.h.b': 'está lista para escalar',
    'fit.yes.1': 'Vendes en línea (Shopify, WooCommerce o similar) con producto validado',
    'fit.yes.2': 'Ya facturas mínimo $100,000 MXN/mes y tu producto vende orgánicamente',
    'fit.yes.3': 'Puedes invertir mínimo $15,000 MXN/mes en Meta Ads',
    'fit.yes.4': 'Tienes contribution margin saludable (≥35%) y entiendes tus números',
    'fit.yes.5': 'Buscas un partner de largo plazo, no resultados mágicos en 2 semanas',
    'fit.no.tag': 'NO es para ti si',
    'fit.no.h.a': 'Mejor',
    'fit.no.h.b': 'esperá un poco',
    'fit.no.1': 'Apenas vas a lanzar tu producto y no tienes ventas validadas',
    'fit.no.2': 'Tu presupuesto es menor a $15,000 MXN/mes en ads',
    'fit.no.3': 'Buscas resultados milagrosos en 2 semanas o menos',
    'fit.no.4': 'Tu margen no permite reinvertir en paid media de forma sostenible',
    'fit.no.5': 'Quieres delegar 100% sin involucrarte en la estrategia de creativos',
    'fit.foot.line': '¿Te identificas con la lista de la izquierda?',
    'fit.cta': 'Agenda tu sesión estratégica',

    'about.label': 'Quién está detrás',
    'about.title.a': 'No es una agencia.',
    'about.title.em': 'Soy yo, Diego',
    'about.title.b': '— contigo.',
    'about.lede': 'Llevo más de 5 años ayudando a marcas de e-commerce a escalar de forma rentable. No vendo reportes bonitos: vendo decisiones que mueven el ROAS.',
    'about.p1': 'Antes de ScalexCo trabajé dentro de equipos de marketing in-house y agencias tradicionales. Vi de cerca el patrón: campañas que arrancan bien, márgenes que se erosionan, juntas mensuales con jerga y cero contexto. Decidí que mi cuenta no funcionaría así.',
    'about.p2': 'Por eso ScalexCo opera como growth partner, no como proveedor: parte de mi fee se ata a tus resultados, sin contratos forzosos, y solo entran 4 marcas nuevas al mes para poder darle profundidad real a cada cuenta.',
    'about.stat1.num': '5+',
    'about.stat1.lbl': 'Años escalando<br>e-commerce',
    'about.stat2.num': '$8M+',
    'about.stat2.lbl': 'Spend gestionado<br>en Meta Ads',
    'about.stat3.num': '4',
    'about.stat3.lbl': 'Marcas nuevas<br>máximo al mes',
    'about.sign.name': 'Diego E.',
    'about.sign.role': 'Founder · Lead strategist, ScalexCo',
    'about.portrait.tag': 'Founder · ScalexCo',


    // HERO V1
    'hero.badge': 'Escalamos marcas de E-commerce',
    'hero.title.v1.a': 'Meta Ads para',
    'hero.title.v1.b': 'e-commerce',
    'hero.title.v1.c': 'enfocados en',
    'hero.title.v1.d': 'profit',
    'hero.sub.v1': 'Somos tu Head of Growth externo. Construimos full-funnel, escalamos creatividades, y optimizamos cada peso para que tu marca crezca con margen — no solo con vanity metrics.',
    'hero.cta.primary': 'Agenda tu sesión estratégica',
    'hero.cta.secondary': 'Ver el método ↓',
    'hero.trust.1': 'Fee atado a resultados',
    'hero.trust.2': 'Sin plazos forzosos',
    'hero.trust.3': 'Mes a mes',

    // HERO V2
    'hero.title.v2.a': 'Más',
    'hero.title.v2.profit': 'profit.',
    'hero.title.v2.b': 'Menos',
    'hero.title.v2.waste': 'desperdicio.',
    'hero.sub.v2': 'Meta Ads para marcas de e-commerce que les importa el contribution margin, no solo el ROAS de vanity. Tu socio de crecimiento full-funnel.',
    'hero.v2.stat1.num': 'Profit',
    'hero.v2.stat1.lbl': 'Optimizamos por margen, no impresiones',
    'hero.v2.stat2.num': 'LTV/CAC',
    'hero.v2.stat2.lbl': 'Decisiones con la métrica que importa',
    'hero.v2.stat3.num': 'Daily',
    'hero.v2.stat3.lbl': 'Optimización activa, no reportes mensuales',

    // HERO V3
    'hero.title.v3': 'Tu socio de growth en Meta Ads',
    'hero.sub.v3': 'Performance, creative testing y full-funnel para marcas de e-commerce que quieren escalar de forma rentable y sostenible.',

    // TICKER
    'ticker.1': 'Meta Ads',
    'ticker.2': 'Performance Marketing',
    'ticker.3': 'Creative Testing',
    'ticker.4': 'Full-Funnel',
    'ticker.5': 'ROAS',
    'ticker.6': 'LTV / CAC',
    'ticker.7': 'Contribution Margin',
    'ticker.8': 'UGC · Direct-Response',
    'ticker.9': 'Retargeting',
    'ticker.10': 'Profit-Focused',

    // MANIFESTO
    'manifesto.quote.a': 'Las agencias optimizan',
    'manifesto.quote.strike': 'reportes',
    'manifesto.quote.b': '. Nosotros optimizamos tu',
    'manifesto.quote.profit': 'profit',
    'manifesto.quote.dot': '.',
    'manifesto.sub': 'No vendemos paquetes ni reportes bonitos. Trabajamos pegados al dueño, entendemos el contribution margin de cada SKU, y tomamos decisiones diarias para que cada peso invertido en ads regrese con utilidad.',
    'manifesto.sig': 'Manifiesto · ScalexCo',

    // ADS ANIM
    'ads.label': 'Cómo lo hacemos',
    'ads.title.a': 'Anuncios que',
    'ads.title.em': 'atraen clientes',
    'ads.title.b': '— no impresiones.',
    'ads.sub': 'Cada peso pasa por un sistema de testing de creativos, audiencias y mensajes hasta encontrar el ángulo que convierte. Después escalamos solo lo rentable.',
    'ads.bullet.1': 'Testing constante de hooks, ángulos y formatos',
    'ads.bullet.2': 'UGC y direct-response calibrado a tu producto',
    'ads.bullet.3': 'Retargeting segmentado por comportamiento',
    'ads.bullet.4': 'Decisiones de presupuesto basadas en CAC y LTV',

    // DIFF
    'diff.label': 'La diferencia',
    'diff.title.a': 'Agencia tradicional',
    'diff.title.b': 'vs.',
    'diff.title.c': 'Growth Partner',
    'diff.sub': 'No es lo que cobran. Es a quién le importan los resultados.',
    'diff.old.tag': 'Agencia tradicional',
    'diff.old.h': 'Te vende un servicio',
    'diff.old.1': 'Fee fijo independiente de tus ventas',
    'diff.old.2': 'Reportes mensuales sin contexto ni acción',
    'diff.old.3': 'Estrategia plantilla aplicada a tu marca',
    'diff.old.4': 'Optimizan por ROAS, no por contribution margin',
    'diff.old.5': 'Contratos largos para retenerte',
    'diff.old.6': 'Account manager que no toma decisiones',
    'diff.new.tag': 'ScalexCo · Growth Partner',
    'diff.new.h': 'Se vuelve tu socio de crecimiento',
    'diff.new.1': 'Fee base + variable atado a resultados',
    'diff.new.2': 'Optimización diaria, no reportes inertes',
    'diff.new.3': 'Estrategia construida para tu marca',
    'diff.new.4': 'Decidimos por profit y LTV/CAC',
    'diff.new.5': 'Mes a mes — nos quedamos por resultados',
    'diff.new.6': 'Comunicación directa con el estratega',

    // GROWTH
    'growth.label': 'Resultado',
    'growth.title.a': 'Crecimiento',
    'growth.title.em': 'sostenible',
    'growth.title.b': ', no picos efímeros.',
    'growth.sub': 'No buscamos un mes bueno. Construimos sistemas que escalan mes a mes con presupuesto creciente, sin sacrificar el margen.',
    'growth.stat1.lbl': 'ROAS objetivo',
    'growth.stat1.num': '4–9x',
    'growth.stat2.lbl': 'Mes 1 → Mes 6',
    'growth.stat2.num': '+312%',
    'growth.chart.title': 'Revenue mensual proyectado',
    'growth.chart.pill': 'Tendencia · 6 meses',

    // METHOD
    'method.label': 'El método',
    'method.title.a': 'El sistema',
    'method.title.em': 'Profit Loop',
    'method.title.b': '— cómo trabajamos.',
    'method.sub': 'Cuatro pilares que se retroalimentan. No optimizamos campañas: optimizamos un loop completo entre creatividad, datos, audiencia y profit.',
    'method.1.h.a': 'Diagnóstico',
    'method.1.h.em': 'profit',
    'method.1.p': 'Auditamos tu cuenta, producto, contribution margin y embudo. Salimos con una hoja de ruta clara y números reales.',
    'method.1.tag': 'Día 1–7',
    'method.2.h.a': 'Creative',
    'method.2.h.em': 'lab',
    'method.2.p': 'Estrategia de creatividades: UGC, direct-response, hooks y ángulos. Probamos 3x más ideas con asistencia de IA.',
    'method.2.tag': 'Semana 2',
    'method.3.h.a': 'Full-funnel',
    'method.3.h.em': 'launch',
    'method.3.p': 'Estructura de campañas top-mid-bottom funnel, retargeting, CAPI limpio y tracking calibrado.',
    'method.3.tag': 'Semana 2–4',
    'method.4.h.a': 'Scale',
    'method.4.h.em': 'loop',
    'method.4.p': 'Escalamos solo lo rentable. Decisiones diarias por LTV/CAC y profit, no vanity metrics.',
    'method.4.tag': 'Mes 2+',

    // AI
    'ai.label': 'IA + Estrategia humana',
    'ai.title.a': 'Estrategia humana,',
    'ai.title.em': 'optimización con IA',
    'ai.title.b': '.',
    'ai.sub': 'Combinamos criterio de estratega con modelos que monitorean tu cuenta 24/7. Decisiones más rápidas y filosas, respaldadas por señales que ningún humano podría procesar solo.',
    'ai.1.h.a': 'Análisis predictivo',
    'ai.1.h.em': '24/7',
    'ai.1.p': 'Modelos de IA detectan caídas de rendimiento antes de que afecten tu ROAS y profit.',
    'ai.2.h.a': 'Optimización de',
    'ai.2.h.em': 'presupuesto',
    'ai.2.p': 'Reasignamos spend entre ad sets y creatividades multiplicando las señales que recibe Meta.',
    'ai.3.h.a': 'Creatividades y',
    'ai.3.h.em': 'hooks',
    'ai.3.p': 'Generamos ángulos, scripts UGC y variaciones con IA. Testeamos 3x más ideas al mismo costo.',
    'ai.4.h.a': 'Tracking',
    'ai.4.h.em': 'reforzado',
    'ai.4.p': 'CAPI + modelos de atribución que rellenan los huecos del Pixel y dan datos limpios al algoritmo.',

    // PROCESS
    'process.label': 'El proceso',
    'process.title.a': 'Cómo trabajamos',
    'process.title.em': 'juntos',
    'process.title.b': '.',
    'process.sub': 'Un proceso claro desde el día uno. Sabes exactamente qué esperar en cada etapa.',
    'process.1.period': 'Semana 1',
    'process.1.h.a': 'Sesión de',
    'process.1.h.em': 'diagnóstico',
    'process.1.p': 'Revisamos tu marca, producto y números actuales. Decidimos juntos si somos el partner indicado. Sin compromisos.',
    'process.2.period': 'Semana 1–2',
    'process.2.h.a': 'Estrategia y',
    'process.2.h.em': 'lanzamiento',
    'process.2.p': 'Construimos la arquitectura de campañas desde cero y lanzamos con estructura probada para datos limpios desde el día uno.',
    'process.3.period': 'Semana 2–4',
    'process.3.h.a': 'Creative',
    'process.3.h.em': 'playbook',
    'process.3.p': 'Diseñamos contigo la estrategia de creativos y UGC: qué producir, qué formato, qué mensaje y cómo testear cada pieza.',
    'process.4.period': 'Mes 2+',
    'process.4.h.a': 'Optimización y',
    'process.4.h.em': 'escala',
    'process.4.p': 'Con datos reales y modelos de IA 24/7, escalamos lo rentable y cortamos lo que no funciona. ROAS estable mes a mes.',
    'process.5.period': 'Mensual',
    'process.5.h.a': 'Reporting y',
    'process.5.h.em': 'alineación',
    'process.5.p': 'Reportes claros sobre las métricas que importan y plan del próximo mes — siempre construido contigo.',

    // CALC
    'calc.label': 'Calculadora interactiva',
    'calc.title.a': '¿Cuánto puedes',
    'calc.title.em': 'escalar',
    'calc.title.b': '?',
    'calc.sub': 'Mueve los sliders. Compara tu situación actual con tu potencial bajo nuestro sistema. Cifras conservadoras basadas en benchmarks de la industria.',
    'calc.input.h': 'Tu situación actual',
    'calc.input.spend': 'Inversión mensual en ads',
    'calc.input.roas': 'ROAS actual',
    'calc.input.aov': 'Ticket promedio',
    'calc.out.label': 'Revenue proyectado · 6 meses',
    'calc.out.sub': 'Asumiendo ROAS objetivo de 5x con escala progresiva. Resultado conservador.',
    'calc.bar.now': 'Hoy',
    'calc.bar.scalex': 'Con ScalexCo',
    'calc.cta': 'Agenda tu sesión gratis',
    'calc.disclaimer': 'Estimación de referencia. Resultados reales dependen de producto, margen y mercado.',

    // GUARANTEE
    'g.seal': 'Nuestra garantía · escrita',
    'g.title.a': 'Si tu marca califica,',
    'g.title.em': 'agenda una auditoría',
    'g.title.b': '',
    'g.title.green': 'completamente gratis',
    'g.title.dot': '.',
    'g.sub': 'En 30 minutos auditamos tu Meta Ads, identificamos fugas de presupuesto y te dejamos un plan de acción — trabajemos juntos o no. Tu tiempo nos respeta.',
    'g.list.1': 'Auditoría de estructura y presupuesto',
    'g.list.2': 'Diagnóstico de tracking, Pixel y CAPI',
    'g.list.3': 'Análisis de creativos y testing',
    'g.list.4': 'Plan de acción con 3 oportunidades priorizadas',
    'g.cta': 'Agenda tu auditoría gratis',

    // FAQ
    'faq.label': 'Preguntas frecuentes',
    'faq.title.a': 'Lo que probablemente',
    'faq.title.em': 'estás pensando',
    'faq.title.b': '.',
    'faq.1.q': '¿Mi e-commerce califica para trabajar con ScalexCo?',
    'faq.1.a': 'Trabajamos con marcas de e-commerce con ventas validadas que pueden invertir mínimo $15,000 MXN/mes en ads — el mínimo que Meta recomienda para que una campaña optimice bien. Si estás abajo de eso, probablemente necesitas validar producto antes de escalar con paid media.',
    'faq.2.q': '¿Por qué se enfocan en profit y no en ROAS?',
    'faq.2.a': 'ROAS sin contribution margin es vanity. Una marca con ROAS 3x y 20% de margen pierde plata; una con ROAS 2x y 60% de margen escala. Nosotros optimizamos por la métrica que paga renta: profit real después de COGS, fees y ads.',
    'faq.3.q': '¿Cómo usan IA dentro del servicio?',
    'faq.3.a': 'IA en tres capas: análisis predictivo que detecta caídas antes de que afecten ROAS, optimización automática de presupuestos entre ad sets, y generación asistida de hooks y UGC. Cada decisión final pasa por un estratega humano — la IA acelera, no reemplaza criterio.',
    'faq.4.q': '¿Cuánto tarda en verse resultados?',
    'faq.4.a': 'El algoritmo de Meta necesita 7–14 días para optimizar. Los primeros datos claros aparecen en semanas 3–4 y empiezas a ver resultados desde el día 30. La escala real ocurre desde el mes 2, cuando ya tenemos datos sólidos.',
    'faq.5.q': '¿Hay plazos forzosos?',
    'faq.5.a': 'No. Mes a mes. Si en algún momento sientes que no estamos generando valor, sales sin penalizaciones. Nuestra retención viene de los resultados, no de un contrato.',
    'faq.6.q': '¿Cómo funciona el fee atado a resultados?',
    'faq.6.a': 'Fee base mensual que cubre operación + variable que se activa al superar los objetivos pactados. Ganamos cuando tú ganas. Tus incentivos y los nuestros alineados desde el día uno.',

    // FINAL CTA
    'fc.title.a': 'Hablemos sobre tu',
    'fc.title.em': 'próximo nivel',
    'fc.title.dot': '.',
    'fc.sub': '30 minutos. Sin pitch de venta. Te decimos honestamente si podemos ser tu growth partner.',
    'fc.cta': 'Agenda tu sesión estratégica',
    'fc.spots.a': 'Mayo 2026 ·',
    'fc.spots.b': '2 de 5 espacios',
    'fc.spots.c': 'tomados',

    // FOOTER
    'footer.tagline': 'Tu Growth Partner en Meta Ads para marcas de e-commerce enfocadas en profit. Estrategia, creative testing y optimización con IA.',
    'footer.navTitle': 'Navegación',
    'footer.contactTitle': 'Contacto',
    'footer.contactCall': 'Agendar llamada',
    'footer.copy': '© 2026 ScalexCo. Construido para marcas que cuidan el profit.',
    'footer.madewith': 'Performance > reportes.'
  },

  en: {
    'skip': 'Skip to content',
    'nav.process': 'Process',
    'nav.method': 'Method',
    'nav.fit': 'Fit',
    'nav.about': 'About',
    'nav.faq': 'FAQ',
    'nav.cta': 'Book a call',

    'fit.label': 'Who this is for',
    'fit.title.a': 'Are we the',
    'fit.title.em': 'right partner',
    'fit.title.b': ' for your brand?',
    'fit.sub': 'We only work with brands where we can deliver real results. Honesty before the sale.',
    'fit.yes.tag': 'This is for you if',
    'fit.yes.h.a': 'Your brand',
    'fit.yes.h.b': 'is ready to scale',
    'fit.yes.1': 'You sell online (Shopify, WooCommerce or similar) with a validated product',
    'fit.yes.2': 'You already do at least $5K USD/month and your product sells organically',
    'fit.yes.3': 'You can invest at least $1,000 USD/month in Meta Ads',
    'fit.yes.4': 'You have healthy contribution margin (≥35%) and know your numbers',
    'fit.yes.5': 'You\'re looking for a long-term partner, not magic results in 2 weeks',
    'fit.no.tag': 'NOT for you if',
    'fit.no.h.a': 'Better',
    'fit.no.h.b': 'wait a bit',
    'fit.no.1': 'You\'re about to launch and don\'t have validated sales yet',
    'fit.no.2': 'Your budget is under $1,000 USD/month for ads',
    'fit.no.3': 'You\'re looking for miracle results in 2 weeks or less',
    'fit.no.4': 'Your margin doesn\'t allow sustainable reinvestment in paid media',
    'fit.no.5': 'You want to delegate 100% without engaging in creative strategy',
    'fit.foot.line': 'Do you identify with the left column?',
    'fit.cta': 'Book your strategy session',

    'about.label': 'Who\'s behind this',
    'about.title.a': 'Not an agency.',
    'about.title.em': 'It\'s me, Diego',
    'about.title.b': ' — with you.',
    'about.lede': 'I\'ve spent 5+ years helping e-commerce brands scale profitably. I don\'t sell pretty reports: I sell decisions that move the ROAS.',
    'about.p1': 'Before ScalexCo I worked inside in-house marketing teams and traditional agencies. I saw the pattern up close: campaigns that start strong, margins that erode, monthly meetings full of jargon and zero context. I decided my account wouldn\'t run that way.',
    'about.p2': 'That\'s why ScalexCo operates as a growth partner, not a vendor: part of my fee is tied to your results, no forced terms, and only 4 new brands a month so I can give every account real depth.',
    'about.stat1.num': '5+',
    'about.stat1.lbl': 'Years scaling<br>e-commerce',
    'about.stat2.num': '$8M+',
    'about.stat2.lbl': 'Spend managed<br>in Meta Ads',
    'about.stat3.num': '4',
    'about.stat3.lbl': 'New brands<br>max per month',
    'about.sign.name': 'Diego E.',
    'about.sign.role': 'Founder · Lead strategist, ScalexCo',
    'about.portrait.tag': 'Founder · ScalexCo',


    'hero.badge': 'We scale E-commerce brands',
    'hero.title.v1.a': 'Meta Ads for',
    'hero.title.v1.b': 'e-commerce',
    'hero.title.v1.c': 'brands focused on',
    'hero.title.v1.d': 'profit',
    'hero.sub.v1': 'We\'re your fractional Head of Growth. We build full-funnel, scale creatives, and optimize every dollar so your brand grows with margin — not vanity metrics.',
    'hero.cta.primary': 'Book your strategy session',
    'hero.cta.secondary': 'See the method ↓',
    'hero.trust.1': 'Performance-based fee',
    'hero.trust.2': 'No forced terms',
    'hero.trust.3': 'Month to month',

    'hero.title.v2.a': 'More',
    'hero.title.v2.profit': 'profit.',
    'hero.title.v2.b': 'Less',
    'hero.title.v2.waste': 'waste.',
    'hero.sub.v2': 'Meta Ads for e-commerce brands that care about contribution margin — not vanity ROAS. Your full-funnel growth partner.',
    'hero.v2.stat1.num': 'Profit',
    'hero.v2.stat1.lbl': 'We optimize for margin, not impressions',
    'hero.v2.stat2.num': 'LTV/CAC',
    'hero.v2.stat2.lbl': 'Decisions on the metric that matters',
    'hero.v2.stat3.num': 'Daily',
    'hero.v2.stat3.lbl': 'Active optimization, not monthly reports',

    'hero.title.v3': 'Your Meta Ads growth partner',
    'hero.sub.v3': 'Performance, creative testing & full-funnel for e-commerce brands that want to scale profitably and sustainably.',

    'ticker.1': 'Meta Ads',
    'ticker.2': 'Performance Marketing',
    'ticker.3': 'Creative Testing',
    'ticker.4': 'Full-Funnel',
    'ticker.5': 'ROAS',
    'ticker.6': 'LTV / CAC',
    'ticker.7': 'Contribution Margin',
    'ticker.8': 'UGC · Direct-Response',
    'ticker.9': 'Retargeting',
    'ticker.10': 'Profit-Focused',

    'manifesto.quote.a': 'Agencies optimize',
    'manifesto.quote.strike': 'reports',
    'manifesto.quote.b': '. We optimize your',
    'manifesto.quote.profit': 'profit',
    'manifesto.quote.dot': '.',
    'manifesto.sub': 'We don\'t sell packages or pretty dashboards. We work side by side with the founder, understand the contribution margin of every SKU, and make daily calls so every dollar in ads comes back with profit.',
    'manifesto.sig': 'Manifesto · ScalexCo',

    'ads.label': 'How we do it',
    'ads.title.a': 'Ads that',
    'ads.title.em': 'attract customers',
    'ads.title.b': ' — not impressions.',
    'ads.sub': 'Every dollar runs through a system of creative, audience and message testing until we find the angle that converts. Then we scale only what\'s profitable.',
    'ads.bullet.1': 'Constant testing of hooks, angles and formats',
    'ads.bullet.2': 'UGC and direct-response tuned to your product',
    'ads.bullet.3': 'Retargeting segmented by behavior',
    'ads.bullet.4': 'Budget decisions driven by CAC and LTV',

    'diff.label': 'The difference',
    'diff.title.a': 'Traditional agency',
    'diff.title.b': 'vs.',
    'diff.title.c': 'Growth Partner',
    'diff.sub': 'It\'s not about what they charge. It\'s about who actually cares about results.',
    'diff.old.tag': 'Traditional agency',
    'diff.old.h': 'They sell you a service',
    'diff.old.1': 'Fixed fee regardless of your sales',
    'diff.old.2': 'Monthly reports without context or action',
    'diff.old.3': 'Template strategy applied to your brand',
    'diff.old.4': 'They optimize for ROAS, not contribution margin',
    'diff.old.5': 'Long contracts to lock you in',
    'diff.old.6': 'Account manager who can\'t make calls',
    'diff.new.tag': 'ScalexCo · Growth Partner',
    'diff.new.h': 'They become your growth partner',
    'diff.new.1': 'Base fee + variable tied to results',
    'diff.new.2': 'Daily optimization, not lifeless reports',
    'diff.new.3': 'Strategy built for your brand',
    'diff.new.4': 'We decide on profit and LTV/CAC',
    'diff.new.5': 'Month to month — we stay because of results',
    'diff.new.6': 'Direct line to the strategist',

    'growth.label': 'Outcome',
    'growth.title.a': 'Sustainable',
    'growth.title.em': 'growth',
    'growth.title.b': ', not flash-in-the-pan spikes.',
    'growth.sub': 'We\'re not chasing one good month. We build systems that scale month after month with growing budgets, without sacrificing margin.',
    'growth.stat1.lbl': 'Target ROAS',
    'growth.stat1.num': '4–9x',
    'growth.stat2.lbl': 'Month 1 → Month 6',
    'growth.stat2.num': '+312%',
    'growth.chart.title': 'Projected monthly revenue',
    'growth.chart.pill': 'Trend · 6 months',

    'method.label': 'The method',
    'method.title.a': 'The',
    'method.title.em': 'Profit Loop',
    'method.title.b': ' system — how we work.',
    'method.sub': 'Four pillars that feed each other. We don\'t optimize campaigns: we optimize a full loop between creative, data, audience and profit.',
    'method.1.h.a': 'Profit',
    'method.1.h.em': 'audit',
    'method.1.p': 'We audit your account, product, contribution margin and funnel. You walk out with a clear roadmap and real numbers.',
    'method.1.tag': 'Day 1–7',
    'method.2.h.a': 'Creative',
    'method.2.h.em': 'lab',
    'method.2.p': 'Creative strategy: UGC, direct-response, hooks and angles. We test 3x more ideas with AI assistance.',
    'method.2.tag': 'Week 2',
    'method.3.h.a': 'Full-funnel',
    'method.3.h.em': 'launch',
    'method.3.p': 'Top-mid-bottom funnel campaign structure, retargeting, clean CAPI and calibrated tracking.',
    'method.3.tag': 'Week 2–4',
    'method.4.h.a': 'Scale',
    'method.4.h.em': 'loop',
    'method.4.p': 'We scale only what\'s profitable. Daily decisions on LTV/CAC and profit — no vanity metrics.',
    'method.4.tag': 'Month 2+',

    'ai.label': 'AI + Human strategy',
    'ai.title.a': 'Human strategy,',
    'ai.title.em': 'AI-driven optimization',
    'ai.title.b': '.',
    'ai.sub': 'We combine strategist judgment with models monitoring your account 24/7. Faster, sharper decisions backed by signals no human could process alone.',
    'ai.1.h.a': 'Predictive',
    'ai.1.h.em': '24/7 analytics',
    'ai.1.p': 'AI models catch performance drops before they hit your ROAS and profit.',
    'ai.2.h.a': 'Budget',
    'ai.2.h.em': 'optimization',
    'ai.2.p': 'We reallocate spend across ad sets and creatives, multiplying the signals Meta receives.',
    'ai.3.h.a': 'Creative &',
    'ai.3.h.em': 'hook gen',
    'ai.3.p': 'We generate angles, UGC scripts and variations with AI. We test 3x more ideas at the same cost.',
    'ai.4.h.a': 'Reinforced',
    'ai.4.h.em': 'tracking',
    'ai.4.p': 'CAPI + attribution models that fill the Pixel gaps and feed clean data to the algorithm.',

    'process.label': 'The process',
    'process.title.a': 'How we work',
    'process.title.em': 'together',
    'process.title.b': '.',
    'process.sub': 'A clear process from day one. You know exactly what to expect at every stage.',
    'process.1.period': 'Week 1',
    'process.1.h.a': 'Diagnostic',
    'process.1.h.em': 'session',
    'process.1.p': 'We review your brand, product and current numbers. Together we decide if we\'re the right partner. No commitments.',
    'process.2.period': 'Week 1–2',
    'process.2.h.a': 'Strategy &',
    'process.2.h.em': 'launch',
    'process.2.p': 'We build the campaign architecture from scratch and launch with a proven structure for clean data from day one.',
    'process.3.period': 'Week 2–4',
    'process.3.h.a': 'Creative',
    'process.3.h.em': 'playbook',
    'process.3.p': 'We design the creative and UGC strategy with you: what to produce, format, message, and how to test each piece.',
    'process.4.period': 'Month 2+',
    'process.4.h.a': 'Optimization &',
    'process.4.h.em': 'scale',
    'process.4.p': 'With real data and 24/7 AI models, we scale what\'s profitable and cut what\'s not. Stable ROAS month after month.',
    'process.5.period': 'Monthly',
    'process.5.h.a': 'Reporting &',
    'process.5.h.em': 'alignment',
    'process.5.p': 'Clear reports on the metrics that matter and a plan for next month — always built with you.',

    'calc.label': 'Interactive calculator',
    'calc.title.a': 'How much could you',
    'calc.title.em': 'scale',
    'calc.title.b': '?',
    'calc.sub': 'Move the sliders. Compare your current situation with your potential under our system. Conservative figures based on industry benchmarks.',
    'calc.input.h': 'Your current setup',
    'calc.input.spend': 'Monthly ad spend',
    'calc.input.roas': 'Current ROAS',
    'calc.input.aov': 'Average order value',
    'calc.out.label': 'Projected revenue · 6 months',
    'calc.out.sub': 'Assuming a 5x target ROAS with progressive scaling. Conservative result.',
    'calc.bar.now': 'Today',
    'calc.bar.scalex': 'With ScalexCo',
    'calc.cta': 'Book your free session',
    'calc.disclaimer': 'Reference estimate. Real results depend on product, margin and market.',

    'g.seal': 'Our guarantee · in writing',
    'g.title.a': 'If your brand qualifies,',
    'g.title.em': 'book an audit',
    'g.title.b': '',
    'g.title.green': 'completely free',
    'g.title.dot': '.',
    'g.sub': 'In 30 minutes we audit your Meta Ads, find budget leaks and leave you with an action plan — whether we work together or not. Your time is respected.',
    'g.list.1': 'Structure & budget audit',
    'g.list.2': 'Tracking, Pixel & CAPI diagnosis',
    'g.list.3': 'Creative analysis & testing review',
    'g.list.4': 'Action plan with 3 prioritized opportunities',
    'g.cta': 'Book your free audit',

    'faq.label': 'Frequently asked',
    'faq.title.a': 'What you\'re probably',
    'faq.title.em': 'thinking',
    'faq.title.b': '.',
    'faq.1.q': 'Does my e-commerce qualify to work with ScalexCo?',
    'faq.1.a': 'We work with e-commerce brands with proven sales that can invest at least $15,000 MXN/month in ads — the minimum Meta recommends for proper optimization. Below that range, you likely need to validate product before scaling paid media.',
    'faq.2.q': 'Why focus on profit instead of ROAS?',
    'faq.2.a': 'ROAS without contribution margin is vanity. A brand with 3x ROAS and 20% margin loses money; one with 2x ROAS and 60% margin scales. We optimize for the metric that pays rent: real profit after COGS, fees and ads.',
    'faq.3.q': 'How do you use AI in the service?',
    'faq.3.a': 'AI in three layers: predictive analytics that catches drops before they hit ROAS, automated budget optimization across ad sets, and assisted generation of hooks and UGC. Every final decision goes through a human strategist — AI accelerates, doesn\'t replace judgment.',
    'faq.4.q': 'How long does it take to see results?',
    'faq.4.a': 'Meta\'s algorithm needs 7–14 days to optimize. The first clear data lands in weeks 3–4 and you start seeing results by day 30. Real scale kicks in from month 2, once we have solid data.',
    'faq.5.q': 'Are there lock-in terms?',
    'faq.5.a': 'No. Month to month. If at any point you feel we\'re not delivering value, you walk away with no penalties. Our retention comes from results, not contracts.',
    'faq.6.q': 'How does the performance-based fee work?',
    'faq.6.a': 'Monthly base fee that covers operation + variable that activates when we beat the targets agreed upfront. We win when you win. Your incentives and ours, aligned from day one.',

    'fc.title.a': 'Let\'s talk about your',
    'fc.title.em': 'next level',
    'fc.title.dot': '.',
    'fc.sub': '30 minutes. No sales pitch. We tell you honestly whether we can be your growth partner.',
    'fc.cta': 'Book your strategy session',
    'fc.spots.a': 'May 2026 ·',
    'fc.spots.b': '2 of 5 spots',
    'fc.spots.c': 'taken',

    'footer.tagline': 'Your Meta Ads Growth Partner for e-commerce brands focused on profit. Strategy, creative testing & AI-driven optimization.',
    'footer.navTitle': 'Navigation',
    'footer.contactTitle': 'Contact',
    'footer.contactCall': 'Book a call',
    'footer.copy': '© 2026 ScalexCo. Built for brands that care about profit.',
    'footer.madewith': 'Performance > reports.'
  }
};

// React context for language
const LangContext = React.createContext({ lang: 'es', t: (k) => k, setLang: () => {} });

function LangProvider({ children }) {
  const [lang, setLangState] = React.useState(() => {
    try { return localStorage.getItem('scalex-lang') || 'es'; } catch (e) { return 'es'; }
  });
  React.useEffect(() => {
    document.documentElement.lang = lang;
    try { localStorage.setItem('scalex-lang', lang); } catch (e) {}
  }, [lang]);
  const t = React.useCallback((key) => {
    const v = I18N[lang] && I18N[lang][key];
    if (v !== undefined) return v;
    const f = I18N.es[key];
    if (f !== undefined) return f;
    return key;
  }, [lang]);
  const setLang = React.useCallback((l) => setLangState(l), []);
  return (
    <LangContext.Provider value={{ lang, t, setLang }}>
      {children}
    </LangContext.Provider>
  );
}

function useI18n() { return React.useContext(LangContext); }

Object.assign(window, { I18N, LangContext, LangProvider, useI18n });
