Rainy season in Central America

Hi everyone, I'm planning to travel to Central America around early March for about 2-3 months and have seen some varied things about dry/rainy seasons. I'll be starting and ending in Mexico (not CA, I know) and Panama and wondered if anyone recommends a particular route/direction to avoid the worst of the rain as the trip extends into May potentially. Also from people that have been to CA in May it would be good to know what it was like. I know it's not the end of the world and can't be avoided sometimes but would be good to hear what people have to say and any advice. Thanks!

Author: Jealous_Donkey2446