/* La acumulación de capacidad — sección interactiva (Cómo funciona) */ /* usa los globals useState/useEffect/useRef (declarados en comofunciona.jsx) */ function CapCounter({ to, dec = 0, prefix = "", suffix = "", anim = 1 }) { const [v, setV] = useState(0); const ref = useRef(null); useEffect(() => { const el = ref.current; if (!el) return; let done = false; const run = () => { if (anim <= 0) { setV(to); return; } const D = 2000 / Math.max(0.35, anim), t0 = performance.now(); const tick = (now) => { const p = Math.min(1, (now - t0) / D); setV(to * (1 - Math.pow(1 - p, 3))); if (p < 1) requestAnimationFrame(tick); }; requestAnimationFrame(tick); }; const check = () => { if (done) return; const r = el.getBoundingClientRect(); if (r.top < window.innerHeight * 0.9 && r.bottom > 0) { done = true; window.removeEventListener("scroll", check); run(); } }; check(); window.addEventListener("scroll", check, { passive: true }); return () => window.removeEventListener("scroll", check); }, []); const fmt = dec > 0 ? v.toFixed(dec) : Math.round(v).toLocaleString("es-CO"); return {prefix}{fmt}{suffix}; } const CAP_LAYERS = [ { b: "Automatización financiera", s: "+320 h recuperadas / mes" }, { b: "Dashboard ejecutivo", s: "+18% velocidad operativa" }, { b: "Integración de sistemas", s: "+12% productividad" }, { b: "Agente IA comercial", s: "+25% capacidad de atención" }, { b: "Predicción de demanda", s: "−15% desperdicio operativo" }, ]; const CAP_MARKERS = [ { x: 210, y: 360, m: "+320 h", d: 0.8 }, { x: 400, y: 312, m: "+18%", d: 1.3 }, { x: 560, y: 248, m: "+12%", d: 1.8 }, { x: 770, y: 150, m: "+25%", d: 2.3 }, { x: 915, y: 70, m: "−15%", d: 2.8 }, ]; const CAP_CIRCUIT = ["Productividad", "Capacidad operativa", "Ingresos", "Valor empresarial"]; function CapCircuit() { const [step, setStep] = useState(0); useEffect(() => { const t = setInterval(() => setStep((s) => (s + 1) % (CAP_CIRCUIT.length + 1)), 700); return () => clearInterval(t); }, []); return (
Cada iniciativa ejecutada aumenta la capacidad operativa de la organización, permitiéndole producir más valor con los mismos recursos.
Cada automatización, cada integración, cada sistema y cada modelo de inteligencia artificial permanece dentro de la organización y multiplica el valor de las siguientes iniciativas.
Y la capacidad acumulada es lo que permite a una organización crecer más rápido, operar mejor y aumentar su valor con el tiempo.