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