AM 27 then EC 1704 at Madrid
Mexico City → Madrid → Nice
Timetable, Madrid time
05:00AM 27 from Mexico City at the gate
21:20EC 1704 to Nice leaves the gate
16 h 20 apart on the timetable
EC 1704 leaves 16 h 20 after AM 27 arrives on the timetable: more than half a day, so not a connection we count.