JA 5173 then EK 3814 at Bogotá
Santa Marta → Bogota → Madrid
Timetable, Bogota time
23:35JA 5173 from Santa Marta at the gate
16:35EK 3814 to Madrid leaves the gate
17 h apart on the timetable, overnight
EK 3814 leaves 17 h after JA 5173 arrives on the timetable: more than half a day, so not a connection we count.