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