FR 4584 then LA 5771 at Barcelona
Porto → Barcelona → Almeria
Timetable, Barcelona time
18:35FR 4584 from Porto at the gate
12:35LA 5771 to Almeria leaves the gate
18 h apart on the timetable, overnight
LA 5771 leaves 18 h after FR 4584 arrives on the timetable: more than half a day, so not a connection we count.