The Verdict: Need More Info
You do not have enough years of permanent residence yet, but if you keep living in Panama, time will fix it. Note the date your permanent residence was granted and count from there.
Panamanian citizenship by naturalisation needs five consecutive years of permanent residence, counted from the date your permanent residence was granted. Time on a provisional or temporary permit does not count. Married to a Panamanian, it is three years.
Nationals by birth of Spain and Latin American countries can naturalise after the same time their own country asks of Panamanians. Panama's immigration service lists one year of permanent residence for El Salvador; two years for Argentina, Colombia, Ecuador, Honduras, Mexico, Nicaragua, Peru and Spain; and three years for Uruguay. Everyone else needs five.
Permanent residence can be cancelled after more than two years away from Panama without authorisation, and naturalisation needs consecutive years, so plan to actually live there.