IB 2319 then IB 533 at Madrid
Castellón → Madrid → Lisbon
Timetable, Madrid time
19:20IB 2319 from Castellón at the gate
15:40IB 533 to Lisbon leaves the gate
20 h 20 apart on the timetable, overnight
IB 533 leaves 20 h 20 after IB 2319 arrives on the timetable: more than half a day, so not a connection we count.