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