AM 21 then EC 4390 at Madrid
Mexico City → Madrid → Lyon
Timetable, Madrid time
15:40AM 21 from Mexico City at the gate
13:05EC 4390 to Lyon leaves the gate
21 h 25 apart on the timetable, overnight
EC 4390 leaves 21 h 25 after AM 21 arrives on the timetable: more than half a day, so not a connection we count.