FR 393 then AM 2 at Madrid
Ibiza → Madrid → Mexico City
Timetable, Madrid time
16:45FR 393 from Ibiza at the gate
10:30AM 2 to Mexico City leaves the gate
17 h 45 apart on the timetable, overnight
AM 2 leaves 17 h 45 after FR 393 arrives on the timetable: more than half a day, so not a connection we count.