FR 9601 then 2W 2501 at Madrid
Rome → Madrid → Cancún
Timetable, Madrid time
19:50FR 9601 from Rome at the gate
14:302W 2501 to Cancún leaves the gate
18 h 40 apart on the timetable, overnight
2W 2501 leaves 18 h 40 after FR 9601 arrives on the timetable: more than half a day, so not a connection we count.