FR 2494 then QR 3540 at Barcelona
Palma de Mallorca → Barcelona → Santander
Timetable, Barcelona time
19:10FR 2494 from Palma de Mallorca at the gate
18:30QR 3540 to Santander leaves the gate
23 h 20 apart on the timetable, overnight
QR 3540 leaves 23 h 20 after FR 2494 arrives on the timetable: more than half a day, so not a connection we count.