AM 21 then FR 394 at Madrid
Mexico City → Madrid → Ibiza
Timetable, Madrid time
15:40AM 21 from Mexico City at the gate
06:30FR 394 to Ibiza leaves the gate
14 h 50 apart on the timetable, overnight
FR 394 leaves 14 h 50 after AM 21 arrives on the timetable: more than half a day, so not a connection we count.