export function formatCurrency(amount: number): string { return new Intl.NumberFormat('es-CL', { style: 'currency', currency: 'CLP', maximumFractionDigits: 0 }).format(amount); } export function formatDate(date: string | Date): string { const d = typeof date === 'string' ? new Date(date) : date; return d.toLocaleDateString('es-CL', { day: '2-digit', month: '2-digit', year: 'numeric' }); } export function classNames(...classes: (string | boolean | undefined)[]): string { return classes.filter(Boolean).join(' '); }