const IC = './assets/icons/'; const DEST = './assets/destacados/'; const LOGO = './assets/logo/'; const ILU = './assets/illustrations/'; const BRAND = './assets/brand/'; const TIGRE = './assets/tigre/'; const { Button, IconButton, Logo, Icon, Badge } = window.SURASegurosDesignSystem_faeb0e; const NAV = [ { id: 'inicio', label: 'Inicio' }, { id: 'planes', label: 'Planes' }, { id: 'comparador', label: 'Comparador' }, { id: 'faq', label: 'Preguntas', screen: 'planes', anchor: 'preguntas-frecuentes' }, { id: 'cotizar', label: 'Cotizar' } ]; function Header({ screen, go }) { const a = window.SURA_DATA.asesora; const [open, setOpen] = React.useState(false); const nav = (n) => { setOpen(false); if (n.anchor) { go(n.screen); setTimeout(() => { const el = document.getElementById(n.anchor); if (el) el.scrollIntoView({ behavior: 'smooth', block: 'start' }); }, 120); } else { go(n.id); } }; const isActive = (id) => screen === id || (id === 'planes' && screen === 'detalle'); return (
Ver galería de fotos window.__abrirGaleria && window.__abrirGaleria(0)} style={{ width: 44, height: 44, borderRadius: 'var(--radius-pill)', objectFit: 'cover', objectPosition: '50% 22%', flex: '0 0 auto', cursor: 'pointer' }} /> { e.preventDefault(); nav({ id: 'inicio' }); }} style={{ textDecoration: 'none', minWidth: 0 }}> {a.nombre} Asesora del Canal Especializado en Salud
{/* El logosímbolo SURA va en la parte superior, al costado derecho (Guía de logotipo, p. 7) */} Asesora
autorizada
{open ? (
{NAV.map((n) => ( { e.preventDefault(); nav(n); }} style={{ fontSize: 'var(--fs-body)', fontWeight: isActive(n.id) ? 'var(--fw-extrabold)' : 'var(--fw-semibold)', color: isActive(n.id) ? 'var(--azul-vivo)' : 'var(--text-body)', textDecoration: 'none', padding: 'var(--space-3) 0', borderBottom: '1px solid var(--border-subtle)' }}> {n.label} ))}
) : null}
); } function Footer({ go }) { const d = window.SURA_DATA; const a = d.asesora; return ( ); } function Section({ children, tone = 'blanco', style }) { const bg = { blanco: 'var(--blanco)', suave: 'var(--fondo-azul)', roto: 'var(--fondo-blanco)', aqua: 'var(--fondo-aqua)', azul: 'var(--azul-vivo)' }[tone]; return (
{children}
); } function SectionHead({ overline, title, lead, align = 'left' }) { return (
{overline ?
{overline}
: null}

{title}

{lead ?

{lead}

: null}
); } function GalleryModal() { const [open, setOpen] = React.useState(false); const [index, setIndex] = React.useState(0); const fotos = window.SURA_DATA.galeria; React.useEffect(() => { window.__abrirGaleria = (i) => { setIndex(i || 0); setOpen(true); }; return () => { delete window.__abrirGaleria; }; }, []); React.useEffect(() => { if (!open) return; const onKey = (e) => { if (e.key === 'Escape') setOpen(false); if (e.key === 'ArrowRight') setIndex((i) => (i + 1) % fotos.length); if (e.key === 'ArrowLeft') setIndex((i) => (i - 1 + fotos.length) % fotos.length); }; window.addEventListener('keydown', onKey); return () => window.removeEventListener('keydown', onKey); }, [open, fotos.length]); if (!open) return null; const foto = fotos[index]; return (
setOpen(false)}>
e.stopPropagation()}> {foto.cap}
{foto.cap}{index + 1} / {fotos.length}
); } function SuraLogoLink({ children, direction = 'down' }) { return ( {children} ¿Ir a la página principal de SURA? ); } Object.assign(window, { Header, Footer, Section, SectionHead, GalleryModal, SuraLogoLink, IC, DEST, LOGO, ILU, BRAND, TIGRE, NAV });