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