JJ 8076 then FR 6721 at Madrid
São Paulo → Madrid → Marrakesh
Timetable, Madrid time
11:30JJ 8076 from São Paulo at the gate
09:50FR 6721 to Marrakesh leaves the gate
22 h 20 apart on the timetable, overnight
FR 6721 leaves 22 h 20 after JJ 8076 arrives on the timetable: more than half a day, so not a connection we count.