FR 3977 then LA 5791 at Barcelona
Dublin → Barcelona → Valladolid
Timetable, Barcelona time
21:10FR 3977 from Dublin at the gate
16:05LA 5791 to Valladolid leaves the gate
18 h 55 apart on the timetable, overnight
LA 5791 leaves 18 h 55 after FR 3977 arrives on the timetable: more than half a day, so not a connection we count.