Define "survive."
The best bet is to have Panama choose to join with Mexico instead of Colombia, then have them develop a constitutional Federal monarchy.
Head of government being the Emperor, King of Mexico. Head of State would be a popularly elected President. And a parliamentary elected Chancellor. President answers directly to the people. Chancellor answers to Parliament, Emperor answers to both/all. Each state would have their own Governors.
Parliament is two-house. Governors select parliamentary officals in one house, citizens elect officials in another. Upper house selects chancellor. The Upper and Lower houses have comparable privileges and powers to the US Senate and House, respectively. Chancellor and President must both sign bill to become Law. If either does not sign, it is can then go to the Emperor to sign. If the Emperor does not sign in place of the non-signing head of state, the bill returns to the originating house. If the Emperor does sign, it is enacted as law. If both Chancellor and President do not sign, yet the Emperor does, it is enacted as law. Emperor can not sign without a ten day review, following a ten day Chancelloric and Presidential review (10 days each). If none of the three highest officials sign, it returns to the originating house for further review, requiring 70% vote to bypass Veto.
Judicial is headed by the Emperor. The Emperor can sit on cases and voice opinion but does not hold a vote. Minimum 5 Imperial Justices is required, selected by the Emperor, confirmed by Upper House. Justices can not be dismissed unless impeached for an offense. Justices are not bound by any loyalty to the Emperor, only to the nation and it's constitution.
Something like that should help keep the nation from tearing tiself apart.