IB 2319 then FR 2389 at Madrid
Castellón → Madrid → Tetouan
Timetable, Madrid time
15:00IB 2319 from Castellón at the gate
13:15FR 2389 to Tetouan leaves the gate
22 h 15 apart on the timetable, overnight
FR 2389 leaves 22 h 15 after IB 2319 arrives on the timetable: more than half a day, so not a connection we count.