// software-sections.jsx — secciones premium de la landing "Software & IA" // Reusa F, Magnetic, Parallax, RevealText, RevealWords, GlitchWord, useScrollProgress, // useInView y PlaceholderImg de shared.jsx / final-hooks.jsx / final-sections.jsx. // ───────────── HERO ───────────── function EMPHero({ content }) { const heroRef = React.useRef(null); const canvasRef = React.useRef(null); const progress = useScrollProgress(heroRef); const [mouse, setMouse] = React.useState({ x: 0.5, y: 0.5 }); React.useEffect(() => { const c = canvasRef.current; if (!c) return; const ctx = c.getContext('2d'); let w, h, raf; const dpr = Math.min(2, window.devicePixelRatio || 1); const resize = () => { const r = c.getBoundingClientRect(); w = r.width; h = r.height; c.width = w * dpr; c.height = h * dpr; ctx.setTransform(dpr, 0, 0, dpr, 0, 0); }; resize(); const ro = new ResizeObserver(resize); ro.observe(c); const N = 42; const pts = Array.from({ length: N }, () => ({ x: Math.random() * w, y: Math.random() * h, vx: (Math.random() - 0.5) * 0.3, vy: (Math.random() - 0.5) * 0.3, r: 0.8 + Math.random() * 1.6 })); const loop = () => { ctx.clearRect(0, 0, w, h); ctx.strokeStyle = 'rgba(120,140,210,0.06)'; ctx.lineWidth = 1; for (let x = 0; x < w; x += 60) { ctx.beginPath(); ctx.moveTo(x, 0); ctx.lineTo(x, h); ctx.stroke(); } for (let y = 0; y < h; y += 60) { ctx.beginPath(); ctx.moveTo(0, y); ctx.lineTo(w, y); ctx.stroke(); } for (const p of pts) { p.x += p.vx; p.y += p.vy; if (p.x < 0 || p.x > w) p.vx *= -1; if (p.y < 0 || p.y > h) p.vy *= -1; } for (let i = 0; i < pts.length; i++) { for (let j = i + 1; j < pts.length; j++) { const dx = pts[i].x - pts[j].x, dy = pts[i].y - pts[j].y; const d = Math.hypot(dx, dy); if (d < 170) { ctx.strokeStyle = `rgba(33,153,234,${(1 - d / 170) * 0.4})`; ctx.lineWidth = 0.7; ctx.beginPath(); ctx.moveTo(pts[i].x, pts[i].y); ctx.lineTo(pts[j].x, pts[j].y); ctx.stroke(); } } } for (const p of pts) { ctx.fillStyle = F.accent; ctx.shadowColor = F.accent; ctx.shadowBlur = 14; ctx.beginPath(); ctx.arc(p.x, p.y, p.r, 0, Math.PI * 2); ctx.fill(); } ctx.shadowBlur = 0; raf = requestAnimationFrame(loop); }; loop(); return () => { cancelAnimationFrame(raf); ro.disconnect(); }; }, []); React.useEffect(() => { if (document.getElementById('emp-hero-styles')) return; const s = document.createElement('style'); s.id = 'emp-hero-styles'; s.textContent = ` @property --empBorderAngle { syntax: ''; inherits: false; initial-value: 0deg; } @keyframes empBorderRotate { to { --empBorderAngle: 360deg; } } @keyframes empBtnShimmer { 0%, 75% { background-position: 200% center; opacity: 0; } 80% { opacity: 1; } 95%, 100% { background-position: -100% center; opacity: 0; } } @keyframes empArrow { 0%, 60%, 100% { transform: translateX(0); } 80% { transform: translateX(5px); } } .emp-cta-wrap { position: relative; display: inline-block; border-radius: 14px; padding: 2px; background: conic-gradient(from var(--empBorderAngle), transparent 0%, #2199ea 12%, #63b7f0 22%, #137dc5 32%, transparent 44%, transparent 100%); animation: empBorderRotate 2.5s linear infinite; transition: transform 0.3s cubic-bezier(.2,.8,.3,1); } .emp-cta-wrap:hover { transform: scale(1.04); } .emp-cta-inner { position: relative; overflow: hidden; padding: 20px 36px; background: linear-gradient(135deg, #2199ea 20%, #137dc5); color: #fff; border: none; border-radius: 12px; font-family: var(--font-heading); font-size: 15px; font-weight: 500; letter-spacing: 0.02em; cursor: pointer; display: flex; align-items: center; gap: 8px; } .emp-cta-inner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%); background-size: 200% 100%; animation: empBtnShimmer 9s ease-in-out infinite; pointer-events: none; } .emp-arrow { display: inline-block; animation: empArrow 3s ease-in-out infinite; } `; document.head.appendChild(s); }, []); React.useEffect(() => { const onMove = (e) => { const el = heroRef.current; if (!el) return; const r = el.getBoundingClientRect(); setMouse({ x: (e.clientX - r.left) / r.width, y: (e.clientY - r.top) / r.height }); }; const el = heroRef.current; if (!el) return; el.addEventListener('mousemove', onMove); return () => el.removeEventListener('mousemove', onMove); }, []); const px = (mouse.x - 0.5) * 24; const py = (mouse.y - 0.5) * 24; return (
EUREKANT.SOFTWARE.EMPRESAS

