Revisada la página con Chromium a 1440x900 y 390x844 en nueve alturas de scroll, y verificado cada cambio contra capturas nuevas. - El ≡ deja de leerse como icono de menú. lib/simbolo.ts se anunciaba como single source of truth pero no coincidía con Wordmark.tsx, que traza la marca con las proporciones medidas del Manual: barra de largo 5.919× su grosor, hueco de 2×, extremos de píldora. Ahora se derivan de ahí. De paso, las líneas se meten medio grosor por cada extremo: el remate redondo alargaba el trazo un grosor entero sobre la barra que debía reproducir. - Banda: 12px en escritorio y 7px en móvil vía CSS (14px era el 3,6% de una pantalla de 390px y partía los párrafos), opacidad al 18%, y muelle de 90/30 a 210/40 — sobreamortiguado tardaba ~2s en asentar y la punta se arrastraba a media pantalla. El punto suelto que aparecía centrado arriba al cargar era el remate redondo pintándose en el origen con longitud cero: ahora la opacidad sigue al avance. - Ritmo vertical un 25-30% más apretado en las diez secciones. La página pasa de 8.061 a 7.457px sin tocar contenido. - Números 01-06: de marca de agua de 48px al 6% (que chocaba con títulos y reglas) a índice dorado sentado sobre la regla. - Hero: los dos CTA al mismo ancho en móvil, el patrón de puntos fuera del logotipo, y la secuencia visible en todos los tamaños — oculta bajo lg dejaba el hero del móvil sin ninguna pieza gráfica. La convergencia de la variante "hero" se cierra más para que se lea como líneas buscando su eje y no como un garabato tachado. - Estratega: fuera la retícula de puntos del retrato, que parecía el recuadro de imagen rota del navegador; la etiqueta del 30+ cabía en menos de lo que mide "construyendo" y salía en tres líneas. - El nudo de Dolores, más pequeño y con algo más de contraste. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
71 lines
4.0 KiB
TypeScript
71 lines
4.0 KiB
TypeScript
'use client';
|
|
|
|
import { motion } from 'framer-motion';
|
|
import { Wordmark } from '@/components/primitives/Wordmark';
|
|
import { CTA } from '@/components/primitives/CTA';
|
|
import { Container } from '@/components/primitives/Container';
|
|
import { FondoPuntos } from '@/components/primitives/FondoPuntos';
|
|
import { SecuenciaClaridad } from '@/components/primitives/SecuenciaClaridad';
|
|
import { TextoDesenfoque } from '@/components/primitives/TextoDesenfoque';
|
|
import { hero } from '@/lib/content';
|
|
import { fadeInUp, staggerContainer, usePrefersReducedMotion, motionProps } from '@/lib/motion';
|
|
|
|
type Variant = 'hormozi' | 'editorial';
|
|
|
|
export function Hero({ variant = 'editorial' }: { variant?: Variant }) {
|
|
const reduced = usePrefersReducedMotion();
|
|
const isHormozi = variant === 'hormozi';
|
|
const headlineBase = isHormozi
|
|
? 'font-sans font-black uppercase tracking-tight'
|
|
: 'font-sans font-bold';
|
|
const headlineSize = 'text-5xl md:text-7xl leading-[0.98] tracking-tight';
|
|
const clarityBorder = isHormozi ? 'border-b-[5px] border-dorado pb-0.5' : 'border-b-[3px] border-dorado pb-0.5';
|
|
|
|
return (
|
|
<section className="bg-white relative overflow-hidden">
|
|
{/* Kept clear of the wordmark on narrow screens: at 390px the md field
|
|
reached back across the logotype and the tagline, so the pattern read
|
|
as collision rather than texture. */}
|
|
<FondoPuntos className="top-80 -right-20 w-56 md:top-24 md:-right-16 md:w-[28rem] text-azul-profundo/10" interactivo />
|
|
<FondoPuntos className="bottom-16 -left-20 w-64 md:w-96 text-dorado/20" distance={28} rows={2} />
|
|
<Container className="relative min-h-[80vh] lg:min-h-[88vh] flex items-center py-16 md:py-24">
|
|
<div className="grid gap-8 lg:gap-14 lg:grid-cols-[1.1fr_0.9fr] lg:items-center w-full">
|
|
<motion.div variants={staggerContainer} initial="hidden" animate="visible" {...motionProps(reduced)}
|
|
className="min-w-0 flex flex-col items-center text-center lg:items-start lg:text-left">
|
|
<motion.div variants={fadeInUp}><Wordmark size="xl" showTagline /></motion.div>
|
|
<motion.p variants={fadeInUp} className="mt-6 text-xs md:text-sm tracking-[0.3em] uppercase font-black text-dorado">
|
|
{hero.eyebrow}
|
|
</motion.p>
|
|
<motion.h1 variants={fadeInUp} className={`mt-8 ${headlineBase} ${headlineSize} text-azul-profundo`}>
|
|
<TextoDesenfoque
|
|
as="span"
|
|
segments={[
|
|
{ text: hero.headline.line1 },
|
|
{ text: hero.headline.effort, className: 'text-dorado' },
|
|
{ text: hero.headline.line3 },
|
|
{ text: hero.headline.clarity, className: clarityBorder },
|
|
]}
|
|
/>
|
|
</motion.h1>
|
|
{/* Full width while stacked: at their natural widths the two CTAs
|
|
came out ragged and unequal, which read as an accident rather
|
|
than as hierarchy. */}
|
|
<motion.div variants={fadeInUp} className="mt-10 w-full flex flex-col md:flex-row items-stretch md:items-center md:w-auto gap-4">
|
|
<CTA href="#contacto" label={hero.cta} variant="light" className="text-center md:whitespace-nowrap" />
|
|
<CTA href="#mecanismo" label={hero.ctaSecundario} variant="ghost" className="text-center md:whitespace-nowrap" />
|
|
</motion.div>
|
|
</motion.div>
|
|
{/* Complexity → focus, left unresolved: the hero poses the tension
|
|
and FraseAncla pays it off by resolving into the ≡. Shown on every
|
|
breakpoint — hidden below lg it left the phone hero with no piece
|
|
of the brand's own graphic language at all. */}
|
|
<motion.div variants={fadeInUp} initial="hidden" animate="visible" {...motionProps(reduced)}
|
|
className="min-w-0">
|
|
<SecuenciaClaridad variant="hero" className="w-32 lg:w-full max-w-md mx-auto text-azul-profundo" />
|
|
</motion.div>
|
|
</div>
|
|
</Container>
|
|
</section>
|
|
);
|
|
}
|