/* eslint-disable react/prop-types */ /** * DistritosHero · Hero compacto de la página Distritos. * Brief 1 §3.2 Hero. * * - Eyebrow PORTAFOLIO + título 2-líneas + intro * - Imagen full-bleed con overlay navy 40% * - Stats inline al pie: 40+ · 18 · 57 · 3 */ const { useState: uS_Dh, useEffect: uE_Dh } = React; const DH_STATS = [ { num: '40+', label: 'DISTRITOS CO-CREADOS' }, { num: '+1,900', label: 'PROYECTOS ORIGINADOS' }, { num: '18', label: 'AÑOS DE TRAYECTORIA' }, { num: '57', label: 'CIUDADES' }, { num: '3', label: 'REGIONES' }, ]; function DistritosHero() { const [loaded, setLoaded] = uS_Dh(false); uE_Dh(() => { const t = setTimeout(() => setLoaded(true), 60); return () => clearTimeout(t); }, []); return (
); } const dhStyles = { section: { position: 'relative', display: 'flex', flexDirection: 'column', justifyContent: 'flex-end', minHeight: '75vh', paddingTop: 160, paddingBottom: 80, overflow: 'hidden', background: 'var(--color-navy-deep)', color: '#fff', }, imgWrap: { position: 'absolute', inset: 0 }, bottomGradient: { position: 'absolute', left: 0, right: 0, bottom: 0, height: 280, background: 'linear-gradient(180deg, transparent 0%, rgba(15,27,35,0.88) 100%)', zIndex: 1, pointerEvents: 'none', }, inner: { position: 'relative', zIndex: 2 }, eyebrowRow: { display: 'inline-flex', alignItems: 'center', gap: 12, marginBottom: 28, paddingInline: 14, paddingBlock: 8, background: 'rgba(15,27,35,0.5)', border: '1px solid rgba(255,255,255,0.18)', borderRadius: 999, alignSelf: 'flex-start', }, eyebrowDot: { width: 6, height: 6, borderRadius: 999, background: 'var(--color-copper-fallback)', boxShadow: '0 0 12px rgba(168,107,45,0.7)' }, eyebrow: { fontWeight: 700, fontSize: 11, letterSpacing: '0.22em', color: '#fff', textTransform: 'uppercase' }, crumb: { fontWeight: 500, fontSize: 11, letterSpacing: '0.22em', color: 'rgba(255,255,255,0.5)', textTransform: 'uppercase', paddingLeft: 12, borderLeft: '1px solid rgba(255,255,255,0.2)', }, title: { margin: 0, fontWeight: 800, fontSize: 'clamp(28px, 6vw, 80px)', lineHeight: 1.04, color: '#fff', letterSpacing: '-0.005em', maxWidth: 1100, textWrap: 'balance', }, titleAccent: { background: 'url("assets/textures/cobre-patinado.svg") center/cover', WebkitBackgroundClip: 'text', WebkitTextFillColor: 'transparent', backgroundClip: 'text', color: 'transparent', }, intro: { margin: '28px 0 0', maxWidth: 720, fontSize: 'clamp(16px, 1.5vw, 19px)', lineHeight: 1.6, color: 'rgba(255,255,255,0.92)', textWrap: 'pretty', }, statsRow: { marginTop: 56, display: 'flex', alignItems: 'center', gap: 24, flexWrap: 'wrap', }, statSeparator: { width: 1, height: 32, background: 'rgba(255,255,255,0.22)' }, statBlock: { display: 'flex', flexDirection: 'column', gap: 4 }, statNum: { fontWeight: 800, fontSize: 'clamp(24px, 2.5vw, 32px)', color: '#fff', lineHeight: 1.0, letterSpacing: '0.02em', }, statLabel: { fontSize: 10, fontWeight: 700, letterSpacing: '0.16em', color: 'var(--color-copper-fallback)', textTransform: 'uppercase', }, }; const dhMQ = document.createElement('style'); dhMQ.textContent = ` @media (min-width: 1024px) { section[data-screen-label="01 Distritos Hero"] { min-height: 85vh !important; padding-top: 200px; padding-bottom: 120px; } } `; document.head.appendChild(dhMQ); window.DistritosHero = DistritosHero;