FR 6722 then AT 5322 at Madrid
Marrakesh → Madrid → Logrono
Timetable, Madrid time
21:00FR 6722 from Marrakesh at the gate
20:40AT 5322 to Logrono leaves the gatealso VY 5622
23 h 40 apart on the timetable, overnight
AT 5322 leaves 23 h 40 after FR 6722 arrives on the timetable: more than half a day, so not a connection we count.