FR 4584 then FR 2896 at Barcelona
Porto → Barcelona → Palma de Mallorca
Timetable, Barcelona time
18:35FR 4584 from Porto at the gate
17:20FR 2896 to Palma de Mallorca leaves the gate
22 h 45 apart on the timetable, overnight
FR 2896 leaves 22 h 45 after FR 4584 arrives on the timetable: more than half a day, so not a connection we count.