JJ 8066 then FR 3876 at Madrid
São Paulo → Madrid → Tangier
Timetable, Madrid time
13:40JJ 8066 from São Paulo at the gatealso LA 8066
06:10FR 3876 to Tangier leaves the gate
16 h 30 apart on the timetable, overnight
FR 3876 leaves 16 h 30 after JJ 8066 arrives on the timetable: more than half a day, so not a connection we count.