Assuming you're leaving CUN for the U.S., you won't need to pass through immigration. Just security.
Since you will probably hit some spring break traffic, it could be a little crowded. My inexperienced estimate says to arrive 1.5-2.0 hours before your flight and you should be fine.
Hopefully somebody with first hand experience can chime in.