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