JA 5171 then AV 8389 at Bogotá
Santa Marta → Bogota → Guayaquil
Timetable, Bogota time
14:35JA 5171 from Santa Marta at the gate
13:10AV 8389 to Guayaquil leaves the gate
22 h 35 apart on the timetable, overnight
AV 8389 leaves 22 h 35 after JA 5171 arrives on the timetable: more than half a day, so not a connection we count.