U.S. citizens need a Cuban Tourist Card (visa) to enter Cuba, regardless of transit through Mexico. It allows a single entry, up to 30 days.
Extensions beyond 30 days require application to Cuban authorities. Ensure compliance with U.S. travel categories (e.g., support for the Cuban people).