NickB: I didn't see a way that you could stay in the airport without going through immigration, but that doesn't mean it's not possible. If you do have to go through immigration, allow at least an hour for clearing customs, and a couple of hours for checking in to your next flight.
You might give Avianca or ACES a call, I'm sure they could give a definitive answer.