You need an embassy visa for Libya if you have a Mexican passport
Visa options for Libya
Visitor visa
Travelers need a visa to visit Libya for Business or Tourism. A paper or embassy visa is available for travelers visiting Libya. The visa is typically a stamp or sticker added to the passport. Travelers must obtain this visa from a local embassy, consulate, or visa center before traveling.