'use client'; import { motion, useScroll, useTransform } from 'framer-motion'; import Image from 'next/image'; import { Container } from '@/components/primitives/Container'; import { Antetitulo } from '@/components/primitives/Antetitulo'; import { CTA } from '@/components/primitives/CTA'; import { Icono, type IconoNombre } from '@/components/primitives/Icono'; import { comoEmpezar, cierre } from '@/lib/content'; import { fadeInUp, staggerContainer, viewportOnce, usePrefersReducedMotion, motionProps } from '@/lib/motion'; const ICONOS: IconoNombre[] = ['escribeme', 'diagnostico', 'plan']; export function ComoEmpezar() { const reduced = usePrefersReducedMotion(); const waHref = `${cierre.contact.whatsapp.href}?text=${encodeURIComponent(comoEmpezar.whatsappText)}`; // Page-level scroll (no target ref) keeps this to a single listener and // avoids jsdom's "container has a static position" warning. const { scrollYProgress } = useScroll(); const desplazamiento = useTransform(scrollYProgress, [0, 1], [20, -20]); return (
{comoEmpezar.eyebrow} {comoEmpezar.title} {comoEmpezar.steps.map((step, i) => ( {/* The numeral is the graphic, not a label: big and nearly transparent, like the recorrido's. The gold accent moves to the icon beside the step's name, so the step keeps its marker without two of them competing. */}
{step.n}

{step.name}

{step.desc}

))}
{/* Foto: amanecer sobre la cumbre del Monte Nardi, Tony 1212, CC BY-SA 4.0, modificada (duotono) — créditos en el footer. "Tu siguiente movimiento empieza…": el amanecer como metáfora del comienzo. */}
); }