FR 6792 then IB 381 at Madrid
Marrakesh → Madrid → San Juan
Timetable, Madrid time
22:05FR 6792 from Marrakesh at the gate
12:35IB 381 to San Juan leaves the gate
14 h 30 apart on the timetable, overnight
IB 381 leaves 14 h 30 after FR 6792 arrives on the timetable: more than half a day, so not a connection we count.