XML 83 R60.htm IDEA: XBRL DOCUMENT
v3.25.0.1

Material accounting policies - Leases (Details) | 12 Months Ended
--- | ---
Dec. 31, 2024
Top of range |
Disclosure of Finance Leases [Line Items] |
Lease term | 20 years

X
- Definition [Line Items] for Disclosure of Finance Leases [Table] + References No definition available. + Details
Name: | mx_DisclosureofFinanceLeasesLineItems
Namespace Prefix: | mx_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Definition Lease, Term + References No definition available. + Details
Name: | mx_LeaseTerm
Namespace Prefix: | mx_
Data Type: | xbrli:durationItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ifrs-full_RangeAxis=ifrs-full_TopOfRangeMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |