JA 5171 then JA 5158 at Bogotá
Santa Marta → Bogota → Cartagena
Timetable, Bogota time
16:15JA 5171 from Santa Marta at the gate
05:05JA 5158 to Cartagena leaves the gate
12 h 50 apart on the timetable, overnight
JA 5158 leaves 12 h 50 after JA 5171 arrives on the timetable: more than half a day, so not a connection we count.