/* Gaby · iconos de trazo fino (Syne-coherentes, sin relleno).
   Sustituto tipo Lucide, dibujados a mano para mantener el set mínimo. */

const Icon = ({ d, size = 18, children, stroke = 1.6, ...p }) => (
  <svg width={size} height={size} viewBox="0 0 24 24" fill="none"
    stroke="currentColor" strokeWidth={stroke} strokeLinecap="round" strokeLinejoin="round" {...p}>
    {d ? <path d={d} /> : children}
  </svg>
);

const Icons = {
  dashboard: (p) => <Icon {...p}><rect x="3" y="3" width="7" height="9" rx="1.5"/><rect x="14" y="3" width="7" height="5" rx="1.5"/><rect x="14" y="12" width="7" height="9" rx="1.5"/><rect x="3" y="16" width="7" height="5" rx="1.5"/></Icon>,
  pendientes: (p) => <Icon {...p}><path d="M9 6h11M9 12h11M9 18h11"/><path d="M4 6l1 1 1.5-2M4 12l1 1 1.5-2M4 18l1 1 1.5-2"/></Icon>,
  agenda: (p) => <Icon {...p}><rect x="3" y="4" width="18" height="17" rx="2"/><path d="M3 9h18M8 2v4M16 2v4"/><circle cx="12" cy="14" r="1.4" fill="currentColor" stroke="none"/></Icon>,
  repos: (p) => <Icon {...p}><path d="M4 4.5A1.5 1.5 0 0 1 5.5 3H10l2 2.5h6.5A1.5 1.5 0 0 1 20 7v11a1.5 1.5 0 0 1-1.5 1.5h-13A1.5 1.5 0 0 1 4 18z"/></Icon>,
  personal: (p) => <Icon {...p}><path d="M12 21s-7-4.35-7-9.5A3.5 3.5 0 0 1 12 8a3.5 3.5 0 0 1 7 3.5C19 16.65 12 21 12 21z"/></Icon>,
  centro: (p) => <Icon {...p}><circle cx="9" cy="8" r="3"/><path d="M3.5 19a5.5 5.5 0 0 1 11 0"/><path d="M16 6.5a3 3 0 0 1 0 5.8M17.5 19a5.5 5.5 0 0 0-3-4.9"/></Icon>,
  chevron: (p) => <Icon {...p}><path d="M9 6l6 6-6 6"/></Icon>,
  arrowUp: (p) => <Icon {...p} size={14}><path d="M12 19V5M6 11l6-6 6 6"/></Icon>,
  arrowRight: (p) => <Icon {...p} size={14}><path d="M5 12h14M13 6l6 6-6 6"/></Icon>,
  dash: (p) => <Icon {...p} size={14}><path d="M5 12h14"/></Icon>,
  send: (p) => <Icon {...p} size={18} stroke={1.8}><path d="M5 12h13M12 5l7 7-7 7"/></Icon>,
  close: (p) => <Icon {...p} size={16}><path d="M6 6l12 12M18 6L6 18"/></Icon>,
  check: (p) => <Icon {...p} size={13} stroke={2.2}><path d="M4 12l5 5L20 6"/></Icon>,
  doc: (p) => <Icon {...p}><path d="M7 3h7l4 4v13a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z"/><path d="M14 3v4h4M9 13h6M9 16h4"/></Icon>,
  mail: (p) => <Icon {...p}><rect x="3" y="5" width="18" height="14" rx="2"/><path d="M4 7.5l8 5.5 8-5.5"/></Icon>,
  seguimiento: (p) => <Icon {...p}><rect x="3" y="5" width="4.6" height="14" rx="1.4"/><rect x="9.7" y="5" width="4.6" height="9" rx="1.4"/><rect x="16.4" y="5" width="4.6" height="11.5" rx="1.4"/></Icon>,
};

window.GabyIcons = Icons;
