IB 5965 then LA 5768 at Barcelona
Tangier → Barcelona → Santander
Timetable, Barcelona time
11:05IB 5965 from Tangier at the gate
11:00LA 5768 to Santander leaves the gate
23 h 55 apart on the timetable, overnight
LA 5768 leaves 23 h 55 after IB 5965 arrives on the timetable: more than half a day, so not a connection we count.