// fichaje.eu — Screen: Calendario const ScreenCalendario = () => { const [view, setView] = React.useState('month'); // May 2026: starts on Friday const days = []; // Prepend Mon–Thu of previous month for (let i = 27; i <= 30; i++) days.push({ d: i, prev: true }); for (let i = 1; i <= 31; i++) days.push({ d: i, m: 5 }); // Append next month for (let i = 1; i <= 7; i++) days.push({ d: i, next: true }); const eventByDay = {}; CAL_EVENTS.forEach(e => { const d = parseInt(e.date.split('-')[2]); if (e.date.startsWith('2026-05')) { eventByDay[d] = eventByDay[d] || []; eventByDay[d].push(e); } }); return (