AV 257 then JA 5172 at Bogotá
Cancún → Bogota → Santa Marta
Timetable, Bogota time
16:05AV 257 from Cancún at the gate
15:00JA 5172 to Santa Marta leaves the gate
22 h 55 apart on the timetable, overnight
JA 5172 leaves 22 h 55 after AV 257 arrives on the timetable: more than half a day, so not a connection we count.