/* global window */
// NUON multi-page · extended copy for deeper pages
// Builds on top of window.COPY (from copy.jsx) with new content per page.

const EXTRA = {
  es: {
    pageNav: [
      { id: "home", label: "Inicio", href: "index.html" },
      { id: "producto", label: "Producto", href: "producto.html" },
      { id: "mercados", label: "Mercados", href: "mercados.html" },
      { id: "casos", label: "Casos", href: "casos.html" },
      { id: "empresa", label: "Empresa", href: "empresa.html" },
      { id: "carreras", label: "Carreras", href: "carreras.html" },
      { id: "insights", label: "Insights", href: "insights.html" },
    ],
    breadcrumb: { home: "Inicio" },
    miniCta: {
      title: "Coordine su portafolio.",
      lede: "Treinta minutos con un ingeniero. Sin presentación.",
      btn: "Solicitar propuesta",
    },
    home: {
      tiles: [
        { num: "01", overline: "Producto", title: "Cómo coordinamos sus activos.", body: "Cinco etapas que ocurren cada 5 minutos: telemetría, pronóstico, optimización, despacho, liquidación.", href: "producto.html", color: "#0096FF" },
        { num: "02", overline: "Mercados", title: "Cuatro países, un portafolio.", body: "Colombia, Chile, México y España. Cumplimos las reglas locales para que usted no tenga que aprenderlas.", href: "mercados.html", color: "#7A81FF" },
        { num: "03", overline: "Casos", title: "Operadores que delegaron su factura.", body: "Industriales, datacenters y flotas EV que bajaron costos sin cambiar un interruptor.", href: "casos.html", color: "#D883FF" },
      ],
      manifiesto_overline: "↻ POR QUÉ NUON",
      manifiesto_quote_pre: "Creemos que la red eléctrica del futuro no se construye con más cables, sino con ",
      manifiesto_quote_em: "mejor coordinación",
      manifiesto_quote_post: ".",
      manifiesto_btn: "Conozca a NUON",
    },
    producto: {
      breadcrumb: "Producto",
      title: "El blueprint, en producción.",
      lede: "Una sola plataforma — telemetría, pronóstico, optimización, despacho y liquidación. Operando 2,341 activos en cuatro países, cada cinco minutos, sin intervención manual.",
      arch: {
        overline: "[ 01 ] · Arquitectura",
        title: "Cinco capas, un mismo bus de eventos.",
        lede: "Cada capa tiene una responsabilidad y un contrato con la siguiente. No hay monolitos. No hay sistemas \"legacy\".",
        layers: [
          { num: "L5", name: "Liquidación", desc: "Atribución de margen por activo. Reportes contables firmados. Trazabilidad SHA-256 por ciclo.", color: "#FDBFE8" },
          { num: "L4", name: "Despacho", desc: "Setpoints firmados al gateway de cada activo. Confirmación de aplicación en 1.2 s p99.", color: "#D883FF" },
          { num: "L3", name: "Optimización", desc: "MILP de portafolio. Restricciones físicas, contractuales y de mercado. Solver dedicado por nodo.", color: "#7A81FF" },
          { num: "L2", name: "Pronóstico", desc: "Digital twin del portafolio. Predicción de generación, demanda y precio mayorista a 24h.", color: "#0096FF" },
          { num: "L1", name: "Telemetría", desc: "Ingesta a 1 Hz de cada activo. Validación, deduplicación y normalización en stream.", color: "#76D6FF" },
        ],
      },
      specs: {
        overline: "[ 02 ] · Especificaciones técnicas",
        title: "Lo que importa medir.",
        items: [
          ["Ciclo de optimización", "5", "min", "Pronóstico continuo + plan firmado"],
          ["Telemetría", "1", "Hz", "Por activo, sin agregaciones previas"],
          ["Latencia despacho", "1.2", "s p99", "De setpoint emitido a confirmado"],
          ["Activos en línea", "2,341", "", "Sumados los 4 mercados"],
          ["Puntos / minuto", "7.0", "M", "Validados, deduplicados, indexados"],
          ["Tiempo medio de solve", "1.2", "s", "MILP con ~12,000 variables"],
          ["Disponibilidad 12m", "99.97", "%", "SLA 99.9% contractual"],
          ["Países soportados", "4", "", "CO · CL · MX · ES"],
        ],
      },
      api: {
        overline: "[ 03 ] · API · Apertura",
        title: "Sus datos, exportables. Nuestros modelos, verificables.",
        lede: "Documentación pública. SDK en Python y TypeScript. Webhooks por evento de ciclo. El cliente puede auditar cada decisión.",
        code: `# pip install nuon-sdk
import nuon

client = nuon.Client(api_key="…")

# Suscribirse a eventos de ciclo
@client.on("cycle.closed")
def handle(event):
    print(f"Ciclo {event.id} cerrado")
    print(f"Margen atribuido: $\{event.margin} COP")
    print(f"SHA: {event.checksum}")

# Consultar portafolio
portfolio = client.portfolios.get("atacama")
for asset in portfolio.assets:
    print(asset.id, asset.state, asset.setpoint)`,
        bullets: [
          "REST + WebSocket · OpenAPI 3.1 público",
          "SDK oficial · Python · TypeScript · Go",
          "Webhooks firmados por evento de ciclo",
          "Export histórico · Parquet · CSV · S3",
        ],
      },
    },
    mercados_extra: {
      breadcrumb: "Mercados",
      title: "Cuatro países. Un portafolio.",
      lede: "Operamos en cada mercado mayorista o spot. Aprendemos las reglas locales — usted opera bajo un solo contrato.",
      coverage: {
        overline: "[ 02 ] · Cobertura",
        title: "Veinte ciudades, cuatro mercados.",
        lede: "Cada punto es un nodo activo, despachado en el último ciclo.",
      },
      reg: {
        overline: "[ 03 ] · Marcos regulatorios",
        title: "Las reglas locales, manejadas.",
        items: [
          { flag: "CO", name: "Colombia", body: "Cumplimiento CREG 174/2021 (BESS), Resolución 030 (autogeneradores), Estatuto del Mercado Mayorista XM. Agentes registrados como comercializador y generador.", regs: ["CREG 030", "CREG 174", "XM · Agente"] },
          { flag: "CL", name: "Chile", body: "Coordinador Eléctrico Nacional (CEN). PMGD bajo DS 88. Almacenamiento bajo Ley 21.505. Reportes a SEC y CNE en tiempo real.", regs: ["DS 88", "Ley 21.505", "CEN"] },
          { flag: "MX", name: "México", body: "CENACE como operador del SEN. Permiso CRE para suministro calificado. Reglas del Mercado Eléctrico Mayorista (MEM) y bases del mercado de balance.", regs: ["CRE · SC", "CENACE", "Manual MEM"] },
          { flag: "ES", name: "España", body: "Operador del Mercado Ibérico (OMIE) y Operador del Sistema (REE). Sujeto del mercado bajo RD 244/2019. Autoconsumo colectivo + agregación de demanda.", regs: ["OMIE", "REE", "RD 244/2019"] },
        ],
      },
      timeline: {
        overline: "[ 04 ] · Cronología",
        title: "Cuatro años, cuatro mercados.",
        events: [
          { year: "2022", q: "Q2", text: "Fundación en Bogotá. Primeros 12 MW coordinados en zona industrial de Floridablanca." },
          { year: "2023", q: "Q1", text: "Llegada a Chile. Primer BESS coordinado en Atacama: 24 MWh." },
          { year: "2023", q: "Q4", text: "Series A · $18M. Equipo crece a 22 personas." },
          { year: "2024", q: "Q2", text: "México. Demanda flexible en manufactura del Bajío." },
          { year: "2025", q: "Q1", text: "España. Madrid, primer fleet EV coordinado en logística." },
          { year: "2026", q: "Q1", text: "2,341 activos · 847 MW coordinados · 4 mercados." },
        ],
      },
    },
    casos_extra: {
      breadcrumb: "Casos",
      title: "Resultados, no demos.",
      lede: "Estudios de caso públicos. Cifras auditables, contadas por quienes operan los activos.",
      extras: [
        { industry: "Minería", country: "Antofagasta · CL", title: "Solar + BESS para faena minera off-grid.", quote: "Reemplazamos 65% del diésel sin instalar más capacidad. La continuidad operativa mejoró.", metric: ["65", "% menos diésel"], color: "#76D6FF" },
        { industry: "Agroindustria", country: "Querétaro · MX", title: "Modulación de bombeo en planta de procesamiento.", quote: "Movieron nuestro consumo a las horas de menor precio sin que el área productiva lo notara.", metric: ["22", "% menor costo"], color: "#7A81FF" },
        { industry: "Retail", country: "Bogotá · CO", title: "Coordinación de HVAC en cadena de supermercados.", quote: "Sesenta tiendas, una sola optimización. Los gerentes ya no tocan los termostatos.", metric: ["41", "M COP/año"], color: "#0096FF" },
      ],
      logos_title: "Algunos operadores que delegan su factura",
      logos: ["Cementos Andinos", "DataNorte", "Logística Iberia", "Minera Atacama", "Agropecuaria Bajío", "SuperMercados +", "Refinería del Sur", "Aluminios Pacífico"],
      breakdown: {
        overline: "[ 02 ] · Por industria",
        title: "MW coordinados por sector.",
        items: [
          ["Manufactura industrial", 312, "#0096FF"],
          ["Datacenters", 184, "#D883FF"],
          ["Minería", 142, "#76D6FF"],
          ["Logística + EV", 96, "#FDBFE8"],
          ["Agroindustria", 68, "#7A81FF"],
          ["Retail + HVAC", 45, "#34d8d0"],
        ],
      },
    },
    empresa_extra: {
      breadcrumb: "Empresa",
      title: "Energía distribuida, coordinada.",
      lede: "Fundada por ingenieros que operaron plantas, despacharon energía y construyeron software de mercado. Hoy, sesenta personas en seis ciudades.",
      historia: {
        overline: "[ 02 ] · Historia",
        title: "Cuatro años, una decisión que no cambia.",
        events: [
          { year: "2022", title: "Origen", body: "María Restrepo (XM) y Javier Soto (CEN) detectan el mismo problema desde dos países distintos: los activos distribuidos crecen, pero no hay quien los coordine." },
          { year: "2023", title: "Primer ciclo", body: "Primer ciclo de 5 minutos cerrado con margen positivo en una planta de cemento. 14 personas. Operación 24/7." },
          { year: "2024", title: "Expansión", body: "Llegada a México. Primer datacenter coordinado en Chile. Equipo de optimización liderado por Lucía Pereda (ex-OMIE)." },
          { year: "2025", title: "Apertura", body: "Documentación pública de modelos. SDK abierto. España con primer fleet EV coordinado en logística." },
          { year: "2026", title: "Hoy", body: "847 MW · 2,341 activos · ciclos cada 5 min. Series B en curso para escalar a Brasil y Perú." },
        ],
      },
      investors: {
        overline: "[ 03 ] · Respaldo",
        title: "Inversionistas y aliados.",
        items: ["Andes Capital", "Quasar Ventures", "Iberian Climate Fund", "Atacama Partners", "Pacífico Energy", "Banco BIDInvest"],
      },
      board: {
        overline: "[ 04 ] · Consejo asesor",
        title: "Operadores que también enseñan.",
        people: [
          ["Dra. Elena Carvalho", "Ex-CEO ONS · Brasil", "São Paulo"],
          ["Miguel Etxeberria", "Ex-Director OMIE", "Madrid"],
          ["Tomás Larraín", "Ex-Comisionado CNE Chile", "Santiago"],
          ["Verónica Salinas", "Ex-CFO ISA Interchile", "Medellín"],
        ],
      },
    },
    carreras_extra: {
      breadcrumb: "Carreras",
      title: "Buscamos ingenieros que también diseñen.",
      lede: "Equipos pequeños, decisiones rápidas, foco en operación real. Hablamos de despachos, no de demos.",
      benefits: {
        overline: "[ 02 ] · Beneficios",
        title: "Lo que ofrecemos.",
        items: [
          { title: "Remoto verdadero", body: "Sin oficina obligatoria. Encuentros trimestrales en uno de los mercados, costos cubiertos." },
          { title: "Compensación clara", body: "Bandas salariales publicadas internamente. Equity para todo el equipo, sin excepción." },
          { title: "Operación, no demos", body: "Su código corre en producción la misma semana. No hay sprints sobre roadmaps imaginarios." },
          { title: "Educación continua", body: "$3,000 USD anuales por persona para libros, cursos y conferencias. Tiempo dedicado en horario laboral." },
          { title: "Salud iberoamericana", body: "Plan médico privado en su país. 100% cubierto para colaborador y familia inmediata." },
          { title: "Treinta días", body: "Vacaciones reales. Sin lectura de correo. Sin Slack abierto. El relevo se prepara con dos semanas." },
        ],
      },
      proceso: {
        overline: "[ 03 ] · Proceso",
        title: "Cómo aplicar.",
        steps: [
          { num: "01", title: "Conversación inicial", sub: "30 min con el equipo de personas. Sin filtros automáticos.", time: "Semana 1" },
          { num: "02", title: "Reto técnico pagado", sub: "Problema real de su disciplina. Sin algoritmos de pizarra.", time: "Semana 1–2" },
          { num: "03", title: "Entrevista con el equipo", sub: "Dos sesiones con sus futuros colegas. Sin pruebas de cultura.", time: "Semana 2–3" },
          { num: "04", title: "Oferta", sub: "Compensación publicada de antemano. Tres días para decidir, sin presión.", time: "Semana 3" },
        ],
      },
      testimonio: {
        quote: "Llevo nueve meses y todavía no he escrito un sprint review. Cada cosa que mando a producción importa el mismo día.",
        author: "Andrés P. · Ingeniero de optimización · se sumó en 2025",
      },
    },
    insights_extra: {
      breadcrumb: "Insights",
      title: "Notas operativas del equipo.",
      lede: "Documentación abierta, lecciones de campo y análisis de mercado. Sin marketing.",
      featured: {
        tag: "Operación",
        date: "12 MAY · 2026",
        title: "Por qué 5 minutos: anatomía de un ciclo de optimización.",
        body: "Diseccionamos los 300 segundos que ocurren entre 2,341 activos distribuidos en cuatro países y nuestro digital twin. Telemetría a 1 Hz, pronóstico continuo, MILP de portafolio y despacho firmado — todo en menos tiempo que un café.",
        readtime: "12 min de lectura",
        author: "Lucía Pereda · Head of Optimization",
      },
      filters: ["Todos", "Operación", "Mercados", "Ingeniería", "Producto"],
      extras: [
        { tag: "Producto", date: "01 MAY · 2026", title: "El nuevo módulo de liquidación: por qué reescribimos la atribución de margen.", body: "Después de 18 meses, el módulo viejo no soportaba más activos. Lo reemplazamos sin un solo segundo de downtime." },
        { tag: "Mercados", date: "22 ABR · 2026", title: "Lecciones del último despacho diario en OMIE.", body: "Tres días donde el precio mayorista cerró negativo. Cómo el portafolio salió en positivo." },
        { tag: "Ingeniería", date: "18 ABR · 2026", title: "Stream-first: por qué no usamos un data warehouse para operación.", body: "Análisis: dos años después de tomar la decisión, qué cambiaríamos y qué no." },
        { tag: "Operación", date: "09 ABR · 2026", title: "Un día en el despacho: turnos, escalado y la regla de las tres llamadas.", body: "Cómo operamos 24/7 sin que nadie pierda el sueño." },
        { tag: "Mercados", date: "27 MAR · 2026", title: "Por qué Chile va por delante en BESS — y qué aprendimos.", body: "Política, economía y operación: tres lentes para entender el liderazgo chileno." },
        { tag: "Producto", date: "12 MAR · 2026", title: "Diseñar la Consola: una vista para cada turno operativo.", body: "Cómo se construyó la interfaz que opera ocho horas diarias el equipo de despacho." },
      ],
    },
    contacto: {
      breadcrumb: "Contacto",
      title: "Hablemos de su portafolio.",
      lede: "Treinta minutos con un ingeniero. Le mostramos su portafolio actual coordinado contra el portafolio bajo NUON. Sin presentación.",
      form_title: "Solicitar propuesta",
      form_meta: "Tiempo de respuesta · 24h hábiles",
      fields: {
        name: "Nombre completo",
        email: "Correo corporativo",
        company: "Empresa",
        role: "Cargo",
        country: "País de operación",
        assets: "Tipo de activos (opcional)",
        message: "Cuéntenos brevemente qué portafolio quisiera coordinar",
        submit: "Solicitar propuesta",
      },
      countries: ["Colombia", "Chile", "México", "España", "Otro / Por definir"],
      asset_options: ["Solar fotovoltaico", "BESS · Baterías", "Demanda flexible", "Flotas EV", "Mix de los anteriores"],
      offices: {
        overline: "[ 02 ] · Oficinas",
        title: "Seis ciudades, una operación.",
        items: [
          { city: "Bogotá", country: "Colombia", address: "Calle 100 # 7-33 · Edificio Andino · Piso 18", role: "HQ · Operaciones · Mercados CO", tz: "UTC-5" },
          { city: "Santiago", country: "Chile", address: "Av. Apoquindo 4501 · Las Condes", role: "Mercados CL · Despacho BESS", tz: "UTC-3" },
          { city: "Ciudad de México", country: "México", address: "Av. Reforma 222 · Cuauhtémoc", role: "Mercados MX · Demanda flexible", tz: "UTC-6" },
          { city: "Madrid", country: "España", address: "Calle de Velázquez 53 · Salamanca", role: "Mercados ES · Fleet EV", tz: "UTC+1" },
        ],
      },
      alt: {
        overline: "[ 03 ] · Otras vías",
        items: [
          { label: "Equipo comercial", value: "comercial@nuon.energy" },
          { label: "Soporte clientes", value: "soporte@nuon.energy" },
          { label: "Prensa", value: "prensa@nuon.energy" },
          { label: "Carreras", value: "personas@nuon.energy" },
        ],
      },
    },
  },
  en: {
    pageNav: [
      { id: "home", label: "Home", href: "index.html" },
      { id: "producto", label: "Product", href: "producto.html" },
      { id: "mercados", label: "Markets", href: "mercados.html" },
      { id: "casos", label: "Customers", href: "casos.html" },
      { id: "empresa", label: "Company", href: "empresa.html" },
      { id: "carreras", label: "Careers", href: "carreras.html" },
      { id: "insights", label: "Insights", href: "insights.html" },
    ],
    breadcrumb: { home: "Home" },
    miniCta: {
      title: "Coordinate your portfolio.",
      lede: "Thirty minutes with an engineer. No slides.",
      btn: "Request a proposal",
    },
    home: {
      tiles: [
        { num: "01", overline: "Product", title: "How we coordinate your assets.", body: "Five stages, every 5 minutes: telemetry, forecast, optimization, dispatch, settlement.", href: "producto.html", color: "#0096FF" },
        { num: "02", overline: "Markets", title: "Four countries, one portfolio.", body: "Colombia, Chile, Mexico and Spain. We learn the local rules so you don't have to.", href: "mercados.html", color: "#7A81FF" },
        { num: "03", overline: "Customers", title: "Operators who delegated their bill.", body: "Industrials, datacenters and EV fleets that lowered costs without flipping a switch.", href: "casos.html", color: "#D883FF" },
      ],
      manifiesto_overline: "↻ WHY NUON",
      manifiesto_quote_pre: "We believe the grid of the future isn't built with more wires, but with ",
      manifiesto_quote_em: "better coordination",
      manifiesto_quote_post: ".",
      manifiesto_btn: "Meet NUON",
    },
    producto: {
      breadcrumb: "Product",
      title: "The blueprint, in production.",
      lede: "One platform — telemetry, forecasting, optimization, dispatch and settlement. Operating 2,341 assets across four countries, every five minutes, without manual intervention.",
      arch: {
        overline: "[ 01 ] · Architecture",
        title: "Five layers, one event bus.",
        lede: "Each layer has one responsibility and a contract with the next. No monoliths. No \"legacy\" systems.",
        layers: [
          { num: "L5", name: "Settlement", desc: "Per-asset margin attribution. Signed accounting reports. SHA-256 traceability per cycle.", color: "#FDBFE8" },
          { num: "L4", name: "Dispatch", desc: "Signed setpoints to each asset's gateway. Application confirmed in 1.2 s p99.", color: "#D883FF" },
          { num: "L3", name: "Optimization", desc: "Portfolio MILP. Physical, contract and market constraints. Dedicated solver per node.", color: "#7A81FF" },
          { num: "L2", name: "Forecast", desc: "Portfolio digital twin. Generation, demand and wholesale price prediction at 24h.", color: "#0096FF" },
          { num: "L1", name: "Telemetry", desc: "1 Hz ingest from every asset. In-stream validation, deduplication and normalization.", color: "#76D6FF" },
        ],
      },
      specs: {
        overline: "[ 02 ] · Technical specs",
        title: "What matters to measure.",
        items: [
          ["Optimization cycle", "5", "min", "Continuous forecast + signed plan"],
          ["Telemetry", "1", "Hz", "Per asset, no pre-aggregation"],
          ["Dispatch latency", "1.2", "s p99", "From emitted to confirmed setpoint"],
          ["Live assets", "2,341", "", "Across the 4 markets"],
          ["Points / minute", "7.0", "M", "Validated, deduped, indexed"],
          ["Avg solve time", "1.2", "s", "MILP with ~12,000 variables"],
          ["12m availability", "99.97", "%", "99.9% SLA contractual"],
          ["Countries supported", "4", "", "CO · CL · MX · ES"],
        ],
      },
      api: {
        overline: "[ 03 ] · API · Openness",
        title: "Your data, exportable. Our models, verifiable.",
        lede: "Public docs. Python and TypeScript SDK. Webhooks per cycle event. Customers audit every decision.",
        code: `# pip install nuon-sdk
import nuon

client = nuon.Client(api_key="…")

# Subscribe to cycle events
@client.on("cycle.closed")
def handle(event):
    print(f"Cycle {event.id} closed")
    print(f"Attributed margin: $\{event.margin} COP")
    print(f"SHA: {event.checksum}")

# Query portfolio
portfolio = client.portfolios.get("atacama")
for asset in portfolio.assets:
    print(asset.id, asset.state, asset.setpoint)`,
        bullets: [
          "REST + WebSocket · public OpenAPI 3.1",
          "Official SDK · Python · TypeScript · Go",
          "Signed webhooks per cycle event",
          "Historical export · Parquet · CSV · S3",
        ],
      },
    },
    mercados_extra: {
      breadcrumb: "Markets",
      title: "Four countries. One portfolio.",
      lede: "We operate in each wholesale or spot market. We learn the local rules — you operate under one contract.",
      coverage: {
        overline: "[ 02 ] · Coverage",
        title: "Twenty cities, four markets.",
        lede: "Each dot is a node dispatched in the last cycle.",
      },
      reg: {
        overline: "[ 03 ] · Regulatory frameworks",
        title: "Local rules, handled.",
        items: [
          { flag: "CO", name: "Colombia", body: "CREG 174/2021 (BESS) compliance, Resolution 030 (self-generation), Wholesale Market Statute XM. Registered as marketer and generator.", regs: ["CREG 030", "CREG 174", "XM · Agent"] },
          { flag: "CL", name: "Chile", body: "National Electric Coordinator (CEN). PMGD under DS 88. Storage under Law 21.505. Real-time reporting to SEC and CNE.", regs: ["DS 88", "Law 21.505", "CEN"] },
          { flag: "MX", name: "Mexico", body: "CENACE as SEN operator. CRE permit for qualified supply. MEM market rules and balancing market bases.", regs: ["CRE · QS", "CENACE", "MEM Manual"] },
          { flag: "ES", name: "Spain", body: "Iberian Market Operator (OMIE) and System Operator (REE). Market participant under RD 244/2019. Collective self-consumption + demand aggregation.", regs: ["OMIE", "REE", "RD 244/2019"] },
        ],
      },
      timeline: {
        overline: "[ 04 ] · Timeline",
        title: "Four years, four markets.",
        events: [
          { year: "2022", q: "Q2", text: "Founded in Bogotá. First 12 MW coordinated in Floridablanca industrial zone." },
          { year: "2023", q: "Q1", text: "Chile launch. First coordinated BESS in Atacama: 24 MWh." },
          { year: "2023", q: "Q4", text: "Series A · $18M. Team grows to 22 people." },
          { year: "2024", q: "Q2", text: "Mexico. Flexible demand in Bajío manufacturing." },
          { year: "2025", q: "Q1", text: "Spain. Madrid, first EV fleet coordinated in logistics." },
          { year: "2026", q: "Q1", text: "2,341 assets · 847 MW coordinated · 4 markets." },
        ],
      },
    },
    casos_extra: {
      breadcrumb: "Customers",
      title: "Results, not demos.",
      lede: "Public case studies. Auditable figures, told by those who operate the assets.",
      extras: [
        { industry: "Mining", country: "Antofagasta · CL", title: "Solar + BESS for off-grid mining operation.", quote: "We replaced 65% of diesel without installing more capacity. Operational continuity improved.", metric: ["65", "% less diesel"], color: "#76D6FF" },
        { industry: "Agribusiness", country: "Querétaro · MX", title: "Pump modulation at processing plant.", quote: "They shifted our consumption to off-peak hours without production noticing.", metric: ["22", "% lower cost"], color: "#7A81FF" },
        { industry: "Retail", country: "Bogotá · CO", title: "HVAC coordination across supermarket chain.", quote: "Sixty stores, one optimization. Managers no longer touch the thermostats.", metric: ["41", "M COP/yr"], color: "#0096FF" },
      ],
      logos_title: "Some operators who delegate their bill",
      logos: ["Cementos Andinos", "DataNorte", "Logística Iberia", "Minera Atacama", "Agropecuaria Bajío", "SuperMercados +", "Refinería del Sur", "Aluminios Pacífico"],
      breakdown: {
        overline: "[ 02 ] · By industry",
        title: "MW coordinated by sector.",
        items: [
          ["Industrial manufacturing", 312, "#0096FF"],
          ["Datacenters", 184, "#D883FF"],
          ["Mining", 142, "#76D6FF"],
          ["Logistics + EV", 96, "#FDBFE8"],
          ["Agribusiness", 68, "#7A81FF"],
          ["Retail + HVAC", 45, "#34d8d0"],
        ],
      },
    },
    empresa_extra: {
      breadcrumb: "Company",
      title: "Distributed energy, coordinated.",
      lede: "Founded by engineers who operated plants, dispatched energy and built market software. Today, sixty people in six cities.",
      historia: {
        overline: "[ 02 ] · History",
        title: "Four years, one decision that doesn't change.",
        events: [
          { year: "2022", title: "Origin", body: "María Restrepo (XM) and Javier Soto (CEN) spot the same problem from two different countries: distributed assets are growing, but no one is coordinating them." },
          { year: "2023", title: "First cycle", body: "First 5-minute cycle closed with positive margin at a cement plant. 14 people. 24/7 operation." },
          { year: "2024", title: "Expansion", body: "Mexico launch. First coordinated datacenter in Chile. Optimization team led by Lucía Pereda (ex-OMIE)." },
          { year: "2025", title: "Openness", body: "Public model documentation. Open SDK. Spain with first EV fleet coordinated in logistics." },
          { year: "2026", title: "Today", body: "847 MW · 2,341 assets · 5-min cycles. Series B underway to scale to Brazil and Peru." },
        ],
      },
      investors: {
        overline: "[ 03 ] · Backing",
        title: "Investors and partners.",
        items: ["Andes Capital", "Quasar Ventures", "Iberian Climate Fund", "Atacama Partners", "Pacífico Energy", "Banco BIDInvest"],
      },
      board: {
        overline: "[ 04 ] · Advisory board",
        title: "Operators who also teach.",
        people: [
          ["Dr. Elena Carvalho", "Former ONS CEO · Brazil", "São Paulo"],
          ["Miguel Etxeberria", "Former OMIE Director", "Madrid"],
          ["Tomás Larraín", "Former CNE Chile Commissioner", "Santiago"],
          ["Verónica Salinas", "Former ISA Interchile CFO", "Medellín"],
        ],
      },
    },
    carreras_extra: {
      breadcrumb: "Careers",
      title: "We hire engineers who also design.",
      lede: "Small teams, fast decisions, focus on real operation. We talk dispatch, not demos.",
      benefits: {
        overline: "[ 02 ] · Benefits",
        title: "What we offer.",
        items: [
          { title: "Real remote", body: "No mandatory office. Quarterly gatherings in one of the markets, expenses covered." },
          { title: "Clear comp", body: "Salary bands published internally. Equity for the entire team, no exceptions." },
          { title: "Ops, not demos", body: "Your code ships to prod the same week. No sprints on imaginary roadmaps." },
          { title: "Continuous education", body: "$3,000 USD per year per person for books, courses and conferences. Time during work hours." },
          { title: "Iberoamerican health", body: "Private medical plan in your country. 100% covered for employee and immediate family." },
          { title: "Thirty days", body: "Real vacation. No email checking. No Slack open. Handover prepared two weeks ahead." },
        ],
      },
      proceso: {
        overline: "[ 03 ] · Process",
        title: "How to apply.",
        steps: [
          { num: "01", title: "Initial conversation", sub: "30 min with the people team. No automated filters.", time: "Week 1" },
          { num: "02", title: "Paid technical challenge", sub: "Real problem in your discipline. No whiteboard algorithms.", time: "Week 1–2" },
          { num: "03", title: "Team interview", sub: "Two sessions with your future colleagues. No culture quizzes.", time: "Week 2–3" },
          { num: "04", title: "Offer", sub: "Comp published upfront. Three days to decide, no pressure.", time: "Week 3" },
        ],
      },
      testimonio: {
        quote: "I've been here nine months and still haven't written a sprint review. Everything I ship to prod matters the same day.",
        author: "Andrés P. · Optimization Engineer · joined 2025",
      },
    },
    insights_extra: {
      breadcrumb: "Insights",
      title: "Operating notes from the team.",
      lede: "Open documentation, field lessons and market analysis. No marketing.",
      featured: {
        tag: "Operations",
        date: "MAY 12 · 2026",
        title: "Why 5 minutes: anatomy of an optimization cycle.",
        body: "We dissect the 300 seconds that happen between 2,341 assets distributed across four countries and our digital twin. 1 Hz telemetry, continuous forecasting, portfolio MILP and signed dispatch — all in less time than a coffee.",
        readtime: "12 min read",
        author: "Lucía Pereda · Head of Optimization",
      },
      filters: ["All", "Operations", "Markets", "Engineering", "Product"],
      extras: [
        { tag: "Product", date: "MAY 01 · 2026", title: "The new settlement module: why we rewrote margin attribution.", body: "After 18 months, the old module couldn't take more assets. We replaced it without a second of downtime." },
        { tag: "Markets", date: "APR 22 · 2026", title: "Lessons from the last daily dispatch in OMIE.", body: "Three days when wholesale price closed negative. How the portfolio came out positive." },
        { tag: "Engineering", date: "APR 18 · 2026", title: "Stream-first: why we don't use a data warehouse for operations.", body: "Analysis: two years after that decision, what we'd change and what we wouldn't." },
        { tag: "Operations", date: "APR 09 · 2026", title: "A day in dispatch: shifts, escalation and the three-call rule.", body: "How we operate 24/7 without anyone losing sleep." },
        { tag: "Markets", date: "MAR 27 · 2026", title: "Why Chile leads on BESS — and what we learned.", body: "Policy, economics and operation: three lenses to understand Chile's leadership." },
        { tag: "Product", date: "MAR 12 · 2026", title: "Designing the Console: one view per operational shift.", body: "How we built the interface the dispatch team uses eight hours a day." },
      ],
    },
    contacto: {
      breadcrumb: "Contact",
      title: "Let's talk about your portfolio.",
      lede: "Thirty minutes with an engineer. We'll show you your current portfolio coordinated against the portfolio under NUON. No slides.",
      form_title: "Request a proposal",
      form_meta: "Response time · 24h business",
      fields: {
        name: "Full name",
        email: "Corporate email",
        company: "Company",
        role: "Role",
        country: "Operating country",
        assets: "Asset type (optional)",
        message: "Briefly tell us which portfolio you'd like to coordinate",
        submit: "Request a proposal",
      },
      countries: ["Colombia", "Chile", "Mexico", "Spain", "Other / TBD"],
      asset_options: ["Solar PV", "BESS · Batteries", "Flexible demand", "EV fleets", "Mix of the above"],
      offices: {
        overline: "[ 02 ] · Offices",
        title: "Six cities, one operation.",
        items: [
          { city: "Bogotá", country: "Colombia", address: "Calle 100 # 7-33 · Edificio Andino · Floor 18", role: "HQ · Operations · CO Markets", tz: "UTC-5" },
          { city: "Santiago", country: "Chile", address: "Av. Apoquindo 4501 · Las Condes", role: "CL Markets · BESS Dispatch", tz: "UTC-3" },
          { city: "Mexico City", country: "Mexico", address: "Av. Reforma 222 · Cuauhtémoc", role: "MX Markets · Flexible Demand", tz: "UTC-6" },
          { city: "Madrid", country: "Spain", address: "Calle de Velázquez 53 · Salamanca", role: "ES Markets · EV Fleet", tz: "UTC+1" },
        ],
      },
      alt: {
        overline: "[ 03 ] · Other channels",
        items: [
          { label: "Sales team", value: "sales@nuon.energy" },
          { label: "Customer support", value: "support@nuon.energy" },
          { label: "Press", value: "press@nuon.energy" },
          { label: "Careers", value: "people@nuon.energy" },
        ],
      },
    },
  },
};

window.EXTRA = EXTRA;