{content.hero.sub}

●{content.hero.meta}
); } function SectionEyebrowHead({ eyebrow, title, sub, align = 'left', maxTitle = 900 }) { return (
{eyebrow}

{title}

{sub &&

{sub}

}
); } // ───────────── COSTO DE NO ACTUAR ───────────── function EMPCost({ content }) { const ref = React.useRef(null); const inView = useInView(ref, { threshold: 0.2 }); return (
01
{content.cost.items.map((c, i) => (
{c.stat}
{c.label}

{c.desc}

))}
); } // ───────────── DOLORES ───────────── function EMPPains({ content }) { const ref = React.useRef(null); const inView = useInView(ref, { threshold: 0.15 }); return (
{content.pains.items.map((p, i) => (
e.currentTarget.style.borderColor = F.accent} onMouseLeave={(e) => e.currentTarget.style.borderColor = F.line} style={{ background: F.surface, border: `1px solid ${F.line}`, borderRadius: 24, padding: 40, position: 'relative', overflow: 'hidden', transition: 'border-color .35s', opacity: inView ? 1 : 0, transform: inView ? 'none' : 'translateY(28px)', transitionProperty: 'border-color, opacity, transform', transitionDuration: `.35s, .8s, .8s`, transitionDelay: `0s, ${i * 0.12}s, ${i * 0.12}s`, transitionTimingFunction: 'ease, cubic-bezier(.16,.84,.3,1), cubic-bezier(.16,.84,.3,1)' }}>
{p.n}

{p.title}

{p.desc}

))}
); } // ───────────── MÓDULOS (sticky scroll, estilo proceso) ───────────── function EMPModules({ content }) { const [active, setActive] = React.useState(0); const ref = React.useRef(null); const progress = useScrollProgress(ref); React.useEffect(() => { if (progress > 0.1 && progress < 0.9) { const idx = Math.min(3, Math.floor(progress * 4)); if (idx !== active) setActive(idx); } }, [progress]); const step = content.modules.steps[active]; return (
02
{content.modules.steps.map((s, i) => (
setActive(i)} onClick={() => setActive(i)} style={{ padding: '32px 0', cursor: 'pointer', borderTop: `1px solid ${active === i ? F.accent : F.line}`, opacity: active === i ? 1 : 0.4, transform: active === i ? 'translateX(8px)' : 'translateX(0)', transition: 'opacity .4s, border-color .4s, transform .4s' }}>
{s.n}

{s.title}

{s.dur}
))}
{step.n}
MÓDULO {step.n} / 04 · {step.dur.toUpperCase()}

{step.title}

{step.desc}

{content.modules.steps.map((_, i) => (
))}
); } // ───────────── CÓMO TRABAJAMOS ───────────── function EMPProcess({ content }) { const ref = React.useRef(null); const inView = useInView(ref, { threshold: 0.15 }); return (
03
{content.process.items.map((st, i) => (
0{i + 1}
{st.dur.toUpperCase()}

{st.title}

{st.desc}

))}
); } Object.assign(window, { EMPHero, EMPCost, EMPPains, EMPModules, EMPProcess });