JA 5184 then EY 2602 at Bogotá
Santa Marta → Bogota → Madrid
Timetable, Bogota time
15:15JA 5184 from Santa Marta at the gate
14:35EY 2602 to Madrid leaves the gate
23 h 20 apart on the timetable, overnight
EY 2602 leaves 23 h 20 after JA 5184 arrives on the timetable: more than half a day, so not a connection we count.