IB 52 then IB 2318 at Madrid
Málaga → Madrid → Castellón
Timetable, Madrid time
15:30IB 52 from Málaga at the gate
11:30IB 2318 to Castellón leaves the gate
20 h apart on the timetable, overnight
IB 2318 leaves 20 h after IB 52 arrives on the timetable: more than half a day, so not a connection we count.