{
 "version": "2.2",
 "instance": {
  "ck0000932782-20251231.htm": {
   "nsprefix": "ck0000932782",
   "nsuri": "http://mexicopetroleum.com/20251231",
   "dts": {
    "inline": {
     "local": [
      "ck0000932782-20251231.htm"
     ]
    },
    "schema": {
     "local": [
      "ck0000932782-20251231.xsd"
     ],
     "remote": [
      "http://www.xbrl.org/2003/xbrl-instance-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xbrl-linkbase-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xl-2003-12-31.xsd",
      "http://www.xbrl.org/2003/xlink-2003-12-31.xsd",
      "http://www.xbrl.org/2005/xbrldt-2005.xsd",
      "http://www.xbrl.org/2006/ref-2006-02-27.xsd",
      "http://www.xbrl.org/lrr/role/negated-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/net-2009-12-16.xsd",
      "http://www.xbrl.org/lrr/role/reference-2009-12-16.xsd",
      "https://www.xbrl.org/2020/extensible-enumerations-2.0.xsd",
      "https://www.xbrl.org/2023/calculation-1.1.xsd",
      "https://www.xbrl.org/dtr/type/2020-01-21/types.xsd",
      "https://www.xbrl.org/dtr/type/2022-03-31/types.xsd",
      "https://www.xbrl.org/dtr/type/2024-01-31/types.xsd",
      "https://xbrl.fasb.org/srt/2025/elts/srt-2025.xsd",
      "https://xbrl.fasb.org/srt/2025/elts/srt-roles-2025.xsd",
      "https://xbrl.fasb.org/srt/2025/elts/srt-types-2025.xsd",
      "https://xbrl.fasb.org/us-gaap/2025/elts/us-gaap-2025.xsd",
      "https://xbrl.fasb.org/us-gaap/2025/elts/us-roles-2025.xsd",
      "https://xbrl.fasb.org/us-gaap/2025/elts/us-types-2025.xsd",
      "https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/dimensions-ea/rol_ifrs_ea-dim_2025-03-27.xsd",
      "https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/dimensions/rol_full_ifrs-dim_2025-03-27.xsd",
      "https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/full_ifrs-cor_2025-03-27.xsd",
      "https://xbrl.sec.gov/country/2025/country-2025.xsd",
      "https://xbrl.sec.gov/currency/2025/currency-2025.xsd",
      "https://xbrl.sec.gov/cyd/2025/cyd-2025.xsd",
      "https://xbrl.sec.gov/cyd/2025/cyd-af-2025.xsd",
      "https://xbrl.sec.gov/cyd/2025/cyd-af-sub-2025.xsd",
      "https://xbrl.sec.gov/dei/2025/dei-2025.xsd",
      "https://xbrl.sec.gov/ecd/2025/ecd-2025.xsd",
      "https://xbrl.sec.gov/ecd/2025/ecd-sub-2025.xsd",
      "https://xbrl.sec.gov/stpr/2025/stpr-2025.xsd"
     ]
    },
    "calculationLink": {
     "local": [
      "ck0000932782-20251231_cal.xml"
     ]
    },
    "definitionLink": {
     "local": [
      "ck0000932782-20251231_def.xml"
     ],
     "remote": [
      "https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/dimensions-ea/dim_ifrs_ea_2025-03-27_role-995000.xml",
      "https://xbrl.ifrs.org/taxonomy/2025-03-27/full_ifrs/dimensions/dim_full_ifrs_2025-03-27_role-995000.xml"
     ]
    },
    "labelLink": {
     "local": [
      "ck0000932782-20251231_lab.xml"
     ]
    },
    "presentationLink": {
     "local": [
      "ck0000932782-20251231_pre.xml"
     ]
    }
   },
   "keyStandard": 322,
   "keyCustom": 493,
   "axisStandard": 48,
   "axisCustom": 18,
   "memberStandard": 77,
   "memberCustom": 442,
   "hidden": {
    "total": 9,
    "http://xbrl.sec.gov/dei/2025": 6,
    "http://mexicopetroleum.com/20251231": 3
   },
   "contextCount": 2064,
   "entityCount": 1,
   "segmentCount": 564,
   "elementCount": 1781,
   "unitCount": 40,
   "baseTaxonomies": {
    "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full": 3251,
    "http://fasb.org/srt/2025": 42,
    "http://xbrl.sec.gov/dei/2025": 41,
    "http://xbrl.sec.gov/cyd/2025": 14,
    "http://xbrl.sec.gov/ecd/2025": 1
   },
   "report": {
    "R1": {
     "role": "http://mexicopetroleum.com/role/CoverPage",
     "longName": "0000001 - Document - Cover Page",
     "shortName": "Cover Page",
     "isDefault": "true",
     "groupType": "document",
     "subGroupType": "",
     "menuCat": "Cover",
     "order": "1",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "dei:DocumentType",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "dei:DocumentType",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R2": {
     "role": "http://mexicopetroleum.com/role/AuditInformation",
     "longName": "0000002 - Document - Audit Information",
     "shortName": "Audit Information",
     "isDefault": "false",
     "groupType": "document",
     "subGroupType": "",
     "menuCat": "Cover",
     "order": "2",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "dei:AuditorName",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "dei:AuditorName",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R3": {
     "role": "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
     "longName": "9952151 - Statement - Consolidated Statements of Financial Position",
     "shortName": "Consolidated Statements of Financial Position",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "3",
     "firstAnchor": {
      "contextRef": "c-3",
      "name": "ifrs-full:CashAndCashEquivalents",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-3",
      "name": "ifrs-full:OtherCurrentReceivables",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R4": {
     "role": "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss",
     "longName": "9952152 - Statement - Consolidated Statements of Comprehensive Income (Loss)",
     "shortName": "Consolidated Statements of Comprehensive Income (Loss)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "4",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:RevenueFromDomestic",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:BeforeShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R5": {
     "role": "http://mexicopetroleum.com/role/ConsolidatedStatementsofChangesinEquityDeficit",
     "longName": "9952154 - Statement - Consolidated Statements of Changes in Equity (Deficit)",
     "shortName": "Consolidated Statements of Changes in Equity (Deficit)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "5",
     "firstAnchor": {
      "contextRef": "c-16",
      "name": "ifrs-full:Equity",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-14",
      "name": "ifrs-full:Equity",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R6": {
     "role": "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows",
     "longName": "9952155 - Statement - Consolidated Statements of Cash Flows",
     "shortName": "Consolidated Statements of Cash Flows",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "6",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:ProfitLoss",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:ProceedsFromUnsuccessfulWells",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R7": {
     "role": "http://mexicopetroleum.com/role/StructureandBusinessOperationsofPetroleosMexicanosSubsidiaryEntitiesandSubsidiaryCompanies",
     "longName": "9952156 - Disclosure - Structure and Business Operations of Petroleos Mexicanos, Subsidiary Entities and Subsidiary Companies",
     "shortName": "Structure and Business Operations of Petroleos Mexicanos, Subsidiary Entities and Subsidiary Companies",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "7",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfStructuredEntitiesExplanatoryTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfStructuredEntitiesExplanatoryTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R8": {
     "role": "http://mexicopetroleum.com/role/AuthorizationandBasisofPreparation",
     "longName": "9952157 - Disclosure - Authorization and Basis of Preparation",
     "shortName": "Authorization and Basis of Preparation",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "8",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfAuthorizationAndBasisOfPreparationExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfAuthorizationAndBasisOfPreparationExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R9": {
     "role": "http://mexicopetroleum.com/role/MaterialAccountingPolicies",
     "longName": "9952158 - Disclosure - Material Accounting Policies",
     "shortName": "Material Accounting Policies",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "9",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfMaterialAccountingPolicyInformationExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfMaterialAccountingPolicyInformationExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R10": {
     "role": "http://mexicopetroleum.com/role/NewAccountingStandardAndRecentlyIssuedAccountingStandards",
     "longName": "9952159 - Disclosure - New Accounting Standard And Recently Issued Accounting Standards",
     "shortName": "New Accounting Standard And Recently Issued Accounting Standards",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "10",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DescriptionOfExpectedImpactOfInitialApplicationOfNewStandardsOrInterpretations",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DescriptionOfExpectedImpactOfInitialApplicationOfNewStandardsOrInterpretations",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R11": {
     "role": "http://mexicopetroleum.com/role/SubsidiaryEntitiesandSubsidiaryCompanies",
     "longName": "9952160 - Disclosure - Subsidiary Entities and Subsidiary Companies",
     "shortName": "Subsidiary Entities and Subsidiary Companies",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "11",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfSubsidiaryEntitiesAndSubsidiaryCompaniesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfSubsidiaryEntitiesAndSubsidiaryCompaniesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R12": {
     "role": "http://mexicopetroleum.com/role/SegmentFinancialInformation",
     "longName": "9952161 - Disclosure - Segment Financial Information",
     "shortName": "Segment Financial Information",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "12",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfEntitysReportableSegmentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfEntitysReportableSegmentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R13": {
     "role": "http://mexicopetroleum.com/role/Revenue",
     "longName": "9952162 - Disclosure - Revenue",
     "shortName": "Revenue",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "13",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfRevenueFromContractsWithCustomersExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfRevenueFromContractsWithCustomersExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R14": {
     "role": "http://mexicopetroleum.com/role/FinancialInstruments",
     "longName": "9952163 - Disclosure - Financial Instruments",
     "shortName": "Financial Instruments",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "14",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R15": {
     "role": "http://mexicopetroleum.com/role/CashandCashEquivalents",
     "longName": "9952164 - Disclosure - Cash and Cash Equivalents",
     "shortName": "Cash and Cash Equivalents",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "15",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfCashAndCashEquivalentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfCashAndCashEquivalentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R16": {
     "role": "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivable",
     "longName": "9952165 - Disclosure - Customers and Other Financing and Non-Financing Accounts Receivable",
     "shortName": "Customers and Other Financing and Non-Financing Accounts Receivable",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "16",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfTradeAndOtherReceivablesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfTradeAndOtherReceivablesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R17": {
     "role": "http://mexicopetroleum.com/role/Inventories",
     "longName": "9952166 - Disclosure - Inventories",
     "shortName": "Inventories",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "17",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfInventoriesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfInventoriesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R18": {
     "role": "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNet",
     "longName": "9952167 - Disclosure - Wells, Pipelines, Properties, Plant and Equipment, Net",
     "shortName": "Wells, Pipelines, Properties, Plant and Equipment, Net",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "18",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfPropertyPlantAndEquipmentExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfPropertyPlantAndEquipmentExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R19": {
     "role": "http://mexicopetroleum.com/role/IntangibleAssetsNet",
     "longName": "9952168 - Disclosure - Intangible Assets, Net",
     "shortName": "Intangible Assets, Net",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "19",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfIntangibleAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfIntangibleAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R20": {
     "role": "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssets",
     "longName": "9952169 - Disclosure - Government Bonds, And Other Assets",
     "shortName": "Government Bonds, And Other Assets",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "20",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfNotesReceivablesGovernmentBondsAndOtherLongTermAssetsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfNotesReceivablesGovernmentBondsAndOtherLongTermAssetsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R21": {
     "role": "http://mexicopetroleum.com/role/Debt",
     "longName": "9952170 - Disclosure - Debt",
     "shortName": "Debt",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "21",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfDebtExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfDebtExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R22": {
     "role": "http://mexicopetroleum.com/role/Leases",
     "longName": "9952171 - Disclosure - Leases",
     "shortName": "Leases",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "22",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfLeasesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfLeasesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R23": {
     "role": "http://mexicopetroleum.com/role/LongTermContractualLiabilities",
     "longName": "9952172 - Disclosure - Long-Term Contractual Liabilities",
     "shortName": "Long-Term Contractual Liabilities",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "23",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfLongTermContractualLiabilitiesExplanatoryTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfLongTermContractualLiabilitiesExplanatoryTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R24": {
     "role": "http://mexicopetroleum.com/role/DerivativeFinancialInstruments",
     "longName": "9952173 - Disclosure - Derivative Financial Instruments",
     "shortName": "Derivative Financial Instruments",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "24",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfCreditPerformanceExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfCreditPerformanceExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R25": {
     "role": "http://mexicopetroleum.com/role/EmployeeBenefits",
     "longName": "9952174 - Disclosure - Employee Benefits",
     "shortName": "Employee Benefits",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "25",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfEmployeeBenefitsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfEmployeeBenefitsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R26": {
     "role": "http://mexicopetroleum.com/role/ProvisionsforSundryCreditors",
     "longName": "9952175 - Disclosure - Provisions for Sundry Creditors",
     "shortName": "Provisions for Sundry Creditors",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "26",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfProvisionsForSundryCreditorsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfProvisionsForSundryCreditorsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R27": {
     "role": "http://mexicopetroleum.com/role/IncomeTaxesandDuties",
     "longName": "9952176 - Disclosure - Income Taxes and Duties",
     "shortName": "Income Taxes and Duties",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "27",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfIncomeTaxExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfIncomeTaxExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R28": {
     "role": "http://mexicopetroleum.com/role/EquityDeficit",
     "longName": "9952177 - Disclosure - Equity (Deficit)",
     "shortName": "Equity (Deficit)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "28",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfComponentsOfEquityTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfComponentsOfEquityTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R29": {
     "role": "http://mexicopetroleum.com/role/CostandExpensesbyNature",
     "longName": "9952178 - Disclosure - Cost and Expenses by Nature",
     "shortName": "Cost and Expenses by Nature",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "29",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfCostAndExpensesByNatureExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfCostAndExpensesByNatureExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R30": {
     "role": "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpenses",
     "longName": "9952179 - Disclosure - Other Revenues and Other Expenses",
     "shortName": "Other Revenues and Other Expenses",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "30",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfOtherRevenueAndExpensesNetExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfOtherRevenueAndExpensesNetExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R31": {
     "role": "http://mexicopetroleum.com/role/RelatedParties",
     "longName": "9952180 - Disclosure - Related Parties",
     "shortName": "Related Parties",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "31",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfRelatedPartyExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfRelatedPartyExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R32": {
     "role": "http://mexicopetroleum.com/role/Commitments",
     "longName": "9952181 - Disclosure - Commitments",
     "shortName": "Commitments",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "32",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfCommitmentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfCommitmentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R33": {
     "role": "http://mexicopetroleum.com/role/Contingencies",
     "longName": "9952182 - Disclosure - Contingencies",
     "shortName": "Contingencies",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "33",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfContingentLiabilitiesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfContingentLiabilitiesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R34": {
     "role": "http://mexicopetroleum.com/role/SubsequentEvents",
     "longName": "9952183 - Disclosure - Subsequent Events",
     "shortName": "Subsequent Events",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "34",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfEventsAfterReportingPeriodExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfEventsAfterReportingPeriodExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R35": {
     "role": "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformation",
     "longName": "9952184 - Disclosure - Subsidiary Guarantor Information",
     "shortName": "Subsidiary Guarantor Information",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "35",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfSupplementalGuarantorInformationExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfSupplementalGuarantorInformationExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R36": {
     "role": "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnaudited",
     "longName": "9952185 - Disclosure - Supplementary Information on Oil and Gas Exploration and Production Activities (Unaudited)",
     "shortName": "Supplementary Information on Oil and Gas Exploration and Production Activities (Unaudited)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "36",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfSupplementaryInformationExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfSupplementaryInformationExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R37": {
     "role": "http://xbrl.sec.gov/ecd/role/InsiderTradingPoliciesProc",
     "longName": "995447 - Disclosure - Insider Trading Policies and Procedures",
     "shortName": "Insider Trading Policies and Procedures",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "37",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ecd:InsiderTrdPoliciesProcAdoptedFlag",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ecd:InsiderTrdPoliciesProcAdoptedFlag",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R38": {
     "role": "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure",
     "longName": "995550 - Disclosure - Cybersecurity Risk Management and Strategy Disclosure",
     "shortName": "Cybersecurity Risk Management and Strategy Disclosure",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "38",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "cyd:CybersecurityRiskManagementProcessesForAssessingIdentifyingAndManagingThreatsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "cyd:CybersecurityRiskManagementProcessesForAssessingIdentifyingAndManagingThreatsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R39": {
     "role": "http://mexicopetroleum.com/role/MaterialAccountingPoliciesPolicies",
     "longName": "9955511 - Disclosure - Material Accounting Policies (Policies)",
     "shortName": "Material Accounting Policies (Policies)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "policies",
     "menuCat": "Policies",
     "order": "39",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DescriptionOfAccountingPolicyForBasisOfConsolidationExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DescriptionOfAccountingPolicyForBasisOfConsolidationExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R40": {
     "role": "http://mexicopetroleum.com/role/SegmentFinancialInformationTables",
     "longName": "9955512 - Disclosure - Segment Financial Information (Tables)",
     "shortName": "Segment Financial Information (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "40",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfOperatingSegmentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfOperatingSegmentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R41": {
     "role": "http://mexicopetroleum.com/role/RevenueTables",
     "longName": "9955513 - Disclosure - Revenue (Tables)",
     "shortName": "Revenue (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "41",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfDisaggregationOfRevenueFromContractsWithCustomersExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfDisaggregationOfRevenueFromContractsWithCustomersExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R42": {
     "role": "http://mexicopetroleum.com/role/FinancialInstrumentsTables",
     "longName": "9955514 - Disclosure - Financial Instruments (Tables)",
     "shortName": "Financial Instruments (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "42",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:ScheduleOfDerivativeInstruments1TextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:ScheduleOfDerivativeInstruments1TextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R43": {
     "role": "http://mexicopetroleum.com/role/CashandCashEquivalentsTables",
     "longName": "9955515 - Disclosure - Cash and Cash Equivalents (Tables)",
     "shortName": "Cash and Cash Equivalents (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "43",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfDetailedInformationAboutCashAndCashEquivalentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfDetailedInformationAboutCashAndCashEquivalentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R44": {
     "role": "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableTables",
     "longName": "9955516 - Disclosure - Customers and Other Financing and Non-Financing Accounts Receivable (Tables)",
     "shortName": "Customers and Other Financing and Non-Financing Accounts Receivable (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "44",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:ScheduleOfTradeAndOtherReceivablesExplanatoryTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:ScheduleOfTradeAndOtherReceivablesExplanatoryTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R45": {
     "role": "http://mexicopetroleum.com/role/InventoriesTables",
     "longName": "9955517 - Disclosure - Inventories (Tables)",
     "shortName": "Inventories (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "45",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfDetailedInformationAboutInventoriesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfDetailedInformationAboutInventoriesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R46": {
     "role": "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetTables",
     "longName": "9955518 - Disclosure - Wells, Pipelines, Properties, Plant and Equipment, Net (Tables)",
     "shortName": "Wells, Pipelines, Properties, Plant and Equipment, Net (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "46",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R47": {
     "role": "http://mexicopetroleum.com/role/IntangibleAssetsNetTables",
     "longName": "9955519 - Disclosure - Intangible Assets, Net (Tables)",
     "shortName": "Intangible Assets, Net (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "47",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfDetailedInformationAboutIntangibleAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfDetailedInformationAboutIntangibleAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R48": {
     "role": "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsTables",
     "longName": "9955520 - Disclosure - Government Bonds, And Other Assets (Tables)",
     "shortName": "Government Bonds, And Other Assets (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "48",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfDetailedInformationAboutOutstandingBalanceOfGovernmentBondsExplanatoryTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfDetailedInformationAboutOutstandingBalanceOfGovernmentBondsExplanatoryTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R49": {
     "role": "http://mexicopetroleum.com/role/DebtTables",
     "longName": "9955521 - Disclosure - Debt (Tables)",
     "shortName": "Debt (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "49",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfDetailedInformationAboutBorrowingsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfDetailedInformationAboutBorrowingsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R50": {
     "role": "http://mexicopetroleum.com/role/LeasesTables",
     "longName": "9955522 - Disclosure - Leases (Tables)",
     "shortName": "Leases (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "50",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfQuantitativeInformationAboutRightofuseAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfQuantitativeInformationAboutRightofuseAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R51": {
     "role": "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesTables",
     "longName": "9955523 - Disclosure - Long-Term Contractual Liabilities (Tables)",
     "shortName": "Long-Term Contractual Liabilities (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "51",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:LongTermContractualLiabilitiesOfRedocumentationsFairValuesExplanatoryTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:LongTermContractualLiabilitiesOfRedocumentationsFairValuesExplanatoryTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R52": {
     "role": "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsTables",
     "longName": "9955524 - Disclosure - Derivative Financial Instruments (Tables)",
     "shortName": "Derivative Financial Instruments (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "52",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:SummaryOfPortfolioOfFinancialInstrumentsComposedOfDebtInstrumentsAndDFITableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:SummaryOfPortfolioOfFinancialInstrumentsComposedOfDebtInstrumentsAndDFITableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R53": {
     "role": "http://mexicopetroleum.com/role/EmployeeBenefitsTables",
     "longName": "9955525 - Disclosure - Employee Benefits (Tables)",
     "shortName": "Employee Benefits (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "53",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfDefinedBenefitPlansExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfDefinedBenefitPlansExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R54": {
     "role": "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsTables",
     "longName": "9955526 - Disclosure - Provisions for Sundry Creditors (Tables)",
     "shortName": "Provisions for Sundry Creditors (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "54",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfProvisionsForSundryCreditorsExplanatoryTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfProvisionsForSundryCreditorsExplanatoryTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R55": {
     "role": "http://mexicopetroleum.com/role/IncomeTaxesandDutiesTables",
     "longName": "9955527 - Disclosure - Income Taxes and Duties (Tables)",
     "shortName": "Income Taxes and Duties (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "55",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:SummaryOfIncomeTaxesAndDutiesPayableTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:SummaryOfIncomeTaxesAndDutiesPayableTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R56": {
     "role": "http://mexicopetroleum.com/role/EquityDeficitTables",
     "longName": "9955528 - Disclosure - Equity (Deficit) (Tables)",
     "shortName": "Equity (Deficit) (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "56",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfEquityContributedEquityExplanatoryTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfEquityContributedEquityExplanatoryTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R57": {
     "role": "http://mexicopetroleum.com/role/CostandExpensesbyNatureTables",
     "longName": "9955529 - Disclosure - Cost and Expenses by Nature (Tables)",
     "shortName": "Cost and Expenses by Nature (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "57",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfDetailedInformationAboutCostAndExpensesByNatureExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfDetailedInformationAboutCostAndExpensesByNatureExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R58": {
     "role": "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesTables",
     "longName": "9955530 - Disclosure - Other Revenues and Other Expenses (Tables)",
     "shortName": "Other Revenues and Other Expenses (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "58",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfOtherRevenueAndExpenseTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfOtherRevenueAndExpenseTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R59": {
     "role": "http://mexicopetroleum.com/role/RelatedPartiesTables",
     "longName": "9955531 - Disclosure - Related Parties (Tables)",
     "shortName": "Related Parties (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "59",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureInDetailOfTransactionsBetweenRelatedPartiesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureInDetailOfTransactionsBetweenRelatedPartiesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R60": {
     "role": "http://mexicopetroleum.com/role/CommitmentsTables",
     "longName": "9955532 - Disclosure - Commitments (Tables)",
     "shortName": "Commitments (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "60",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfEstimatedFutureContractPaymentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfEstimatedFutureContractPaymentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R61": {
     "role": "http://mexicopetroleum.com/role/SubsequentEventsTables",
     "longName": "9955533 - Disclosure - Subsequent Events (Tables)",
     "shortName": "Subsequent Events (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "61",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfNonadjustingEventsAfterReportingPeriodExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DisclosureOfNonadjustingEventsAfterReportingPeriodExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R62": {
     "role": "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationTables",
     "longName": "9955534 - Disclosure - Subsidiary Guarantor Information (Tables)",
     "shortName": "Subsidiary Guarantor Information (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "62",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfPrincipalAmountOutstandingOfRegisteredDebtSecuritiesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfPrincipalAmountOutstandingOfRegisteredDebtSecuritiesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R63": {
     "role": "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedTables",
     "longName": "9955535 - Disclosure - Supplementary Information on Oil and Gas Exploration and Production Activities (Unaudited) (Tables)",
     "shortName": "Supplementary Information on Oil and Gas Exploration and Production Activities (Unaudited) (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "63",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfCapitalizedCostsForOilAndGasProductionExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DisclosureOfCapitalizedCostsForOilAndGasProductionExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R64": {
     "role": "http://mexicopetroleum.com/role/AuthorizationandBasisofPreparationAdditionalInformationDetail",
     "longName": "9955536 - Disclosure - Authorization and Basis of Preparation - Additional Information (Detail)",
     "shortName": "Authorization and Basis of Preparation - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "64",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:PercentageOfEmployeesBenefitsProvision",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "2",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:PercentageOfEmployeesBenefitsProvision",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "2",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R65": {
     "role": "http://mexicopetroleum.com/role/MaterialAccountingPoliciesNarrativeDetails",
     "longName": "9955537 - Disclosure - Material Accounting Policies - Narrative (Details)",
     "shortName": "Material Accounting Policies - Narrative (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "65",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:AutomotiveIncentiveAverageRequestTerm",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "ck0000932782:DescriptionOfAccountingPolicyForTaxCreditIncentivePolicyTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:AutomotiveIncentiveAverageRequestTerm",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "ck0000932782:DescriptionOfAccountingPolicyForTaxCreditIncentivePolicyTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R66": {
     "role": "http://mexicopetroleum.com/role/SubsidiaryEntitiesandSubsidiaryCompaniesAdditionalInformationDetail",
     "longName": "9955538 - Disclosure - Subsidiary Entities and Subsidiary Companies - Additional Information (Detail)",
     "shortName": "Subsidiary Entities and Subsidiary Companies - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "66",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:ProportionOfOwnershipInterestInSubsidiary",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:ProportionOfOwnershipInterestInSubsidiary",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R67": {
     "role": "http://mexicopetroleum.com/role/SegmentFinancialInformationAdditionalInformationDetail",
     "longName": "9955539 - Disclosure - Segment Financial Information - Additional Information (Detail)",
     "shortName": "Segment Financial Information - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "67",
     "firstAnchor": {
      "contextRef": "c-69",
      "name": "ck0000932782:NumberOfBusinessSegments",
      "unitRef": "segment",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-69",
      "name": "ck0000932782:NumberOfBusinessSegments",
      "unitRef": "segment",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R68": {
     "role": "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail",
     "longName": "9955540 - Disclosure - Segment Financial Information - Condensed Financial Information of Segments after Elimination of Unrealized Intersegment Gain (Loss) (Detail)",
     "shortName": "Segment Financial Information - Condensed Financial Information of Segments after Elimination of Unrealized Intersegment Gain (Loss) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "68",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:RevenueFromSaleOfGoods",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:InterestIncomeNonOperating",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R69": {
     "role": "http://mexicopetroleum.com/role/SegmentFinancialInformationSupplementalGeographicInformationDetail",
     "longName": "9955541 - Disclosure - Segment Financial Information - Supplemental Geographic Information (Detail)",
     "shortName": "Segment Financial Information - Supplemental Geographic Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "69",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:RevenueFromDomestic",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:RevenueFromDomesticSalesAndComplementaryIncentives",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfIncomeByProductExplanatoryTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R70": {
     "role": "http://mexicopetroleum.com/role/SegmentFinancialInformationScheduleofIncomebyProductDetail",
     "longName": "9955542 - Disclosure - Segment Financial Information - Schedule of Income by Product (Detail)",
     "shortName": "Segment Financial Information - Schedule of Income by Product (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "70",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:RevenueFromDomestic",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-135",
      "name": "ck0000932782:RevenueFromDomestic",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfSupplementalGeographicInformationExplanatoryTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R71": {
     "role": "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail",
     "longName": "9955543 - Disclosure - Revenue - Schedule of Revenue Disaggregation (Detail)",
     "shortName": "Revenue - Schedule of Revenue Disaggregation (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "71",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:RevenueFromContractsWithCustomers",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:RevenueFromContractsWithCustomers",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R72": {
     "role": "http://mexicopetroleum.com/role/RevenueAdditionalInformationDetail",
     "longName": "9955544 - Disclosure - Revenue - Additional Information (Detail)",
     "shortName": "Revenue - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "72",
     "firstAnchor": {
      "contextRef": "c-3",
      "name": "ck0000932782:PaymentTerms",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ck0000932782:ScheduleOfNatureAndTimingOfSatisfactionOfPerformanceObligationTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-4",
      "name": "ifrs-full:CurrentAdvances",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R73": {
     "role": "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail",
     "longName": "9955545 - Disclosure - Financial Instruments - Summary of Carrying Amounts and Fair Value of Financial Assets and Liabilities (Detail)",
     "shortName": "Financial Instruments - Summary of Carrying Amounts and Fair Value of Financial Assets and Liabilities (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "73",
     "firstAnchor": {
      "contextRef": "c-3",
      "name": "ifrs-full:CashAndCashEquivalents",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-326",
      "name": "ifrs-full:GovernmentDebtInstrumentsHeld",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:ScheduleOfDerivativeInstruments1TextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R74": {
     "role": "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofMonetaryAssetsandLiabilitiesDenominatedInForeignCurrencyDetail",
     "longName": "9955546 - Disclosure - Financial Instruments - Summary of Monetary Assets and Liabilities Denominated In Foreign Currency (Detail)",
     "shortName": "Financial Instruments - Summary of Monetary Assets and Liabilities Denominated In Foreign Currency (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "74",
     "firstAnchor": {
      "contextRef": "c-3",
      "name": "ck0000932782:NetFinancialAssetsLiabilitiesPosition",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfMonetaryAssetsAndLiabilitiesDenominatedInForeignCurrencyTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-3",
      "name": "ck0000932782:NetFinancialAssetsLiabilitiesPosition",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfMonetaryAssetsAndLiabilitiesDenominatedInForeignCurrencyTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R75": {
     "role": "http://mexicopetroleum.com/role/CashandCashEquivalentsSummaryofCashandCashEquivalentsDetail",
     "longName": "9955547 - Disclosure - Cash and Cash Equivalents - Summary of Cash and Cash Equivalents (Detail)",
     "shortName": "Cash and Cash Equivalents - Summary of Cash and Cash Equivalents (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "75",
     "firstAnchor": {
      "contextRef": "c-3",
      "name": "ifrs-full:Cash",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ck0000932782:DisclosureOfDetailedInformationAboutCashAndCashEquivalentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-3",
      "name": "ifrs-full:Cash",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ck0000932782:DisclosureOfDetailedInformationAboutCashAndCashEquivalentsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R76": {
     "role": "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofAccountsReceivableandOtherReceivablesDetail",
     "longName": "9955548 - Disclosure - Customers and Other Financing and Non-Financing Accounts Receivable - Summary of Accounts Receivable and Other Receivables (Detail)",
     "shortName": "Customers and Other Financing and Non-Financing Accounts Receivable - Summary of Accounts Receivable and Other Receivables (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "76",
     "firstAnchor": {
      "contextRef": "c-3",
      "name": "ifrs-full:CurrentReceivablesFromContractsWithCustomers",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-360",
      "name": "ifrs-full:CurrentReceivablesFromContractsWithCustomers",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:ScheduleOfTradeAndOtherReceivablesExplanatoryTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R77": {
     "role": "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableScheduleofBreakdownofAccountsReceivableBasedonCreditHistoryDetail",
     "longName": "9955549 - Disclosure - Customers and Other Financing and Non-Financing Accounts Receivable - Schedule of Breakdown of Accounts Receivable Based on Credit History (Detail)",
     "shortName": "Customers and Other Financing and Non-Financing Accounts Receivable - Schedule of Breakdown of Accounts Receivable Based on Credit History (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "77",
     "firstAnchor": {
      "contextRef": "c-360",
      "name": "ck0000932782:CurrentReceivablesFromContractsWithCustomers1",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfAccountsReceivableBasedOnTheirCreditHistoryTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-360",
      "name": "ck0000932782:CurrentReceivablesFromContractsWithCustomers1",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfAccountsReceivableBasedOnTheirCreditHistoryTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R78": {
     "role": "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofReconciliationforImpairedAccountsReceivableDetail",
     "longName": "9955550 - Disclosure - Customers and Other Financing and Non-Financing Accounts Receivable - Summary of Reconciliation for Impaired Accounts Receivable (Detail)",
     "shortName": "Customers and Other Financing and Non-Financing Accounts Receivable - Summary of Reconciliation for Impaired Accounts Receivable (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "78",
     "firstAnchor": {
      "contextRef": "c-392",
      "name": "ck0000932782:ChangesInAllowanceForDoubtfulAccountsOfTradeAndOtherReceivables",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfReconciliationForImpairedAccountsReceivableExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-394",
      "name": "ck0000932782:ChangesInAllowanceForDoubtfulAccountsOfTradeAndOtherReceivables",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfReconciliationForImpairedAccountsReceivableExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R79": {
     "role": "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableAdditionalInformationDetail",
     "longName": "9955551 - Disclosure - Customers and Other Financing and Non-Financing Accounts Receivable - Additional Information (Detail)",
     "shortName": "Customers and Other Financing and Non-Financing Accounts Receivable - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "79",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:CreditLossExperiencePeriod",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-3",
      "name": "ck0000932782:FinancingReceivableIndividuallyEvaluatedForImpairment1",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ck0000932782:SummaryOfOtherAccountsReceivableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R80": {
     "role": "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofOtherAccountsReceivableDetail",
     "longName": "9955552 - Disclosure - Customers and Other Financing and Non-Financing Accounts Receivable - Summary of Other Accounts Receivable (Detail)",
     "shortName": "Customers and Other Financing and Non-Financing Accounts Receivable - Summary of Other Accounts Receivable (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "80",
     "firstAnchor": {
      "contextRef": "c-3",
      "name": "ck0000932782:SundryDebtors",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:SummaryOfOtherAccountsReceivableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-3",
      "name": "ifrs-full:TradeAndOtherCurrentReceivables",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:SummaryOfOtherAccountsReceivableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R81": {
     "role": "http://mexicopetroleum.com/role/InventoriesSummaryofInventoriesDetail",
     "longName": "9955553 - Disclosure - Inventories - Summary of Inventories (Detail)",
     "shortName": "Inventories - Summary of Inventories (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "81",
     "firstAnchor": {
      "contextRef": "c-3",
      "name": "ifrs-full:Inventories",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-416",
      "name": "ifrs-full:Inventories",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfDetailedInformationAboutInventoriesExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R82": {
     "role": "http://mexicopetroleum.com/role/InventoriesSummaryofInventoriesParentheticalDetail",
     "longName": "9955554 - Disclosure - Inventories - Summary of Inventories (Parenthetical) (Detail)",
     "shortName": "Inventories - Summary of Inventories (Parenthetical) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "82",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:InventoriesRecognizedAsCostOfSales",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:InventoriesRecognizedAsCostOfSales",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R83": {
     "role": "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail",
     "longName": "9955555 - Disclosure - Wells, Pipelines, Properties, Plant and Equipment, Net - Schedule of Property, Plant and Equipment (Detail)",
     "shortName": "Wells, Pipelines, Properties, Plant and Equipment, Net - Schedule of Property, Plant and Equipment (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "83",
     "firstAnchor": {
      "contextRef": "c-4",
      "name": "ifrs-full:PropertyPlantAndEquipment",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R84": {
     "role": "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentPemexExplorationandProductionDetail",
     "longName": "9955556 - Disclosure - Wells, Pipelines, Properties, Plant and Equipment, Net - Summary of Net Impairment (Pemex Exploration and Production) (Detail)",
     "shortName": "Wells, Pipelines, Properties, Plant and Equipment, Net - Summary of Net Impairment (Pemex Exploration and Production) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "84",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:WritedownsReversalsOfPropertyPlantAndEquipment",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-598",
      "name": "ifrs-full:WritedownsReversalsOfPropertyPlantAndEquipment",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R85": {
     "role": "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexExplorationandProductionDetail",
     "longName": "9955557 - Disclosure - Wells, Pipelines, Properties, Plant and Equipment, Net - Summary of Net (Impairment) Reversal of Impairment (CGUs Pemex Exploration and Production) (Detail)",
     "shortName": "Wells, Pipelines, Properties, Plant and Equipment, Net - Summary of Net (Impairment) Reversal of Impairment (CGUs Pemex Exploration and Production) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "85",
     "firstAnchor": {
      "contextRef": "c-598",
      "name": "ck0000932782:ReversalOfImpairmentImpairmentNet",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-601",
      "name": "ck0000932782:ReversalOfImpairmentImpairmentNet",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ck0000932782:DisclosureOfImpairmentLossAndReversalOfImpairmentLossForCGUsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R86": {
     "role": "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails",
     "longName": "9955558 - Disclosure - Wells, Pipelines, Properties, Plant and Equipment, Net - Additional Information (Details)",
     "shortName": "Wells, Pipelines, Properties, Plant and Equipment, Net - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "86",
     "firstAnchor": {
      "contextRef": "c-6",
      "name": "ck0000932782:PositiveTaxEffect",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-6",
      "name": "ck0000932782:PositiveTaxEffect",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R87": {
     "role": "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofReservesPemexExplorationandProductionDetail",
     "longName": "9955559 - Disclosure - Wells, Pipelines, Properties, Plant and Equipment, Net - Assumptions to Determine NPV of Reserves (Pemex Exploration and Production) (Detail)",
     "shortName": "Wells, Pipelines, Properties, Plant and Equipment, Net - Assumptions to Determine NPV of Reserves (Pemex Exploration and Production) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "87",
     "firstAnchor": {
      "contextRef": "c-665",
      "name": "ck0000932782:AverageCrudeOilPrice",
      "unitRef": "usdPerBbl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "2",
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfSignificantUnobservableInputsUsedInFairValueMeasurementOfAssetsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-665",
      "name": "ck0000932782:AverageCrudeOilPrice",
      "unitRef": "usdPerBbl",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "2",
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfSignificantUnobservableInputsUsedInFairValueMeasurementOfAssetsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R88": {
     "role": "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofValuesinUseforCGUImpairmentorReversalPemexExplorationandProductionDetail",
     "longName": "9955560 - Disclosure - Wells, Pipelines, Properties, Plant and Equipment, Net - Summary of Values in Use for CGU Impairment or Reversal (Pemex Exploration and Production) (Detail)",
     "shortName": "Wells, Pipelines, Properties, Plant and Equipment, Net - Summary of Values in Use for CGU Impairment or Reversal (Pemex Exploration and Production) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "88",
     "firstAnchor": {
      "contextRef": "c-598",
      "name": "ck0000932782:ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-655",
      "name": "ck0000932782:ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R89": {
     "role": "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialProcessesDetail",
     "longName": "9955561 - Disclosure - Wells, Pipelines, Properties, Plant and Equipment, Net - Summary of Net Impairment by CGUs (Pemex Industrial Processes) (Detail)",
     "shortName": "Wells, Pipelines, Properties, Plant and Equipment, Net - Summary of Net Impairment by CGUs (Pemex Industrial Processes) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "89",
     "firstAnchor": {
      "contextRef": "c-583",
      "name": "ck0000932782:ReversalOfImpairmentImpairmentNet",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-671",
      "name": "ck0000932782:ReversalOfImpairmentImpairmentNet",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R90": {
     "role": "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialProcessesDetail",
     "longName": "9955562 - Disclosure - Wells, Pipelines, Properties, Plant and Equipment, Net - Assumptions to Determine NPV of Cash Flows (Pemex Industrial Processes) (Detail)",
     "shortName": "Wells, Pipelines, Properties, Plant and Equipment, Net - Assumptions to Determine NPV of Cash Flows (Pemex Industrial Processes) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "90",
     "firstAnchor": {
      "contextRef": "c-684",
      "name": "ifrs-full:AverageForeignExchangeRate",
      "unitRef": "usdPerMXN",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "4",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-683",
      "name": "ck0000932782:AverageCrudeOilPrice",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "2",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R91": {
     "role": "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialProcessesDetail",
     "longName": "9955563 - Disclosure - Wells, Pipelines, Properties, Plant And Equipment, Net - Impairment of Fixed Assets (Pemex Industrial Processes) (Detail)",
     "shortName": "Wells, Pipelines, Properties, Plant And Equipment, Net - Impairment of Fixed Assets (Pemex Industrial Processes) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "91",
     "firstAnchor": {
      "contextRef": "c-583",
      "name": "ck0000932782:ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-688",
      "name": "ck0000932782:ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R92": {
     "role": "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexEnergyTransformationDetail",
     "longName": "9955564 - Disclosure - Wells, Pipelines, Properties, Plant and Equipment, Net - Summary of Net Impairment by CGUs (Pemex Energy Transformation) (Detail)",
     "shortName": "Wells, Pipelines, Properties, Plant and Equipment, Net - Summary of Net Impairment by CGUs (Pemex Energy Transformation) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "92",
     "firstAnchor": {
      "contextRef": "c-595",
      "name": "ck0000932782:ReversalOfImpairmentImpairmentNet",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-697",
      "name": "ck0000932782:ReversalOfImpairmentImpairmentNet",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R93": {
     "role": "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexEnergyTransformationDetail",
     "longName": "9955565 - Disclosure - Wells, Pipelines, Properties, Plant and Equipment, Net - Assumptions to Determine NPV of Cash Flows (Pemex Energy Transformation) (Detail)",
     "shortName": "Wells, Pipelines, Properties, Plant and Equipment, Net - Assumptions to Determine NPV of Cash Flows (Pemex Energy Transformation) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "93",
     "firstAnchor": {
      "contextRef": "c-707",
      "name": "ck0000932782:ProcessedVolume",
      "unitRef": "millionsperday",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "0",
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-707",
      "name": "ck0000932782:ProcessedVolume",
      "unitRef": "millionsperday",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "0",
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R94": {
     "role": "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexEnergyTransformationDetail",
     "longName": "9955566 - Disclosure - Wells, Pipelines, Properties, Plant And Equipment, Net - Impairment of Fixed Assets (Pemex Energy Transformation) (Detail)",
     "shortName": "Wells, Pipelines, Properties, Plant And Equipment, Net - Impairment of Fixed Assets (Pemex Energy Transformation) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "94",
     "firstAnchor": {
      "contextRef": "c-595",
      "name": "ck0000932782:ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-708",
      "name": "ck0000932782:ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R95": {
     "role": "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialTransformationDetail",
     "longName": "9955567 - Disclosure - Wells, Pipelines, Properties, Plant and Equipment, Net - Summary of Net Impairment by CGUs (Pemex Industrial Transformation) (Detail)",
     "shortName": "Wells, Pipelines, Properties, Plant and Equipment, Net - Summary of Net Impairment by CGUs (Pemex Industrial Transformation) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "95",
     "firstAnchor": {
      "contextRef": "c-713",
      "name": "ck0000932782:ReversalOfImpairmentImpairmentNet",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-715",
      "name": "ck0000932782:ReversalOfImpairmentImpairmentNet",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R96": {
     "role": "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialTranformationDetail",
     "longName": "9955568 - Disclosure - Wells, Pipelines, Properties, Plant and Equipment, Net - Assumptions to Determine NPV of Cash Flows (Pemex Industrial Tranformation) (Detail)",
     "shortName": "Wells, Pipelines, Properties, Plant and Equipment, Net - Assumptions to Determine NPV of Cash Flows (Pemex Industrial Tranformation) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "96",
     "firstAnchor": {
      "contextRef": "c-684",
      "name": "ifrs-full:AverageForeignExchangeRate",
      "unitRef": "usdPerMXN",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "4",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-756",
      "name": "ck0000932782:AverageCrudeOilPrice",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "2",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R97": {
     "role": "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialTransformationDetail",
     "longName": "9955569 - Disclosure - Wells, Pipelines, Properties, Plant And Equipment, Net - Impairment of Fixed Assets (Pemex Industrial Transformation) (Detail)",
     "shortName": "Wells, Pipelines, Properties, Plant And Equipment, Net - Impairment of Fixed Assets (Pemex Industrial Transformation) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "97",
     "firstAnchor": {
      "contextRef": "c-713",
      "name": "ck0000932782:ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-768",
      "name": "ck0000932782:ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R98": {
     "role": "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexLogisticsDetail",
     "longName": "9955570 - Disclosure - Wells, Pipelines, Properties, Plant and Equipment, Net - Summary of Net (Impairment) Reversal of Impairment (CGUs Pemex Logistics) (Detail)",
     "shortName": "Wells, Pipelines, Properties, Plant and Equipment, Net - Summary of Net (Impairment) Reversal of Impairment (CGUs Pemex Logistics) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "98",
     "firstAnchor": {
      "contextRef": "c-581",
      "name": "ck0000932782:ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-804",
      "name": "ck0000932782:ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R99": {
     "role": "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofDiscountRatesandUsefulLivesCGUsPemexLogisticsDetails",
     "longName": "9955571 - Disclosure - Wells, Pipelines, Properties, Plant and Equipment, Net - Summary of Discount Rates and Useful Lives (CGUs Pemex Logistics) (Details)",
     "shortName": "Wells, Pipelines, Properties, Plant and Equipment, Net - Summary of Discount Rates and Useful Lives (CGUs Pemex Logistics) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "99",
     "firstAnchor": {
      "contextRef": "c-581",
      "name": "ck0000932782:DiscountRate",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "4",
      "ancestors": [
       "span",
       "div",
       "ifrs-full:DisclosureOfInformationForEachMaterialImpairmentLossRecognisedOrReversedForIndividualAssetOrCashgeneratingUnitExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-811",
      "name": "ck0000932782:DiscountRate",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "4",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R100": {
     "role": "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetRecoverableAmountsofAssetsCGUsPemexLogisticsDetails",
     "longName": "9955572 - Disclosure - Wells, Pipelines, Properties, Plant and Equipment, Net - Recoverable Amounts of Assets (CGUs Pemex Logistics) (Details)",
     "shortName": "Wells, Pipelines, Properties, Plant and Equipment, Net - Recoverable Amounts of Assets (CGUs Pemex Logistics) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "100",
     "firstAnchor": {
      "contextRef": "c-408",
      "name": "ifrs-full:RecoverableAmountOfAssetOrCashgeneratingUnit",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-816",
      "name": "ifrs-full:RecoverableAmountOfAssetOrCashgeneratingUnit",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfInformationForEachMaterialImpairmentLossRecognisedOrReversedForIndividualAssetOrCashgeneratingUnitExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R101": {
     "role": "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails",
     "longName": "9955573 - Disclosure - Wells, Pipelines, Properties, Plant and Equipment, Net - Additional Information (EECs) (Details)",
     "shortName": "Wells, Pipelines, Properties, Plant and Equipment, Net - Additional Information (EECs) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "101",
     "firstAnchor": {
      "contextRef": "c-854",
      "name": "ck0000932782:PercentageOfContractualArea",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "2",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-854",
      "name": "ck0000932782:PercentageOfContractualArea",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "2",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R102": {
     "role": "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails",
     "longName": "9955574 - Disclosure - Wells, Pipelines, Properties, Plant and Equipment, Net - Condensed Statement of Comprehensive Income and Statement of Financial Position (Details)",
     "shortName": "Wells, Pipelines, Properties, Plant and Equipment, Net - Condensed Statement of Comprehensive Income and Statement of Financial Position (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "102",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:Revenue",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-859",
      "name": "ifrs-full:Revenue",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ifrs-full:DisclosureOfConsolidatedAndSeparateFinancialStatementsExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R103": {
     "role": "http://mexicopetroleum.com/role/IntangibleAssetsNetAdditionalInformationDetail",
     "longName": "9955575 - Disclosure - Intangible Assets, Net - Additional Information (Detail)",
     "shortName": "Intangible Assets, Net - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "103",
     "firstAnchor": {
      "contextRef": "c-4",
      "name": "ifrs-full:IntangibleAssetsOtherThanGoodwill",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:ExpensesRelatedToUnsuccessfulWells",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R104": {
     "role": "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofIntangibleAssetsDetail",
     "longName": "9955576 - Disclosure - Intangible Assets, Net - Schedule of Intangible Assets (Detail)",
     "shortName": "Intangible Assets, Net - Schedule of Intangible Assets (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "104",
     "firstAnchor": {
      "contextRef": "c-4",
      "name": "ifrs-full:IntangibleAssetsOtherThanGoodwill",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-905",
      "name": "ifrs-full:AdditionsOtherThanThroughBusinessCombinationsIntangibleAssetsOtherThanGoodwill",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfDetailedInformationAboutIntangibleAssetsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R105": {
     "role": "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofOtherComponentsofIntangibleAssetsDetail",
     "longName": "9955577 - Disclosure - Intangible Assets, Net - Schedule of Other Components of Intangible Assets (Detail)",
     "shortName": "Intangible Assets, Net - Schedule of Other Components of Intangible Assets (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "105",
     "firstAnchor": {
      "contextRef": "c-4",
      "name": "ifrs-full:IntangibleAssetsOtherThanGoodwill",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-928",
      "name": "ifrs-full:IntangibleAssetsOtherThanGoodwill",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfOtherIntangibleAssetsTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R106": {
     "role": "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofBalanceofGovernmentBondsDetail",
     "longName": "9955578 - Disclosure - Government Bonds, And Other Assets - Summary of Balance of Government Bonds (Detail)",
     "shortName": "Government Bonds, And Other Assets - Summary of Balance of Government Bonds (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "106",
     "firstAnchor": {
      "contextRef": "c-950",
      "name": "ifrs-full:GovernmentDebtInstrumentsHeld",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfDetailedInformationAboutOutstandingBalanceOfGovernmentBondsExplanatoryTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-950",
      "name": "ifrs-full:GovernmentDebtInstrumentsHeld",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfDetailedInformationAboutOutstandingBalanceOfGovernmentBondsExplanatoryTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R107": {
     "role": "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsAdditionalInformationDetail",
     "longName": "9955579 - Disclosure - Government Bonds, And Other Assets - Additional Information (Detail)",
     "shortName": "Government Bonds, And Other Assets - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "107",
     "firstAnchor": {
      "contextRef": "c-4",
      "name": "ck0000932782:DebtPrincipalAmount",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-953",
      "name": "ck0000932782:FinancialArrangementTerm",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R108": {
     "role": "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofRollforwardoftheMexicanBondsDetail",
     "longName": "9955580 - Disclosure - Government Bonds, And Other Assets - Summary of Roll forward of the Mexican Bonds (Detail)",
     "shortName": "Government Bonds, And Other Assets - Summary of Roll forward of the Mexican Bonds (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "108",
     "firstAnchor": {
      "contextRef": "c-963",
      "name": "ck0000932782:MexicanBondsOutstandingAmount",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfDetailedInformationAboutRollForwardRelatedToTheMexicanBondsExplanatoryTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-964",
      "name": "ck0000932782:MexicanBondsOutstandingAmount",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfDetailedInformationAboutRollForwardRelatedToTheMexicanBondsExplanatoryTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R109": {
     "role": "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofOtherAssetsDetail",
     "longName": "9955581 - Disclosure - Government Bonds, And Other Assets - Summary of Other Assets (Detail)",
     "shortName": "Government Bonds, And Other Assets - Summary of Other Assets (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "109",
     "firstAnchor": {
      "contextRef": "c-3",
      "name": "ifrs-full:RestrictedCashAndCashEquivalents",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfOtherNoncurrentAssetsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-3",
      "name": "ifrs-full:RestrictedCashAndCashEquivalents",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfOtherNoncurrentAssetsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R110": {
     "role": "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails",
     "longName": "9955582 - Disclosure - Debt - Additional Information (Details)",
     "shortName": "Debt - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "110",
     "firstAnchor": {
      "contextRef": "c-969",
      "name": "ifrs-full:Borrowings",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-985",
      "name": "ck0000932782:ProceedFromSaleOfEligibleAsset",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R111": {
     "role": "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail",
     "longName": "9955583 - Disclosure - Debt - Summary of Long-term Debt (Detail)",
     "shortName": "Debt - Summary of Long-term Debt (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "111",
     "firstAnchor": {
      "contextRef": "c-3",
      "name": "ifrs-full:LongtermBorrowings",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-3",
      "name": "ck0000932782:AccruedInterestOnShortTermDebt",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfDetailedInformationAboutBorrowingsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R112": {
     "role": "http://mexicopetroleum.com/role/DebtSummaryofForeignCurrencyTranslationDetail",
     "longName": "9955584 - Disclosure - Debt - Summary of Foreign Currency Translation (Detail)",
     "shortName": "Debt - Summary of Foreign Currency Translation (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "112",
     "firstAnchor": {
      "contextRef": "c-3",
      "name": "ifrs-full:ClosingForeignExchangeRate",
      "unitRef": "mxnPerUSD",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "4",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-3",
      "name": "ck0000932782:LoansAndReceivablesFromForeignBanks",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R113": {
     "role": "http://mexicopetroleum.com/role/DebtSummaryofChangesinConsolidatedDebtDetail",
     "longName": "9955585 - Disclosure - Debt - Summary of Changes in Consolidated Debt (Detail)",
     "shortName": "Debt - Summary of Changes in Consolidated Debt (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "113",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DebtIssueRelatedCosts",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DebtIssueRelatedCosts",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R114": {
     "role": "http://mexicopetroleum.com/role/DebtSummaryofMaturitiesofLongTermDebtPrincipalOutstandingandAccruedInterestDetail",
     "longName": "9955586 - Disclosure - Debt - Summary of Maturities of Long Term Debt Principal Outstanding and Accrued Interest (Detail)",
     "shortName": "Debt - Summary of Maturities of Long Term Debt Principal Outstanding and Accrued Interest (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "114",
     "firstAnchor": {
      "contextRef": "c-323",
      "name": "ck0000932782:DebtPrincipalAmountAndInterestEndingBalance",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfMaturitiesOfLongTermDebtPrincipalOutstandingAndAccruedInterestExplanatoryTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-323",
      "name": "ck0000932782:DebtPrincipalAmountAndInterestEndingBalance",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfMaturitiesOfLongTermDebtPrincipalOutstandingAndAccruedInterestExplanatoryTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R115": {
     "role": "http://mexicopetroleum.com/role/LeasesAdditionalInformationDetail",
     "longName": "9955587 - Disclosure - Leases - Additional Information (Detail)",
     "shortName": "Leases - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "115",
     "firstAnchor": {
      "contextRef": "c-3",
      "name": "ifrs-full:LeaseLiabilities",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1173",
      "name": "ck0000932782:LesseeRenegotiationOptionTerms",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R116": {
     "role": "http://mexicopetroleum.com/role/LeasesSummaryofrightofuseassetsDetail",
     "longName": "9955588 - Disclosure - Leases - Summary of right-of-use assets (Detail)",
     "shortName": "Leases - Summary of right-of-use assets (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "116",
     "firstAnchor": {
      "contextRef": "c-4",
      "name": "ifrs-full:RightofuseAssets",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DepreciationToRightofuseAssets",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfQuantitativeInformationAboutRightofuseAssetsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R117": {
     "role": "http://mexicopetroleum.com/role/LeasesSummaryofleasesliabilitiesDetail",
     "longName": "9955589 - Disclosure - Leases - Summary of leases liabilities (Detail)",
     "shortName": "Leases - Summary of leases liabilities (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "117",
     "firstAnchor": {
      "contextRef": "c-4",
      "name": "ifrs-full:LeaseLiabilities",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:SummaryOfLeasesLiabilitiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:LeaseLiabilitiesIncurred",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:SummaryOfLeasesLiabilitiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R118": {
     "role": "http://mexicopetroleum.com/role/LeasesSummaryofleaseliabilitiesrecognizedinstatementofcomprehensiveincomeDetail",
     "longName": "9955590 - Disclosure - Leases - Summary of lease liabilities recognized in statement of comprehensive income (Detail)",
     "shortName": "Leases - Summary of lease liabilities recognized in statement of comprehensive income (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "118",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:DepreciationRightofuseAssets",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:InterestsFromFinancialLeaseLiabilities",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:SummaryOfLeaseLiabilitiesRecognizedInStatementOfComprehensiveIncomeTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R119": {
     "role": "http://mexicopetroleum.com/role/LeasesSummaryofleaseliabilitiesrecognizedinstatementofcashflowsDetail",
     "longName": "9955591 - Disclosure - Leases - Summary of lease liabilities recognized in statement of cash flows (Detail)",
     "shortName": "Leases - Summary of lease liabilities recognized in statement of cash flows (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "119",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:LeasePaymentsOfPrincipalAndInterest",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:SummaryOfLeaseLiabilitiesRecognizedInStatementOfCashFlowsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R120": {
     "role": "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesScheduleofContractualLongTermliabilityFairValuesDetails",
     "longName": "9955592 - Disclosure - Long-Term Contractual Liabilities - Schedule of Contractual Long-Term liability Fair Values (Details)",
     "shortName": "Long-Term Contractual Liabilities - Schedule of Contractual Long-Term liability Fair Values (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "120",
     "firstAnchor": {
      "contextRef": "c-3",
      "name": "ck0000932782:LongTermContractualLiabilitiesFairValue",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ck0000932782:ScheduleOfAmortizationOfLongTermContractualLiabilitiesTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1225",
      "name": "ck0000932782:LongTermContractualLiabilitiesPercentage",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R121": {
     "role": "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesAdditionalInformationDetails",
     "longName": "9955593 - Disclosure - Long-Term Contractual Liabilities - Additional Information (Details)",
     "shortName": "Long-Term Contractual Liabilities - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "121",
     "firstAnchor": {
      "contextRef": "c-1231",
      "name": "ck0000932782:ApplicableMarginRate",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1231",
      "name": "ck0000932782:ApplicableMarginRate",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "INF",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R122": {
     "role": "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesScheduleofAmortizationofLongTermContractualLiabilitiesDetails",
     "longName": "9955594 - Disclosure - Long-Term Contractual Liabilities - Schedule of Amortization of Long-Term Contractual Liabilities (Details)",
     "shortName": "Long-Term Contractual Liabilities - Schedule of Amortization of Long-Term Contractual Liabilities (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "122",
     "firstAnchor": {
      "contextRef": "c-3",
      "name": "ck0000932782:LongTermContractualLiabilitiesFairValue",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ck0000932782:ScheduleOfAmortizationOfLongTermContractualLiabilitiesTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1233",
      "name": "ck0000932782:LongTermContractualLiabilitiesFairValue",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ck0000932782:ScheduleOfAmortizationOfLongTermContractualLiabilitiesTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R123": {
     "role": "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails",
     "longName": "9955595 - Disclosure - Derivative Financial Instruments - Additional Information (Details)",
     "shortName": "Derivative Financial Instruments - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "123",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:ProportionOfNetDebtOutstandingConsistedOfFloatingRateDebt",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "ck0000932782:PercentageOfIncreaseDecreaseInExchangeRate",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "2",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R124": {
     "role": "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryOfPortfolioofFinancialInstrumentsComposedofDebtInstrumentsandDFIDetail",
     "longName": "9955596 - Disclosure - Derivative Financial Instruments - Summary Of Portfolio of Financial Instruments Composed of Debt Instruments and DFI (Detail)",
     "shortName": "Derivative Financial Instruments - Summary Of Portfolio of Financial Instruments Composed of Debt Instruments and DFI (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "124",
     "firstAnchor": {
      "contextRef": "c-1244",
      "name": "ck0000932782:DebtNotionalAmount",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:SummaryOfPortfolioOfFinancialInstrumentsComposedOfDebtInstrumentsAndDFITableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1244",
      "name": "ck0000932782:DebtNotionalAmount",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:SummaryOfPortfolioOfFinancialInstrumentsComposedOfDebtInstrumentsAndDFITableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R125": {
     "role": "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofInterestRateSensitivityDetail",
     "longName": "9955597 - Disclosure - Derivative Financial Instruments - Details of Interest Rate Sensitivity (Detail)",
     "shortName": "Derivative Financial Instruments - Details of Interest Rate Sensitivity (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "125",
     "firstAnchor": {
      "contextRef": "c-351",
      "name": "ck0000932782:InterbankYieldCurvesSensitivityDebt",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfFairValueOfDerivativeInstrumentsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1265",
      "name": "ck0000932782:PemexCurvesSensitivityDebt",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfFairValueOfDerivativeInstrumentsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R126": {
     "role": "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofInterestRateandCurrencyDerivativeFinancialInstrumentsDetail",
     "longName": "9955598 - Disclosure - Derivative Financial Instruments - Details of Interest Rate and Currency Derivative Financial Instruments (Detail)",
     "shortName": "Derivative Financial Instruments - Details of Interest Rate and Currency Derivative Financial Instruments (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "126",
     "firstAnchor": {
      "contextRef": "c-351",
      "name": "ck0000932782:InterbankYieldCurvesSensitivityDebt",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfFairValueOfDerivativeInstrumentsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-351",
      "name": "ck0000932782:InterbankYieldCurves",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfInterestRateSensitivityByMajorCurrencyExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R127": {
     "role": "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofCurrentandPotentialExposuresandAggregatedbyCreditRatingDetail",
     "longName": "9955599 - Disclosure - Derivative Financial Instruments - Details of Current and Potential Exposures and Aggregated by Credit Rating (Detail)",
     "shortName": "Derivative Financial Instruments - Details of Current and Potential Exposures and Aggregated by Credit Rating (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "127",
     "firstAnchor": {
      "contextRef": "c-1301",
      "name": "ck0000932782:RatedCreditExposuresNet",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfDetailedInformationAboutMaximumCreditExposureByTermIncludingDebtExplanatoryTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1301",
      "name": "ck0000932782:RatedCreditExposuresNet",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfDetailedInformationAboutMaximumCreditExposureByTermIncludingDebtExplanatoryTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R128": {
     "role": "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail",
     "longName": "9955600 - Disclosure - Derivative Financial Instruments - Details of Quantitative Disclosure of Debt Cash Flow Maturities (Detail)",
     "shortName": "Derivative Financial Instruments - Details of Quantitative Disclosure of Debt Cash Flow Maturities (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "128",
     "firstAnchor": {
      "contextRef": "c-3",
      "name": "ifrs-full:ClosingForeignExchangeRate",
      "unitRef": "mxnPerUSD",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "4",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1424",
      "name": "ck0000932782:Debt",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfContractualMaturitiesExplanatoryTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R129": {
     "role": "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail",
     "longName": "9955601 - Disclosure - Derivative Financial Instruments - Summary of Quantitative Disclosure of Cash Flow's Maturities (Detail)",
     "shortName": "Derivative Financial Instruments - Summary of Quantitative Disclosure of Cash Flow's Maturities (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "129",
     "firstAnchor": {
      "contextRef": "c-1551",
      "name": "ck0000932782:BuyAndSellCurrencyOption",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1551",
      "name": "ck0000932782:BuyAndSellCurrencyOption",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R130": {
     "role": "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFinancialLiabilitiesInterestAndPrincipalCashFlowMaturitiesDetail",
     "longName": "9955602 - Disclosure - Derivative Financial Instruments - Summary of Financial Liabilities Interest And Principal Cash Flow Maturities (Detail)",
     "shortName": "Derivative Financial Instruments - Summary of Financial Liabilities Interest And Principal Cash Flow Maturities (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "130",
     "firstAnchor": {
      "contextRef": "c-3",
      "name": "ck0000932782:CurrentSundryCreditors",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1657",
      "name": "ck0000932782:CurrentSundryCreditors",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfFinancialLiabilitiesInterestAndPrincipalCashFlowMaturitiesTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R131": {
     "role": "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValuesandNotionalAmountsofDFIsDetail",
     "longName": "9955603 - Disclosure - Derivative Financial Instruments - Summary of Fair Values and Notional Amounts of DFIs (Detail)",
     "shortName": "Derivative Financial Instruments - Summary of Fair Values and Notional Amounts of DFIs (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "131",
     "firstAnchor": {
      "contextRef": "c-3",
      "name": "ck0000932782:DerivativeFinancialAssetsLiabilities",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1687",
      "name": "ck0000932782:FinancialInstrumentsFairValue",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R132": {
     "role": "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValueofDFIsincludedinStatementofFinancialPositionDetail",
     "longName": "9955604 - Disclosure - Derivative Financial Instruments - Summary of Fair Value of DFIs included in Statement of Financial Position (Detail)",
     "shortName": "Derivative Financial Instruments - Summary of Fair Value of DFIs included in Statement of Financial Position (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "132",
     "firstAnchor": {
      "contextRef": "c-3",
      "name": "ck0000932782:DerivativeFinancialAssetsLiabilities",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1703",
      "name": "ifrs-full:DerivativeFinancialAssets",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ck0000932782:DisclosureOfFairValueOfDerivativesAndClassificationOnConsolidatedStatementsOfFinancialPositionExplanatoryTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R133": {
     "role": "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofNetGainLossRecognizedinIncomeonDerivativeFinancialInstrumentsDetail",
     "longName": "9955605 - Disclosure - Derivative Financial Instruments - Summary of Net Gain (Loss) Recognized in Income on Derivative Financial Instruments (Detail)",
     "shortName": "Derivative Financial Instruments - Summary of Net Gain (Loss) Recognized in Income on Derivative Financial Instruments (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "133",
     "firstAnchor": {
      "contextRef": "c-1739",
      "name": "ck0000932782:NetGainLossOnDerivativesNotDesignatedAsHedgingInstrument",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ck0000932782:DisclosureOfNetFairValueGainsThroughProfitOrLossExplanatoryTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1739",
      "name": "ck0000932782:NetGainLossOnDerivativesNotDesignatedAsHedgingInstrument",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ck0000932782:DisclosureOfNetFairValueGainsThroughProfitOrLossExplanatoryTableTextBlock",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R134": {
     "role": "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsAssociatedWithPEMEXsLaborObligationsDetail",
     "longName": "9955606 - Disclosure - Employee Benefits - Summary of Amounts Associated With PEMEX's Labor Obligations (Detail)",
     "shortName": "Employee Benefits - Summary of Amounts Associated With PEMEX's Labor Obligations (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "134",
     "firstAnchor": {
      "contextRef": "c-3",
      "name": "ifrs-full:LiabilityAssetOfDefinedBenefitPlans",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfDefinedBenefitPlansExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R135": {
     "role": "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail",
     "longName": "9955607 - Disclosure - Employee Benefits - Additional Information (Detail)",
     "shortName": "Employee Benefits - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "135",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:AssetLiabilityDefinedContribution",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:AssetLiabilityDefinedContribution",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R136": {
     "role": "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofRetirementandPostEmploymentBenefitsDetails",
     "longName": "9955608 - Disclosure - Employee Benefits - Summary of Retirement and Post-Employment Benefits (Details)",
     "shortName": "Employee Benefits - Summary of Retirement and Post-Employment Benefits (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "136",
     "firstAnchor": {
      "contextRef": "c-4",
      "name": "ifrs-full:LiabilityAssetOfDefinedBenefitPlans",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfDefinedBenefitPlansExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:GainLossOnRemeasurementOfNetDefinedBenefitLiabilityAsset",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ifrs-full:DisclosureOfNetDefinedBenefitLiabilityAssetExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R137": {
     "role": "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsandTypesofPlanAssetsDetail",
     "longName": "9955609 - Disclosure - Employee Benefits - Summary of Amounts and Types of Plan Assets (Detail)",
     "shortName": "Employee Benefits - Summary of Amounts and Types of Plan Assets (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "137",
     "firstAnchor": {
      "contextRef": "c-3",
      "name": "ifrs-full:CashAndCashEquivalentsAmountContributedToFairValueOfPlanAssets",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfFairValueMeasurementOfAssetsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:GainsLossesArisingFromSettlementsNetDefinedBenefitLiabilityAsset",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R138": {
     "role": "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAdditionalFairvalueDisclosureAboutPlanAssetsandIndicateTheirRankDetail",
     "longName": "9955610 - Disclosure - Employee Benefits - Summary of Additional Fair value Disclosure About Plan Assets and Indicate Their Rank (Detail)",
     "shortName": "Employee Benefits - Summary of Additional Fair value Disclosure About Plan Assets and Indicate Their Rank (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "138",
     "firstAnchor": {
      "contextRef": "c-3",
      "name": "ifrs-full:CashAndCashEquivalentsAmountContributedToFairValueOfPlanAssets",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfFairValueMeasurementOfAssetsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1763",
      "name": "ifrs-full:CashAndCashEquivalentsAmountContributedToFairValueOfPlanAssets",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfFairValueMeasurementOfAssetsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R139": {
     "role": "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofPrincipalActuarialAssumptionsUsedinDeterminingtheDefinedBenefitObligationDetail",
     "longName": "9955611 - Disclosure - Employee Benefits - Summary of Principal Actuarial Assumptions Used in Determining the Defined Benefit Obligation (Detail)",
     "shortName": "Employee Benefits - Summary of Principal Actuarial Assumptions Used in Determining the Defined Benefit Obligation (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "139",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:AverageLengthOfObligation",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfSensitivityAnalysisForActuarialAssumptionsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1777",
      "name": "ifrs-full:PercentageOfReasonablyPossibleIncreaseInActuarialAssumption",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "4",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfSensitivityAnalysisForActuarialAssumptionsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R140": {
     "role": "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsRecognizedforOtherLongtermObligationsDetail",
     "longName": "9955612 - Disclosure - Employee Benefits - Summary of Amounts Recognized for Other Long-term Obligations (Detail)",
     "shortName": "Employee Benefits - Summary of Amounts Recognized for Other Long-term Obligations (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "140",
     "firstAnchor": {
      "contextRef": "c-4",
      "name": "ifrs-full:LiabilityAssetOfDefinedBenefitPlans",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfDefinedBenefitPlansExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1792",
      "name": "ifrs-full:InterestExpenseIncomeNetDefinedBenefitLiabilityAsset",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R141": {
     "role": "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofActuarialAssumptionsDetails",
     "longName": "9955613 - Disclosure - Employee Benefits - Summary of Actuarial Assumptions (Details)",
     "shortName": "Employee Benefits - Summary of Actuarial Assumptions (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "141",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:AverageLengthOfObligation",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfSensitivityAnalysisForActuarialAssumptionsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1792",
      "name": "ck0000932782:AverageLengthOfObligation",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R142": {
     "role": "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofProvisionsforSundryCreditorsandOthersDetail",
     "longName": "9955614 - Disclosure - Provisions for Sundry Creditors - Summary of Provisions for Sundry Creditors and Others (Detail)",
     "shortName": "Provisions for Sundry Creditors - Summary of Provisions for Sundry Creditors and Others (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "142",
     "firstAnchor": {
      "contextRef": "c-3",
      "name": "ck0000932782:ProvisionsForPluggingOfWells",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfProvisionsCurrentExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-33",
      "name": "ifrs-full:Provisions",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfProvisionsForSundryCreditorsExplanatoryTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R143": {
     "role": "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofAllowanceAccountforPluggingofWellsTrialsinProgressandEnvironmentalCostsDetail",
     "longName": "9955615 - Disclosure - Provisions for Sundry Creditors - Summary of Allowance Account for Plugging of Wells, Trials in Progress and Environmental Costs (Detail)",
     "shortName": "Provisions for Sundry Creditors - Summary of Allowance Account for Plugging of Wells, Trials in Progress and Environmental Costs (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "143",
     "firstAnchor": {
      "contextRef": "c-4",
      "name": "ck0000932782:ProvisionsForPluggingOfWells",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfProvisionsCurrentExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:ProvisionsForPluggingOfWellsIncreaseDecreaseCapitalizedInFixedAssets",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfProvisionsCurrentExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R144": {
     "role": "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsAdditionalInformationDetail",
     "longName": "9955616 - Disclosure - Provisions for Sundry Creditors - Additional Information (Detail)",
     "shortName": "Provisions for Sundry Creditors - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "144",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DiscountRateOverTimeAmountUsedInProvisionAgainstFixedAssets",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:DiscountRateOverTimeAmountUsedInProvisionAgainstFixedAssets",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R145": {
     "role": "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofprovisionsforpluggingofwellsDetail",
     "longName": "9955617 - Disclosure - Provisions for Sundry Creditors - Summary of provisions for plugging of wells (Detail)",
     "shortName": "Provisions for Sundry Creditors - Summary of provisions for plugging of wells (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "145",
     "firstAnchor": {
      "contextRef": "c-3",
      "name": "ck0000932782:ProvisionsForPluggingOfWells",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfProvisionsCurrentExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1233",
      "name": "ck0000932782:ProvisionsForPluggingOfWells",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfProvisionForPluggingOfWellsTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R146": {
     "role": "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxesandDutiesPayableDetail",
     "longName": "9955618 - Disclosure - Income Taxes and Duties - Summary of Income Taxes and Duties Payable (Detail)",
     "shortName": "Income Taxes and Duties - Summary of Income Taxes and Duties Payable (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "146",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:ProfitSharingDutyNet",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1816",
      "name": "ck0000932782:ProfitSharingDutyNet",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R147": {
     "role": "http://mexicopetroleum.com/role/IncomeTaxesandDutiesWelfareOilDutyNarrativeDetails",
     "longName": "9955619 - Disclosure - Income Taxes and Duties - Welfare Oil Duty Narrative (Details)",
     "shortName": "Income Taxes and Duties - Welfare Oil Duty Narrative (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "147",
     "firstAnchor": {
      "contextRef": "c-3",
      "name": "ck0000932782:WelfareOilDutyLiability",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-3",
      "name": "ck0000932782:WelfareOilDutyLiability",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R148": {
     "role": "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationandExtractionHydrocarbonsDutyNarrativeDetails",
     "longName": "9955620 - Disclosure - Income Taxes and Duties - Exploration and Extraction Hydrocarbons Duty Narrative (Details)",
     "shortName": "Income Taxes and Duties - Exploration and Extraction Hydrocarbons Duty Narrative (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "148",
     "firstAnchor": {
      "contextRef": "c-3",
      "name": "ck0000932782:IncomeTaxExpenseForExtractionPhase",
      "unitRef": "sqkm",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "2",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-3",
      "name": "ck0000932782:IncomeTaxExpenseForExtractionPhase",
      "unitRef": "sqkm",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "2",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R149": {
     "role": "http://mexicopetroleum.com/role/IncomeTaxesandDutiesProfitSharingDutyNarrativeDetails",
     "longName": "9955621 - Disclosure - Income Taxes and Duties - Profit-Sharing Duty Narrative (Details)",
     "shortName": "Income Taxes and Duties - Profit-Sharing Duty Narrative (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "149",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ck0000932782:IncreaseDecreaseInApplicableTaxRate",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "2",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "ck0000932782:IncreaseDecreaseInApplicableTaxRate",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "2",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R150": {
     "role": "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofTotalDUCandOthersDetail",
     "longName": "9955622 - Disclosure - Income Taxes and Duties - Summary of Total DUC and Others (Detail)",
     "shortName": "Income Taxes and Duties - Summary of Total DUC and Others (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "150",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ck0000932782:CurrentPayablesOnProfitSharingDuty",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1826",
      "name": "ck0000932782:CurrentPayablesOnProfitSharingDuty",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfDutiesAndOthersExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R151": {
     "role": "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingtheDeferredDUCDetail",
     "longName": "9955623 - Disclosure - Income Taxes and Duties - Summary of Principal Factors Generating the Deferred DUC (Detail)",
     "shortName": "Income Taxes and Duties - Summary of Principal Factors Generating the Deferred DUC (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "151",
     "firstAnchor": {
      "contextRef": "c-1828",
      "name": "ck0000932782:DeferredTaxAssetsTaxCredits",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfDeferredTaxLiabilityAssetTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1828",
      "name": "ck0000932782:DeferredTaxAssetsTaxCredits",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfDeferredTaxLiabilityAssetTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R152": {
     "role": "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpectedBenefitforDUCDetail",
     "longName": "9955624 - Disclosure - Income Taxes and Duties - Summary of Expected Benefit for DUC (Detail)",
     "shortName": "Income Taxes and Duties - Summary of Expected Benefit for DUC (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "152",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ck0000932782:ExpectedIncomeTaxBenefitExpenses",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfExpectedBenefitForDucExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "ck0000932782:ExpectedIncomeTaxBenefitExpenses",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfExpectedBenefitForDucExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R153": {
     "role": "http://mexicopetroleum.com/role/IncomeTaxesandDutiesHydrocarbonsExtractionDutyNarrativeDetails",
     "longName": "9955625 - Disclosure - Income Taxes and Duties - Hydrocarbons Extraction Duty Narrative (Details)",
     "shortName": "Income Taxes and Duties - Hydrocarbons Extraction Duty Narrative (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "153",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:CostOfSalesExcludingImpairments",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1831",
      "name": "ck0000932782:PaymentsForExtractionExpenses",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R154": {
     "role": "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails",
     "longName": "9955626 - Disclosure - Income Taxes and Duties - Explorations Hydrocarbons Duty Narrative (Details)",
     "shortName": "Income Taxes and Duties - Explorations Hydrocarbons Duty Narrative (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "154",
     "firstAnchor": {
      "contextRef": "c-3",
      "name": "ck0000932782:IncomeTaxPayablesForNonproducingAreas",
      "unitRef": "sqkm",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "2",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:PercentageOfGeneralVatTaxRate",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "2",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R155": {
     "role": "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxExpenseBenefitDetail",
     "longName": "9955627 - Disclosure - Income Taxes and Duties - Summary of Income Tax Expense (Benefit) (Detail)",
     "shortName": "Income Taxes and Duties - Summary of Income Tax Expense (Benefit) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "155",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:IncomeTaxExpenseContinuingOperations",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1173",
      "name": "ifrs-full:CurrentTaxExpenseIncome",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfComponentsOfIncomeTaxExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R156": {
     "role": "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail",
     "longName": "9955628 - Disclosure - Income Taxes and Duties - Summary of Principal Factors Generating Deferred Income Tax (Detail)",
     "shortName": "Income Taxes and Duties - Summary of Principal Factors Generating Deferred Income Tax (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "156",
     "firstAnchor": {
      "contextRef": "c-3",
      "name": "ifrs-full:DeferredTaxAssets",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1857",
      "name": "ck0000932782:DeferredTaxIncomeRelatingToProvisions",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ck0000932782:DisclosureOfComponentsOfDeferredIncomeExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R157": {
     "role": "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpenseBenefitAttributabletoProfitLossfromContinuingOperationsbeforeIncomeTaxesDetail",
     "longName": "9955629 - Disclosure - Income Taxes and Duties - Summary of Expense (Benefit) Attributable to Profit (Loss) from Continuing Operations before Income Taxes (Detail)",
     "shortName": "Income Taxes and Duties - Summary of Expense (Benefit) Attributable to Profit (Loss) from Continuing Operations before Income Taxes (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "157",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ck0000932782:ProfitsharingDutyExpenseDeductibleDuties",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfExpectedBenefitForDucExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1173",
      "name": "ifrs-full:TaxExpenseIncomeAtApplicableTaxRate",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R158": {
     "role": "http://mexicopetroleum.com/role/EquityDeficitAdditionalInformationDetails",
     "longName": "9955630 - Disclosure - Equity (Deficit) - Additional Information (Details)",
     "shortName": "Equity (Deficit) - Additional Information (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "158",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:IncreaseDecreaseThroughOtherContributionsByOwners",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:PostemploymentBenefitExpenseDefinedBenefitPlans",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R159": {
     "role": "http://mexicopetroleum.com/role/EquityDeficitSummaryofCertificateofContributionADetail",
     "longName": "9955631 - Disclosure - Equity (Deficit) - Summary of Certificate of Contribution \"A\" (Detail)",
     "shortName": "Equity (Deficit) - Summary of Certificate of Contribution \"A\" (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "159",
     "firstAnchor": {
      "contextRef": "c-1864",
      "name": "ck0000932782:CertificatesOfContribution",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfEquityContributedEquityExplanatoryTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1862",
      "name": "ck0000932782:CertificatesOfContribution",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfEquityContributedEquityExplanatoryTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R160": {
     "role": "http://mexicopetroleum.com/role/EquityDeficitSummaryofGovernmentContributionstoPetroleosMexicanosthroughtheMinistryofEnergyDetail",
     "longName": "9955632 - Disclosure - Equity (Deficit) - Summary of Government Contributions to Petroleos Mexicanos through the Ministry of Energy (Detail)",
     "shortName": "Equity (Deficit) - Summary of Government Contributions to Petroleos Mexicanos through the Ministry of Energy (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "160",
     "firstAnchor": {
      "contextRef": "c-1895",
      "name": "ck0000932782:NegativeBudgetFinancialBalance",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1867",
      "name": "ifrs-full:ProceedsFromGovernmentGrantsClassifiedAsInvestingActivities",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R161": {
     "role": "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail",
     "longName": "9955633 - Disclosure - Cost and Expenses by Nature - Summary of Cost and Expenses by Nature (Detail)",
     "shortName": "Cost and Expenses by Nature - Summary of Cost and Expenses by Nature (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "161",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:PurchasesExpense",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ck0000932782:DisclosureOfDetailedInformationAboutCostAndExpensesByNatureExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:PurchasesExpense",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ck0000932782:DisclosureOfDetailedInformationAboutCostAndExpensesByNatureExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R162": {
     "role": "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail",
     "longName": "9955634 - Disclosure - Other Revenues and Other Expenses - Summary of Other Revenues (Detail)",
     "shortName": "Other Revenues and Other Expenses - Summary of Other Revenues (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "162",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:OtherRevenue",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1902",
      "name": "ck0000932782:ClaimsRecovery",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfOtherRevenueAndExpenseTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R163": {
     "role": "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherExpensesDetail",
     "longName": "9955635 - Disclosure - Other Revenues and Other Expenses - Summary of Other Expenses (Detail)",
     "shortName": "Other Revenues and Other Expenses - Summary of Other Expenses (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "163",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:OtherExpenseByNature",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1905",
      "name": "ck0000932782:GainLossOnDisposalOfAssets",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R164": {
     "role": "http://mexicopetroleum.com/role/RelatedPartiesSummaryofProductsAcquisitionfromPemexIndustrialTransformationDetail",
     "longName": "9955636 - Disclosure - Related Parties - Summary of Products Acquisition from Pemex Industrial Transformation (Detail)",
     "shortName": "Related Parties - Summary of Products Acquisition from Pemex Industrial Transformation (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "164",
     "firstAnchor": {
      "contextRef": "c-1914",
      "name": "ck0000932782:AcquisitionOfBusiness",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1914",
      "name": "ck0000932782:AcquisitionOfBusiness",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R165": {
     "role": "http://mexicopetroleum.com/role/RelatedPartiesAdditionalInformationDetail",
     "longName": "9955637 - Disclosure - Related Parties - Additional Information (Detail)",
     "shortName": "Related Parties - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "165",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:KeyManagementPersonnelCompensation",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:KeyManagementPersonnelCompensation",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R166": {
     "role": "http://mexicopetroleum.com/role/RelatedPartiesSummaryofRetirementandFormerEmployeeBenefitsGrantedDetail",
     "longName": "9955638 - Disclosure - Related Parties - Summary of Retirement and Former Employee Benefits Granted (Detail)",
     "shortName": "Related Parties - Summary of Retirement and Former Employee Benefits Granted (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "166",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:KeyManagementPersonnelCompensationShorttermEmployeeBenefits",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:KeyManagementPersonnelCompensationShorttermEmployeeBenefits",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R167": {
     "role": "http://mexicopetroleum.com/role/CommitmentsAdditionalinformationDetail",
     "longName": "9955639 - Disclosure - Commitments - Additional information (Detail)",
     "shortName": "Commitments - Additional information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "167",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:NitrogenSupplyContractValue",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:NitrogenSupplyContractValue",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R168": {
     "role": "http://mexicopetroleum.com/role/CommitmentsEstimatedFuturePaymentsUnderContractsDetail",
     "longName": "9955640 - Disclosure - Commitments - Estimated Future Payments Under Contracts (Detail)",
     "shortName": "Commitments - Estimated Future Payments Under Contracts (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "168",
     "firstAnchor": {
      "contextRef": "c-1916",
      "name": "ck0000932782:EstimatedFutureContractPaymentsNextTwelveMonths",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfEstimatedFutureContractPaymentsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1916",
      "name": "ck0000932782:EstimatedFutureContractPaymentsNextTwelveMonths",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfEstimatedFutureContractPaymentsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R169": {
     "role": "http://mexicopetroleum.com/role/CommitmentsEstimatedValueofContractsDetail",
     "longName": "9955641 - Disclosure - Commitments - Estimated Value of Contracts (Detail)",
     "shortName": "Commitments - Estimated Value of Contracts (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "169",
     "firstAnchor": {
      "contextRef": "c-1925",
      "name": "ck0000932782:EstimatedValueOfContracts",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1925",
      "name": "ck0000932782:EstimatedValueOfContracts",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R170": {
     "role": "http://mexicopetroleum.com/role/ContingenciesAdditionalInformationDetail",
     "longName": "9955642 - Disclosure - Contingencies - Additional Information (Detail)",
     "shortName": "Contingencies - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "170",
     "firstAnchor": {
      "contextRef": "c-3",
      "name": "ck0000932782:ProvisionsForTrailsInProcess",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfProvisionsForSundryCreditorsExplanatoryTableTextBlock",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1933",
      "name": "ck0000932782:ContingentLiabilitiesForLegalProceedings",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R171": {
     "role": "http://mexicopetroleum.com/role/SubsequentEventsRecentFinancingActivitiesNarrativeDetails",
     "longName": "9955643 - Disclosure - Subsequent Events - Recent Financing Activities (Narrative) (Details)",
     "shortName": "Subsequent Events - Recent Financing Activities (Narrative) (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "171",
     "firstAnchor": {
      "contextRef": "c-969",
      "name": "ck0000932782:BankIndebtedness",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1941",
      "name": "ifrs-full:Borrowings",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R172": {
     "role": "http://mexicopetroleum.com/role/SubsequentEventsExchangeratesandcrudeoilpricesDetail",
     "longName": "9955644 - Disclosure - Subsequent Events - Exchange rates and crude oil prices (Detail)",
     "shortName": "Subsequent Events - Exchange rates and crude oil prices (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "172",
     "firstAnchor": {
      "contextRef": "c-3",
      "name": "ifrs-full:ClosingForeignExchangeRate",
      "unitRef": "mxnPerUSD",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "4",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1950",
      "name": "ifrs-full:ClosingForeignExchangeRate",
      "unitRef": "mxnPerUSD",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "4",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R173": {
     "role": "http://mexicopetroleum.com/role/SubsequentEventsSummaryofContributionsfromtheMexicanGovernmentDetails",
     "longName": "9955645 - Disclosure - Subsequent Events - Summary of Contributions from the Mexican Government (Details)",
     "shortName": "Subsequent Events - Summary of Contributions from the Mexican Government (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "173",
     "firstAnchor": {
      "contextRef": "c-1955",
      "name": "ifrs-full:ProceedsFromGovernmentGrantsClassifiedAsInvestingActivities",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfNonadjustingEventsAfterReportingPeriodExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1955",
      "name": "ifrs-full:ProceedsFromGovernmentGrantsClassifiedAsInvestingActivities",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfNonadjustingEventsAfterReportingPeriodExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R174": {
     "role": "http://mexicopetroleum.com/role/SubsequentEventsAmendingagreementswithsuppliersDetails",
     "longName": "9955646 - Disclosure - Subsequent Events - Amending agreements with suppliers (Details)",
     "shortName": "Subsequent Events - Amending agreements with suppliers (Details)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "174",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:SuppliersPaymentTerms",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:SuppliersPaymentTerms",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R175": {
     "role": "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationSummaryofPrincipalAmountOutstandingofRegisteredDebtSecuritiesDetail",
     "longName": "9955647 - Disclosure - Subsidiary Guarantor Information - Summary of Principal Amount Outstanding of Registered Debt Securities (Detail)",
     "shortName": "Subsidiary Guarantor Information - Summary of Principal Amount Outstanding of Registered Debt Securities (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "175",
     "firstAnchor": {
      "contextRef": "c-1956",
      "name": "ifrs-full:BorrowingsInterestRate",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "5",
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfPrincipalAmountOutstandingOfRegisteredDebtSecuritiesExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1956",
      "name": "ifrs-full:BorrowingsInterestRate",
      "unitRef": "number",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "5",
      "ancestors": [
       "span",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfPrincipalAmountOutstandingOfRegisteredDebtSecuritiesExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R176": {
     "role": "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail",
     "longName": "9955648 - Disclosure - Subsidiary Guarantor Information - Statement of Financial Position (Detail)",
     "shortName": "Subsidiary Guarantor Information - Statement of Financial Position (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "176",
     "firstAnchor": {
      "contextRef": "c-3",
      "name": "ifrs-full:CashAndCashEquivalents",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-4",
      "name": "ck0000932782:TradeAndOtherCurrentReceivablesAndDerivativeFinancialInstruments",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R177": {
     "role": "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofComprehensiveIncomeDetail",
     "longName": "9955649 - Disclosure - Subsidiary Guarantor Information - Statement of Comprehensive Income (Detail)",
     "shortName": "Subsidiary Guarantor Information - Statement of Comprehensive Income (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "177",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:RevenueFromSaleOfGoods",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "ifrs-full:ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ck0000932782:DisclosureOfSupplementalStatementOfIncomeExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R178": {
     "role": "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail",
     "longName": "9955650 - Disclosure - Subsidiary Guarantor Information - Statement of Cash Flows (Detail)",
     "shortName": "Subsidiary Guarantor Information - Statement of Cash Flows (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "178",
     "firstAnchor": {
      "contextRef": "c-5",
      "name": "ck0000932782:NetIncomeLossDuringThePeriod",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ck0000932782:DisclosureOfSupplementalStatementOfCashFlowExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-5",
      "name": "ck0000932782:NetIncomeLossDuringThePeriod",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ix:continuation",
       "ck0000932782:DisclosureOfSupplementalStatementOfCashFlowExplanatory",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R179": {
     "role": "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofCapitalizedCostsforOilandGasProducingActivitiesDetail",
     "longName": "9955651 - Disclosure - Supplementary Information on Oil and Gas Exploration and Production Activities (Unaudited) - Summary of Capitalized Costs for Oil and Gas Producing Activities (Detail)",
     "shortName": "Supplementary Information on Oil and Gas Exploration and Production Activities (Unaudited) - Summary of Capitalized Costs for Oil and Gas Producing Activities (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "179",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:CapitalisedOilAndGasProducingCosts",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfCapitalizedCostsForOilAndGasProductionExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:CapitalisedOilAndGasProducingCosts",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfCapitalizedCostsForOilAndGasProductionExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R180": {
     "role": "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofCostsIncurredforOilandGasPropertyExplorationandDevelopmentActivitiesDetail",
     "longName": "9955652 - Disclosure - Supplementary Information on Oil and Gas Exploration and Production Activities (Unaudited) - Summary of Costs Incurred for Oil and Gas Property Exploration and Development Activities (Detail)",
     "shortName": "Supplementary Information on Oil and Gas Exploration and Production Activities (Unaudited) - Summary of Costs Incurred for Oil and Gas Property Exploration and Development Activities (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "180",
     "firstAnchor": {
      "contextRef": "c-2031",
      "name": "ifrs-full:ExpenseArisingFromExplorationForAndEvaluationOfMineralResources",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfExplorationAndEvaluationAssetsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-2031",
      "name": "ifrs-full:ExpenseArisingFromExplorationForAndEvaluationOfMineralResources",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ifrs-full:DisclosureOfExplorationAndEvaluationAssetsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R181": {
     "role": "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedAdditionalInformationDetail",
     "longName": "9955653 - Disclosure - Supplementary Information on Oil and Gas Exploration and Production Activities (Unaudited) - Additional Information (Detail)",
     "shortName": "Supplementary Information on Oil and Gas Exploration and Production Activities (Unaudited) - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "181",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:ExpenseArisingFromExplorationForGeologicalAndGeophysicalStudies",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:ExpenseArisingFromExplorationForGeologicalAndGeophysicalStudies",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R182": {
     "role": "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofResultsofOperationsforOilandGasProducingActivitiesDetail",
     "longName": "9955654 - Disclosure - Supplementary Information on Oil and Gas Exploration and Production Activities (Unaudited) - Summary of Results of Operations for Oil and Gas Producing Activities (Detail)",
     "shortName": "Supplementary Information on Oil and Gas Exploration and Production Activities (Unaudited) - Summary of Results of Operations for Oil and Gas Producing Activities (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "182",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:RevenueFromSaleOfOilAndGasProducts",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfOperationsForOilAndGasProducingActivitiesExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ifrs-full:RevenueFromSaleOfOilAndGasProducts",
      "unitRef": "mxn",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfOperationsForOilAndGasProducingActivitiesExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R183": {
     "role": "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofSalesPricesDetail",
     "longName": "9955655 - Disclosure - Supplementary Information on Oil and Gas Exploration and Production Activities (Unaudited) - Summary of Sales Prices (Detail)",
     "shortName": "Supplementary Information on Oil and Gas Exploration and Production Activities (Unaudited) - Summary of Sales Prices (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "183",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:ConversionFactorForDryGasToBarrelsOfOil",
      "unitRef": "mcf",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "0",
      "ancestors": [
       "ix:continuation",
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "ck0000932782:ConversionFactorForDryGasToBarrelsOfOil",
      "unitRef": "mcf",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "0",
      "ancestors": [
       "ix:continuation",
       "span",
       "div",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R184": {
     "role": "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofOilandGasProvedReservesDetail",
     "longName": "9955656 - Disclosure - Supplementary Information on Oil and Gas Exploration and Production Activities (Unaudited) - Summary of Oil and Gas Proved Reserves (Detail)",
     "shortName": "Supplementary Information on Oil and Gas Exploration and Production Activities (Unaudited) - Summary of Oil and Gas Proved Reserves (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "184",
     "firstAnchor": {
      "contextRef": "c-2043",
      "name": "ck0000932782:ProvedDevelopedReserves",
      "unitRef": "mmbbls",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-5",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfProvedReserveExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-2043",
      "name": "ck0000932782:ProvedDevelopedReserves",
      "unitRef": "mmbbls",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-5",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfProvedReserveExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R185": {
     "role": "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofProvedDevelopedandUndevelopedReserveDetail",
     "longName": "9955657 - Disclosure - Supplementary Information on Oil and Gas Exploration and Production Activities (Unaudited) - Disclosure of Proved Developed and Undeveloped Reserve (Detail)",
     "shortName": "Supplementary Information on Oil and Gas Exploration and Production Activities (Unaudited) - Disclosure of Proved Developed and Undeveloped Reserve (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "185",
     "firstAnchor": {
      "contextRef": "c-2045",
      "name": "srt:ProvedDevelopedAndUndevelopedReservesNet",
      "unitRef": "bcf",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfProvedReserveRollforwardExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "c-2047",
      "name": "srt:ProvedDevelopedAndUndevelopedReservesNet",
      "unitRef": "bcf",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-3",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfProvedReserveRollforwardExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "unique": true
     }
    },
    "R186": {
     "role": "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofStandardizedMeasureofDiscountedFutureNetCashFlowsDetail",
     "longName": "9955658 - Disclosure - Supplementary Information on Oil and Gas Exploration and Production Activities (Unaudited) - Disclosure of Standardized Measure of Discounted Future Net Cash Flows (Detail)",
     "shortName": "Supplementary Information on Oil and Gas Exploration and Production Activities (Unaudited) - Disclosure of Standardized Measure of Discounted Future Net Cash Flows (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "186",
     "firstAnchor": {
      "contextRef": "c-2059",
      "name": "srt:FutureNetCashFlowsRelatingToProvedOilAndGasReservesCashInflows",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfStandardizedMeasureOfDiscountedFutureNetCashFlowsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-2059",
      "name": "srt:FutureNetCashFlowsRelatingToProvedOilAndGasReservesCashInflows",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfStandardizedMeasureOfDiscountedFutureNetCashFlowsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    },
    "R187": {
     "role": "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofChangesinstandardizedMeasureofDiscountedFutureNetCashFlowsDetail",
     "longName": "9955659 - Disclosure - Supplementary Information on Oil and Gas Exploration and Production Activities (Unaudited) - Disclosure of Changes in standardized Measure of Discounted Future Net Cash Flows (Detail)",
     "shortName": "Supplementary Information on Oil and Gas Exploration and Production Activities (Unaudited) - Disclosure of Changes in standardized Measure of Discounted Future Net Cash Flows (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "187",
     "firstAnchor": {
      "contextRef": "c-1",
      "name": "srt:SalesAndTransfersOfOilAndGasProducedNetOfProductionCosts",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfChangesInStandardizedMeasureOfDiscountedFutureNetCashFlowsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "c-1",
      "name": "srt:SalesAndTransfersOfOilAndGasProducedNetOfProductionCosts",
      "unitRef": "usd",
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": "-6",
      "ancestors": [
       "span",
       "td",
       "tr",
       "table",
       "div",
       "ck0000932782:DisclosureOfChangesInStandardizedMeasureOfDiscountedFutureNetCashFlowsExplanatory",
       "ix:continuation",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "ck0000932782-20251231.htm",
      "first": true,
      "unique": true
     }
    }
   },
   "tag": {
    "ck0000932782_A1st.GroupMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "A1st.GroupMember",
     "presentation": [
      "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesScheduleofContractualLongTermliabilityFairValuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "1st. Group",
        "label": "1st. Group [Member]",
        "documentation": "1st. Group"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_A2.750NotesDue2027Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "A2.750NotesDue2027Member",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2.750% Notes Due 2027",
        "label": "2.750% Notes Due 2027 [Member]",
        "documentation": "2.750% Notes Due 2027"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_A2nd.GroupMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "A2nd.GroupMember",
     "presentation": [
      "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesScheduleofContractualLongTermliabilityFairValuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2nd. Group",
        "label": "2nd. Group [Member]",
        "documentation": "2nd. Group"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_A3.750NotesDue2026Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "A3.750NotesDue2026Member",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "3.750% Notes Due 2026",
        "label": "3.750% Notes Due 2026 [Member]",
        "documentation": "3.750% Notes Due 2026"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_A3rd.GroupMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "A3rd.GroupMember",
     "presentation": [
      "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesScheduleofContractualLongTermliabilityFairValuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "3rd. Group",
        "label": "3rd. Group [Member]",
        "documentation": "3rd. Group"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_A4.875NotesDue2028Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "A4.875NotesDue2028Member",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "4.875% Notes Due 2028",
        "label": "4.875% Notes Due 2028 [Member]",
        "documentation": "4.875% Notes Due 2028"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_A4th.GroupMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "A4th.GroupMember",
     "presentation": [
      "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesScheduleofContractualLongTermliabilityFairValuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "4th. Group",
        "label": "4th. Group [Member]",
        "documentation": "4th. Group"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_A5.350NotesDue2028Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "A5.350NotesDue2028Member",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "5.350% Notes Due 2028",
        "label": "5.350% Notes Due 2028 [Member]",
        "documentation": "5.350% Notes Due 2028"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_A5th.GroupMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "A5th.GroupMember",
     "presentation": [
      "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesScheduleofContractualLongTermliabilityFairValuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "5th. Group",
        "label": "5th. Group [Member]",
        "documentation": "5th. Group"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_A6.490NotesDue2027Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "A6.490NotesDue2027Member",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "6.490% Notes Due 2027",
        "label": "6.490% Notes Due 2027 [Member]",
        "documentation": "6.490% Notes Due 2027"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_A6.500NotesDue2027Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "A6.500NotesDue2027Member",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "6.500% Notes Due 2027",
        "label": "6.500% Notes Due 2027 [Member]",
        "documentation": "6.500% Notes Due 2027"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_A6.875NotesDue2026Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "A6.875NotesDue2026Member",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "6.875% Notes Due 2026",
        "label": "6.875% Notes Due 2026 [Member]",
        "documentation": "6.875% Notes Due 2026"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_A6th.GroupMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "A6th.GroupMember",
     "presentation": [
      "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesScheduleofContractualLongTermliabilityFairValuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "6th. Group",
        "label": "6th. Group [Member]",
        "documentation": "6th. Group"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_APlusGradeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "APlusGradeMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofCurrentandPotentialExposuresandAggregatedbyCreditRatingDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "A+",
        "label": "A Plus [member]",
        "documentation": "A plus."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ARatingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ARatingMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofCurrentandPotentialExposuresandAggregatedbyCreditRatingDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "A",
        "label": "A Rating [Member]",
        "documentation": "A Rating"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AccountDebugging": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AccountDebugging",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail": {
       "parentTag": "ifrs-full_OtherRevenue",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Account debugging",
        "label": "Account Debugging",
        "documentation": "Account debugging."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AccountingEstimatesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AccountingEstimatesAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accounting estimates [axis]",
        "label": "Accounting estimates [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r95",
      "r261"
     ]
    },
    "ifrs-full_AccountingEstimatesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AccountingEstimatesDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accounting estimates",
        "label": "Accounting estimates [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for monetary amounts in financial statements that are subject to measurement uncertainty. It also represents the standard value for the 'Accounting estimates' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r95",
      "r261"
     ]
    },
    "ck0000932782_AccountsPayableAndAccruedExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AccountsPayableAndAccruedExpenses",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilities",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFinancialLiabilitiesInterestAndPrincipalCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accounts and accrued expenses payable",
        "negatedLabel": "Accounts and accrued expenses payable",
        "label": "Accounts payable and accrued expenses",
        "documentation": "Accounts payable and accrued expenses."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AccountsPayableInterCompany": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AccountsPayableInterCompany",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accounts payable\u2014intercompany",
        "label": "Accounts Payable Inter Company",
        "documentation": "Accounts payable inter company."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AccountsReceivableInterCompany": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AccountsReceivableInterCompany",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accounts receivable\u2014intercompany",
        "label": "Accounts Receivable Inter Company",
        "documentation": "Accounts receivable inter company."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AccretionOfDiscountOfPretaxNetCashFlows": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AccretionOfDiscountOfPretaxNetCashFlows",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofChangesinstandardizedMeasureofDiscountedFutureNetCashFlowsDetail": {
       "parentTag": "srt_StandardizedMeasureOfDiscountedFutureNetCashFlowOfProvedOilAndGasReservesPeriodIncreaseDecrease",
       "weight": -1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofChangesinstandardizedMeasureofDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Accretion of discount of pre-tax net cash flows",
        "label": "Accretion Of Discount Of Pretax Net Cash Flows",
        "documentation": "Accretion of discount of pretax net cash flows."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AccruedInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AccruedInterest",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofChangesinConsolidatedDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accrued interest",
        "label": "Accrued interest",
        "documentation": "The amount of interest accrued but is not yet received."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AccruedInterestFromMexicanBonds": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AccruedInterestFromMexicanBonds",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofRollforwardoftheMexicanBondsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accrued interest",
        "label": "Accrued Interest From Mexican Bonds",
        "documentation": "Accrued interest from mexican bonds."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AccruedInterestOnShortTermDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AccruedInterestOnShortTermDebt",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accrued interest",
        "label": "Accrued interest on short term debt",
        "documentation": "Accrued interest on short term debt."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AccruedOrPaidKeyManagementPersonnelCompensation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AccruedOrPaidKeyManagementPersonnelCompensation",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/RelatedPartiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accrued or paid key management personnel compensation",
        "label": "Accrued or paid key management personnel compensation",
        "documentation": "Accrued or paid key management personnel compensation."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AccumulatedDepreciationAndAmortisationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AccumulatedDepreciationAndAmortisationMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofOtherComponentsofIntangibleAssetsDetail",
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofCapitalizedCostsforOilandGasProducingActivitiesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accumulated depreciation and amortization",
        "label": "Accumulated depreciation and amortisation [member]"
       }
      }
     },
     "auth_ref": [
      "r20",
      "r566",
      "r578",
      "r583",
      "r585"
     ]
    },
    "ck0000932782_AccumulatedEffectOfActuarialGainsAndLossesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AccumulatedEffectOfActuarialGainsAndLossesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accumulated effect of actuarial gains and losses",
        "label": "Accumulated effect of actuarial gains and losses [Member]",
        "documentation": "Accumulated effect of actuarial gains and losses [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AccumulatedOtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AccumulatedOtherComprehensiveIncome",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accumulated other comprehensive result",
        "label": "Accumulated other comprehensive income"
       }
      }
     },
     "auth_ref": [
      "r614"
     ]
    },
    "ifrs-full_AccumulatedOtherComprehensiveIncomeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AccumulatedOtherComprehensiveIncomeMember",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofChangesinEquityDeficit",
      "http://mexicopetroleum.com/role/EquityDeficitAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accumulated other comprehensive result",
        "label": "Accumulated other comprehensive income [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for accumulated other comprehensive income. [Refer: Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r609"
     ]
    },
    "ck0000932782_AceiteTerciarioDelGolfoLakachTamaulipasConstitucionesAndTsiminXuxCGUsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AceiteTerciarioDelGolfoLakachTamaulipasConstitucionesAndTsiminXuxCGUsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Aceite Terciario del Golfo, Lakach, Tamaulipas Constituciones and Tsimin Xux CGU's",
        "label": "Aceite Terciario del Golfo, Lakach, Tamaulipas Constituciones and Tsimin Xux CGU's [Member]",
        "documentation": "Aceite Terciario del Golfo, Lakach, Tamaulipas Constituciones and Tsimin Xux CGU's"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AceiteTerciarioDelGolfoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AceiteTerciarioDelGolfoMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofValuesinUseforCGUImpairmentorReversalPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Aceite Terciario del Golfo",
        "label": "Aceite Terciario del Golfo [Member]",
        "documentation": "Aceite Terciario del Golfo."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AcquisitionOfBusiness": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AcquisitionOfBusiness",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/RelatedPartiesSummaryofProductsAcquisitionfromPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Product",
        "label": "Acquisition Of Business",
        "documentation": "Acquisition of business."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ActuarialAssumptionOfBasicBasketForActivePersonnelMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ActuarialAssumptionOfBasicBasketForActivePersonnelMember",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofActuarialAssumptionsDetails",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofPrincipalActuarialAssumptionsUsedinDeterminingtheDefinedBenefitObligationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Rate of increase in basic basket for active personnel",
        "label": "Actuarial assumption of basic basket for active personnel [member]",
        "documentation": "Actuarial assumption of basic basket for active personnel."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ActuarialAssumptionOfBasicBasketForRetiredPersonnelMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ActuarialAssumptionOfBasicBasketForRetiredPersonnelMember",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofActuarialAssumptionsDetails",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofPrincipalActuarialAssumptionsUsedinDeterminingtheDefinedBenefitObligationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Rate of increase in basic basket for retired personnel",
        "label": "Actuarial assumption of basic basket for retired personnel [member]",
        "documentation": "Actuarial assumption of basic basket for retired personnel."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ActuarialAssumptionOfDiscountRateIncreaseOrDecreaseOfOnePercentageMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ActuarialAssumptionOfDiscountRateIncreaseOrDecreaseOfOnePercentageMember",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Actuarial assumption of discount rate increase or decrease of one percentage",
        "label": "Actuarial Assumption Of Discount Rate Increase or Decrease Of One Percentage [Member]",
        "documentation": "Actuarial assumption of discount rate increase or decrease of one percentage."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ActuarialAssumptionOfDiscountRates": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ActuarialAssumptionOfDiscountRates",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of discount and return on plan asset",
        "label": "Actuarial assumption of discount rates"
       }
      },
      "en": {
       "role": {
        "documentation": "The discount rate used as the significant actuarial assumption to determine the present value of a defined benefit obligation. [Refer: Defined benefit obligation, at present value; Actuarial assumptions [domain]]"
       }
      }
     },
     "auth_ref": [
      "r570"
     ]
    },
    "ifrs-full_ActuarialAssumptionOfDiscountRatesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ActuarialAssumptionOfDiscountRatesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofActuarialAssumptionsDetails",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsandTypesofPlanAssetsDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofPrincipalActuarialAssumptionsUsedinDeterminingtheDefinedBenefitObligationDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofRetirementandPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Actuarial assumption of discount rates",
        "verboseLabel": "Discount and return on plan assets rate",
        "netLabel": "Discount and return on plan assets rate",
        "label": "Actuarial assumption of discount rates [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the discount rates used as actuarial assumptions. [Refer: Actuarial assumptions [domain]]"
       }
      }
     },
     "auth_ref": [
      "r571"
     ]
    },
    "ifrs-full_ActuarialAssumptionOfExpectedRatesOfInflationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ActuarialAssumptionOfExpectedRatesOfInflationMember",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofActuarialAssumptionsDetails",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofPrincipalActuarialAssumptionsUsedinDeterminingtheDefinedBenefitObligationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Inflation assumption",
        "label": "Actuarial assumption of expected rates of inflation [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the expected rates of inflation used as actuarial assumptions. [Refer: Actuarial assumptions [domain]]"
       }
      }
     },
     "auth_ref": [
      "r571"
     ]
    },
    "ifrs-full_ActuarialAssumptionOfExpectedRatesOfPensionIncreasesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ActuarialAssumptionOfExpectedRatesOfPensionIncreasesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofPrincipalActuarialAssumptionsUsedinDeterminingtheDefinedBenefitObligationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Rate of increase in pensions",
        "label": "Actuarial assumption of expected rates of pension increases [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the expected rates of pension increases used as actuarial assumptions. [Refer: Actuarial assumptions [domain]]"
       }
      }
     },
     "auth_ref": [
      "r571"
     ]
    },
    "ifrs-full_ActuarialAssumptionOfExpectedRatesOfSalaryIncreasesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ActuarialAssumptionOfExpectedRatesOfSalaryIncreasesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofActuarialAssumptionsDetails",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofPrincipalActuarialAssumptionsUsedinDeterminingtheDefinedBenefitObligationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Rate of increase in salaries",
        "label": "Actuarial assumption of expected rates of salary increases [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the expected rates of salary increases used as actuarial assumptions. [Refer: Actuarial assumptions [domain]]"
       }
      }
     },
     "auth_ref": [
      "r571"
     ]
    },
    "ck0000932782_ActuarialAssumptionOfGasAndGasolineRatesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ActuarialAssumptionOfGasAndGasolineRatesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofActuarialAssumptionsDetails",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofPrincipalActuarialAssumptionsUsedinDeterminingtheDefinedBenefitObligationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Rate of increase in gas and gasoline",
        "label": "Actuarial assumption of gas and gasoline rates [member]",
        "documentation": "Actuarial assumption of gas and gasoline rates."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ActuarialAssumptionOfInflationRatesIncreaseDecreaseOfOnePercentageMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ActuarialAssumptionOfInflationRatesIncreaseDecreaseOfOnePercentageMember",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Actuarial assumption of inflation rates increase decrease of one percentage",
        "label": "Actuarial assumption of inflation rates increase decrease of one percentage [member]",
        "documentation": "Actuarial assumption of inflation rates increase decrease of one percentage."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ActuarialAssumptionOfLifeExpectancyAfterRetirementMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ActuarialAssumptionOfLifeExpectancyAfterRetirementMember",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofPrincipalActuarialAssumptionsUsedinDeterminingtheDefinedBenefitObligationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Rate of increase in post-mortem pensions",
        "label": "Actuarial assumption of life expectancy after retirement [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the life expectancy after retirement used as actuarial assumptions. [Refer: Actuarial assumptions [domain]]"
       }
      }
     },
     "auth_ref": [
      "r571"
     ]
    },
    "ck0000932782_ActuarialAssumptionOfMedicalCostTrendRatesIncreaseDecreaseOfOnePercentageMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ActuarialAssumptionOfMedicalCostTrendRatesIncreaseDecreaseOfOnePercentageMember",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Medical services of increase or decrease of one percentage point",
        "label": "Actuarial Assumption of Medical Cost Trend Rates Increase Decrease of One Percentage [member]",
        "documentation": "Actuarial assumption of medical cost trend rates increase decrease of one percentage."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ActuarialAssumptionOfMedicalCostTrendRatesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ActuarialAssumptionOfMedicalCostTrendRatesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofPrincipalActuarialAssumptionsUsedinDeterminingtheDefinedBenefitObligationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Rate of increase in medical services",
        "label": "Actuarial assumption of medical cost trend rates [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the medical cost trend rates used as actuarial assumptions. [Refer: Actuarial assumptions [domain]]"
       }
      }
     },
     "auth_ref": [
      "r571"
     ]
    },
    "ifrs-full_ActuarialAssumptionsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ActuarialAssumptionsAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofActuarialAssumptionsDetails",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsandTypesofPlanAssetsDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofPrincipalActuarialAssumptionsUsedinDeterminingtheDefinedBenefitObligationDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofRetirementandPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Actuarial assumptions [axis]",
        "label": "Actuarial assumptions [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r38"
     ]
    },
    "ifrs-full_ActuarialAssumptionsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ActuarialAssumptionsDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofActuarialAssumptionsDetails",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsandTypesofPlanAssetsDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofPrincipalActuarialAssumptionsUsedinDeterminingtheDefinedBenefitObligationDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofRetirementandPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Actuarial assumptions",
        "label": "Actuarial assumptions [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for all actuarial assumptions. Actuarial assumptions are the entity\u2019s unbiased and mutually compatible best estimates of the demographic and financial variables that will determine the ultimate cost of providing post-employment benefits. It also represents the standard value for the 'Actuarial assumptions' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r38"
     ]
    },
    "ck0000932782_ActuarialGainsAndLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ActuarialGainsAndLosses",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss": {
       "parentTag": "ifrs-full_OtherComprehensiveIncome",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Actuarial (losses) gains - employee benefits, net of taxes",
        "label": "Actuarial gains and losses",
        "documentation": "Actuarial gains and losses."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ActuarialGainsLossesArisingFromChangesInDemographicAssumptionsNetDefinedBenefitLiabilityAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ActuarialGainsLossesArisingFromChangesInDemographicAssumptionsNetDefinedBenefitLiabilityAsset",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsRecognizedforOtherLongtermObligationsDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsandTypesofPlanAssetsDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofRetirementandPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Change in demographic assumptions",
        "label": "Decrease (increase) in net defined benefit liability (asset) resulting from actuarial gains (losses) arising from changes in demographic assumptions"
       }
      },
      "en": {
       "role": {
        "documentation": "The decrease (increase) in a net defined benefit liability (asset) resulting from actuarial gains (losses) arising from changes in demographic assumptions that result in remeasurements of the net defined benefit liability (asset). Demographic assumptions deal with matters such as: (a) mortality; (b) rates of employee turnover, disability and early retirement; (c) the proportion of plan members with dependants who will be eligible for benefits; (d) the proportion of plan members who will select each form of payment option available under the plan terms; and (e) claim rates under medical plans. [Refer: Net defined benefit liability (asset)]"
       }
      }
     },
     "auth_ref": [
      "r29"
     ]
    },
    "ifrs-full_ActuarialGainsLossesArisingFromChangesInFinancialAssumptionsNetDefinedBenefitLiabilityAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ActuarialGainsLossesArisingFromChangesInFinancialAssumptionsNetDefinedBenefitLiabilityAsset",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsRecognizedforOtherLongtermObligationsDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsandTypesofPlanAssetsDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofRetirementandPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Change in financial assumptions",
        "label": "Decrease (increase) in net defined benefit liability (asset) resulting from actuarial gains (losses) arising from changes in financial assumptions"
       }
      },
      "en": {
       "role": {
        "documentation": "The decrease (increase) in a net defined benefit liability (asset) resulting from actuarial gains (losses) arising from changes in financial assumptions that result in remeasurements of the net defined benefit liability (asset). Financial assumptions deal with items such as: (a) the discount rate; (b) benefit levels, excluding any cost of the benefits to be met by employees, and future salary; (c) in the case of medical benefits, future medical costs, including claim handling costs (ie the costs that will be incurred in processing and resolving claims, including legal and adjuster's fees); and (d) taxes payable by the plan on contributions relating to service before the reporting date or on benefits resulting from that service. [Refer: Net defined benefit liability (asset)]"
       }
      }
     },
     "auth_ref": [
      "r30"
     ]
    },
    "ifrs-full_ActuarialGainsLossesArisingFromExperienceAdjustmentsNetDefinedBenefitLiabilityAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ActuarialGainsLossesArisingFromExperienceAdjustmentsNetDefinedBenefitLiabilityAsset",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofRetirementandPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "For experience during the year",
        "label": "Decrease (increase) in net defined benefit liability (asset) resulting from actuarial gains (losses) arising from experience adjustments"
       }
      },
      "en": {
       "role": {
        "documentation": "The decrease (increase) in a net defined benefit liability (asset) resulting from actuarial gains (losses) arising from experience adjustments that result in remeasurements of the net defined benefit liability (asset). Experience adjustments deal with the effects of differences between the previous actuarial assumptions and what has actually occurred. [Refer: Net defined benefit liability (asset)]"
       }
      }
     },
     "auth_ref": [
      "r569"
     ]
    },
    "ck0000932782_ActuarialLossesGainsOnEmployeeBenefitsEffectMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ActuarialLossesGainsOnEmployeeBenefitsEffectMember",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofChangesinEquityDeficit",
      "http://mexicopetroleum.com/role/EquityDeficitAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Actuarial (losses) gains on employee benefits effect",
        "label": "Actuarial (losses) gains on employee benefits effect [member]",
        "documentation": "Actuarial (losses) gains on employee benefits effect."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ActurialAssumptionOfWageRatesIncreaseDecreaseOfOnePercentageMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ActurialAssumptionOfWageRatesIncreaseDecreaseOfOnePercentageMember",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Actuarial assumption of wage rates increase decrease of one percentage",
        "label": "Acturial Assumption Of Wage Rates Increase Decrease Of One Percentage [member]",
        "documentation": "Actuarial assumption of wage rates increase decrease of one percentage."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_Additional402vDisclosureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "Additional402vDisclosureTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional 402(v) Disclosure [Text Block]",
        "terseLabel": "Additional 402(v) Disclosure"
       }
      }
     },
     "auth_ref": [
      "r501"
     ]
    },
    "ck0000932782_AdditionalLossForFairProfitOnContingencyDamagesClaims": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AdditionalLossForFairProfitOnContingencyDamagesClaims",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/ContingenciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Additional loss for fair profit on contingency damages claims",
        "label": "Additional Loss For Fair Profit On Contingency Damages Claims",
        "documentation": "Additional Loss For Fair Profit On Contingency Damages Claims"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AdditionsAgainstExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AdditionsAgainstExpenses",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofAllowanceAccountforPluggingofWellsTrialsinProgressandEnvironmentalCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Additions against expenses",
        "label": "Additions against Expenses",
        "documentation": "Additions against income."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AdditionsFromAcquisitionsInvestmentPropertyNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AdditionsFromAcquisitionsInvestmentPropertyNet",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Acquisitions",
        "label": "Additions From Acquisitions Investment Property, Net",
        "documentation": "Additions From Acquisitions Investment Property, Net"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdditionsOtherThanThroughBusinessCombinationsIntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdditionsOtherThanThroughBusinessCombinationsIntangibleAssetsOtherThanGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofIntangibleAssetsDetail",
      "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofOtherComponentsofIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Additions to construction in progress",
        "terseLabel": "Additions",
        "label": "Additions other than through business combinations, intangible assets other than goodwill"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of additions to intangible assets other than goodwill, other than those acquired through business combinations. [Refer: Total for all business combinations [member]; Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r72",
      "r303"
     ]
    },
    "ifrs-full_AdditionsToRightofuseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdditionsToRightofuseAssets",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesSummaryofrightofuseassetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Additions",
        "label": "Additions to right-of-use assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of additions to right-of-use assets. [Refer: Right-of-use assets]"
       }
      }
     },
     "auth_ref": [
      "r138",
      "r242"
     ]
    },
    "dei_AddressTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "AddressTypeDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Address Type [Domain]",
        "label": "Address Type [Domain]",
        "documentation": "An entity may have several addresses for different purposes and this domain represents all such types."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AdjToCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AdjToCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustment to Compensation Amount",
        "terseLabel": "Adjustment to Compensation, Amount"
       }
      }
     },
     "auth_ref": [
      "r514"
     ]
    },
    "ecd_AdjToCompAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AdjToCompAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustment to Compensation [Axis]",
        "terseLabel": "Adjustment to Compensation:"
       }
      }
     },
     "auth_ref": [
      "r514"
     ]
    },
    "ecd_AdjToNonPeoNeoCompFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AdjToNonPeoNeoCompFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustment to Non-PEO NEO Compensation Footnote [Text Block]",
        "terseLabel": "Adjustment to Non-PEO NEO Compensation Footnote"
       }
      }
     },
     "auth_ref": [
      "r514"
     ]
    },
    "ecd_AdjToPeoCompFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AdjToPeoCompFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustment To PEO Compensation, Footnote [Text Block]",
        "terseLabel": "Adjustment To PEO Compensation, Footnote"
       }
      }
     },
     "auth_ref": [
      "r514"
     ]
    },
    "ck0000932782_AdjustmentToTheDefinedContributionPlan": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AdjustmentToTheDefinedContributionPlan",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofRetirementandPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Adjustment to the Defined Contribution Plan",
        "label": "Adjustment to the Defined Contribution Plan",
        "documentation": "Adjustment to the defined contribution plan."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AdjustmentsForCancelationOfRightsToUse": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AdjustmentsForCancelationOfRightsToUse",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperationsBeforeChangesInWorkingCapital",
       "weight": 1.0,
       "order": 12.0
      },
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 21.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Cancellation of leases",
        "label": "Adjustments For Cancelation Of Rights To Use",
        "documentation": "Adjustments for cancelation of rights to use"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdjustmentsForDecreaseIncreaseInInventories": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForDecreaseIncreaseInInventories",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Inventories",
        "label": "Adjustments for decrease (increase) in inventories"
       }
      }
     },
     "auth_ref": [
      "r588"
     ]
    },
    "ck0000932782_AdjustmentsForDecreaseIncreaseInTradeAccountsReceivableAccountsPayableDerivativeFinancialInstrumentsAndAccruedLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AdjustmentsForDecreaseIncreaseInTradeAccountsReceivableAccountsPayableDerivativeFinancialInstrumentsAndAccruedLiabilities",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 15.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accounts receivable, inventories, accounts payable, DFIs and provisions",
        "label": "Adjustments for decrease increase in trade accounts receivable, accounts payable, derivative financial instruments and accrued liabilities",
        "documentation": "Adjustments for decrease increase in trade accounts receivable, accounts payable, derivative financial instruments and accrued liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdjustmentsForDecreaseIncreaseInTradeAndOtherReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForDecreaseIncreaseInTradeAndOtherReceivables",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Customers and accounts receivable",
        "label": "Adjustments for decrease (increase) in trade and other receivables"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for decrease (increase) in trade and other receivables to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Trade and other receivables; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r590"
     ]
    },
    "ifrs-full_AdjustmentsForDepreciationAndAmortisationExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForDepreciationAndAmortisationExpense",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperationsBeforeChangesInWorkingCapital",
       "weight": 1.0,
       "order": 4.0
      },
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Depreciation and amortization of wells, pipelines, properties, plant and equipment",
        "terseLabel": "Depreciation and amortization of wells, pipelines, properties, plant and equipment",
        "netLabel": "Depreciation and amortization of wells, pipelines, properties, plant and equipment",
        "label": "Adjustments for depreciation and amortisation expense"
       }
      }
     },
     "auth_ref": [
      "r589"
     ]
    },
    "ck0000932782_AdjustmentsForDerivativeFinancialInstruments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AdjustmentsForDerivativeFinancialInstruments",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative financial instruments",
        "label": "Adjustments For Derivative Financial Instruments",
        "documentation": "Adjustments for derivative financial instruments."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AdjustmentsForGainLossFromDisposalOfBusiness": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AdjustmentsForGainLossFromDisposalOfBusiness",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": -1.0,
       "order": 19.0
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdjustmentsForGainLossOnDisposalOfInvestmentsInSubsidiariesJointVenturesAndAssociates": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForGainLossOnDisposalOfInvestmentsInSubsidiariesJointVenturesAndAssociates",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperationsBeforeChangesInWorkingCapital",
       "weight": -1.0,
       "order": 14.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "(Profit) sharing in associates, net",
        "label": "Adjustments for gain (loss) on disposal of investments in subsidiaries, joint ventures and associates"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for gain (loss) on disposals investments in subsidiaries, joint ventures and associates to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Total for all associates [member]; Total for all joint ventures [member]; Total for all subsidiaries [member]; Investments in subsidiaries, joint ventures and associates reported in separate financial statements; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r590"
     ]
    },
    "ifrs-full_AdjustmentsForGainLossOnDisposalsPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForGainLossOnDisposalsPropertyPlantAndEquipment",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperationsBeforeChangesInWorkingCapital",
       "weight": -1.0,
       "order": 9.0
      },
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": -1.0,
       "order": 17.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Loss from derecognition of disposal of wells, pipelines, properties, plant and equipment",
        "label": "Adjustments for gain (loss) on disposals, property, plant and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for gain (loss) on disposals of property, plant and equipment to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Profit (loss); Property, plant and equipment; Disposals, property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r590"
     ]
    },
    "ck0000932782_AdjustmentsForImpairmentOfJointVentures": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AdjustmentsForImpairmentOfJointVentures",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 20.0
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdjustmentsForIncreaseDecreaseInEmployeeBenefitLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForIncreaseDecreaseInEmployeeBenefitLiabilities",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Employee benefits",
        "label": "Adjustments for increase (decrease) in employee benefit liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for increase (decrease) in employee benefit liabilities to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r590"
     ]
    },
    "ifrs-full_AdjustmentsForIncreaseDecreaseInTradeAccountPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForIncreaseDecreaseInTradeAccountPayable",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accounts payable and accrued expenses",
        "label": "Adjustments for increase (decrease) in trade accounts payable"
       }
      }
     },
     "auth_ref": [
      "r588"
     ]
    },
    "ifrs-full_AdjustmentsForLossesGainsOnDisposalOfNoncurrentAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForLossesGainsOnDisposalOfNoncurrentAssets",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperationsBeforeChangesInWorkingCapital",
       "weight": 1.0,
       "order": 6.0
      },
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Impairment of wells, pipelines, properties, plant and equipment",
        "terseLabel": "Impairment of wells, pipelines, properties, plant and equipment",
        "label": "Adjustments for losses (gains) on disposal of non-current assets"
       }
      }
     },
     "auth_ref": [
      "r586"
     ]
    },
    "ck0000932782_AdjustmentsForProfitSharingDutyAndIncomeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AdjustmentsForProfitSharingDutyAndIncomeTax",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Profit-sharing duty and Welfare duty paid",
        "label": "Adjustments for profit sharing duty and income tax",
        "documentation": "Adjustments for profit sharing duty and income tax."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdjustmentsForProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForProvisions",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Provisions for sundry creditors",
        "label": "Adjustments for provisions"
       }
      }
     },
     "auth_ref": [
      "r589"
     ]
    },
    "ifrs-full_AdjustmentsForUnrealisedForeignExchangeLossesGains": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForUnrealisedForeignExchangeLossesGains",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 11.0
      },
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperationsBeforeChangesInWorkingCapital",
       "weight": 1.0,
       "order": 15.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unrealized foreign exchange (income) loss",
        "verboseLabel": "Unrealized foreign exchange (income) loss",
        "label": "Adjustments for unrealised foreign exchange losses (gains)"
       }
      }
     },
     "auth_ref": [
      "r403",
      "r589"
     ]
    },
    "ck0000932782_AdministrativeClaimMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AdministrativeClaimMember",
     "presentation": [
      "http://mexicopetroleum.com/role/ContingenciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Administrative Claim",
        "label": "Administrative Claim [Member]",
        "documentation": "Administrative Claim [member]."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdministrativeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdministrativeExpense",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss": {
       "parentTag": "ifrs-full_ProfitLossFromOperatingActivities",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Administrative expenses",
        "label": "Administrative expenses"
       }
      }
     },
     "auth_ref": [
      "r52",
      "r384",
      "r448"
     ]
    },
    "ck0000932782_AdministrativeExpenseOnPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AdministrativeExpenseOnPropertyPlantAndEquipment",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails": {
       "parentTag": "ifrs-full_ProfitLossFromOperatingActivities",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Administrative expenses",
        "label": "Administrative Expense On Property Plant And Equipment",
        "documentation": "Administrative expenses on property plant and equipment."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AffiliatedCompaniesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AffiliatedCompaniesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Affiliated Companies",
        "label": "Affiliated Companies [Member]",
        "documentation": "Affiliated companies."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AfterTaxDiscountRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AfterTaxDiscountRate",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofReservesPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "After-tax discount rate",
        "label": "After Tax Discount Rate",
        "documentation": "After Tax Discount Rate"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AggtChngPnsnValInSummryCompstnTblForAplblYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AggtChngPnsnValInSummryCompstnTblForAplblYrMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aggregate Change in Present Value of Accumulated Benefit for All Pension Plans Reported in Summary Compensation Table [Member]",
        "terseLabel": "Aggregate Change in Present Value of Accumulated Benefit for All Pension Plans Reported in Summary Compensation Table"
       }
      }
     },
     "auth_ref": [
      "r559"
     ]
    },
    "ecd_AggtErrCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AggtErrCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aggregate Erroneous Compensation Amount",
        "terseLabel": "Aggregate Erroneous Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r472",
      "r483",
      "r493",
      "r526"
     ]
    },
    "ecd_AggtErrCompNotYetDeterminedTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AggtErrCompNotYetDeterminedTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aggregate Erroneous Compensation Not Yet Determined [Text Block]",
        "terseLabel": "Aggregate Erroneous Compensation Not Yet Determined"
       }
      }
     },
     "auth_ref": [
      "r475",
      "r486",
      "r496",
      "r529"
     ]
    },
    "ecd_AggtPnsnAdjsSvcCstMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AggtPnsnAdjsSvcCstMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aggregate Pension Adjustments Service Cost [Member]",
        "terseLabel": "Aggregate Pension Adjustments Service Cost"
       }
      }
     },
     "auth_ref": [
      "r560"
     ]
    },
    "ecd_AllAdjToCompMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AllAdjToCompMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Adjustments to Compensation [Member]",
        "terseLabel": "All Adjustments to Compensation"
       }
      }
     },
     "auth_ref": [
      "r514"
     ]
    },
    "currency_AllCurrenciesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/currency/2025",
     "localname": "AllCurrenciesDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/AuthorizationandBasisofPreparationAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/DebtSummaryofForeignCurrencyTranslationDetail",
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofInterestRateSensitivityDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofInterestRateandCurrencyDerivativeFinancialInstrumentsDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFinancialLiabilitiesInterestAndPrincipalCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail",
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofMonetaryAssetsandLiabilitiesDenominatedInForeignCurrencyDetail",
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "All Currencies [Domain]",
        "label": "All Currencies [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AllExecutiveCategoriesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AllExecutiveCategoriesMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Executive Categories [Member]",
        "terseLabel": "All Executive Categories"
       }
      }
     },
     "auth_ref": [
      "r521"
     ]
    },
    "ecd_AllIndividualsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AllIndividualsMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure",
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure",
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements",
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Individuals [Member]",
        "terseLabel": "All Individuals"
       }
      }
     },
     "auth_ref": [
      "r476",
      "r487",
      "r497",
      "r521",
      "r530",
      "r534",
      "r542"
     ]
    },
    "ecd_AllTradingArrangementsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AllTradingArrangementsMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Trading Arrangements [Member]",
        "terseLabel": "All Trading Arrangements"
       }
      }
     },
     "auth_ref": [
      "r540"
     ]
    },
    "ck0000932782_AllowanceAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AllowanceAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofAllowanceAccountforPluggingofWellsTrialsinProgressandEnvironmentalCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Allowance account for plugging of wells",
        "label": "Allowance [Abstract]",
        "documentation": "Allowance"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AllowanceAccountAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AllowanceAccountAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofAllowanceAccountforPluggingofWellsTrialsinProgressandEnvironmentalCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Allowance account for trials in progress",
        "label": "Allowance Account [Abstract]",
        "documentation": "Allowance Account"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AllowanceAccountsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AllowanceAccountsAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofAllowanceAccountforPluggingofWellsTrialsinProgressandEnvironmentalCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Allowance costs for environmental costs",
        "label": "Allowance Accounts [Abstract]",
        "documentation": "Allowance Accounts"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AllowanceForDoubtfulAccountsOfTradeAndOtherReceivablesIncreaseCancellation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AllowanceForDoubtfulAccountsOfTradeAndOtherReceivablesIncreaseCancellation",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofReconciliationforImpairedAccountsReceivableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "(Increase) cancellation (1)",
        "label": "Allowance For Doubtful Accounts Of Trade And Other Receivables, (Increase) Cancellation",
        "documentation": "Cancellation (Increase) Decrease"
       }
      }
     },
     "auth_ref": []
    },
    "dei_AmendmentFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "AmendmentFlag",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Amendment Flag",
        "label": "Amendment Flag",
        "documentation": "Boolean flag that is true when the XBRL content amends previously-filed or accepted submission."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AminusGradeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AminusGradeMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofCurrentandPotentialExposuresandAggregatedbyCreditRatingDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "A-",
        "label": "A Minus [member]",
        "documentation": "A minus."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AmortisationIntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AmortisationIntangibleAssetsOtherThanGoodwill",
     "calculation": {
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 1.0
      },
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperationsBeforeChangesInWorkingCapital",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows",
      "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofOtherComponentsofIntangibleAssetsDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Amortization of intangible assets",
        "terseLabel": "Amortization",
        "label": "Amortisation, intangible assets other than goodwill"
       }
      }
     },
     "auth_ref": [
      "r73",
      "r304"
     ]
    },
    "ck0000932782_AmortizedCostOfBonds": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AmortizedCostOfBonds",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofRollforwardoftheMexicanBondsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Amortized cost",
        "label": "Amortized Cost of Bonds",
        "documentation": "Amortized cost of bonds."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_Amortizedcostondebtinstrumentsissued": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "Amortizedcostondebtinstrumentsissued",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofChangesinConsolidatedDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Amortized cost",
        "label": "AmortizedCostOnDebtInstrumentsIssued",
        "documentation": "AmortizedCostOnDebtInstrumentsIssued."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AmountDueToSuppliers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AmountDueToSuppliers",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsequentEventsAmendingagreementswithsuppliersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Amount due to suppliers",
        "label": "Amount Due To Suppliers",
        "documentation": "Amount Due To Suppliers"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AmountOfDryGasReserveAddedToOffset": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AmountOfDryGasReserveAddedToOffset",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Developed and undeveloped dry gas reserves added to offset",
        "label": "Amount Of Dry Gas Reserve Added To Offset",
        "documentation": "Amount of dry gas reserve added to offset."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AntonioJBermudezMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AntonioJBermudezMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofValuesinUseforCGUImpairmentorReversalPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Antonio J. Berm\u00fadez",
        "label": "Antonio J Bermudez [Member]",
        "documentation": "Antonio J. Berm\u00fadez."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ApplicableMarginRate": {
     "xbrltype": "pureItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ApplicableMarginRate",
     "presentation": [
      "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Applicable margin rate",
        "label": "Applicable Margin Rate",
        "documentation": "Applicable Margin Rate"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ApplicableTaxRate": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ApplicableTaxRate",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage income tax rate",
        "label": "Applicable tax rate"
       }
      },
      "en": {
       "role": {
        "documentation": "The applicable income tax rate."
       }
      }
     },
     "auth_ref": [
      "r6",
      "r266"
     ]
    },
    "ck0000932782_AppreciationDepreciationInExchangeRatesOfForeignCurrency": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AppreciationDepreciationInExchangeRatesOfForeignCurrency",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsequentEventsExchangeratesandcrudeoilpricesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Appreciation of the value of the peso in U.S. dollars terms",
        "label": "Appreciation (Depreciation) In Exchange Rates Of Foreign Currency",
        "documentation": "Appreciation (depreciation) in exchange rates of foreign currency."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ArbitrationProceedingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ArbitrationProceedingMember",
     "presentation": [
      "http://mexicopetroleum.com/role/ContingenciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Arbitration Proceeding",
        "label": "Arbitration Proceeding [Member]",
        "documentation": "Arbitration Proceeding"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AreaMisionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AreaMisionMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Misi\u00f3n",
        "label": "Area Mision [member]",
        "documentation": "Area Mision."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ArenqueGasProcessorComplexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ArenqueGasProcessorComplexMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Arenque Gas Processor Complex",
        "label": "Arenque Gas Processor Complex [Member]",
        "documentation": "Arenque Gas Processor Complex"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ArenqueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ArenqueMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofValuesinUseforCGUImpairmentorReversalPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Arenque",
        "label": "Arenque [Member]",
        "documentation": "Arenque."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AssetLiabilityDefinedContribution": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AssetLiabilityDefinedContribution",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Assets (liabilities) recognized in the balance sheet (DC- warranty)",
        "label": "Asset Liability Defined Contribution",
        "documentation": "Asset liability defined contribution scheme"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AssetRepurchaseTransactionTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AssetRepurchaseTransactionTerm",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Asset repurchase transaction, term",
        "label": "Asset Repurchase Transaction, Term",
        "documentation": "Asset Repurchase Transaction, Term"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_Assets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "Assets",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total assets",
        "label": "Assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of a present economic resource controlled by the entity as a result of past events. Economic resource is a right that has the potential to produce economic benefits."
       }
      }
     },
     "auth_ref": [
      "r119",
      "r120",
      "r122",
      "r201",
      "r204",
      "r333",
      "r334",
      "r361"
     ]
    },
    "ifrs-full_AssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AssetsAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Assets",
        "terseLabel": "Assets",
        "label": "Assets [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AtFairValueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AtFairValueMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail",
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value",
        "label": "At fair value [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for measurement based on fair value. Fair value is the price that would be received to sell an asset or paid to transfer a liability in an orderly transaction between market participants at the measurement date."
       }
      }
     },
     "auth_ref": [
      "r78",
      "r82",
      "r105",
      "r119",
      "r310",
      "r332",
      "r333"
     ]
    },
    "ck0000932782_AuditInformationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AuditInformationAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Audit Information [Abstract]",
        "documentation": "Audit Information"
       }
      }
     },
     "auth_ref": []
    },
    "dei_AuditorFirmId": {
     "xbrltype": "nonemptySequenceNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "AuditorFirmId",
     "presentation": [
      "http://mexicopetroleum.com/role/AuditInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Auditor Firm ID",
        "label": "Auditor Firm ID",
        "documentation": "PCAOB issued Audit Firm Identifier"
       }
      }
     },
     "auth_ref": [
      "r455",
      "r456",
      "r479"
     ]
    },
    "dei_AuditorLocation": {
     "xbrltype": "internationalNameItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "AuditorLocation",
     "presentation": [
      "http://mexicopetroleum.com/role/AuditInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Auditor Location",
        "label": "Auditor Location"
       }
      }
     },
     "auth_ref": [
      "r455",
      "r456",
      "r479"
     ]
    },
    "dei_AuditorName": {
     "xbrltype": "internationalNameItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "AuditorName",
     "presentation": [
      "http://mexicopetroleum.com/role/AuditInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Auditor Name",
        "label": "Auditor Name"
       }
      }
     },
     "auth_ref": [
      "r455",
      "r456",
      "r479"
     ]
    },
    "ck0000932782_AutomotiveIncentiveAverageRecoveryTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AutomotiveIncentiveAverageRecoveryTerm",
     "presentation": [
      "http://mexicopetroleum.com/role/MaterialAccountingPoliciesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Automotive incentive, average recovery (in days)",
        "label": "Automotive Incentive, Average Recovery, Term",
        "documentation": "Automotive Incentive, Average Recovery, Term"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AutomotiveIncentiveAverageRequestTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AutomotiveIncentiveAverageRequestTerm",
     "presentation": [
      "http://mexicopetroleum.com/role/MaterialAccountingPoliciesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Automotive incentive, request submission (in days)",
        "label": "Automotive Incentive, Average Request, Term",
        "documentation": "Automotive Incentive, Average Request, Term"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AuxiliaryServicesWithThirdParties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AuxiliaryServicesWithThirdParties",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail": {
       "parentTag": "ck0000932782_CostOfSalesAndGeneralExpenses",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Auxiliary services with third-parties",
        "label": "Auxiliary services with third-parties",
        "documentation": "Auxiliary services with third-parties."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AverageCondensatesPrice": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AverageCondensatesPrice",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofReservesPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Average condensates price (USD per barrel)",
        "label": "Average Condensates Price",
        "documentation": "Average condensates price."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AverageCrudeOilPrice": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AverageCrudeOilPrice",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialTranformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofReservesPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Average crude oil price (USD per barrel)",
        "verboseLabel": "Average crude oil Price (U.S.$)",
        "label": "Average crude oil price",
        "documentation": "Average crude oil price."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AverageForeignExchangeRate": {
     "xbrltype": "decimalItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AverageForeignExchangeRate",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialTranformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Average foreign exchange rate",
        "verboseLabel": "Rate of U.S.$",
        "label": "Average foreign exchange rate"
       }
      },
      "en": {
       "role": {
        "documentation": "The average exchange rate used by the entity. Exchange rate is the ratio of exchange for two currencies."
       }
      }
     },
     "auth_ref": [
      "r610"
     ]
    },
    "ck0000932782_AverageGasPrice": {
     "xbrltype": "perUnitItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AverageGasPrice",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofReservesPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Average gas price (USD per thousands cubic feet)",
        "label": "Average Gas Price",
        "documentation": "Average gas price."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AverageInterestRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AverageInterestRate",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Average interest rate (%)",
        "label": "Average Interest Rate",
        "documentation": "Average interest rate."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AverageLengthOfObligation": {
     "xbrltype": "durationItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AverageLengthOfObligation",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofActuarialAssumptionsDetails",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofPrincipalActuarialAssumptionsUsedinDeterminingtheDefinedBenefitObligationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Average length of obligation (years)",
        "label": "Average length of obligation",
        "documentation": "Average length of obligation."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AveragePricesOfCrudeOilExports": {
     "xbrltype": "perUnitItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AveragePricesOfCrudeOilExports",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsequentEventsExchangeratesandcrudeoilpricesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Average prices of crude oil exports",
        "label": "Average Prices Of Crude Oil Exports",
        "documentation": "Average prices of crude oil exports."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AverageRateOfHedgingInstrument": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AverageRateOfHedgingInstrument",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Average pay rate",
        "label": "Average rate of hedging instrument"
       }
      },
      "en": {
       "role": {
        "documentation": "The average rate of a hedging instrument. [Refer: Hedging instruments [domain]]"
       }
      }
     },
     "auth_ref": [
      "r170"
     ]
    },
    "ck0000932782_AverageReceivableRateOfHedgingInstrument": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AverageReceivableRateOfHedgingInstrument",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Average receive rate",
        "label": "Average receivable rate of hedging instrument",
        "documentation": "Average receivable rate of hedging instrument."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AverageSalesPrices1": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AverageSalesPrices1",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofSalesPricesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Average sales price",
        "label": "Average Sales Prices1",
        "documentation": "Average sales prices."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_AvinAluxMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "AvinAluxMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofValuesinUseforCGUImpairmentorReversalPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Ayin-Alux",
        "label": "Avin-Alux [Member]",
        "documentation": "Avin-Alux"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AwardExrcPrice": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardExrcPrice",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Exercise Price",
        "terseLabel": "Exercise Price"
       }
      }
     },
     "auth_ref": [
      "r537"
     ]
    },
    "ecd_AwardGrantDateFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardGrantDateFairValue",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Grant Date Fair Value",
        "terseLabel": "Fair Value as of Grant Date"
       }
      }
     },
     "auth_ref": [
      "r538"
     ]
    },
    "ecd_AwardTmgDiscLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardTmgDiscLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing Disclosures [Line Items]",
        "terseLabel": "Award Timing Disclosures"
       }
      }
     },
     "auth_ref": [
      "r533"
     ]
    },
    "ecd_AwardTmgHowMnpiCnsdrdTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardTmgHowMnpiCnsdrdTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing, How MNPI Considered [Text Block]",
        "terseLabel": "Award Timing, How MNPI Considered"
       }
      }
     },
     "auth_ref": [
      "r533"
     ]
    },
    "ecd_AwardTmgMethodTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardTmgMethodTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing Method [Text Block]",
        "terseLabel": "Award Timing Method"
       }
      }
     },
     "auth_ref": [
      "r533"
     ]
    },
    "ecd_AwardTmgMnpiCnsdrdFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardTmgMnpiCnsdrdFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing MNPI Considered [Flag]",
        "terseLabel": "Award Timing MNPI Considered"
       }
      }
     },
     "auth_ref": [
      "r533"
     ]
    },
    "ecd_AwardTmgMnpiDiscTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardTmgMnpiDiscTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing MNPI Disclosure [Text Block]",
        "terseLabel": "Award Timing MNPI Disclosure"
       }
      }
     },
     "auth_ref": [
      "r533"
     ]
    },
    "ecd_AwardTmgPredtrmndFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardTmgPredtrmndFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Timing Predetermined [Flag]",
        "terseLabel": "Award Timing Predetermined"
       }
      }
     },
     "auth_ref": [
      "r533"
     ]
    },
    "us-gaap_AwardTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "AwardTypeAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Type [Axis]",
        "terseLabel": "Award Type"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_AwardUndrlygSecuritiesAmt": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardUndrlygSecuritiesAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Award Underlying Securities Amount",
        "terseLabel": "Underlying Securities"
       }
      }
     },
     "auth_ref": [
      "r536"
     ]
    },
    "ecd_AwardsCloseToMnpiDiscIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardsCloseToMnpiDiscIndName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Awards Close in Time to MNPI Disclosures, Individual Name",
        "terseLabel": "Name"
       }
      }
     },
     "auth_ref": [
      "r535"
     ]
    },
    "ecd_AwardsCloseToMnpiDiscTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardsCloseToMnpiDiscTable",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Awards Close in Time to MNPI Disclosures [Table]",
        "terseLabel": "Awards Close in Time to MNPI Disclosures"
       }
      }
     },
     "auth_ref": [
      "r534"
     ]
    },
    "ecd_AwardsCloseToMnpiDiscTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "AwardsCloseToMnpiDiscTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Awards Close in Time to MNPI Disclosures [Table Text Block]",
        "terseLabel": "Awards Close in Time to MNPI Disclosures, Table"
       }
      }
     },
     "auth_ref": [
      "r534"
     ]
    },
    "ck0000932782_BBBGradeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BBBGradeMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofCurrentandPotentialExposuresandAggregatedbyCreditRatingDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "BBB",
        "label": "BBB [member]",
        "documentation": "BBB"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_BBBPlusGradeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BBBPlusGradeMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofCurrentandPotentialExposuresandAggregatedbyCreditRatingDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "BBB+",
        "label": "BBB Plus [member]",
        "documentation": "BBB plus."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_BankIndebtedness": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BankIndebtedness",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/EquityDeficitAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/SubsequentEventsRecentFinancingActivitiesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bank indebtedness",
        "label": "Bank indebtedness",
        "documentation": "Bank indebtedness."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_BankIndebtednessThatMayBeUsedToPartiallyCoverFinancialBalanceInNextYear": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BankIndebtednessThatMayBeUsedToPartiallyCoverFinancialBalanceInNextYear",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Indebtedness that may be used to partially cover financial balance in next year",
        "label": "Bank Indebtedness That May Be Used To Partially Cover Financial Balance In Next Year",
        "documentation": "Bank Indebtedness That May Be Used To Partially Cover Financial Balance In Next Year"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_BbbMinusGradeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BbbMinusGradeMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofCurrentandPotentialExposuresandAggregatedbyCreditRatingDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "BBB-",
        "label": "BBB Minus Grade [Member]",
        "documentation": "BBB Minus Grade ."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_BeforeShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BeforeShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss": {
       "parentTag": "ifrs-full_ProfitLossBeforeTax",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Sum of financing income, financing cost, derivative financial instruments income (cost), net and foreign exchange income (loss), net",
        "label": "Before Share of profit (loss) of associates and joint ventures accounted for using equity method",
        "documentation": "Share of profit (loss) of associates and joint ventures accounted for using equity method."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_BhpBillitonMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BhpBillitonMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "BHP Billiton",
        "label": "BHP Billiton Member",
        "documentation": "BHP Billiton."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_BlockEightCuencaDelSuresteMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BlockEightCuencaDelSuresteMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Block 8 Cuenca del Sureste",
        "label": "Block Eight Cuenca del Sureste [Member]",
        "documentation": "Block Eight Cuenca del Sureste"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_BlockEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BlockEightMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Block 8",
        "label": "Block eight [member]",
        "documentation": "Block eight [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_BlockEighteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BlockEighteenMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Block 18",
        "label": "Block eighteen [member]",
        "documentation": "Block eighteen."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_BlockEighteenOfTampicoMisantlaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BlockEighteenOfTampicoMisantlaMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Block 18 of Tampico Misantla",
        "label": "Block eighteen Of Tampico Misantla [member]",
        "documentation": "Block eighteen Of Tampico Misantla."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_BlockFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BlockFiveMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Block 5",
        "label": "Block Five [member]",
        "documentation": "Block Five [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_BlockSeventeenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BlockSeventeenMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Block 17",
        "label": "Block seventeen [member]",
        "documentation": "Block seventeen."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_BlockSeventeenOfTampicoMisantlaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BlockSeventeenOfTampicoMisantlaMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Block 17 of Tampico Misantla",
        "label": "Block seventeen Of Tampico Misantla [member]",
        "documentation": "Block seventeen of Tampico Misantla."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_BlockSixteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BlockSixteenMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Block 16",
        "label": "Block sixteen [member]",
        "documentation": "Block sixteen."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_BlockSixteenOfTampicoMisantlaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BlockSixteenOfTampicoMisantlaMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Block 16 of Tampico Misantla",
        "label": "Block sixteen Of Tampico Misantla [member]",
        "documentation": "Block sixteen Of Tampico Misantla."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_BlockThirtyFiveCuencaDelSuresteMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BlockThirtyFiveCuencaDelSuresteMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Block 35 Cuenca del Sureste",
        "label": "Block Thirty Five Cuenca del Sureste [member]",
        "documentation": "Block thirty five Cuenca del Sureste."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_BlockThirtyFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BlockThirtyFiveMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Block 35",
        "label": "Block thirty five [member]",
        "documentation": "Block thirty five."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_BlockThirtyThreeCuencaDelSuresteMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BlockThirtyThreeCuencaDelSuresteMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Block 33 Cuenca del Sureste",
        "label": "Block Thirty Three Cuenca del Sureste [member]",
        "documentation": "Block thirty three Cuenca del Sureste."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_BlockThirtyThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BlockThirtyThreeMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Block 33",
        "label": "Block thirty three [member]",
        "documentation": "Block thirty three."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_BlockThirtyTwoCuencaDelSuresteMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BlockThirtyTwoCuencaDelSuresteMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Block 32 Cuenca del Sureste",
        "label": "Block Thirty Two Cuenca del Sureste [member]",
        "documentation": "Block thirty two Cuenca del Sureste."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_BlockThirtyTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BlockThirtyTwoMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Block 32",
        "label": "Block thirty two [member]",
        "documentation": "Block thirty two."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_BlockThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BlockThreeMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Block 3",
        "label": "Block Three [member]",
        "documentation": "Block Three [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_BlockTrionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BlockTrionMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tri\u00f3n",
        "label": "Block Trion [member]",
        "documentation": "Block Trion."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_BlockTwentyNineCuencaDelSuresteMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BlockTwentyNineCuencaDelSuresteMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Block 29 Cuenca del Sureste",
        "label": "Block Twenty Nine Cuenca del Sureste [member]",
        "documentation": "Block twenty nine Cuenca del Sureste."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_BlockTwentyNineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BlockTwentyNineMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Block 29",
        "label": "Block twenty nine [member]",
        "documentation": "Block twenty nine."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_BlockTwentyTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BlockTwentyTwoMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Block 22",
        "label": "Block twenty two [member]",
        "documentation": "Block twenty two."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_BlockTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BlockTwoMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Block 2",
        "label": "Block two [member]",
        "documentation": "Block two [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_BlockTwoOfTampicoMisantlaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BlockTwoOfTampicoMisantlaMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Block 2 Tampico Misantla",
        "label": "Block Two Of Tampico Misantla [Member]",
        "documentation": "Block Two Of Tampico Misantla"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_Bonds1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "Bonds1Member",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bonds",
        "label": "Bonds 1 [Member]",
        "documentation": "Bonds."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_Borrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "Borrowings",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFinancialLiabilitiesInterestAndPrincipalCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail",
      "http://mexicopetroleum.com/role/SubsequentEventsRecentFinancingActivitiesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Debt",
        "terseLabel": "Borrowings",
        "verboseLabel": "Debt",
        "label": "Borrowings"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of outstanding funds that the entity is obligated to repay."
       }
      }
     },
     "auth_ref": [
      "r614"
     ]
    },
    "ifrs-full_BorrowingsAdjustmentToInterestRateBasis": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "BorrowingsAdjustmentToInterestRateBasis",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/SubsequentEventsRecentFinancingActivitiesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest rate basis spread",
        "label": "Borrowings, adjustment to interest rate basis"
       }
      },
      "en": {
       "role": {
        "documentation": "The adjustment to the basis (reference rate) used for calculation of the interest rate on borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r594"
     ]
    },
    "ifrs-full_BorrowingsByNameAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "BorrowingsByNameAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofInterestRateandCurrencyDerivativeFinancialInstrumentsDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofBalanceofGovernmentBondsDetail",
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofRollforwardoftheMexicanBondsDetail",
      "http://mexicopetroleum.com/role/SubsequentEventsRecentFinancingActivitiesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Borrowings by name [axis]",
        "label": "Borrowings by name [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r594"
     ]
    },
    "ifrs-full_BorrowingsByNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "BorrowingsByNameDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofInterestRateandCurrencyDerivativeFinancialInstrumentsDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofBalanceofGovernmentBondsDetail",
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofRollforwardoftheMexicanBondsDetail",
      "http://mexicopetroleum.com/role/SubsequentEventsRecentFinancingActivitiesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Borrowings by name",
        "label": "Borrowings by name [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for all borrowings when disaggregated by name. It also represents the standard value for the 'Borrowings by name' axis if no other member is used. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r594"
     ]
    },
    "ifrs-full_BorrowingsInterestRate": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "BorrowingsInterestRate",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail",
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationSummaryofPrincipalAmountOutstandingofRegisteredDebtSecuritiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest rate",
        "verboseLabel": "Security",
        "label": "Borrowings, interest rate"
       }
      },
      "en": {
       "role": {
        "documentation": "The interest rate on borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r594"
     ]
    },
    "ifrs-full_BorrowingsMaturity": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "BorrowingsMaturity",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Maturity",
        "label": "Borrowings, maturity"
       }
      },
      "en": {
       "role": {
        "documentation": "The maturity of borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r594"
     ]
    },
    "ck0000932782_BorrowingsMaturityTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BorrowingsMaturityTerm",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Maturity",
        "label": "Borrowings, Maturity Term",
        "documentation": "Borrowings, Maturity Term"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_BorrowingsTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BorrowingsTerm",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsequentEventsRecentFinancingActivitiesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Borrowings term",
        "label": "Borrowings term",
        "documentation": "Borrowings term"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_BottomOfRangeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "BottomOfRangeMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofOtherComponentsofIntangibleAssetsDetail",
      "http://mexicopetroleum.com/role/LeasesAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/LeasesSummaryofrightofuseassetsDetail",
      "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/RelatedPartiesAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bottom of range",
        "label": "Bottom of range [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the bottom of a range."
       }
      }
     },
     "auth_ref": [
      "r89",
      "r124",
      "r150",
      "r158",
      "r255",
      "r406",
      "r408",
      "r594"
     ]
    },
    "ifrs-full_BuildingsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "BuildingsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesSummaryofrightofuseassetsDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Buildings",
        "label": "Buildings [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of plant, property and equipment representing depreciable buildings and similar structures for use in operations. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r565"
     ]
    },
    "ck0000932782_BurgosGasProcessorComplexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BurgosGasProcessorComplexMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Burgos Gas Processor Complex",
        "label": "Burgos Gas Processor Complex [Member]",
        "documentation": "Burgos Gas Processor Complex"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_BurgosMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BurgosMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofValuesinUseforCGUImpairmentorReversalPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Burgos",
        "label": "Burgos [Member]",
        "documentation": "Burgos."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_BusinessCombinationsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "BusinessCombinationsAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Business combinations [axis]",
        "label": "Business combinations [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r160",
      "r315"
     ]
    },
    "ifrs-full_BusinessCombinationsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "BusinessCombinationsDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Business combinations",
        "label": "Business combinations [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Business combinations' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r160",
      "r163",
      "r315"
     ]
    },
    "dei_BusinessContactMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "BusinessContactMember",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Business Contact",
        "label": "Business Contact [Member]",
        "documentation": "Business contact for the entity"
       }
      }
     },
     "auth_ref": [
      "r456",
      "r479"
     ]
    },
    "ck0000932782_ButaneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ButaneMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Butane",
        "label": "Butane [member]",
        "documentation": "Butane."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_BuyAndSellCurrencyOption": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BuyAndSellCurrencyOption",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Currency Options",
        "label": "Buy And Sell Currency Option",
        "documentation": "Buy and sell currency option."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_BuyAndSellInterestRateOption": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "BuyAndSellInterestRateOption",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Buy Cap, Sell Floor on floating in U.S. dollar SOFR 1M",
        "label": "Buy And Sell Interest Rate Option",
        "documentation": "Buy and sell interest rate option."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CEPSAEPMexicoSdeRLdeCVMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CEPSAEPMexicoSdeRLdeCVMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "CEPSA E.P. Mxico S. de R.L. de C.V",
        "label": "CEPSA E.P. Mxico S. de R.L. de C.V [member]",
        "documentation": "CEPSA E.P. Mxico S. de R.L. de C.V."
       }
      }
     },
     "auth_ref": []
    },
    "currency_CHF": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/currency/2025",
     "localname": "CHF",
     "presentation": [
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofMonetaryAssetsandLiabilitiesDenominatedInForeignCurrencyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Swiss francs",
        "label": "Switzerland, Francs"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CactusGasProcessorComplexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CactusGasProcessorComplexMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cactus Gas Processor Complex",
        "label": "Cactus Gas Processor Complex [Member]",
        "documentation": "Cactus Gas Processor Complex"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CadereytaRefineryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CadereytaRefineryMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialProcessesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cadereyta Refinery",
        "label": "Cadereyta Refinery [Member]",
        "documentation": "Cadereyta Refinery."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CanadaCentralAndSouthAmericaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CanadaCentralAndSouthAmericaMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SegmentFinancialInformationSupplementalGeographicInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Canada, Central and South America",
        "label": "Canada, Central and South America [member]",
        "documentation": "Canada, Central and South America."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CancelationsOfLeaseLiabilitiesAdjustments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CancelationsOfLeaseLiabilitiesAdjustments",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesSummaryofleasesliabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Cancellations",
        "label": "Cancelations Of Lease Liabilities Adjustments",
        "documentation": "Cancelations of lease liabilities adjustments."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CangrejeraEthyleneComplexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CangrejeraEthyleneComplexMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialProcessesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cangrejera Ethylene Complex",
        "label": "Cangrejera Ethylene Complex [Member]",
        "documentation": "Cangrejera Ethylene Complex"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CangrejeraEthyleneProcessorComplexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CangrejeraEthyleneProcessorComplexMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cangrejera Ethylene Complex",
        "label": "Cangrejera Ethylene Processor Complex [Member]",
        "documentation": "Cangrejera ethylene processor complex."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CangrejeraPetrochemicalComplexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CangrejeraPetrochemicalComplexMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cangrejera Petrochemical Complex",
        "label": "Cangrejera Petrochemical Complex [Member]",
        "documentation": "Cangrejera petrochemical complex."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CantarellMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CantarellMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofValuesinUseforCGUImpairmentorReversalPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cantarell",
        "label": "Cantarell [Member]",
        "documentation": "Cantarell."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CapitalisedDevelopmentExpenditureMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CapitalisedDevelopmentExpenditureMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofCostsIncurredforOilandGasPropertyExplorationandDevelopmentActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Development",
        "label": "Capitalised development expenditure [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of intangible assets arising from development expenditure capitalised before the start of commercial production or use. An intangible asset shall only be recognised if the entity can demonstrate all of the following: (a) the technical feasibility of completing the intangible asset so that it will be available for use or sale; (b) its intention to complete the intangible asset and use or sell it; (c) its ability to use or sell the intangible asset; (d) how the intangible asset will generate probable future economic benefits. Among other things, the entity can demonstrate the existence of a market for the output of the intangible asset or the intangible asset itself or, if it is to be used internally, the usefulness of the intangible asset; (e) the availability of adequate technical, financial and other resources to complete the development and to use or sell the intangible asset; and (f) its ability to measure reliably the expenditure attributable to the intangible asset during its development."
       }
      }
     },
     "auth_ref": [
      "r582"
     ]
    },
    "ck0000932782_CapitalisedOilAndGasProducingCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CapitalisedOilAndGasProducingCosts",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofCapitalizedCostsforOilandGasProducingActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net capitalized costs",
        "label": "Capitalised oil and gas producing costs",
        "documentation": "Capitalised oil and gas producing costs."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CapitalizationOfFinancialExpenseIncreaseDecreasePropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CapitalizationOfFinancialExpenseIncreaseDecreasePropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Capitalization",
        "label": "Capitalization of financial expense increase (decrease) property plant and equipment",
        "documentation": "Capitalization of financial expense increase (decrease) property plant and equipment."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CarbonFromOtherFossilFuelsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CarbonFromOtherFossilFuelsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Carbon From Other Fossil Fuels",
        "label": "Carbon From Other Fossil Fuels [Member]",
        "documentation": "Carbon from other fossil fuels."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CardenasMoraMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CardenasMoraMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofValuesinUseforCGUImpairmentorReversalPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "C\u00e1rdenas-Mora",
        "label": "Cardenas Mora [member]",
        "documentation": "Cardenas Mora."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableScheduleofBreakdownofAccountsReceivableBasedonCreditHistoryDetail",
      "http://mexicopetroleum.com/role/DebtSummaryofMaturitiesofLongTermDebtPrincipalOutstandingandAccruedInterestDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFinancialLiabilitiesInterestAndPrincipalCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail",
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail",
      "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofOtherComponentsofIntangibleAssetsDetail",
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofCapitalizedCostsforOilandGasProducingActivitiesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Carrying amount, accumulated depreciation, amortisation and impairment and gross carrying amount [axis]",
        "label": "Carrying amount, accumulated depreciation, amortisation and impairment and gross carrying amount [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r12",
      "r18",
      "r71",
      "r75",
      "r79",
      "r80",
      "r81",
      "r82",
      "r83",
      "r162",
      "r177",
      "r178",
      "r271",
      "r276",
      "r302",
      "r305",
      "r307",
      "r308",
      "r309",
      "r310",
      "r311",
      "r316",
      "r327",
      "r328"
     ]
    },
    "ifrs-full_CarryingAmountMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CarryingAmountMember",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableScheduleofBreakdownofAccountsReceivableBasedonCreditHistoryDetail",
      "http://mexicopetroleum.com/role/DebtSummaryofMaturitiesofLongTermDebtPrincipalOutstandingandAccruedInterestDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFinancialLiabilitiesInterestAndPrincipalCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail",
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail",
      "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofOtherComponentsofIntangibleAssetsDetail",
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofCapitalizedCostsforOilandGasProducingActivitiesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total Notional Amount",
        "label": "Carrying amount [member]"
       }
      }
     },
     "auth_ref": [
      "r18",
      "r75",
      "r79",
      "r81",
      "r82",
      "r162",
      "r177",
      "r178",
      "r276",
      "r305",
      "r307",
      "r309",
      "r310",
      "r316",
      "r327",
      "r328"
     ]
    },
    "ifrs-full_Cash": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "Cash",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/CashandCashEquivalentsSummaryofCashandCashEquivalentsDetail": {
       "parentTag": "ifrs-full_CashAndCashEquivalents",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CashandCashEquivalentsSummaryofCashandCashEquivalentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash on hand and in banks",
        "label": "Cash"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of cash on hand and demand deposits. [Refer: Cash on hand]"
       }
      }
     },
     "auth_ref": [
      "r591"
     ]
    },
    "ifrs-full_CashAndCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashAndCashEquivalents",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail": {
       "parentTag": "ifrs-full_FinancialAssets",
       "weight": 1.0,
       "order": 1.0
      },
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssets",
       "weight": 1.0,
       "order": 5.0
      },
      "http://mexicopetroleum.com/role/CashandCashEquivalentsSummaryofCashandCashEquivalentsDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CashandCashEquivalentsSummaryofCashandCashEquivalentsDetail",
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows",
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash and cash equivalents",
        "periodStartLabel": "Cash and cash equivalents at the beginning of the year",
        "periodEndLabel": "Cash and cash equivalents at the end of the year (Note 9)",
        "totalLabel": "Total of cash and cash equivalents",
        "label": "Cash and cash equivalents"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of cash on hand and demand deposits, along with short-term, highly liquid investments that are readily convertible to known amounts of cash and that are subject to an insignificant risk of changes in value. [Refer: Cash; Cash equivalents]"
       }
      }
     },
     "auth_ref": [
      "r90",
      "r113",
      "r256",
      "r355"
     ]
    },
    "ifrs-full_CashAndCashEquivalentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashAndCashEquivalentsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash and cash equivalents [abstract]",
        "label": "Cash and cash equivalents [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CashAndCashEquivalentsAmountContributedToFairValueOfPlanAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashAndCashEquivalentsAmountContributedToFairValueOfPlanAssets",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsandTypesofPlanAssetsDetail": {
       "parentTag": "ifrs-full_PlanAssetsAtFairValue",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAdditionalFairvalueDisclosureAboutPlanAssetsandIndicateTheirRankDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsandTypesofPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash and cash equivalents",
        "label": "Cash and cash equivalents, amount contributed to fair value of plan assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount cash and cash equivalents contribute to the fair value of defined benefit plan assets. [Refer: Cash and cash equivalents; Plan assets, at fair value; Defined benefit plans [domain]]"
       }
      }
     },
     "auth_ref": [
      "r390"
     ]
    },
    "ifrs-full_CashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashEquivalents",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/CashandCashEquivalentsSummaryofCashandCashEquivalentsDetail": {
       "parentTag": "ifrs-full_CashAndCashEquivalents",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CashandCashEquivalentsSummaryofCashandCashEquivalentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Highly liquid investments",
        "label": "Cash equivalents"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of short-term, highly liquid investments that are readily convertible to known amounts of cash and that are subject to an insignificant risk of changes in value."
       }
      }
     },
     "auth_ref": [
      "r591"
     ]
    },
    "ifrs-full_CashFlowsFromUsedInFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashFlowsFromUsedInFinancingActivities",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_IncreaseDecreaseInCashAndCashEquivalentsBeforeEffectOfExchangeRateChanges",
       "weight": 1.0,
       "order": 1.0
      },
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net cash flows from (used in) financing activities",
        "label": "Cash flows from (used in) financing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash flows from (used in) financing activities, which are activities that result in changes in the size and composition of the contributed equity and borrowings of the entity, from continuing and discontinued operations."
       }
      }
     },
     "auth_ref": [
      "r84",
      "r91"
     ]
    },
    "ifrs-full_CashFlowsFromUsedInFinancingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashFlowsFromUsedInFinancingActivitiesAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financing activities:",
        "verboseLabel": "Financing activities:",
        "label": "Cash flows from (used in) financing activities [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CashFlowsFromUsedInInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashFlowsFromUsedInInvestingActivities",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_IncreaseDecreaseInCashAndCashEquivalentsBeforeEffectOfExchangeRateChanges",
       "weight": 1.0,
       "order": 2.0
      },
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net cash flows (used in) investing activities",
        "label": "Cash flows from (used in) investing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash flows from (used in) investing activities, which are the acquisition and disposal of long-term assets and other investments not included in cash equivalents, from continuing and discontinued operations."
       }
      }
     },
     "auth_ref": [
      "r84",
      "r91"
     ]
    },
    "ifrs-full_CashFlowsFromUsedInInvestingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashFlowsFromUsedInInvestingActivitiesAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investing activities",
        "verboseLabel": "Investing activities:",
        "label": "Cash flows from (used in) investing activities [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CashFlowsFromUsedInOperatingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashFlowsFromUsedInOperatingActivities",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_IncreaseDecreaseInCashAndCashEquivalentsBeforeEffectOfExchangeRateChanges",
       "weight": 1.0,
       "order": 3.0
      },
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net cash flows from operating activities",
        "label": "Cash flows from (used in) operating activities"
       }
      }
     },
     "auth_ref": [
      "r84",
      "r91"
     ]
    },
    "ifrs-full_CashFlowsFromUsedInOperatingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashFlowsFromUsedInOperatingActivitiesAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Operating activities:",
        "verboseLabel": "Operating activities:",
        "label": "Cash flows from (used in) operating activities [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CashFlowsFromUsedInOperationsBeforeChangesInWorkingCapital": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashFlowsFromUsedInOperationsBeforeChangesInWorkingCapital",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Funds from operating activities",
        "label": "Cash flows from (used in) operations before changes in working capital"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash inflow (outflow) from the entity's operations before changes in working capital."
       }
      }
     },
     "auth_ref": [
      "r403",
      "r590"
     ]
    },
    "ck0000932782_CatalystMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CatalystMember",
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesSummaryofrightofuseassetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Catalyst",
        "label": "Catalyst [Member]",
        "documentation": "Catalyst"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CategoriesOfFinancialAssetsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CategoriesOfFinancialAssetsAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofChangesinEquityDeficit",
      "http://mexicopetroleum.com/role/EquityDeficitAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Categories of financial assets [axis]",
        "label": "Categories of financial assets [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r192",
      "r322"
     ]
    },
    "ifrs-full_CategoriesOfFinancialAssetsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CategoriesOfFinancialAssetsDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofChangesinEquityDeficit",
      "http://mexicopetroleum.com/role/EquityDeficitAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Categories of financial assets",
        "verboseLabel": "FVOCI \u2013 debt instruments",
        "label": "Categories of financial assets [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for aggregated categories of financial assets. It also represents the standard value for the 'Categories of financial assets' axis if no other member is used. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r192",
      "r322"
     ]
    },
    "ifrs-full_CategoriesOfFinancialLiabilitiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CategoriesOfFinancialLiabilitiesAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Categories of financial liabilities [axis]",
        "label": "Categories of financial liabilities [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r192",
      "r322"
     ]
    },
    "ifrs-full_CategoriesOfFinancialLiabilitiesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CategoriesOfFinancialLiabilitiesDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial liabilities not measured at fair value",
        "label": "Categories of financial liabilities [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for aggregated categories of financial liabilities. It also represents the standard value for the 'Categories of financial liabilities' axis if no other member is used. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r192",
      "r322"
     ]
    },
    "ifrs-full_CategoriesOfRelatedPartiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CategoriesOfRelatedPartiesAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofRollforwardoftheMexicanBondsDetail",
      "http://mexicopetroleum.com/role/RelatedPartiesSummaryofProductsAcquisitionfromPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Categories of related parties [axis]",
        "label": "Categories of related parties [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r50",
      "r293"
     ]
    },
    "ifrs-full_CategoriesOfRelatedPartiesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CategoriesOfRelatedPartiesDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofRollforwardoftheMexicanBondsDetail",
      "http://mexicopetroleum.com/role/RelatedPartiesSummaryofProductsAcquisitionfromPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Categories of related parties",
        "label": "Categories of related parties [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Categories of related parties' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r50",
      "r293"
     ]
    },
    "ck0000932782_CertificadosBursatilesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CertificadosBursatilesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Certificados burs\u00e1tiles",
        "label": "Certificados Bursatiles [member]",
        "documentation": "Certificados bursatiles."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CertificatesOfContribution": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CertificatesOfContribution",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofCertificateofContributionADetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Certificates of Contribution, Beginning Balance",
        "periodEndLabel": "Certificates of Contribution, Ending Balance",
        "label": "Certificates of Contribution",
        "documentation": "Certificates of Contribution"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CertificatesOfContributionAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CertificatesOfContributionAMember",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofChangesinEquityDeficit",
      "http://mexicopetroleum.com/role/EquityDeficitAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Certificates of Contribution \u201cA\u201d",
        "label": "Certificates of Contribution A [member]",
        "documentation": "Certificates of contribution A."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ChangeInPensionPlanAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ChangeInPensionPlanAssetsAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofRetirementandPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Changes in pension plan assets",
        "label": "Change In Pension Plan Assets [Abstract]",
        "documentation": "Change In Pension Plan Assets"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_ChangedPeerGroupFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ChangedPeerGroupFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Changed Peer Group, Footnote [Text Block]",
        "terseLabel": "Changed Peer Group, Footnote"
       }
      }
     },
     "auth_ref": [
      "r512"
     ]
    },
    "ck0000932782_ChangesInAllowanceForDoubtfulAccountsOfTradeAndOtherReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ChangesInAllowanceForDoubtfulAccountsOfTradeAndOtherReceivables",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofReconciliationforImpairedAccountsReceivableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedPeriodStartLabel": "Balance at the beginning of the year",
        "negatedPeriodEndLabel": "Balance at the end of the year",
        "label": "Changes In Allowance For Doubtful Accounts Of Trade And Other Receivables",
        "documentation": "Changes in allowance for doubtful accounts of trade and other receivables."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ChangesInDeferredTaxAssetsAndLiabilitiesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ChangesInDeferredTaxAssetsAndLiabilitiesLineItems",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationandExtractionHydrocarbonsDutyNarrativeDetails",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesHydrocarbonsExtractionDutyNarrativeDetails",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesProfitSharingDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Changes in deferred tax assets and liabilities [line items]",
        "label": "Changes in deferred tax assets and liabilities [line items]",
        "documentation": "Changes in deferred tax assets and liabilities [line items]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ChangesInDeferredTaxAssetsAndLiabilitiesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ChangesInDeferredTaxAssetsAndLiabilitiesTable",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationandExtractionHydrocarbonsDutyNarrativeDetails",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesHydrocarbonsExtractionDutyNarrativeDetails",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesProfitSharingDutyNarrativeDetails",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingtheDeferredDUCDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Changes in deferred tax assets and liabilities [table]",
        "label": "Changes in deferred tax assets and liabilities [table]",
        "documentation": "Changes in deferred tax assets and liabilities [table]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ChangesInIntangibleAssetsAndGoodwillAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ChangesInIntangibleAssetsAndGoodwillAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Wells unassigned to a reserve:",
        "label": "Changes in intangible assets and goodwill [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ChangesInNetDefinedBenefitLiabilityAssetAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ChangesInNetDefinedBenefitLiabilityAssetAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsRecognizedforOtherLongtermObligationsDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsandTypesofPlanAssetsDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofRetirementandPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Changes in the liability for defined benefits",
        "terseLabel": "Changes in Defined Benefit Obligations (DBO)",
        "label": "Changes in net defined benefit liability (asset) [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ChangesInPropertyPlantAndEquipmentAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ChangesInPropertyPlantAndEquipmentAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Changes in property, plant and equipment [abstract]",
        "label": "Changes in property, plant and equipment [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ChangesInTaxRatesOrTaxLawsEnactedOrAnnouncedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ChangesInTaxRatesOrTaxLawsEnactedOrAnnouncedMember",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesProfitSharingDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Changes in tax rates or tax laws enacted or announced",
        "label": "Changes in tax rates or tax laws enacted or announced [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for changes in tax rates or tax laws enacted or announced."
       }
      }
     },
     "auth_ref": [
      "r385",
      "r440"
     ]
    },
    "ck0000932782_ChevronMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ChevronMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Chevron",
        "label": "Chevron [member]",
        "documentation": "Chevron."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_ChngInFrValAsOfVstngDtOfPrrYrEqtyAwrdsVstdInCvrdYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ChngInFrValAsOfVstngDtOfPrrYrEqtyAwrdsVstdInCvrdYrMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Change in Fair Value as of Vesting Date of Prior Year Equity Awards Vested in Covered Year [Member]",
        "terseLabel": "Change in Fair Value as of Vesting Date of Prior Year Equity Awards Vested in Covered Year"
       }
      }
     },
     "auth_ref": [
      "r509"
     ]
    },
    "ecd_ChngInFrValOfOutsdngAndUnvstdEqtyAwrdsGrntdInPrrYrsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ChngInFrValOfOutsdngAndUnvstdEqtyAwrdsGrntdInPrrYrsMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Year-over-Year Change in Fair Value of Equity Awards Granted in Prior Years That are Outstanding and Unvested [Member]",
        "terseLabel": "Year-over-Year Change in Fair Value of Equity Awards Granted in Prior Years That are Outstanding and Unvested"
       }
      }
     },
     "auth_ref": [
      "r507"
     ]
    },
    "ck0000932782_ChucMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ChucMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofValuesinUseforCGUImpairmentorReversalPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Chuc",
        "label": "Chuc [Member]",
        "documentation": "Chuc."
       }
      }
     },
     "auth_ref": []
    },
    "dei_CityAreaCode": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "CityAreaCode",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "City Area Code",
        "label": "City Area Code",
        "documentation": "Area code of city"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CiudadPemexGasProcessingComplexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CiudadPemexGasProcessingComplexMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Ciudad Pemex Gas Processor Complex",
        "label": "Ciudad Pemex Gas Processing Complex [Member]",
        "documentation": "Ciudad Pemex Gas Processing Complex."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CiudadPemexGasProcessorComplexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CiudadPemexGasProcessorComplexMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Gas Arenque Processor Complex",
        "label": "Ciudad Pemex Gas Processor Complex [Member]",
        "documentation": "Ciudad Pemex Gas Processor Complex"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_Claims": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "Claims",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherExpensesDetail": {
       "parentTag": "ifrs-full_OtherExpenseByNature",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherExpensesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Claims",
        "label": "Claims",
        "documentation": "Claims."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ClaimsRecovery": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ClaimsRecovery",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail": {
       "parentTag": "ifrs-full_OtherRevenue",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Claims recovery",
        "label": "Claims Recovery",
        "documentation": "Claims recovery."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ClassesOfAssetsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfAssetsAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/ContingenciesAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesProfitSharingDutyNarrativeDetails",
      "http://mexicopetroleum.com/role/LeasesSummaryofrightofuseassetsDetail",
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofCostsIncurredforOilandGasPropertyExplorationandDevelopmentActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Classes of assets [axis]",
        "label": "Classes of assets [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r60",
      "r61",
      "r123",
      "r141",
      "r245",
      "r296",
      "r335"
     ]
    },
    "ifrs-full_ClassesOfAssetsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfAssetsDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/ContingenciesAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesProfitSharingDutyNarrativeDetails",
      "http://mexicopetroleum.com/role/LeasesSummaryofrightofuseassetsDetail",
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofCostsIncurredforOilandGasPropertyExplorationandDevelopmentActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Classes of assets",
        "label": "Classes of assets [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a present economic resource controlled by the entity as a result of past events. Economic resource is a right that has the potential to produce economic benefits. It also represents the standard value for the 'Classes of assets' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r60",
      "r123",
      "r141",
      "r245",
      "r296",
      "r335"
     ]
    },
    "ifrs-full_ClassesOfContingentLiabilitiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfContingentLiabilitiesAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/ContingenciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Classes of contingent liabilities [axis]",
        "label": "Classes of contingent liabilities [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r68",
      "r161",
      "r300"
     ]
    },
    "ifrs-full_ClassesOfContingentLiabilitiesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfContingentLiabilitiesDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/ContingenciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Classes of contingent liabilities",
        "label": "Classes of contingent liabilities [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for possible obligations that arise from past events and whose existence will be confirmed only by the occurrence or non-occurrence of one or more uncertain future events not wholly within the control of the entity; or, present obligations that arise from past events but are not recognised because (a) it is probable that an outflow of resources embodying economic benefits will be required to settle the obligations; or (b) the amount of the obligations cannot be measured with sufficient reliability. It also represents the standard value for the 'Classes of contingent liabilities' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r69",
      "r161"
     ]
    },
    "ifrs-full_ClassesOfEntitysOwnEquityInstrumentsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfEntitysOwnEquityInstrumentsAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofCertificateofContributionADetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Classes of entity's own equity instruments [axis]",
        "label": "Classes of entity's own equity instruments [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r123",
      "r335"
     ]
    },
    "ifrs-full_ClassesOfEntitysOwnEquityInstrumentsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfEntitysOwnEquityInstrumentsDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofCertificateofContributionADetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Classes of entity's own equity instruments",
        "label": "Classes of entity's own equity instruments [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for equity instruments issued by the entity. It also represents the standard value for the 'Classes of entity's own equity instruments' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r123",
      "r335"
     ]
    },
    "ifrs-full_ClassesOfFinancialAssetsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfFinancialAssetsAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableScheduleofBreakdownofAccountsReceivableBasedonCreditHistoryDetail",
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofAccountsReceivableandOtherReceivablesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValueofDFIsincludedinStatementofFinancialPositionDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValuesandNotionalAmountsofDFIsDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofNetGainLossRecognizedinIncomeonDerivativeFinancialInstrumentsDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail",
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Classes of financial assets [axis]",
        "label": "Classes of financial assets [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r157",
      "r185",
      "r186",
      "r214",
      "r215",
      "r340"
     ]
    },
    "ifrs-full_ClassesOfFinancialAssetsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfFinancialAssetsDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableScheduleofBreakdownofAccountsReceivableBasedonCreditHistoryDetail",
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofAccountsReceivableandOtherReceivablesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValueofDFIsincludedinStatementofFinancialPositionDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValuesandNotionalAmountsofDFIsDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofNetGainLossRecognizedinIncomeonDerivativeFinancialInstrumentsDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail",
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial assets measured at fair value",
        "label": "Classes of financial assets [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for aggregated classes of financial assets. It also represents the standard value for the 'Classes of financial assets' axis if no other member is used. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r157",
      "r185",
      "r186",
      "r214",
      "r215",
      "r340"
     ]
    },
    "ifrs-full_ClassesOfFinancialInstrumentsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfFinancialInstrumentsAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryOfPortfolioofFinancialInstrumentsComposedofDebtInstrumentsandDFIDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationSummaryofPrincipalAmountOutstandingofRegisteredDebtSecuritiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Classes of financial instruments [axis]",
        "label": "Classes of financial instruments [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r177",
      "r179",
      "r180",
      "r181",
      "r327",
      "r329"
     ]
    },
    "ifrs-full_ClassesOfFinancialInstrumentsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfFinancialInstrumentsDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryOfPortfolioofFinancialInstrumentsComposedofDebtInstrumentsandDFIDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationSummaryofPrincipalAmountOutstandingofRegisteredDebtSecuritiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Classes of financial instruments",
        "label": "Classes of financial instruments [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for aggregated classes of financial instruments. Financial instruments are contracts that give rise to a financial asset of one entity and a financial liability or equity instrument of another entity. It also represents the standard value for the 'Classes of financial instruments' axis if no other member is used. [Refer: Financial assets; Financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r177",
      "r179",
      "r180",
      "r181",
      "r327",
      "r329"
     ]
    },
    "ifrs-full_ClassesOfFinancialLiabilitiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfFinancialLiabilitiesAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Classes of financial liabilities [axis]",
        "label": "Classes of financial liabilities [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r185",
      "r186",
      "r214",
      "r215"
     ]
    },
    "ifrs-full_ClassesOfFinancialLiabilitiesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfFinancialLiabilitiesDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial liabilities measured at fair value",
        "label": "Classes of financial liabilities [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for aggregated classes financial liabilities. It also represents the standard value for the 'Classes of financial liabilities' axis if no other member is used. [Refer: Financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r185",
      "r186",
      "r214",
      "r215"
     ]
    },
    "ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfIntangibleAssetsAndGoodwillAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofOtherComponentsofIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Classes of intangible assets and goodwill [axis]",
        "label": "Classes of intangible assets and goodwill [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r581"
     ]
    },
    "ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfIntangibleAssetsAndGoodwillDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofOtherComponentsofIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Classes of intangible assets and goodwill",
        "label": "Classes of intangible assets and goodwill [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for intangible assets and goodwill. It also represents the standard value for the 'Classes of intangible assets and goodwill' axis if no other member is used. [Refer: Goodwill; Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r581"
     ]
    },
    "ifrs-full_ClassesOfIntangibleAssetsOtherThanGoodwillAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfIntangibleAssetsOtherThanGoodwillAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofIntangibleAssetsDetail",
      "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofOtherComponentsofIntangibleAssetsDetail",
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofCostsIncurredforOilandGasPropertyExplorationandDevelopmentActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Classes of intangible assets other than goodwill [axis]",
        "label": "Classes of intangible assets other than goodwill [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r76",
      "r306"
     ]
    },
    "ifrs-full_ClassesOfIntangibleAssetsOtherThanGoodwillDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfIntangibleAssetsOtherThanGoodwillDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofIntangibleAssetsDetail",
      "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofOtherComponentsofIntangibleAssetsDetail",
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofCostsIncurredforOilandGasPropertyExplorationandDevelopmentActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Classes of intangible assets other than goodwill [domain]",
        "label": "Classes of intangible assets other than goodwill [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Classes of intangible assets other than goodwill' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r76",
      "r306"
     ]
    },
    "ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfPropertyPlantAndEquipmentAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/ContingenciesAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofProvedDevelopedandUndevelopedReserveDetail",
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofStandardizedMeasureofDiscountedFutureNetCashFlowsDetail",
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofCapitalizedCostsforOilandGasProducingActivitiesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialTranformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetRecoverableAmountsofAssetsCGUsPemexLogisticsDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Classes of property, plant and equipment [axis]",
        "label": "Classes of property, plant and equipment [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r19",
      "r277"
     ]
    },
    "ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfPropertyPlantAndEquipmentDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/ContingenciesAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofProvedDevelopedandUndevelopedReserveDetail",
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofStandardizedMeasureofDiscountedFutureNetCashFlowsDetail",
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofCapitalizedCostsforOilandGasProducingActivitiesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialTranformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetRecoverableAmountsofAssetsCGUsPemexLogisticsDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Classes of property, plant and equipment [domain]",
        "label": "Classes of property, plant and equipment [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Classes of property, plant and equipment' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r19",
      "r277"
     ]
    },
    "ifrs-full_ClosingForeignExchangeRate": {
     "xbrltype": "decimalItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClosingForeignExchangeRate",
     "presentation": [
      "http://mexicopetroleum.com/role/AuthorizationandBasisofPreparationAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/ContingenciesAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/DebtSummaryofForeignCurrencyTranslationDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFinancialLiabilitiesInterestAndPrincipalCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofMonetaryAssetsandLiabilitiesDenominatedInForeignCurrencyDetail",
      "http://mexicopetroleum.com/role/SubsequentEventsExchangeratesandcrudeoilpricesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Currency exchange rate",
        "verboseLabel": "Exchange rate",
        "label": "Closing foreign exchange rate"
       }
      },
      "en": {
       "role": {
        "documentation": "The spot exchange rate at the end of the reporting period. Exchange rate is the ratio of exchange for two currencies. Spot exchange rate is the exchange rate for immediate delivery."
       }
      }
     },
     "auth_ref": [
      "r610"
     ]
    },
    "ecd_CoSelectedMeasureAmt": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "CoSelectedMeasureAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Company Selected Measure Amount",
        "terseLabel": "Company Selected Measure Amount"
       }
      }
     },
     "auth_ref": [
      "r513"
     ]
    },
    "ecd_CoSelectedMeasureName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "CoSelectedMeasureName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Company Selected Measure Name",
        "terseLabel": "Company Selected Measure Name"
       }
      }
     },
     "auth_ref": [
      "r513"
     ]
    },
    "ck0000932782_CoalCokeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CoalCokeMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Coal Coke",
        "label": "Coal Coke [Member]",
        "documentation": "Coal coke."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CoatzacoalcosGasProcessorComplexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CoatzacoalcosGasProcessorComplexMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Coatzacoalcos Gas Processor Complex",
        "label": "Coatzacoalcos Gas Processor Complex [Member]",
        "documentation": "Coatzacoalcos Gas Processor Complex"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ComesaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ComesaMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryEntitiesandSubsidiaryCompaniesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "COMESA",
        "label": "COMESA [Member]",
        "documentation": "COMESA [Member]."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CommitmentsAndContingenciesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CommitmentsAndContingenciesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Commitments and contingencies [abstract]",
        "label": "Commitments and contingencies [abstract]",
        "documentation": "Commitments and contingencies [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CommitmentsAndContingenciesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CommitmentsAndContingenciesLineItems",
     "presentation": [
      "http://mexicopetroleum.com/role/CommitmentsEstimatedFuturePaymentsUnderContractsDetail",
      "http://mexicopetroleum.com/role/CommitmentsEstimatedValueofContractsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Commitments and contingencies [line items]",
        "label": "Commitments and contingencies [line items]",
        "documentation": "Commitments and contingencies."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CommitmentsAndContingenciesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CommitmentsAndContingenciesTable",
     "presentation": [
      "http://mexicopetroleum.com/role/CommitmentsEstimatedFuturePaymentsUnderContractsDetail",
      "http://mexicopetroleum.com/role/CommitmentsEstimatedValueofContractsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Commitments and contingencies [table]",
        "label": "Commitments and contingencies [table]",
        "documentation": "Schedule disclosing information related to details of commitments and contingencies."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CommodityPriceRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CommodityPriceRiskMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Commodity price risk",
        "label": "Commodity price risk [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a component of other price risk that represents the type of risk that the fair value or future cash flows of a financial instrument will fluctuate because of changes in commodity prices. [Refer: Classes of financial instruments [domain]]"
       }
      }
     },
     "auth_ref": [
      "r419",
      "r429"
     ]
    },
    "ecd_CompActuallyPaidVsCoSelectedMeasureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "CompActuallyPaidVsCoSelectedMeasureTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compensation Actually Paid vs. Company Selected Measure [Text Block]",
        "terseLabel": "Compensation Actually Paid vs. Company Selected Measure"
       }
      }
     },
     "auth_ref": [
      "r518"
     ]
    },
    "ecd_CompActuallyPaidVsNetIncomeTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "CompActuallyPaidVsNetIncomeTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compensation Actually Paid vs. Net Income [Text Block]",
        "terseLabel": "Compensation Actually Paid vs. Net Income"
       }
      }
     },
     "auth_ref": [
      "r517"
     ]
    },
    "ecd_CompActuallyPaidVsOtherMeasureTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "CompActuallyPaidVsOtherMeasureTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compensation Actually Paid vs. Other Measure [Text Block]",
        "terseLabel": "Compensation Actually Paid vs. Other Measure"
       }
      }
     },
     "auth_ref": [
      "r519"
     ]
    },
    "ecd_CompActuallyPaidVsTotalShareholderRtnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "CompActuallyPaidVsTotalShareholderRtnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compensation Actually Paid vs. Total Shareholder Return [Text Block]",
        "terseLabel": "Compensation Actually Paid vs. Total Shareholder Return"
       }
      }
     },
     "auth_ref": [
      "r516"
     ]
    },
    "ck0000932782_ComplementaryIncentiveOfDomesticSales": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ComplementaryIncentiveOfDomesticSales",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss": {
       "parentTag": "ifrs-full_Revenue",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss",
      "http://mexicopetroleum.com/role/RevenueAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationSupplementalGeographicInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Incentive for automotive fuels",
        "terseLabel": "Incentive for automotive fuels (see Notes 3-S and 7-E)",
        "label": "Complementary Incentive Of Domestic Sales",
        "documentation": "Complementary Incentive Of Domestic Sales"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ComponentsOfEquityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ComponentsOfEquityAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofChangesinEquityDeficit",
      "http://mexicopetroleum.com/role/EquityDeficitAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Components of equity [axis]",
        "label": "Components of equity [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r347"
     ]
    },
    "ifrs-full_ComponentsOfEquityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ComponentsOfEquityDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofChangesinEquityDeficit",
      "http://mexicopetroleum.com/role/EquityDeficitAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total Equity (deficit)",
        "label": "Components of equity [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the residual interest in the assets of the entity after deducting all its liabilities. It also represents the standard value for the 'Components of equity' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r347"
     ]
    },
    "ifrs-full_ComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ComprehensiveIncome",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLossAlternativeCalcDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofChangesinEquityDeficit",
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss",
      "http://mexicopetroleum.com/role/EquityDeficitAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofComprehensiveIncomeDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total comprehensive (loss) income",
        "verboseLabel": "Total comprehensive (loss) income",
        "label": "Comprehensive income"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of change in equity resulting from transactions and other events, other than those changes resulting from transactions with owners in their capacity as owners."
       }
      }
     },
     "auth_ref": [
      "r98",
      "r100",
      "r110",
      "r295",
      "r313",
      "r342",
      "r372",
      "r404"
     ]
    },
    "ifrs-full_ComprehensiveIncomeAttributableToAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ComprehensiveIncomeAttributableToAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Comprehensive (loss) income:",
        "label": "Comprehensive income attributable to [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ComprehensiveIncomeAttributableToNoncontrollingInterests",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLossAlternativeCalcDetails": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-controlling interest",
        "label": "Comprehensive income, attributable to non-controlling interests"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of comprehensive income attributable to non-controlling interests. [Refer: Comprehensive income; Non-controlling interests]"
       }
      }
     },
     "auth_ref": [
      "r342",
      "r375"
     ]
    },
    "ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ComprehensiveIncomeAttributableToOwnersOfParent",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLossAlternativeCalcDetails": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Controlling interest",
        "label": "Comprehensive income, attributable to owners of parent"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of comprehensive income attributable to owners of the parent. [Refer: Comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r342",
      "r376"
     ]
    },
    "ck0000932782_ConfidenceLevelPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ConfidenceLevelPercentage",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Confidence level percentage",
        "label": "Confidence level percentage",
        "documentation": "Confidence level percentage."
       }
      }
     },
     "auth_ref": []
    },
    "srt_ConsolidatedEntitiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "ConsolidatedEntitiesAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofComprehensiveIncomeDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Consolidated Entities [Axis]",
        "label": "Consolidated Entities [Axis]",
        "documentation": "Information by consolidated entity or group of entities."
       }
      }
     },
     "auth_ref": [
      "r216",
      "r223",
      "r599",
      "r602",
      "r603"
     ]
    },
    "srt_ConsolidatedEntitiesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "ConsolidatedEntitiesDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofComprehensiveIncomeDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Consolidated Entities [Domain]",
        "label": "Consolidated Entities [Domain]",
        "documentation": "Entity or group of entities consolidated into reporting entity."
       }
      }
     },
     "auth_ref": [
      "r216",
      "r223",
      "r599",
      "r602",
      "r603"
     ]
    },
    "srt_ConsolidationEliminationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "ConsolidationEliminationsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofComprehensiveIncomeDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Eliminations",
        "label": "Consolidation, Eliminations [Member]",
        "documentation": "Eliminating entries used in consolidating a parent entity and its subsidiaries."
       }
      }
     },
     "auth_ref": []
    },
    "srt_ConsolidationItemsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "ConsolidationItemsAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofComprehensiveIncomeDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Consolidation Items [Axis]",
        "label": "Consolidation Items [Axis]",
        "documentation": "Information by components, eliminations, non-segment corporate-level activity and reconciling items used in consolidating a parent entity and its subsidiaries or its operating segments."
       }
      }
     },
     "auth_ref": [
      "r216",
      "r224",
      "r225",
      "r226",
      "r227",
      "r228",
      "r229",
      "r230",
      "r231",
      "r232",
      "r600",
      "r601"
     ]
    },
    "srt_ConsolidationItemsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "ConsolidationItemsDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofComprehensiveIncomeDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Consolidation Items [Domain]",
        "label": "Consolidation Items [Domain]",
        "documentation": "Components, elimination, non-segment corporate-level activity and reconciling items used in consolidating a parent entity and its subsidiaries or its operating segments."
       }
      }
     },
     "auth_ref": [
      "r216",
      "r224",
      "r225",
      "r226",
      "r227",
      "r228",
      "r229",
      "r230",
      "r231",
      "r232",
      "r600",
      "r601"
     ]
    },
    "ifrs-full_ConstructionInProgressMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ConstructionInProgressMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofCapitalizedCostsforOilandGasProducingActivitiesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexLogisticsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Construction in progress",
        "label": "Construction in progress [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for expenditure capitalised during the construction of items of property, plant and equipment that are not yet available for use (ie not yet in the location and condition necessary for it to be capable of operating in the manner intended by the management). [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r565"
     ]
    },
    "dei_ContactPersonnelEmailAddress": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "ContactPersonnelEmailAddress",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Contact Personnel Email Address",
        "label": "Contact Personnel Email Address",
        "documentation": "Email address of contact personnel."
       }
      }
     },
     "auth_ref": []
    },
    "dei_ContactPersonnelName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "ContactPersonnelName",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Contact Personnel Name",
        "label": "Contact Personnel Name",
        "documentation": "Name of contact personnel"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ContingentLiabilitiesForLegalProceedings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ContingentLiabilitiesForLegalProceedings",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/ContingenciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accrued reserve on contingent liabilities",
        "label": "Contingent liabilities for legal proceedings",
        "documentation": "Contingent liabilities for legal proceedings."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ContingentLiabilityForGuaranteesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ContingentLiabilityForGuaranteesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/ContingenciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Contingent liability for guarantees",
        "label": "Contingent liability for guarantees [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a contingent liability for guarantees. [Refer: Classes of contingent liabilities [domain]; Guarantees [member]]"
       }
      }
     },
     "auth_ref": [
      "r577"
     ]
    },
    "ck0000932782_ContractualAreaSatuarioAndElGolpeThreeFieldMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ContractualAreaSatuarioAndElGolpeThreeFieldMember",
     "presentation": [
      "http://mexicopetroleum.com/role/ContingenciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Contractual area Satuario and El Golpe 3 field",
        "label": "Contractual Area Satuario And El Golpe Three Field [Member]",
        "documentation": "Contractual Area Satuario And El Golpe Three Field [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ContractualLiabilityGroupAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ContractualLiabilityGroupAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesScheduleofContractualLongTermliabilityFairValuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Contractual Liability Group [Axis]",
        "label": "Contractual Liability Group [Axis]",
        "documentation": "Contractual Liability Group"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ContractualLiabilityGroupDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ContractualLiabilityGroupDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesScheduleofContractualLongTermliabilityFairValuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Contractual Liability Group [Domain]",
        "label": "Contractual Liability Group [Domain]",
        "documentation": "Redocumentations Group [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ContributionsAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ContributionsAMember",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofCertificateofContributionADetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Contributions A",
        "label": "Contributions A [member]",
        "documentation": "Contributions A."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ContributionsToPlanByEmployerNetDefinedBenefitLiabilityAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ContributionsToPlanByEmployerNetDefinedBenefitLiabilityAsset",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofRetirementandPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Contributions paid to the fund",
        "label": "Decrease (increase) in net defined benefit liability (asset) resulting from resulting from contributions to plan by employer"
       }
      },
      "en": {
       "role": {
        "documentation": "The decrease (increase) in net defined benefit liability (asset) resulting from contributions to a defined benefit plan by the employer. [Refer: Net defined benefit liability (asset); Defined benefit plans [domain]]"
       }
      }
     },
     "auth_ref": [
      "r34"
     ]
    },
    "ifrs-full_ContributionsToPlanByPlanParticipantsNetDefinedBenefitLiabilityAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ContributionsToPlanByPlanParticipantsNetDefinedBenefitLiabilityAsset",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofRetirementandPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Defined benefits paid by the fund",
        "label": "Decrease (increase) in net defined benefit liability (asset) resulting from contributions to plan by plan participants"
       }
      },
      "en": {
       "role": {
        "documentation": "The decrease (increase) in the net defined benefit liability (asset) resulting from contributions to a defined benefit plan by plan participants. [Refer: Net defined benefit liability (asset); Defined benefit plans [domain]]"
       }
      }
     },
     "auth_ref": [
      "r34"
     ]
    },
    "ifrs-full_ContributionsToPlanNetDefinedBenefitLiabilityAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ContributionsToPlanNetDefinedBenefitLiabilityAsset",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofRetirementandPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Company contributions to the fund",
        "label": "Decrease (increase) in net defined benefit liability (asset) resulting from contributions to plan"
       }
      },
      "en": {
       "role": {
        "documentation": "The decrease (increase) in the net defined benefit liability (asset) resulting from contributions to a defined benefit plan. [Refer: Net defined benefit liability (asset); Defined benefit plans [domain]]"
       }
      }
     },
     "auth_ref": [
      "r34",
      "r286"
     ]
    },
    "ck0000932782_ConversionFactorForDryGasToBarrelsOfOil": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ConversionFactorForDryGasToBarrelsOfOil",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofSalesPricesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Conversion factor for dry gas to barrels of oil",
        "label": "Conversion Factor for Dry Gas to Barrels of Oil",
        "documentation": "Conversion Factor for Dry Gas to Barrels of Oil"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CorporateSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CorporateSegmentMember",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Corporate",
        "label": "Corporate Segment [Member]",
        "documentation": "Corporate Segment"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CosoleacaquePetrochemicalComplexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CosoleacaquePetrochemicalComplexMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cosoleacaque Petrochemical Complex",
        "label": "Cosoleacaque Petrochemical Complex [Member]",
        "documentation": "Cosoleacaque petrochemical complex."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CostOfSalesAndGeneralExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CostOfSalesAndGeneralExpenses",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total cost of sales and general expenses",
        "label": "Cost of sales and general expenses",
        "documentation": "Cost of sales and general expenses."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CostOfSalesExcludingImpairments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CostOfSalesExcludingImpairments",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss": {
       "parentTag": "ifrs-full_GrossProfit",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesHydrocarbonsExtractionDutyNarrativeDetails",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofComprehensiveIncomeDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cost of sales",
        "label": "Cost of sales excluding impairments",
        "documentation": "Cost of sales excluding impairments."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CounterpartiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CounterpartiesAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationSummaryofPrincipalAmountOutstandingofRegisteredDebtSecuritiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Counterparties [axis]",
        "label": "Counterparties [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r193"
     ]
    },
    "ifrs-full_CounterpartiesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CounterpartiesDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationSummaryofPrincipalAmountOutstandingofRegisteredDebtSecuritiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Counterparties",
        "label": "Counterparties [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the parties to the transaction other than the entity. It also represents the standard value for the 'Counterparties' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r193"
     ]
    },
    "dei_CoverAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "CoverAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cover [Abstract]",
        "label": "Cover [Abstract]",
        "documentation": "Cover page."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CrackSpreadSwapsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CrackSpreadSwapsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofNetGainLossRecognizedinIncomeonDerivativeFinancialInstrumentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Crack spread swaps",
        "label": "Crack Spread Swaps [Member]",
        "documentation": "Crack Spread Swaps"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CreditLineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CreditLineMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Credit Line",
        "label": "Credit Line [Member]",
        "documentation": "Credit Line."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CreditLossExperiencePeriod": {
     "xbrltype": "durationItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CreditLossExperiencePeriod",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Credit loss experience period",
        "label": "Credit loss experience period",
        "documentation": "Credit loss experience period."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CreditRatingSourceAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CreditRatingSourceAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofCurrentandPotentialExposuresandAggregatedbyCreditRatingDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Credit Rating Source [Axis]",
        "label": "Credit Rating Source [Axis]",
        "documentation": "Credit Rating Source [Axis]."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CreditRatingSourceDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CreditRatingSourceDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofCurrentandPotentialExposuresandAggregatedbyCreditRatingDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Credit Rating Source [domain]",
        "label": "Credit Rating Source [domain]",
        "documentation": "Credit Rating Source [Domain]."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CrossCurrencySwapsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CrossCurrencySwapsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValueofDFIsincludedinStatementofFinancialPositionDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofNetGainLossRecognizedinIncomeonDerivativeFinancialInstrumentsDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cross-currency swaps",
        "label": "Cross Currency Swaps [member]",
        "documentation": "Cross currency swaps."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CrossCurrencySwapsPositionFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CrossCurrencySwapsPositionFourMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValuesandNotionalAmountsofDFIsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Petr\u00f3leos Mexicanos pays fixed in U.S. dollar and receives fixed in Pound sterling.",
        "label": "Cross Currency Swaps Position Four [member]",
        "documentation": "Cross currency swaps position four."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CrossCurrencySwapsPositionOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CrossCurrencySwapsPositionOneMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValuesandNotionalAmountsofDFIsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Petr\u00f3leos Mexicanos pays the 28-day TIIE + spread in pesos and receives fixed in UDI.",
        "label": "Cross Currency Swaps Position One [member]",
        "documentation": "Cross currency swaps position one."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CrossCurrencySwapsPositionThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CrossCurrencySwapsPositionThreeMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValuesandNotionalAmountsofDFIsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Petr\u00f3leos Mexicanos pays fixed in U.S. dollar and receives fixed in euro.",
        "label": "Cross Currency Swaps Position Three [member]",
        "documentation": "Cross currency swaps position three."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CrossCurrencySwapsPrepaidSwapsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CrossCurrencySwapsPrepaidSwapsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValuesandNotionalAmountsofDFIsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Petr\u00f3leos Mexicanos pays U.S. dollar and Pesos and receives U.S. dollar and Pesos",
        "label": "Cross-currency swaps (Prepaid Swaps) [Member]",
        "documentation": "Cross-currency swaps (Prepaid Swaps)"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CrudeOil1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CrudeOil1Member",
     "presentation": [
      "http://mexicopetroleum.com/role/InventoriesSummaryofInventoriesDetail",
      "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationScheduleofIncomebyProductDetail",
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofSalesPricesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Crude oil",
        "verboseLabel": "Crude oil, per barrel",
        "label": "Crude Oil 1 [member]",
        "documentation": "Crude oil."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CrudeOilAndCondensateReservesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CrudeOilAndCondensateReservesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofProvedDevelopedandUndevelopedReserveDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Crude Oil and Condensate Reserves",
        "label": "Crude Oil and Condensate Reserves [Member]",
        "documentation": "Crude Oil and Condensate Reserves"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CrudeOilAndFuelProductionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CrudeOilAndFuelProductionMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesWelfareOilDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Crude Oil And Fuel Production",
        "label": "Crude Oil And Fuel Production [Member]",
        "documentation": "Crude Oil And Fuel Production"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CrudeOilCondensatesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CrudeOilCondensatesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofOilandGasProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Crude oil and Condensates",
        "label": "Crude Oil Condensates [Member]",
        "documentation": "Crude Oil Condensates [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CrudeOilOptionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CrudeOilOptionsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValueofDFIsincludedinStatementofFinancialPositionDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofNetGainLossRecognizedinIncomeonDerivativeFinancialInstrumentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Crude oil options",
        "label": "Crude Oil Options [Member]",
        "documentation": "Crude oil options [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CrudeOilOptionsPositionOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CrudeOilOptionsPositionOneMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValuesandNotionalAmountsofDFIsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Crude oil Options",
        "label": "Crude Oil Options Position One [Member]",
        "documentation": "Crude oil options position one."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CrudeOilReservesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CrudeOilReservesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofStandardizedMeasureofDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Crude Oil Reserves",
        "label": "Crude Oil Reserves [member]",
        "documentation": "Crude Oil Reserves[member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CrudoLigeroMarinoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CrudoLigeroMarinoMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofValuesinUseforCGUImpairmentorReversalPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Crudo Ligero Marino",
        "label": "Crudo Ligero Marino [Member]",
        "documentation": "Crudo Ligero Marino."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CuencaDeMacuspanaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CuencaDeMacuspanaMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofValuesinUseforCGUImpairmentorReversalPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cuenca de Macuspana",
        "label": "Cuenca de Macuspana [Member]",
        "documentation": "Cuenca de Macuspana."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CumulativeCurrencyTranslationEffectMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CumulativeCurrencyTranslationEffectMember",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofChangesinEquityDeficit"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cumulative currency translation effect",
        "label": "Cumulative Currency Translation Effect [member]",
        "documentation": "Cumulative currency translation effect."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CumulativeTranslationEffectOnEquityReserve": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CumulativeTranslationEffectOnEquityReserve",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofReconciliationforImpairedAccountsReceivableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Translation effects",
        "label": "Cumulative Translation Effect On Equity Reserve",
        "documentation": "Cumulative translation effect on equity reserve."
       }
      }
     },
     "auth_ref": []
    },
    "srt_CurrencyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "CurrencyAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/AuthorizationandBasisofPreparationAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/DebtSummaryofForeignCurrencyTranslationDetail",
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofInterestRateSensitivityDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofInterestRateandCurrencyDerivativeFinancialInstrumentsDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFinancialLiabilitiesInterestAndPrincipalCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail",
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofMonetaryAssetsandLiabilitiesDenominatedInForeignCurrencyDetail",
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Currency [Axis]",
        "label": "Currency [Axis]",
        "documentation": "Information by currency."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CurrencyForwardMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CurrencyForwardMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValuesandNotionalAmountsofDFIsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Petr\u00f3leos Mexicanos pays Pesos and receives U.S. dollar.",
        "label": "Currency Forward [Member]",
        "documentation": "Currency Forward"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CurrencyOptionsContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CurrencyOptionsContractMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValueofDFIsincludedinStatementofFinancialPositionDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofNetGainLossRecognizedinIncomeonDerivativeFinancialInstrumentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Currency options",
        "label": "Currency Options Contract [member]",
        "documentation": "Currency options contract."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CurrencyOptionsPositionFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CurrencyOptionsPositionFiveMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValuesandNotionalAmountsofDFIsDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Sell Call on Euros",
        "verboseLabel": "Petr\u00f3leos Mexicanos Buy Put and Sell Call on pesos",
        "label": "Currency options position five [member]",
        "documentation": "Currency options position five."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CurrencyOptionsPositionFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CurrencyOptionsPositionFourMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValuesandNotionalAmountsofDFIsDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Petr\u00f3leos Mexicanos Sell Call on euro",
        "label": "Currency options position four [member]",
        "documentation": "Currency options position four."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CurrencyOptionsPositionOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CurrencyOptionsPositionOneMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValuesandNotionalAmountsofDFIsDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Buy Put, Sell Put and Sell Call on Japanese yen",
        "verboseLabel": "Petr\u00f3leos Mexicanos Buy Put, Sell Put and Sell Call on Japanese yen",
        "label": "Currency Options Position One [member]",
        "documentation": "Currency options position one."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CurrencyOptionsPositionThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CurrencyOptionsPositionThreeMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValuesandNotionalAmountsofDFIsDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Sell Call on pounds sterling",
        "verboseLabel": "Petr\u00f3leos Mexicanos Sell Call on Pound sterling",
        "label": "Currency options position three [member]",
        "documentation": "Currency options position three [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CurrencyOptionsPositionTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CurrencyOptionsPositionTwoMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValuesandNotionalAmountsofDFIsDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Buy Call, Sell Call and Sell Put on euros",
        "verboseLabel": "Petr\u00f3leos Mexicanos Buy call, Sell Call and Sell Put on euro",
        "label": "Currency options position two [member]",
        "documentation": "Currency options position two [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CurrencyReceivedInHedgingTransaction": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CurrencyReceivedInHedgingTransaction",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cross-currency swaps",
        "label": "Currency received in hedging transaction",
        "documentation": "Currency received in hedging transaction"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrencyRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrencyRiskMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Currency risk",
        "label": "Currency risk [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a type of market risk representing the risk that the fair value or future cash flows of a financial instrument will fluctuate because of changes in foreign exchange rates. [Refer: Classes of financial instruments [domain]]"
       }
      }
     },
     "auth_ref": [
      "r151",
      "r152",
      "r153",
      "r154",
      "r194"
     ]
    },
    "ifrs-full_CurrentAdvances": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentAdvances",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Advances from customers",
        "label": "Current advances received, representing current contract liabilities for performance obligations satisfied at point in time"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current advances received representing current contract liabilities for performance obligations satisfied at a point in time. [Refer: Advances received, representing contract liabilities for performance obligations satisfied at point in time]"
       }
      }
     },
     "auth_ref": [
      "r614",
      "r616"
     ]
    },
    "ifrs-full_CurrentAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentAssets",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_Assets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total current assets",
        "terseLabel": "Total current assets",
        "label": "Current assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of assets that the entity (a) expects to realise or intends to sell or consume in its normal operating cycle; (b) holds primarily for the purpose of trading; (c) expects to realise within twelve months after the reporting period; or (d) classifies as cash or cash equivalents (as defined in IAS 7) unless the asset is restricted from being exchanged or used to settle a liability for at least twelve months after the reporting period. [Refer: Assets]"
       }
      }
     },
     "auth_ref": [
      "r106",
      "r365",
      "r404"
     ]
    },
    "ifrs-full_CurrentAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentAssetsAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Current assets:",
        "terseLabel": "Current assets",
        "label": "Current assets [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrentBondsIssuedAndCurrentPortionOfNoncurrentBondsIssued": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentBondsIssuedAndCurrentPortionOfNoncurrentBondsIssued",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofBalanceofGovernmentBondsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Less: current portion of Government Bonds, net of expected credit losses",
        "label": "Current bonds issued and current portion of non-current bonds issued"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current bonds issued and the current portion of non-current bonds issued. [Refer: Bonds issued]"
       }
      }
     },
     "auth_ref": [
      "r610"
     ]
    },
    "ifrs-full_CurrentDerivativeFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentDerivativeFinancialAssets",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative financial instruments",
        "label": "Current derivative financial assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current derivative financial assets. [Refer: Derivative financial assets]"
       }
      }
     },
     "auth_ref": [
      "r614"
     ]
    },
    "ifrs-full_CurrentDerivativeFinancialLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentDerivativeFinancialLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative financial instruments",
        "label": "Current derivative financial liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current derivative financial liabilities. [Refer: Derivative financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r614"
     ]
    },
    "dei_CurrentFiscalYearEndDate": {
     "xbrltype": "gMonthDayItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "CurrentFiscalYearEndDate",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Current Fiscal Year End Date",
        "label": "Current Fiscal Year End Date",
        "documentation": "End date of current fiscal year in the format --MM-DD."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_CurrentGovernmentDebtInstrumentsHeld": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CurrentGovernmentDebtInstrumentsHeld",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssets",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Government Bonds",
        "label": "Current Government Debt Instruments Held",
        "documentation": "Current government debt instruments held."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrentLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentLeaseLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
      "http://mexicopetroleum.com/role/LeasesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Short-term leases",
        "verboseLabel": "Current lease liability",
        "label": "Current lease liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current lease liabilities. [Refer: Lease liabilities]"
       }
      }
     },
     "auth_ref": [
      "r135"
     ]
    },
    "ifrs-full_CurrentLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_Liabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total current liabilities",
        "terseLabel": "Total current liabilities",
        "label": "Current liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of liabilities that: (a) the entity expects to settle in its normal operating cycle; (b) the entity holds primarily for the purpose of trading; (c) are due to be settled within twelve months after the reporting period; or (d) the entity does not have the right at the end of the reporting period to defer settlement for at least twelve months after the reporting period."
       }
      }
     },
     "auth_ref": [
      "r108",
      "r366",
      "r404"
     ]
    },
    "ifrs-full_CurrentLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentLiabilitiesAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Current liabilities:",
        "terseLabel": "Current liabilities",
        "label": "Current liabilities [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentMember",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableScheduleofBreakdownofAccountsReceivableBasedonCreditHistoryDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofCurrentandPotentialExposuresandAggregatedbyCreditRatingDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Current",
        "label": "Current [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a current time band."
       }
      }
     },
     "auth_ref": [
      "r418",
      "r427"
     ]
    },
    "ck0000932782_CurrentPayablesOnProfitSharingDuty": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CurrentPayablesOnProfitSharingDuty",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofTotalDUCandOthersDetail": {
       "parentTag": "ck0000932782_IncomeTaxReclassificationAdjustmentsAmountAfterReclassification",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesProfitSharingDutyNarrativeDetails",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofTotalDUCandOthersDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Profit sharing duty",
        "verboseLabel": "DUC",
        "label": "Current Payables On Profit-Sharing Duty",
        "documentation": "Profit- sharing duty."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrentReceivablesFromContractsWithCustomers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentReceivablesFromContractsWithCustomers",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssets",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofAccountsReceivableandOtherReceivablesDetail",
      "http://mexicopetroleum.com/role/RevenueAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Customers, net",
        "label": "Current receivables from contracts with customers"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current receivables from contracts with customers. [Refer: Receivables from contracts with customers]"
       }
      }
     },
     "auth_ref": [
      "r125"
     ]
    },
    "ck0000932782_CurrentReceivablesFromContractsWithCustomers1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CurrentReceivablesFromContractsWithCustomers1",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableScheduleofBreakdownofAccountsReceivableBasedonCreditHistoryDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Total domestic customers, net",
        "label": "Current Receivables From Contracts With Customers 1",
        "documentation": "Current receivables from contracts with customers."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrentServiceCostNetDefinedBenefitLiabilityAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentServiceCostNetDefinedBenefitLiabilityAsset",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsandTypesofPlanAssetsDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofRetirementandPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Current Service cost",
        "verboseLabel": "Service costs",
        "label": "Increase in net defined benefit liability (asset) resulting from current service cost"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in the net defined benefit liability (asset) resulting from employee service in the current period. [Refer: Net defined benefit liability (asset)]"
       }
      }
     },
     "auth_ref": [
      "r26",
      "r282"
     ]
    },
    "ck0000932782_CurrentSundryCreditors": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "CurrentSundryCreditors",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFinancialLiabilitiesInterestAndPrincipalCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Suppliers",
        "negatedLabel": "Suppliers",
        "label": "Current sundry creditors",
        "documentation": "Current sundry creditors."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrentTaxExpenseIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentTaxExpenseIncome",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxExpenseBenefitDetail": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxExpenseBenefitDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Current income tax",
        "label": "Current tax expense (income)"
       }
      }
     },
     "auth_ref": [
      "r386",
      "r441"
     ]
    },
    "ifrs-full_CurrentTaxLiabilitiesCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentTaxLiabilitiesCurrent",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Income taxes and duties payable",
        "terseLabel": "Taxes and duties payable",
        "label": "Current tax liabilities, current"
       }
      },
      "en": {
       "role": {
        "documentation": "The current amount of current tax liabilities. [Refer: Current tax liabilities]"
       }
      }
     },
     "auth_ref": [
      "r357"
     ]
    },
    "ifrs-full_CurrentTradeReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentTradeReceivables",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail": {
       "parentTag": "ifrs-full_FinancialAssets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "netLabel": "Customers",
        "verboseLabel": "Accounts receivable",
        "label": "Current trade receivables"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current trade receivables. [Refer: Trade receivables]"
       }
      }
     },
     "auth_ref": [
      "r445",
      "r449",
      "r450"
     ]
    },
    "cyd_CybersecurityRiskBoardCommitteeOrSubcommitteeResponsibleForOversightTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskBoardCommitteeOrSubcommitteeResponsibleForOversightTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Board Committee or Subcommittee Responsible for Oversight [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r464",
      "r553"
     ]
    },
    "cyd_CybersecurityRiskBoardOfDirectorsOversightTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskBoardOfDirectorsOversightTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Board of Directors Oversight [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r464",
      "r553"
     ]
    },
    "cyd_CybersecurityRiskManagementExpertiseOfManagementResponsibleTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskManagementExpertiseOfManagementResponsibleTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Management Expertise of Management Responsible [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r466",
      "r555"
     ]
    },
    "cyd_CybersecurityRiskManagementPositionsOrCommitteesResponsibleFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskManagementPositionsOrCommitteesResponsibleFlag",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Management Positions or Committees Responsible [Flag]"
       }
      }
     },
     "auth_ref": [
      "r466",
      "r555"
     ]
    },
    "cyd_CybersecurityRiskManagementPositionsOrCommitteesResponsibleReportToBoardFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskManagementPositionsOrCommitteesResponsibleReportToBoardFlag",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Management Positions or Committees Responsible Report to Board [Flag]"
       }
      }
     },
     "auth_ref": [
      "r468",
      "r557"
     ]
    },
    "cyd_CybersecurityRiskManagementPositionsOrCommitteesResponsibleTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskManagementPositionsOrCommitteesResponsibleTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Management Positions or Committees Responsible [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r466",
      "r555"
     ]
    },
    "cyd_CybersecurityRiskManagementProcessesForAssessingIdentifyingAndManagingThreatsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskManagementProcessesForAssessingIdentifyingAndManagingThreatsTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Management Processes for Assessing, Identifying, and Managing Threats [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r459",
      "r548"
     ]
    },
    "cyd_CybersecurityRiskManagementProcessesIntegratedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskManagementProcessesIntegratedFlag",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Management Processes Integrated [Flag]"
       }
      }
     },
     "auth_ref": [
      "r460",
      "r549"
     ]
    },
    "cyd_CybersecurityRiskManagementProcessesIntegratedTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskManagementProcessesIntegratedTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Management Processes Integrated [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r460",
      "r549"
     ]
    },
    "cyd_CybersecurityRiskManagementStrategyAndGovernanceAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskManagementStrategyAndGovernanceAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Management, Strategy, and Governance [Abstract]"
       }
      }
     },
     "auth_ref": [
      "r458",
      "r547"
     ]
    },
    "cyd_CybersecurityRiskManagementStrategyAndGovernanceLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskManagementStrategyAndGovernanceLineItems",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Management, Strategy, and Governance [Line Items]"
       }
      }
     },
     "auth_ref": [
      "r458",
      "r547"
     ]
    },
    "cyd_CybersecurityRiskManagementStrategyAndGovernanceTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskManagementStrategyAndGovernanceTable",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Management, Strategy, and Governance [Table]"
       }
      }
     },
     "auth_ref": [
      "r458",
      "r547"
     ]
    },
    "cyd_CybersecurityRiskManagementThirdPartyEngagedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskManagementThirdPartyEngagedFlag",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Management Third Party Engaged [Flag]"
       }
      }
     },
     "auth_ref": [
      "r461",
      "r550"
     ]
    },
    "cyd_CybersecurityRiskMateriallyAffectedOrReasonablyLikelyToMateriallyAffectRegistrantFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskMateriallyAffectedOrReasonablyLikelyToMateriallyAffectRegistrantFlag",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Materially Affected or Reasonably Likely to Materially Affect Registrant [Flag]"
       }
      }
     },
     "auth_ref": [
      "r463",
      "r552"
     ]
    },
    "cyd_CybersecurityRiskMateriallyAffectedOrReasonablyLikelyToMateriallyAffectRegistrantTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskMateriallyAffectedOrReasonablyLikelyToMateriallyAffectRegistrantTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Materially Affected or Reasonably Likely to Materially Affect Registrant [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r463",
      "r552"
     ]
    },
    "cyd_CybersecurityRiskProcessForInformingBoardCommitteeOrSubcommitteeResponsibleForOversightTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskProcessForInformingBoardCommitteeOrSubcommitteeResponsibleForOversightTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Process for Informing Board Committee or Subcommittee Responsible for Oversight [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r464",
      "r553"
     ]
    },
    "cyd_CybersecurityRiskProcessForInformingManagementOrCommitteesResponsibleTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskProcessForInformingManagementOrCommitteesResponsibleTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Process for Informing Management or Committees Responsible [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r467",
      "r556"
     ]
    },
    "cyd_CybersecurityRiskRoleOfManagementTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskRoleOfManagementTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Role of Management [Text Block]"
       }
      }
     },
     "auth_ref": [
      "r465",
      "r554"
     ]
    },
    "cyd_CybersecurityRiskThirdPartyOversightAndIdentificationProcessesFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/cyd/2025",
     "localname": "CybersecurityRiskThirdPartyOversightAndIdentificationProcessesFlag",
     "presentation": [
      "http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cybersecurity Risk Third Party Oversight and Identification Processes [Flag]"
       }
      }
     },
     "auth_ref": [
      "r462",
      "r551"
     ]
    },
    "ck0000932782_DAndSPetroleumSA.deCVMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DAndSPetroleumSA.deCVMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "D&amp;S Petroleum S.A. de C.V.",
        "label": "D&amp;S Petroleum S.A. de C.V. [member]",
        "documentation": "D&amp;S Petroleum S.A. de C.V."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DEAErdoelMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DEAErdoelMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "DEA Erdoel",
        "label": "DEA Erdoel [member]",
        "documentation": "DEA Erdoel."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DEUTSCHEErdoelMexicoSdeRLdeCVMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DEUTSCHEErdoelMexicoSdeRLdeCVMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "DEUTSCHE Erdoel Mxico S. de R.L. de C.V.",
        "label": "DEUTSCHE Erdoel Mxico S. de R.L. de C.V. [member]",
        "documentation": "DEUTSCHE Erdoel Mxico S. de R.L. de C.V."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DFIsNotIdentifiedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DFIsNotIdentifiedMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofNetGainLossRecognizedinIncomeonDerivativeFinancialInstrumentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "DFIs not identified",
        "label": "DFIs Not Identified [Member]",
        "documentation": "DFIs Not Identified"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_Debt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "Debt",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Outstanding debt",
        "label": "Debt",
        "documentation": "Debt"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DebtInstrument1Axis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DebtInstrument1Axis",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt Instrument 1 [axis]",
        "label": "Debt Instrument 1 [axis]",
        "documentation": "Debt instrument 1."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DebtInstrument1Domain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DebtInstrument1Domain",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt Instrument 1 [Domain]",
        "label": "Debt Instrument 1 [Domain]",
        "documentation": "Debt Instrument 1 [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DebtInstrumentsAmountContributedToFairValueOfPlanAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DebtInstrumentsAmountContributedToFairValueOfPlanAssets",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsandTypesofPlanAssetsDetail": {
       "parentTag": "ifrs-full_PlanAssetsAtFairValue",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAdditionalFairvalueDisclosureAboutPlanAssetsandIndicateTheirRankDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsandTypesofPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt instruments",
        "label": "Debt instruments, amount contributed to fair value of plan assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount instruments representing debt (rather than equity) contribute to the fair value of defined benefit plan assets. [Refer: Plan assets, at fair value; Defined benefit plans [domain]]"
       }
      }
     },
     "auth_ref": [
      "r391",
      "r442"
     ]
    },
    "ck0000932782_DebtInterestAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DebtInterestAmount",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest",
        "label": "Debt Interest Amount",
        "documentation": "Debt interest amount."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DebtIssueRelatedCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DebtIssueRelatedCosts",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofChangesinConsolidatedDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt issue related costs",
        "label": "Debt Issue Related Costs",
        "documentation": "Debt Issue Related Costs."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DebtNotionalAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DebtNotionalAmount",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryOfPortfolioofFinancialInstrumentsComposedofDebtInstrumentsandDFIDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt Notional Amount",
        "label": "Debt Notional Amount",
        "documentation": "Debt notional amount."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DebtPrincipalAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DebtPrincipalAmount",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail",
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Principal amount of debt",
        "label": "Debt Principal Amount",
        "documentation": "Debt principal amount."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DebtPrincipalAmountAndInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DebtPrincipalAmountAndInterest",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total",
        "label": "Debt Principal Amount And Interest",
        "documentation": "Debt principal amount and interest."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DebtPrincipalAmountAndInterestBeginningBalance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DebtPrincipalAmountAndInterestBeginningBalance",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofChangesinConsolidatedDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "At the beginning of the year",
        "label": "Debt Principal Amount And Interest Beginning Balance",
        "documentation": "Debt principal amount and interest beginning balance."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DebtPrincipalAmountAndInterestEndingBalance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DebtPrincipalAmountAndInterestEndingBalance",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofChangesinConsolidatedDebtDetail",
      "http://mexicopetroleum.com/role/DebtSummaryofMaturitiesofLongTermDebtPrincipalOutstandingandAccruedInterestDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "At the end of the year",
        "verboseLabel": "Total",
        "label": "Debt Principal Amount And Interest Ending Balance",
        "documentation": "Debt principal amount and interest ending balance."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DebtSecurities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DebtSecurities",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt securities issued",
        "label": "Debt instruments issued"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of instruments issued by the entity that represent indebtedness."
       }
      }
     },
     "auth_ref": [
      "r614"
     ]
    },
    "ifrs-full_DebtSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DebtSecuritiesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt securities",
        "label": "Debt securities [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for instruments held by the entity that represent indebtedness."
       }
      }
     },
     "auth_ref": [
      "r405",
      "r407"
     ]
    },
    "ck0000932782_DecreaseInOperatingWorkingCapital": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DecreaseInOperatingWorkingCapital",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Negative working capital",
        "label": "Decrease In Operating Working Capital",
        "documentation": "Decrease in operating working capital."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DecreaseIncreaseInNetDefinedBenefitLiabilityAssetResultingFromGainLossOnRemeasurementInOtherComprehensiveIncomeNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DecreaseIncreaseInNetDefinedBenefitLiabilityAssetResultingFromGainLossOnRemeasurementInOtherComprehensiveIncomeNetOfTax",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofRetirementandPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Decrease (increase) in net defined benefit liability (asset) resulting from gain (loss) on remeasurement in other comprehensive income net of tax",
        "label": "Decrease (increase) in net defined benefit liability (asset) resulting from gain (loss) on remeasurement in other comprehensive income net of tax",
        "documentation": "Decrease (increase) in net defined benefit liability (asset) resulting from gain (loss) on remeasurement in other comprehensive income net of tax"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DecreaseMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DecreaseMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Decrease",
        "label": "Decrease [member]",
        "documentation": "Decrease."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DeerParkMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DeerParkMember",
     "presentation": [
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deer Park",
        "label": "Deer Park [Member]",
        "documentation": "Deer Park."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DeerParkRefiningLimitedPartnershipMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DeerParkRefiningLimitedPartnershipMember",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "DPRLP",
        "label": "Deer Park Refining Limited Partnership [Member]",
        "documentation": "Deer Park Refining Limited Partnership"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DeferredIncomeTaxAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DeferredIncomeTaxAssetsAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred income tax asset:",
        "label": "Deferred income tax assets [abstract]",
        "documentation": "Deferred income tax assets."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DeferredIncomeTaxLiabilityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DeferredIncomeTaxLiabilityAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred income tax liability:",
        "label": "Deferred income tax liability [abstract]",
        "documentation": "Deferred income tax liability."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DeferredIncomeTaxPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DeferredIncomeTaxPropertyPlantAndEquipment",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail": {
       "parentTag": "ck0000932782_NetDeferredTaxAssetsBeforeValuationReserve",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Wells, pipelines, properties and equipment",
        "label": "Deferred Income Tax Property Plant And Equipment",
        "documentation": "Deferred income tax property plant and equipment."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DeferredTaxAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DeferredTaxAssets",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 4.0
      },
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Deferred income taxes and duties",
        "totalLabel": "Deferred taxes",
        "terseLabel": "Deferred taxes",
        "label": "Deferred tax assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amounts of income taxes recoverable in future periods in respect of: (a) deductible temporary differences; (b) the carryforward of unused tax losses; and (c) the carryforward of unused tax credits. [Refer: Temporary differences [member]; Unused tax credits [member]; Unused tax losses [member]]"
       }
      }
     },
     "auth_ref": [
      "r7",
      "r267",
      "r358",
      "r362"
     ]
    },
    "ck0000932782_DeferredTaxAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DeferredTaxAssetsAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingtheDeferredDUCDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred DUC asset:",
        "label": "Deferred tax assets [abstract]",
        "documentation": "Deferred tax assets."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DeferredTaxAssetsAccruedAwardCreditsLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DeferredTaxAssetsAccruedAwardCreditsLiabilities",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail": {
       "parentTag": "ck0000932782_NetDeferredTaxAssetsBeforeValuationReserve",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accrued liabilities",
        "label": "Deferred tax assets accrued award credits liabilities",
        "documentation": "Deferred tax assets accrued award credits liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DeferredTaxAssetsDepreciation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DeferredTaxAssetsDepreciation",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail": {
       "parentTag": "ck0000932782_NetDeferredTaxAssetsBeforeValuationReserve",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DeferredTaxAssetsLoansAndAdvances": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DeferredTaxAssetsLoansAndAdvances",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail": {
       "parentTag": "ck0000932782_NetDeferredTaxAssetsBeforeValuationReserve",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Advance payments from clients",
        "label": "Deferred tax assets loans and advances",
        "documentation": "Deferred tax assets loans and advances."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DeferredTaxAssetsLossCarryforwards": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DeferredTaxAssetsLossCarryforwards",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail": {
       "parentTag": "ck0000932782_NetDeferredTaxAssetsBeforeValuationReserve",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tax loss carry-forwards",
        "label": "Deferred tax assets loss carryforwards",
        "documentation": "Deferred tax assets loss carryforwards"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DeferredTaxAssetsNonrecoverableAccountsReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DeferredTaxAssetsNonrecoverableAccountsReceivable",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail": {
       "parentTag": "ck0000932782_NetDeferredTaxAssetsBeforeValuationReserve",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-recoverable accounts receivable",
        "label": "Deferred tax assets non-recoverable accounts receivable",
        "documentation": "Deferred tax assets non-recoverable accounts receivable."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DeferredTaxAssetsTaxCredits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DeferredTaxAssetsTaxCredits",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingtheDeferredDUCDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tax credits",
        "label": "Deferred tax assets tax credits",
        "documentation": "Deferred tax assets tax credits"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DeferredTaxExpenseIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DeferredTaxExpenseIncome",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxExpenseBenefitDetail": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxExpenseBenefitDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred income tax",
        "label": "Deferred tax expense (income)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of tax expense (income) relating to changes in deferred tax liabilities and deferred tax assets. [Refer: Deferred tax assets; Deferred tax liabilities]"
       }
      }
     },
     "auth_ref": [
      "r8",
      "r268"
     ]
    },
    "ck0000932782_DeferredTaxIncomeRelatingToProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DeferredTaxIncomeRelatingToProvisions",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail": {
       "parentTag": "ck0000932782_NetDeferredTaxAssetsBeforeValuationReserve",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Provisions",
        "label": "Deferred Tax Income Relating To Provisions",
        "documentation": "Deferred tax income relating to provisions."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DeferredTaxLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DeferredTaxLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail": {
       "parentTag": "ifrs-full_NetDeferredTaxAssets",
       "weight": -1.0,
       "order": 1.0
      },
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred income taxes",
        "negatedTotalLabel": "Total deferred income tax liability",
        "label": "Deferred tax liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amounts of income taxes payable in future periods in respect of taxable temporary differences. [Refer: Temporary differences [member]]"
       }
      }
     },
     "auth_ref": [
      "r7",
      "r267",
      "r358",
      "r362"
     ]
    },
    "ck0000932782_DeferredTaxLiabilities1Abstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DeferredTaxLiabilities1Abstract",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingtheDeferredDUCDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred Profit-sharing duty liability:",
        "label": "Deferred Tax Liabilities 1 [abstract]",
        "documentation": "Deferred tax liabilities 1."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DeferredTaxLiabilitiesOther1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DeferredTaxLiabilitiesOther1",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail": {
       "parentTag": "ifrs-full_DeferredTaxLiabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Other",
        "label": "Deferred tax liabilities other1",
        "documentation": "Deferred tax liabilities other."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DeferredTaxLiabilitiesPropertyPlantAndEquipment1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DeferredTaxLiabilitiesPropertyPlantAndEquipment1",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail": {
       "parentTag": "ifrs-full_DeferredTaxAssets",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Wells, pipelines, properties, plant and equipment",
        "label": "Deferred Tax Liabilities Property Plant And Equipment1",
        "documentation": "Deferred tax liabilities property plant and equipment."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DeferredTaxesOnProvisionForPensionsAndOtherEmployeeBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DeferredTaxesOnProvisionForPensionsAndOtherEmployeeBenefits",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail": {
       "parentTag": "ck0000932782_NetDeferredTaxAssetsBeforeValuationReserve",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Employee benefits provision",
        "label": "Deferred taxes on Provision for pensions and other employee benefits",
        "documentation": "Deferred taxes on Provision for pensions and other employee benefits"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DefinedBenefitPlansAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DefinedBenefitPlansAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofActuarialAssumptionsDetails",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsAssociatedWithPEMEXsLaborObligationsDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsRecognizedforOtherLongtermObligationsDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofRetirementandPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Defined benefit plans [axis]",
        "label": "Defined benefit plans [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r23",
      "r279"
     ]
    },
    "ifrs-full_DefinedBenefitPlansDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DefinedBenefitPlansDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofActuarialAssumptionsDetails",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsAssociatedWithPEMEXsLaborObligationsDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsRecognizedforOtherLongtermObligationsDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofRetirementandPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Defined benefit plans",
        "label": "Defined benefit plans [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for post-employment benefit plans other than defined contribution plans. Defined contribution plans are post-employment benefit plans under which an entity pays fixed contributions into a separate entity (a fund) and will have no legal or constructive obligation to pay further contributions if the fund does not hold sufficient assets to pay all employee benefits relating to employee service in the current and prior periods. It also represents the standard value for the 'Defined benefit plans' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r23",
      "r279"
     ]
    },
    "ck0000932782_DelayExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DelayExpenses",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail": {
       "parentTag": "ck0000932782_CostOfSalesAndGeneralExpenses",
       "weight": 1.0,
       "order": 14.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Delay expenses",
        "label": "Delay Expenses",
        "documentation": "Delay Expenses"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DepreciationAndAmortisationExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DepreciationAndAmortisationExpense",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Depreciation and amortisation expense",
        "label": "Depreciation and amortisation expense"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of depreciation and amortisation expense. Depreciation and amortisation are the systematic allocations of depreciable amounts of assets over their useful lives."
       }
      }
     },
     "auth_ref": [
      "r114",
      "r198",
      "r206",
      "r341",
      "r384",
      "r447"
     ]
    },
    "ck0000932782_DepreciationAndAmortizationPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DepreciationAndAmortizationPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Depreciation and amortization",
        "label": "Depreciation And Amortization Property Plant And Equipment",
        "documentation": "Depreciation and amortization property plant and equipment."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DepreciationDepletionAndAmortization1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DepreciationDepletionAndAmortization1",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofResultsofOperationsforOilandGasProducingActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Depreciation, depletion, amortization and accretion",
        "label": "Depreciation, depletion and amortization1",
        "documentation": "Depreciation, depletion and amortization."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DepreciationOfPropertiesPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DepreciationOfPropertiesPlantAndEquipment",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail": {
       "parentTag": "ck0000932782_CostOfSalesAndGeneralExpenses",
       "weight": 1.0,
       "order": 16.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Depreciation of wells, pipelines, properties, plant and equipment, depreciation and impairment of rights of use and amortization of intangible assets",
        "label": "Depreciation Of Properties Plant And Equipment",
        "documentation": "Depreciation of properties plant and equipment."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DepreciationRightofuseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DepreciationRightofuseAssets",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperationsBeforeChangesInWorkingCapital",
       "weight": 1.0,
       "order": 10.0
      },
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows",
      "http://mexicopetroleum.com/role/LeasesSummaryofleaseliabilitiesrecognizedinstatementofcomprehensiveincomeDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Depreciation of rights of use",
        "label": "Depreciation, right-of-use assets"
       }
      }
     },
     "auth_ref": [
      "r136",
      "r240"
     ]
    },
    "ck0000932782_DepreciationToRightofuseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DepreciationToRightofuseAssets",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesSummaryofrightofuseassetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Depreciation of the year",
        "label": "Depreciation To Rightofuse Assets",
        "documentation": "Depreciation to right of use assets."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DerivativeFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DerivativeFinancialAssets",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValueofDFIsincludedinStatementofFinancialPositionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Total assets",
        "label": "Derivative financial assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of financial assets classified as derivative instruments. [Refer: Financial assets; Derivatives [member]]"
       }
      }
     },
     "auth_ref": [
      "r614"
     ]
    },
    "ck0000932782_DerivativeFinancialAssetsLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DerivativeFinancialAssetsLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValueofDFIsincludedinStatementofFinancialPositionDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValuesandNotionalAmountsofDFIsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Net total",
        "label": "Derivative Financial Assets (Liabilities)",
        "documentation": "Derivative Financial Assets (Liabilities)"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DerivativeFinancialAssetsLiabilitiesNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DerivativeFinancialAssetsLiabilitiesNet",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net fair value of derivative financial instruments",
        "label": "Derivative Financial Assets Liabilities, Net",
        "documentation": "Derivative financial assets liabilities, net."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DerivativeFinancialInstrumentsAndDebtPortfolioToParallelShiftBasisPoints": {
     "xbrltype": "pureItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DerivativeFinancialInstrumentsAndDebtPortfolioToParallelShiftBasisPoints",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "DFIs and debt portfolio to parallel shift basis points",
        "label": "derivative financial instruments and debt portfolio to parallel shift basis points",
        "documentation": "derivative financial instruments and debt portfolio to parallel shift basis points."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DerivativeFinancialInstrumentsIncomeCostNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DerivativeFinancialInstrumentsIncomeCostNet",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss": {
       "parentTag": "ck0000932782_BeforeShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative financial instruments income (cost), net",
        "verboseLabel": "Derivative financial instruments income (cost) , net",
        "label": "Derivative financial instruments income (cost), net",
        "documentation": "Derivative financial instruments income (cost), net."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DerivativeFinancialInstrumentsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DerivativeFinancialInstrumentsTable",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofCurrentandPotentialExposuresandAggregatedbyCreditRatingDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofInterestRateSensitivityDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative financial instruments [table]",
        "label": "Derivative financial instruments [table]",
        "documentation": "Derivative financial instruments."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DerivativeFinancialLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DerivativeFinancialLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValueofDFIsincludedinStatementofFinancialPositionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Total liabilities",
        "label": "Derivative financial liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of financial liabilities classified as derivative instruments. [Refer: Financial assets; Derivatives [member]]"
       }
      }
     },
     "auth_ref": [
      "r614"
     ]
    },
    "ck0000932782_DerivativeLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DerivativeLiabilitiesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative financial instruments",
        "label": "Derivative liabilities [member]",
        "documentation": "Derivative liabilities for financial liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DerivativeMonetaryNotionalAmountMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DerivativeMonetaryNotionalAmountMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValuesandNotionalAmountsofDFIsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subtotal",
        "label": "Derivative, Monetary Notional Amount [Member]",
        "documentation": "Derivative, Monetary Notional Amount"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DerivativeVolumeNotionalAmountMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DerivativeVolumeNotionalAmountMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValuesandNotionalAmountsofDFIsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subtotal",
        "label": "Derivative, Volume Notional Amount [Member]",
        "documentation": "Derivative, Volume Notional Amount"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DerivativesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DerivativesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative financial instruments",
        "label": "Derivatives [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for financial instruments or other contracts within the scope of IFRS 9 with all three of the following characteristics: (a) Their value changes in response to the change in a specified interest rate, financial instrument price, commodity price, foreign exchange rate, index of prices or rates, credit rating or credit index, or other variable, provided in the case of a non-financial variable that the variable is not specific to a party to the contract (sometimes called the \u2018underlying\u2019); (b) They require no initial net investment or an initial net investment that is smaller than would be required for other types of contracts that would be expected to have a similar response to changes in market factors; (c) They are settled at a future date. [Refer: Classes of financial instruments [domain]]"
       }
      }
     },
     "auth_ref": [
      "r405",
      "r407",
      "r420",
      "r430"
     ]
    },
    "ck0000932782_DerivativesNotDesignatedAsHedgesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DerivativesNotDesignatedAsHedgesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValueofDFIsincludedinStatementofFinancialPositionDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofNetGainLossRecognizedinIncomeonDerivativeFinancialInstrumentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivatives not designated as hedges",
        "label": "Derivatives not designated as hedges [member]",
        "documentation": "Derivatives not designated as hedges [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DescriptionOfAccountingPolicyForBasisOfConsolidationExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DescriptionOfAccountingPolicyForBasisOfConsolidationExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Basis of consolidation",
        "label": "Description of accounting policy for basis of consolidation [text block]",
        "documentation": "The description of the entity's accounting policy for basis of consolidation."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DescriptionOfAccountingPolicyForContingenciesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DescriptionOfAccountingPolicyForContingenciesExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Contingencies",
        "label": "Description Of Accounting Policy For Contingencies [text block]",
        "documentation": "Description of accounting policy for contingencies."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DescriptionOfAccountingPolicyForCrudeOilAndNaturalGasReservesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DescriptionOfAccountingPolicyForCrudeOilAndNaturalGasReservesExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Crude oil and natural gas reserves",
        "label": "Description Of Accounting Policy For Crude Oil And Natural Gas Reserves [text block]",
        "documentation": "Description of accounting policy for crude oil and natural gas reserves."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DescriptionOfAccountingPolicyForEmployeeBenefitsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForEmployeeBenefitsExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Employee benefits",
        "label": "Description of accounting policy for employee benefits [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for employee benefits. Employee benefits are all forms of consideration given by an entity in exchange for services rendered by employees or for the termination of employment."
       }
      }
     },
     "auth_ref": [
      "r611"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForEnvironmentRelatedExpenseExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForEnvironmentRelatedExpenseExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Renewable fuels obligation",
        "label": "Description of accounting policy for environment related expense [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for environment related expense."
       }
      }
     },
     "auth_ref": [
      "r611"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForFairValueMeasurementExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForFairValueMeasurementExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair value",
        "label": "Description of accounting policy for fair value measurement [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for fair value measurement. [Refer: At fair value [member]]"
       }
      }
     },
     "auth_ref": [
      "r611"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForFinancialInstrumentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForFinancialInstrumentsExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial instruments",
        "label": "Description of accounting policy for financial instruments [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for financial instruments. [Refer: Classes of financial instruments [domain]]"
       }
      }
     },
     "auth_ref": [
      "r611"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForForeignCurrencyTranslationExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForForeignCurrencyTranslationExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Foreign currency",
        "label": "Description of accounting policy for foreign currency translation [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for foreign currency translation."
       }
      }
     },
     "auth_ref": [
      "r611"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForGovernmentGrants": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForGovernmentGrants",
     "presentation": [
      "http://mexicopetroleum.com/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Government grants (Revenues from FONADIN)",
        "label": "Description of accounting policy for government grants [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's accounting policy for government grants, including the methods of presentation adopted in the financial statements. [Refer: Government [member]; Government grants]"
       }
      }
     },
     "auth_ref": [
      "r42",
      "r289"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForImpairmentOfNonfinancialAssetsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForImpairmentOfNonfinancialAssetsExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Impairment of non-financial assets",
        "label": "Description of accounting policy for impairment of non-financial assets [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for the impairment of non-financial assets. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r611"
     ]
    },
    "ck0000932782_DescriptionOfAccountingPolicyForIncomeTaxesAndDutiesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DescriptionOfAccountingPolicyForIncomeTaxesAndDutiesExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Income taxes, duties and royalties",
        "label": "Description Of Accounting Policy For Income Taxes And Duties [text block]",
        "documentation": "Description of accounting policy for income taxes and duties."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DescriptionOfAccountingPolicyForIntangibleAssetsAndOilAndNaturalGasExplorationAndLicenseAppraisalAndDevelopmentExpenditureExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DescriptionOfAccountingPolicyForIntangibleAssetsAndOilAndNaturalGasExplorationAndLicenseAppraisalAndDevelopmentExpenditureExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Intangible assets and oil and natural gas exploration and license, appraisal and development expenditure",
        "label": "Description of accounting policy for Intangible assets and oil and natural gas exploration and license, appraisal and development expenditure [text block]",
        "documentation": "Description of accounting policy for Intangible assets and oil and natural gas exploration and license, appraisal and development expenditure."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DescriptionOfAccountingPolicyForInventoriesAndCostOfSalesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DescriptionOfAccountingPolicyForInventoriesAndCostOfSalesExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Inventories and cost of sales",
        "label": "Description Of Accounting Policy For Inventories And Cost Of Sales [text block]",
        "documentation": "Description of accounting policy for inventories and cost of sales."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DescriptionOfAccountingPolicyForLeasesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForLeasesExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Leases",
        "label": "Description of accounting policy for leases [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for leases. A lease is an agreement whereby the lessor conveys to the lessee in return for a payment or series of payments the right to use an asset for an agreed period of time."
       }
      }
     },
     "auth_ref": [
      "r611"
     ]
    },
    "ck0000932782_DescriptionOfAccountingPolicyForOperatingSegmentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DescriptionOfAccountingPolicyForOperatingSegmentsExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Operating segments",
        "label": "Description of accounting policy for operating segments [text block]",
        "documentation": "Description of accounting policy for operating segments."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DescriptionOfAccountingPolicyForPresentationOfConsolidatedStatementsOfComprehensiveIncomeExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DescriptionOfAccountingPolicyForPresentationOfConsolidatedStatementsOfComprehensiveIncomeExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Presentation of consolidated statements of comprehensive income",
        "label": "Description Of Accounting Policy For Presentation Of Consolidated Statements Of Comprehensive Income [text block]",
        "documentation": "Description of accounting policy for presentation of consolidated statements of comprehensive income."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DescriptionOfAccountingPolicyForProvisionsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForProvisionsExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Provisions",
        "label": "Description of accounting policy for provisions [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for provisions. [Refer: Provisions]"
       }
      }
     },
     "auth_ref": [
      "r611"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForRecognitionOfRevenue": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForRecognitionOfRevenue",
     "presentation": [
      "http://mexicopetroleum.com/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Revenue from contracts with customers",
        "label": "Description of accounting policy for recognition of revenue [text block]"
       }
      }
     },
     "auth_ref": [
      "r611"
     ]
    },
    "ck0000932782_DescriptionOfAccountingPolicyForTaxCreditIncentivePolicyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DescriptionOfAccountingPolicyForTaxCreditIncentivePolicyTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Incentive for automotive fuels",
        "label": "Description Of Accounting Policy For Tax Credit Incentive [Policy Text Block]",
        "documentation": "Description Of Accounting Policy For Tax Credit Incentive"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DescriptionOfAccountingPolicyForWellsPipelinesPropertiesPlantAndEquipmentExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DescriptionOfAccountingPolicyForWellsPipelinesPropertiesPlantAndEquipmentExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/MaterialAccountingPoliciesPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Wells, pipelines, properties, plant and equipment",
        "label": "Description Of Accounting Policy For Wells Pipelines Properties Plant And Equipment [text block]",
        "documentation": "Description of accounting policy for wells pipelines properties plant and equipment."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DescriptionOfExpectedImpactOfInitialApplicationOfNewStandardsOrInterpretations": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfExpectedImpactOfInitialApplicationOfNewStandardsOrInterpretations",
     "presentation": [
      "http://mexicopetroleum.com/role/NewAccountingStandardAndRecentlyIssuedAccountingStandards"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "New Accounting Standard And Recently Issued Accounting Standards",
        "label": "Disclosure of expected impact of initial application of new standards or interpretations [text block]"
       }
      }
     },
     "auth_ref": [
      "r94",
      "r260"
     ]
    },
    "ck0000932782_DevelopedAndUndevelopedDryGasReservesNetPeriodDecrease": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DevelopedAndUndevelopedDryGasReservesNetPeriodDecrease",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Developed and undeveloped dry gas reserves increase decrease",
        "label": "Developed And Undeveloped Dry Gas Reserves Net Period Decrease",
        "documentation": "Developed and undeveloped dry gas reserves net period decrease."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DevelopedAndUndevelopedDryGasReservesNetPeriodIncreasedPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DevelopedAndUndevelopedDryGasReservesNetPeriodIncreasedPercentage",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of developed and undeveloped dry gas reserves increased",
        "label": "Developed And Undeveloped Dry Gas Reserves Net Period Increased Percentage",
        "documentation": "Developed and undeveloped dry gas reserves net period increased percentage."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DevelopedAndUndevelopedReserveAddedToOffset": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DevelopedAndUndevelopedReserveAddedToOffset",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Developed and undeveloped reserves added to offset",
        "label": "Developed And Undeveloped Reserve Added To Offset",
        "documentation": "Developed and undeveloped reserve added to offset."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DevelopedAndUndevelopedReservesNetPeriodIncreaseDecrease": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DevelopedAndUndevelopedReservesNetPeriodIncreaseDecrease",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Developed and undeveloped reserves increase decrease",
        "label": "Developed And Undeveloped Reserves Net Period Increase Decrease",
        "documentation": "Developed and undeveloped reserves net period increase decrease."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DevelopedAndUndevelopedReservesNetPeriodIncreasePercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DevelopedAndUndevelopedReservesNetPeriodIncreasePercentage",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of developed and undeveloped reserves",
        "label": "Developed And Undeveloped Reserves Net Period Increase Percentage",
        "documentation": "Developed and undeveloped reserves net Period increase percentage."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DevelopedDryGasReservesNetPeriodDecrease": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DevelopedDryGasReservesNetPeriodDecrease",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Developed dry gas reserves increase decrease",
        "label": "Developed Dry Gas Reserves Net Period Decrease",
        "documentation": "Developed dry gas reserves net period decrease."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DevelopedDryGasReservesNetPeriodIncreasePercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DevelopedDryGasReservesNetPeriodIncreasePercentage",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of developed dry gas reserves increase",
        "label": "Developed Dry Gas Reserves Net Period Increase Percentage",
        "documentation": "Developed dry gas reserves net period increase percentage."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DevelopedReservesNetPeriodIncreaseDecrease": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DevelopedReservesNetPeriodIncreaseDecrease",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Developed reserves increase decrease",
        "label": "Developed Reserves Net Period Increase Decrease",
        "documentation": "Developed reserves net period increase decrease."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DevelopedReservesNetPeriodIncreasePercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DevelopedReservesNetPeriodIncreasePercentage",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of developed reserves",
        "label": "Developed Reserves Net Period Increase Percentage",
        "documentation": "Developed reserves net period increase percentage."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DevelopmentCostIncurredDuringPeriod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DevelopmentCostIncurredDuringPeriod",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofChangesinstandardizedMeasureofDiscountedFutureNetCashFlowsDetail": {
       "parentTag": "srt_StandardizedMeasureOfDiscountedFutureNetCashFlowOfProvedOilAndGasReservesPeriodIncreaseDecrease",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofChangesinstandardizedMeasureofDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Development cost incurred during the year",
        "label": "Development Cost Incurred During Period",
        "documentation": "Development cost incurred during period."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DfiNotionalAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DfiNotionalAmount",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryOfPortfolioofFinancialInstrumentsComposedofDebtInstrumentsandDFIDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "DFI Notional Amount",
        "label": "DFI Notional Amount",
        "documentation": "DFI notional amount."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DieselMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DieselMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Diesel",
        "label": "Diesel member",
        "documentation": "Diesel."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DifferenceBetweenAccountingAndTaxDepreciationOfWellsPipelinesPropertiesPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DifferenceBetweenAccountingAndTaxDepreciationOfWellsPipelinesPropertiesPlantAndEquipment",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingtheDeferredDUCDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Wells, pipelines, properties, plant and equipment",
        "label": "Difference between accounting and tax depreciation of Wells, pipelines, properties, plant and equipment",
        "documentation": "Difference between accounting and tax depreciation of Wells, pipelines, properties, plant and equipment."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DirectLoansMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DirectLoansMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Direct loans",
        "label": "Direct loans [member]",
        "documentation": "Direct loans."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureInDetailOfTransactionsBetweenRelatedPartiesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureInDetailOfTransactionsBetweenRelatedPartiesExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/RelatedPartiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Products Acquisition from Pemex Industrial Transformation",
        "label": "Disclosure in detail of transactions between related parties [text block]",
        "documentation": "Tabular disclosure of transactions between related parties."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfAccountsReceivableBasedOnTheirCreditHistoryTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfAccountsReceivableBasedOnTheirCreditHistoryTableTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Breakdown of Accounts Receivable Based on Credit History",
        "label": "Disclosure of Accounts Receivable Based On Their Credit History [Table Text Block]",
        "documentation": "The disclosure of disclosure of accounts receivable based on their credit history."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfAuthorizationAndBasisOfPreparationExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfAuthorizationAndBasisOfPreparationExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/AuthorizationandBasisofPreparation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Authorization and Basis of Preparation",
        "label": "Disclosure of authorization and basis of preparation [text block]",
        "documentation": "Disclosure of authorization and basis of preparation [text block]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfAverageSalesPricesForOilAndGasProductionExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfAverageSalesPricesForOilAndGasProductionExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Results of Operations for Oil and Gas Producing Activities",
        "label": "Disclosure Of Average Sales Prices For Oil And Gas Production [table text block]",
        "documentation": "Disclosure of average sales prices for oil and gas production explanatory."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfBasisOfPreparationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfBasisOfPreparationAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure Of Basis Of Preparation [abstract]",
        "label": "Disclosure of basis of preparation [Abstract]",
        "documentation": "Disclosure of basis of preparation."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfCapitalizedCostsForOilAndGasProductionExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfCapitalizedCostsForOilAndGasProductionExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Capitalized Costs for Oil and Gas Producing Activities",
        "label": "Disclosure Of Capitalized Costs For Oil And Gas Production [text block]",
        "documentation": "The disclosure of capitalized costs for oil and gas production."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfCashAndCashEquivalentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfCashAndCashEquivalentsExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/CashandCashEquivalents"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cash and Cash Equivalents",
        "label": "Disclosure of cash and cash equivalents [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of cash and cash equivalents. [Refer: Cash and cash equivalents]"
       }
      }
     },
     "auth_ref": [
      "r605"
     ]
    },
    "ifrs-full_DisclosureOfChangesInAccountingEstimatesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfChangesInAccountingEstimatesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of changes in accounting estimates [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfChangesInConsolidatedDebtExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfChangesInConsolidatedDebtExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Changes in Consolidated Debt",
        "label": "Disclosure of Changes in Consolidated Debt [text block]",
        "documentation": "The disclosure of changes in consolidated debt."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfChangesInConsolidatedDebtTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfChangesInConsolidatedDebtTable",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofChangesinConsolidatedDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure Of Changes In Consolidated Debt [table]",
        "label": "Disclosure Of Changes In Consolidated Debt [table]",
        "documentation": "Disclosure Of Changes In Consolidated Debt [table]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfChangesInStandardizedMeasureOfDiscountedFutureNetCashFlowsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfChangesInStandardizedMeasureOfDiscountedFutureNetCashFlowsExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of Changes in Standardized Measure of Discounted Future Net Cash Flows",
        "label": "Disclosure Of Changes In Standardized Measure Of Discounted Future Net Cash Flows [text block]",
        "documentation": "Disclosure of changes in standardized measure of discounted future net cash flows."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfCommitmentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfCommitmentsExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/Commitments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Commitments",
        "label": "Disclosure of commitments [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of commitments."
       }
      }
     },
     "auth_ref": [
      "r605"
     ]
    },
    "ck0000932782_DisclosureOfComponentsOfDeferredIncomeExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfComponentsOfDeferredIncomeExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Principal Factors Generating Deferred Income Tax",
        "label": "Disclosure Of Components Of Deferred Income [text block]",
        "documentation": "The disclosure of components of deferred income."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfComponentsOfEquityTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfComponentsOfEquityTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficit"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity (Deficit)",
        "label": "Disclosure Of Components of Equity [text block]",
        "documentation": "Disclosure of components of equity."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfComponentsOfIncomeTaxExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfComponentsOfIncomeTaxExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Income Tax Expense (Benefit)",
        "label": "Disclosure of components of income tax [text block]",
        "documentation": "Disclosure of components of income tax."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfConsolidatedAndSeparateFinancialStatementsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfConsolidatedAndSeparateFinancialStatementsExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Consolidated and Separate Financial Statements",
        "label": "Disclosure of information about separate financial statements [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of information about separate financial statements."
       }
      }
     },
     "auth_ref": [
      "r59",
      "r118"
     ]
    },
    "ifrs-full_DisclosureOfContingentLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfContingentLiabilitiesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of contingent liabilities [abstract]",
        "label": "Disclosure of contingent liabilities [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfContingentLiabilitiesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfContingentLiabilitiesExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/Contingencies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Contingencies",
        "label": "Disclosure of contingent liabilities [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of contingent liabilities. [Refer: Classes of contingent liabilities [domain]]"
       }
      }
     },
     "auth_ref": [
      "r68",
      "r300"
     ]
    },
    "ifrs-full_DisclosureOfContingentLiabilitiesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfContingentLiabilitiesLineItems",
     "presentation": [
      "http://mexicopetroleum.com/role/ContingenciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of contingent liabilities [line items]",
        "label": "Disclosure of contingent liabilities [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfContingentLiabilitiesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfContingentLiabilitiesTable",
     "presentation": [
      "http://mexicopetroleum.com/role/ContingenciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of contingent liabilities [table]",
        "label": "Disclosure of contingent liabilities [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to contingent liabilities."
       }
      }
     },
     "auth_ref": [
      "r68",
      "r300"
     ]
    },
    "ck0000932782_DisclosureOfContractualMaturitiesExplanatoryTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfContractualMaturitiesExplanatoryTableTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Details of Quantitative Disclosure of Debt Cash Flow's Maturities",
        "label": "Disclosure of Contractual Maturities Explanatory [Table Text Block]",
        "documentation": "Disclosure of Contractual Maturities Explanatory"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfCostAndExpensesByNatureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfCostAndExpensesByNatureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of cost and expenses by nature [abstract]",
        "label": "Disclosure of cost and expenses by nature [abstract]",
        "documentation": "Disclosure of cost and expenses by nature [abstract]."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfCostAndExpensesByNatureExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfCostAndExpensesByNatureExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/CostandExpensesbyNature"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cost and Expenses by Nature",
        "label": "Disclosure of cost and expenses by nature [text block]",
        "documentation": "Disclosure of cost and expenses by nature [text block]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfCreditPerformanceExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfCreditPerformanceExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstruments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Derivative Financial Instruments",
        "label": "Disclosure of credit performance [text block]",
        "documentation": "Disclosure of credit performance."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfDebtExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfDebtExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/Debt"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt",
        "label": "Disclosure Of Debt [text block]",
        "documentation": "Disclosure Of Debt [text block]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfDebtLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfDebtLineItems",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofMaturitiesofLongTermDebtPrincipalOutstandingandAccruedInterestDetail",
      "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesScheduleofAmortizationofLongTermContractualLiabilitiesDetails",
      "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesScheduleofContractualLongTermliabilityFairValuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure Of Debt [Line Items]",
        "label": "Disclosure Of Debt [Line Items]",
        "documentation": "Disclosure Of Debt [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfDebtTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfDebtTable",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofMaturitiesofLongTermDebtPrincipalOutstandingandAccruedInterestDetail",
      "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesScheduleofAmortizationofLongTermContractualLiabilitiesDetails",
      "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesScheduleofContractualLongTermliabilityFairValuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure Of Debt [table]",
        "label": "Disclosure Of Debt [table]",
        "documentation": "Disclosure of debt [table]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfDeferredTaxLiabilityAssetTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfDeferredTaxLiabilityAssetTableTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Principal Factors Generating the Deferred DUC",
        "label": "Disclosure of deferred tax liability asset [Table Text Block]",
        "documentation": "The disclosure of deferred tax liability asset."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfDefinedBenefitPlansAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDefinedBenefitPlansAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of defined benefit plans [abstract]",
        "label": "Disclosure of defined benefit plans [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfDefinedBenefitPlansExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDefinedBenefitPlansExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Amounts Associated with PEMEX's Labor Obligations",
        "label": "Disclosure of defined benefit plans [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of defined benefit plans. [Refer: Defined benefit plans [domain]]"
       }
      }
     },
     "auth_ref": [
      "r23",
      "r279"
     ]
    },
    "ifrs-full_DisclosureOfDefinedBenefitPlansLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDefinedBenefitPlansLineItems",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofActuarialAssumptionsDetails",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsAssociatedWithPEMEXsLaborObligationsDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsRecognizedforOtherLongtermObligationsDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsandTypesofPlanAssetsDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofPrincipalActuarialAssumptionsUsedinDeterminingtheDefinedBenefitObligationDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofRetirementandPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of defined benefit plans [line items]",
        "label": "Disclosure of defined benefit plans [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfDefinedBenefitPlansTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDefinedBenefitPlansTable",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofActuarialAssumptionsDetails",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsAssociatedWithPEMEXsLaborObligationsDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofRetirementandPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of defined benefit plans [table]",
        "label": "Disclosure of defined benefit plans [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to defined benefit plans."
       }
      }
     },
     "auth_ref": [
      "r23",
      "r279"
     ]
    },
    "ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDetailedInformationAboutBorrowingsExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Long-term Debt",
        "label": "Disclosure of detailed information about borrowings [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of detailed information about borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r594"
     ]
    },
    "ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDetailedInformationAboutBorrowingsLineItems",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of detailed information about borrowings [line items]",
        "label": "Disclosure of detailed information about borrowings [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDetailedInformationAboutBorrowingsTable",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail",
      "http://mexicopetroleum.com/role/LeasesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of detailed information about borrowings [table]",
        "label": "Disclosure of detailed information about borrowings [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to details of borrowings."
       }
      }
     },
     "auth_ref": [
      "r594"
     ]
    },
    "ck0000932782_DisclosureOfDetailedInformationAboutCashAndCashEquivalentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfDetailedInformationAboutCashAndCashEquivalentsExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/CashandCashEquivalentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Cash and Cash Equivalents",
        "label": "Disclosure of detailed information about cash and cash equivalents [text block]",
        "documentation": "The disclosure for detailed information about cash and cash equivalent."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfDetailedInformationAboutCostAndExpensesByNatureExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfDetailedInformationAboutCostAndExpensesByNatureExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Costs and Expenses by Nature",
        "label": "Disclosure of detailed information about cost and expenses by nature [text block]",
        "documentation": "Disclosure of detailed information about cost and expenses by nature [text block]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfDetailedInformationAboutHedgingInstrumentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDetailedInformationAboutHedgingInstrumentsExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Fair Values and Notional Amounts of DFIs that were designated as non-hedges",
        "label": "Disclosure of detailed information about hedging instruments [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of detailed information about hedging instruments. [Refer: Hedging instruments [domain]]"
       }
      }
     },
     "auth_ref": [
      "r171",
      "r323",
      "r326"
     ]
    },
    "ifrs-full_DisclosureOfDetailedInformationAboutHedgingInstrumentsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDetailedInformationAboutHedgingInstrumentsTable",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValuesandNotionalAmountsofDFIsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of detailed information about hedging instruments [table]",
        "label": "Disclosure of detailed information about hedging instruments [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to details of hedging instruments."
       }
      }
     },
     "auth_ref": [
      "r171",
      "r323"
     ]
    },
    "ifrs-full_DisclosureOfDetailedInformationAboutIntangibleAssetsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDetailedInformationAboutIntangibleAssetsExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/IntangibleAssetsNetTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Intangible Assets, Net are Wells Unassigned to a Reserve",
        "label": "Disclosure of detailed information about intangible assets [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of detailed information about intangible assets. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r76",
      "r306"
     ]
    },
    "ck0000932782_DisclosureOfDetailedInformationAboutInventoriesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfDetailedInformationAboutInventoriesExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/InventoriesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Inventories",
        "label": "Disclosure of detailed information about inventories [text block]",
        "documentation": "The disclosure of detailed information about inventories."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfDetailedInformationAboutMaximumCreditExposureByTermIncludingDebtExplanatoryTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfDetailedInformationAboutMaximumCreditExposureByTermIncludingDebtExplanatoryTableTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary Maximum Credit Exposure by term in Petr\u00f3leos Mexicanos including debt",
        "label": "Disclosure Of Detailed Information About Maximum Credit Exposure By Term Including Debt Explanatory [Table Text Block]",
        "documentation": "Disclosure of detailed information about maximum credit exposure by term including debt explanatory."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfDetailedInformationAboutOutstandingBalanceOfGovernmentBondsExplanatoryTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfDetailedInformationAboutOutstandingBalanceOfGovernmentBondsExplanatoryTableTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Balance of Government Bonds",
        "label": "Disclosure Of Detailed Information About Outstanding Balance Of Government Bonds Explanatory [Table Text Block]",
        "documentation": "Disclosure of detailed information about outstanding balance of government bonds explanatory [Table Text block]."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Detailed Information About Property, Plant and Equipment",
        "label": "Disclosure of detailed information about property, plant and equipment [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of detailed information about property, plant and equipment. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r19",
      "r277"
     ]
    },
    "ck0000932782_DisclosureOfDetailedInformationAboutRollForwardRelatedToTheMexicanBondsExplanatoryTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfDetailedInformationAboutRollForwardRelatedToTheMexicanBondsExplanatoryTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Roll forward of the Mexican Bonds",
        "label": "Disclosure Of Detailed Information about Roll Forward Related To The Mexican Bonds Explanatory [Text Block]",
        "documentation": "Disclosure Of Detailed Information about Roll Forward Related To The Mexican Bonds Explanatory."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfDisaggregationOfRevenueFromContractsWithCustomersAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDisaggregationOfRevenueFromContractsWithCustomersAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of disaggregation of revenue from contracts with customers [abstract]",
        "label": "Disclosure of disaggregation of revenue from contracts with customers [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfDisaggregationOfRevenueFromContractsWithCustomersExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDisaggregationOfRevenueFromContractsWithCustomersExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Revenue Disaggregation",
        "label": "Disclosure of disaggregation of revenue from contracts with customers [text block]"
       }
      }
     },
     "auth_ref": [
      "r127",
      "r236"
     ]
    },
    "ifrs-full_DisclosureOfDisaggregationOfRevenueFromContractsWithCustomersLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDisaggregationOfRevenueFromContractsWithCustomersLineItems",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of disaggregation of revenue from contracts with customers [line items]",
        "label": "Disclosure of disaggregation of revenue from contracts with customers [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfDisaggregationOfRevenueFromContractsWithCustomersTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDisaggregationOfRevenueFromContractsWithCustomersTable",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of disaggregation of revenue from contracts with customers [table]",
        "label": "Disclosure of disaggregation of revenue from contracts with customers [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to the disaggregation of revenue from contracts with customers."
       }
      }
     },
     "auth_ref": [
      "r127",
      "r236"
     ]
    },
    "ck0000932782_DisclosureOfDutiesAndOthersExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfDutiesAndOthersExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Total DUC and Others",
        "label": "Disclosure of Duties and Others [text block]",
        "documentation": "Disclosure of Duties and Others [text block]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfDutiesAndOthersTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfDutiesAndOthersTable",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxesandDutiesPayableDetail",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofTotalDUCandOthersDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure Of Duties And Others [table]",
        "label": "Disclosure Of Duties And Others [table]",
        "documentation": "Disclosure Of Duties And Others [table]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfEmployeeBenefitsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfEmployeeBenefitsExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefits"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Employee Benefits",
        "label": "Disclosure of employee benefits [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for employee benefits."
       }
      }
     },
     "auth_ref": [
      "r39"
     ]
    },
    "ifrs-full_DisclosureOfEntitysReportableSegmentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfEntitysReportableSegmentsExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/SegmentFinancialInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Segment Financial Information",
        "label": "Disclosure of entity's operating segments [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for operating segments."
       }
      }
     },
     "auth_ref": [
      "r213"
     ]
    },
    "ck0000932782_DisclosureOfEquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfEquityAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure Of Equity [abstract]",
        "label": "Disclosure Of Equity [abstract]",
        "documentation": "Disclosure of equity."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfEquityContributedEquityExplanatoryTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfEquityContributedEquityExplanatoryTableTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Certificate of Contribution \"A\"",
        "label": "Disclosure of Equity Contributed Equity Explanatory [Table Text Block]",
        "documentation": "The disclosure of equity contributed equity."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfEquityLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfEquityLineItems",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofCertificateofContributionADetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of equity [line items]",
        "label": "Disclosure of equity [line items]",
        "documentation": "Disclosure of equity [line items]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfEquityTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfEquityTable",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofCertificateofContributionADetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of equity [table]",
        "label": "Disclosure of equity [table]",
        "documentation": "Disclosure of equity [table]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfEstimatedFutureContractPaymentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfEstimatedFutureContractPaymentsExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/CommitmentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Estimated Future Payments Under Contract",
        "label": "Disclosure of estimated future contract payments[text block]",
        "documentation": "The disclosure of estimated future contract payments."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfEstimatedFutureLeasePaymentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfEstimatedFutureLeasePaymentsExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/CommitmentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Future Payments for Lease",
        "label": "Disclosure of estimated future lease payments [text block]",
        "documentation": "Disclosure of estimated future lease payments [text block]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfEventsAfterReportingPeriodExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfEventsAfterReportingPeriodExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsequentEvents"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subsequent Events",
        "label": "Disclosure of events after reporting period [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for events after the reporting period."
       }
      }
     },
     "auth_ref": [
      "r2"
     ]
    },
    "ck0000932782_DisclosureOfExpectedBenefitForDucExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfExpectedBenefitForDucExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Expected Benefit for DUC",
        "label": "Disclosure of Expected Benefit for DUC [text block]",
        "documentation": "The disclosure of expected benefit for DUC."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfExpectedBenefitForDucTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfExpectedBenefitForDucTable",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxExpenseBenefitDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure Of Expected Benefit For DUC [table]",
        "label": "Disclosure Of Expected Benefit For DUC [table]",
        "documentation": "Disclosure Of Expected Benefit For DUC [table]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfExplorationAndEvaluationAssetsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfExplorationAndEvaluationAssetsExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Costs Incurred for Oil and Gas Property Exploration and Development Activities",
        "label": "Disclosure of exploration and evaluation assets [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for exploration and evaluation assets."
       }
      }
     },
     "auth_ref": [
      "r166"
     ]
    },
    "ifrs-full_DisclosureOfFairValueMeasurementOfAssetsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfFairValueMeasurementOfAssetsExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Additional Fair value Disclosure About Plan Assets and Indicate Their Rank",
        "label": "Disclosure of fair value measurement of assets [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of the fair value measurement of assets."
       }
      }
     },
     "auth_ref": [
      "r123",
      "r335"
     ]
    },
    "ck0000932782_DisclosureOfFairValueOfDerivativeInstrumentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfFairValueOfDerivativeInstrumentsExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Details of Interest Rate Sensitivity",
        "label": "Disclosure of fair value of derivative instruments [text block]",
        "documentation": "Disclosure of fair value of derivative instruments."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfFairValueOfDerivativesAndClassificationOnConsolidatedStatementsOfFinancialPositionExplanatoryTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfFairValueOfDerivativesAndClassificationOnConsolidatedStatementsOfFinancialPositionExplanatoryTableTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Location on the Consolidated Statement of Financial Position and the Fair Value of DFIs",
        "label": "Disclosure Of Fair Value Of Derivatives And Classification On Consolidated Statements Of Financial Position Explanatory [Table Text Block]",
        "documentation": "Disclosure of fair value of derivatives and classification on consolidated statements of financial position"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfFairValueOfPlanAssetsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfFairValueOfPlanAssetsExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Amounts and Types of Plan Assets",
        "label": "Disclosure of fair value of plan assets [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of the fair value of defined benefit plan assets. [Refer: Plan assets [member]; Defined benefit plans [domain]]"
       }
      }
     },
     "auth_ref": [
      "r36",
      "r288"
     ]
    },
    "ifrs-full_DisclosureOfFairValueOfPlanAssetsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfFairValueOfPlanAssetsLineItems",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAdditionalFairvalueDisclosureAboutPlanAssetsandIndicateTheirRankDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of fair value of plan assets [line items]",
        "label": "Disclosure of fair value of plan assets [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfFairValueOfPlanAssetsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfFairValueOfPlanAssetsTable",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAdditionalFairvalueDisclosureAboutPlanAssetsandIndicateTheirRankDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsandTypesofPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of fair value of plan assets [table]",
        "label": "Disclosure of fair value of plan assets [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to the fair value of defined benefit plan assets."
       }
      }
     },
     "auth_ref": [
      "r36",
      "r288"
     ]
    },
    "ifrs-full_DisclosureOfFinancialInstrumentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfFinancialInstrumentsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of detailed information about financial instruments [abstract]",
        "label": "Disclosure of detailed information about financial instruments [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfFinancialInstrumentsByTypeOfInterestRateTable",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofInterestRateandCurrencyDerivativeFinancialInstrumentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of financial instruments by type of interest rate [table]",
        "label": "Disclosure of financial instruments by type of interest rate [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to financial instruments, by type of interest rate."
       }
      }
     },
     "auth_ref": [
      "r592"
     ]
    },
    "ifrs-full_DisclosureOfFinancialInstrumentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfFinancialInstrumentsExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/FinancialInstruments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial Instruments",
        "label": "Disclosure of financial instruments [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for financial instruments."
       }
      }
     },
     "auth_ref": [
      "r195"
     ]
    },
    "ifrs-full_DisclosureOfFinancialInstrumentsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfFinancialInstrumentsLineItems",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofCurrentandPotentialExposuresandAggregatedbyCreditRatingDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofInterestRateSensitivityDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofInterestRateandCurrencyDerivativeFinancialInstrumentsDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryOfPortfolioofFinancialInstrumentsComposedofDebtInstrumentsandDFIDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValueofDFIsincludedinStatementofFinancialPositionDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValuesandNotionalAmountsofDFIsDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFinancialLiabilitiesInterestAndPrincipalCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofNetGainLossRecognizedinIncomeonDerivativeFinancialInstrumentsDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail",
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of detailed information about financial instruments [line items]",
        "label": "Disclosure of detailed information about financial instruments [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfFinancialInstrumentsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfFinancialInstrumentsTable",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryOfPortfolioofFinancialInstrumentsComposedofDebtInstrumentsandDFIDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValueofDFIsincludedinStatementofFinancialPositionDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofNetGainLossRecognizedinIncomeonDerivativeFinancialInstrumentsDetail",
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of detailed information about financial instruments [table]",
        "label": "Disclosure of detailed information about financial instruments [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to details of financial instruments."
       }
      }
     },
     "auth_ref": [
      "r174",
      "r179",
      "r187",
      "r317"
     ]
    },
    "ck0000932782_DisclosureOfFinancialLiabilitiesInterestAndPrincipalCashFlowMaturitiesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfFinancialLiabilitiesInterestAndPrincipalCashFlowMaturitiesTable",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFinancialLiabilitiesInterestAndPrincipalCashFlowMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure Of Financial Liabilities Interest And Principal Cash Flow Maturities [Table]",
        "label": "Disclosure Of Financial Liabilities Interest And Principal Cash Flow Maturities [Table]",
        "documentation": "Disclosure Of Financial Liabilities Interest And Principal Cash Flow Maturities."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfFinancialLiabilitiesInterestAndPrincipalCashFlowMaturitiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfFinancialLiabilitiesInterestAndPrincipalCashFlowMaturitiesTableTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Summary of Financial Liabilities Interest And Principal Cash Flow Maturities",
        "label": "Disclosure Of Financial Liabilities Interest And Principal Cash Flow Maturities [Table Text Block]",
        "documentation": "Disclosure Of Financial Liabilities Interest And Principal Cash Flow Maturities."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfForeignCurrencyTranslationExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfForeignCurrencyTranslationExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Foreign Currency Translation",
        "label": "Disclosure Of Foreign Currency Translation [text block]",
        "documentation": "Disclosure of foreign currency translation."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfForeignCurrencyTranslationTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfForeignCurrencyTranslationTable",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofForeignCurrencyTranslationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure Of Foreign Currency Translation [table]",
        "label": "Disclosure Of Foreign Currency Translation [table]",
        "documentation": "Disclosure Of Foreign Currency Translation [table]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfGeographicalAreasLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfGeographicalAreasLineItems",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of geographical areas [line items]",
        "label": "Disclosure of geographical areas [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfGeographicalAreasTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfGeographicalAreasTable",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of geographical areas [table]",
        "label": "Disclosure of geographical areas [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to geographical areas."
       }
      }
     },
     "auth_ref": [
      "r211"
     ]
    },
    "ck0000932782_DisclosureOfGovernmentContributionsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfGovernmentContributionsLineItems",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofGovernmentContributionstoPetroleosMexicanosthroughtheMinistryofEnergyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of government contributions [line item]",
        "label": "Disclosure Of Government Contributions [Line Items]",
        "documentation": "Disclosure Of Government Contributions [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfGovernmentContributionsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfGovernmentContributionsTable",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofGovernmentContributionstoPetroleosMexicanosthroughtheMinistryofEnergyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of government contributions [table]",
        "label": "Disclosure Of Government Contributions [Table]",
        "documentation": "Disclosure Of Government Contributions [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfGovernmentContributionsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfGovernmentContributionsTableTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Government Contributions to Petr\u00f3leos Mexicanos through the Ministry of Energy",
        "label": "Disclosure Of Government Contributions [Table Text Block]",
        "documentation": "Disclosure of government contributions [table text block]."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfImpairmentLossAndReversalOfImpairmentLossExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfImpairmentLossAndReversalOfImpairmentLossExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Net Impairment and Net Reversal of Impairment",
        "label": "Disclosure of impairment loss and reversal of impairment loss [text block]"
       }
      }
     },
     "auth_ref": [
      "r60",
      "r296"
     ]
    },
    "ck0000932782_DisclosureOfImpairmentLossAndReversalOfImpairmentLossForCGUsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfImpairmentLossAndReversalOfImpairmentLossForCGUsTableTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Reversal Impairment loss for CGUs",
        "label": "Disclosure Of Impairment Loss And Reversal Of Impairment Loss For CGUs [Table Text Block]",
        "documentation": "Disclosure of impairment loss and reversal of impairment loss for CGUs [Text Block] ."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfImpairmentLossRecognisedOrReversedTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfImpairmentLossRecognisedOrReversedTable",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofValuesinUseforCGUImpairmentorReversalPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of impairment loss recognised or reversed for cash-generating unit [table]",
        "label": "Disclosure of impairment loss recognised or reversed for cash-generating unit [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to impairment loss recognised or reversed for a cash-generating unit."
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "ck0000932782_DisclosureOfIncomeByProductExplanatoryTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfIncomeByProductExplanatoryTableTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/SegmentFinancialInformationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Supplemental Geographic Information",
        "label": "Disclosure of income by product explanatory [Table Text Block]",
        "documentation": "Disclosure of income by product explanatory."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfIncomeTaxExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfIncomeTaxExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDuties"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Income Taxes and Duties",
        "label": "Disclosure of income tax [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for income taxes."
       }
      }
     },
     "auth_ref": [
      "r10"
     ]
    },
    "ck0000932782_DisclosureOfIncomeTaxesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfIncomeTaxesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of income taxes [abstract]",
        "label": "Disclosure of income taxes [abstract]",
        "documentation": "Disclosure of income taxes."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfIncomeTaxesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfIncomeTaxesLineItems",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpenseBenefitAttributabletoProfitLossfromContinuingOperationsbeforeIncomeTaxesDetail",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxExpenseBenefitDetail",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxesandDutiesPayableDetail",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingtheDeferredDUCDetail",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofTotalDUCandOthersDetail",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesWelfareOilDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of income taxes [line items]",
        "label": "Disclosure Of Income Taxes [line items]",
        "documentation": "Line items represent concepts included in income taxes."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfIncomeTaxesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfIncomeTaxesTable",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpenseBenefitAttributabletoProfitLossfromContinuingOperationsbeforeIncomeTaxesDetail",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesWelfareOilDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure Of Income Taxes [table]",
        "label": "Disclosure Of Income Taxes [table]",
        "documentation": "Schedule disclosing information related to income taxes."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfInformationAboutKeyManagementPersonnelExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfInformationAboutKeyManagementPersonnelExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/RelatedPartiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Retirement and Former Employee Benefits Granted",
        "label": "Disclosure of information about key management personnel [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of information about key management personnel. [Refer: Key management personnel of entity or parent [member]]"
       }
      }
     },
     "auth_ref": [
      "r605"
     ]
    },
    "ifrs-full_DisclosureOfInformationForEachMaterialImpairmentLossRecognisedOrReversedForIndividualAssetOrCashgeneratingUnitExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfInformationForEachMaterialImpairmentLossRecognisedOrReversedForIndividualAssetOrCashgeneratingUnitExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Recoverable Amount of Assets",
        "label": "Disclosure of information for impairment loss recognised or reversed for individual asset or cash-generating unit [text block]"
       }
      }
     },
     "auth_ref": [
      "r64"
     ]
    },
    "ifrs-full_DisclosureOfInformationForEachMaterialImpairmentLossRecognisedOrReversedForIndividualAssetOrCashgeneratingUnitLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfInformationForEachMaterialImpairmentLossRecognisedOrReversedForIndividualAssetOrCashgeneratingUnitLineItems",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofValuesinUseforCGUImpairmentorReversalPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of information for impairment loss recognised or reversed for individual asset or cash-generating unit [line items]",
        "label": "Disclosure of information for impairment loss recognised or reversed for individual asset or cash-generating unit [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfInformationForEachMaterialImpairmentLossRecognisedOrReversedForIndividualAssetOrCashgeneratingUnitTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfInformationForEachMaterialImpairmentLossRecognisedOrReversedForIndividualAssetOrCashgeneratingUnitTable",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of information for impairment loss recognised or reversed for individual asset or cash-generating unit [table]",
        "label": "Disclosure of information for impairment loss recognised or reversed for individual asset or cash-generating unit [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to an individual asset or a cash-generating unit, for which an impairment loss has been recognised or reversed."
       }
      }
     },
     "auth_ref": [
      "r64"
     ]
    },
    "ifrs-full_DisclosureOfIntangibleAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfIntangibleAssetsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of detailed information about intangible assets [abstract]",
        "label": "Disclosure of detailed information about intangible assets [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfIntangibleAssetsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfIntangibleAssetsExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/IntangibleAssetsNet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Intangible Assets, Net",
        "label": "Disclosure of intangible assets [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for intangible assets."
       }
      }
     },
     "auth_ref": [
      "r77"
     ]
    },
    "ifrs-full_DisclosureOfIntangibleAssetsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfIntangibleAssetsLineItems",
     "presentation": [
      "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofIntangibleAssetsDetail",
      "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofOtherComponentsofIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of detailed information about intangible assets [line items]",
        "label": "Disclosure of detailed information about intangible assets [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfIntangibleAssetsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfIntangibleAssetsTable",
     "presentation": [
      "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofIntangibleAssetsDetail",
      "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofOtherComponentsofIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of detailed information about intangible assets [table]",
        "label": "Disclosure of detailed information about intangible assets [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to details of intangible assets."
       }
      }
     },
     "auth_ref": [
      "r76",
      "r306"
     ]
    },
    "ck0000932782_DisclosureOfInterestRateSensitivityByMajorCurrencyExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfInterestRateSensitivityByMajorCurrencyExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Details of Interest Rate and Currency Derivative Financial Instruments",
        "label": "Disclosure of interest rate sensitivity by major currency [text block]",
        "documentation": "Disclosure of interest rate sensitivity by major currency."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfInventoriesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfInventoriesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of inventories [abstract]",
        "label": "Disclosure of inventories [abstract]",
        "documentation": "Disclosure of inventories"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfInventoriesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfInventoriesExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/Inventories"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Inventories",
        "label": "Disclosure of inventories [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for inventories."
       }
      }
     },
     "auth_ref": [
      "r41"
     ]
    },
    "ck0000932782_DisclosureOfInventoriesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfInventoriesLineItems",
     "presentation": [
      "http://mexicopetroleum.com/role/InventoriesSummaryofInventoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of Inventories [Line Items]",
        "label": "Disclosure of inventories [line items]",
        "documentation": "Disclosure of inventories."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfInventoriesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfInventoriesTable",
     "presentation": [
      "http://mexicopetroleum.com/role/InventoriesSummaryofInventoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of inventories [table]",
        "label": "Disclosure of inventories [table]",
        "documentation": "Disclosure of inventories."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfLeasesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfLeasesExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/Leases"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Leases",
        "label": "Disclosure of leases [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for leases."
       }
      }
     },
     "auth_ref": [
      "r145",
      "r146"
     ]
    },
    "ck0000932782_DisclosureOfLongTermContractualLiabilitiesExplanatoryTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfLongTermContractualLiabilitiesExplanatoryTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/LongTermContractualLiabilities"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Long-Term Contractual Liabilities",
        "label": "Disclosure Of Long Term Contractual Liabilities Explanatory [Text Block]",
        "documentation": "Disclosure Of Long Term Contractual Liabilities Explanatory"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfLongTermDebtAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfLongTermDebtAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of long term debt [abstract]",
        "label": "Disclosure of long term debt [abstract]",
        "documentation": "Disclosure of long term debt."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfLongTermDebtLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfLongTermDebtLineItems",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/DebtSummaryofChangesinConsolidatedDebtDetail",
      "http://mexicopetroleum.com/role/DebtSummaryofForeignCurrencyTranslationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of long term debt [Line Items]",
        "label": "Disclosure of long term debt [Line Items]",
        "documentation": "Disclosure of debt [line items]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfLongTermDebtTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfLongTermDebtTable",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure Of Long Term Debt [Table]",
        "label": "Disclosure Of Long Term Debt [Table]",
        "documentation": "Disclosure Of Long Term Debt"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfMaterialAccountingPolicyInformationExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfMaterialAccountingPolicyInformationExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/MaterialAccountingPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Material Accounting Policies",
        "label": "Disclosure of material accounting policy information [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure of material accounting policy information applied by the entity."
       }
      }
     },
     "auth_ref": [
      "r257",
      "r336",
      "r348"
     ]
    },
    "ck0000932782_DisclosureOfMaturitiesOfLongTermDebtPrincipalOutstandingAndAccruedInterestExplanatoryTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfMaturitiesOfLongTermDebtPrincipalOutstandingAndAccruedInterestExplanatoryTableTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Maturities of Long Term Debt Principal Outstanding and Accrued Interest",
        "label": "Disclosure Of Maturities Of Long Term Debt Principal Outstanding And Accrued Interest Explanatory [Table Text Block]",
        "documentation": "The entire disclosure of maturities of long term debt principal outstanding and accrued interest explanatory."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfMaturityAnalysisForDerivativeFinancialLiabilitiesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfMaturityAnalysisForDerivativeFinancialLiabilitiesTable",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of maturity analysis for derivative financial liabilities [table]",
        "label": "Disclosure of maturity analysis for derivative financial liabilities [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to the maturity analysis for derivative financial liabilities."
       }
      }
     },
     "auth_ref": [
      "r182",
      "r330"
     ]
    },
    "ck0000932782_DisclosureOfMonetaryAssetsAndLiabilitiesDenominatedInForeignCurrencyTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfMonetaryAssetsAndLiabilitiesDenominatedInForeignCurrencyTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/FinancialInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Monetary Assets and Liabilities Denominated In Foreign Currency",
        "label": "Disclosure of monetary assets and liabilities denominated in foreign currency [text block]",
        "documentation": "The disclosure of monetary assets and liabilities denominated in foreign currency."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfNetDefinedBenefitLiabilityAssetExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfNetDefinedBenefitLiabilityAssetExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Amounts Recognized for Long-term Obligations",
        "label": "Disclosure of net defined benefit liability (asset) [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of a net defined benefit liability (asset). [Refer: Net defined benefit liability (asset)]"
       }
      }
     },
     "auth_ref": [
      "r25",
      "r281"
     ]
    },
    "ck0000932782_DisclosureOfNetFairValueGainsThroughProfitOrLossExplanatoryTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfNetFairValueGainsThroughProfitOrLossExplanatoryTableTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Net Gain (Loss) Recognized in Income on Derivative Financial Instruments",
        "label": "Disclosure of Net Fair Value Gains through Profit or Loss Explanatory [Table Text Block]",
        "documentation": "Disclosure of net fair value gains through profit or loss explanatory."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfNonadjustingEventsAfterReportingPeriodAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of non-adjusting events after reporting period [abstract]",
        "label": "Disclosure of non-adjusting events after reporting period [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfNonadjustingEventsAfterReportingPeriodExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsequentEventsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Government Contributions to Petr\u00f3leos Mexicanos through the Ministry of Energy",
        "label": "Disclosure of non-adjusting events after reporting period [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of non-adjusting events after the reporting period. [Refer: Non-adjusting events after reporting period [domain]]"
       }
      }
     },
     "auth_ref": [
      "r1",
      "r263"
     ]
    },
    "ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsequentEventsAmendingagreementswithsuppliersDetails",
      "http://mexicopetroleum.com/role/SubsequentEventsExchangeratesandcrudeoilpricesDetail",
      "http://mexicopetroleum.com/role/SubsequentEventsRecentFinancingActivitiesNarrativeDetails",
      "http://mexicopetroleum.com/role/SubsequentEventsSummaryofContributionsfromtheMexicanGovernmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of non-adjusting events after reporting period [line items]",
        "label": "Disclosure of non-adjusting events after reporting period [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfNonadjustingEventsAfterReportingPeriodTable",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsequentEventsExchangeratesandcrudeoilpricesDetail",
      "http://mexicopetroleum.com/role/SubsequentEventsRecentFinancingActivitiesNarrativeDetails",
      "http://mexicopetroleum.com/role/SubsequentEventsSummaryofContributionsfromtheMexicanGovernmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of non-adjusting events after reporting period [table]",
        "label": "Disclosure of non-adjusting events after reporting period [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to non-adjusting events after the reporting period."
       }
      }
     },
     "auth_ref": [
      "r1",
      "r263"
     ]
    },
    "ck0000932782_DisclosureOfNotesReceivableGovernmentBondsAndOtherLongTermAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfNotesReceivableGovernmentBondsAndOtherLongTermAssetsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure Of Notes Receivable Government Bonds And Other Long Term Assets [Abstract]",
        "label": "Disclosure Of Notes Receivable Government Bonds And Other Long Term Assets [Abstract]",
        "documentation": "Disclosure Of Notes Receivable Government Bonds And Other Long Term Assets [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfNotesReceivableGovernmentBondsAndOtherNonCurrentAssetsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfNotesReceivableGovernmentBondsAndOtherNonCurrentAssetsLineItems",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofBalanceofGovernmentBondsDetail",
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofRollforwardoftheMexicanBondsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure Of Notes Receivable Government Bonds And Other Non Current Assets [Line Items]",
        "label": "Disclosure Of Notes Receivable Government Bonds And Other Non Current Assets [Line Items]",
        "documentation": "Disclosure Of Notes Receivable Government Bonds And Other Non Current Assets [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfNotesReceivableGovernmentBondsAndOtherNonCurrentAssetsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfNotesReceivableGovernmentBondsAndOtherNonCurrentAssetsTable",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofBalanceofGovernmentBondsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of notes receivable government bonds and other long term assets [table]",
        "label": "Disclosure Of Notes Receivable Government Bonds And Other Non Current Assets [Table]",
        "documentation": "Disclosure Of Notes Receivable Government Bonds And Other Non Current Assets [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfNotesReceivablesGovernmentBondsAndOtherLongTermAssetsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfNotesReceivablesGovernmentBondsAndOtherLongTermAssetsTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Government Bonds, And Other Assets",
        "label": "Disclosure Of Notes Receivables Government Bonds And Other Long Term Assets [Text Block]",
        "documentation": "Disclosure of notes receivables government bonds and other long term assets."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfOilAndGasProducingActivitiesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfOilAndGasProducingActivitiesTable",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofCapitalizedCostsforOilandGasProducingActivitiesDetail",
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofCostsIncurredforOilandGasPropertyExplorationandDevelopmentActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure Of Oil And Gas Producing Activities [table]",
        "label": "Disclosure Of Oil And Gas Producing Activities [table]",
        "documentation": "Disclosure Of Oil And Gas Producing Activities [table]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfOperatingSegmentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfOperatingSegmentsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of operating segments [abstract]",
        "label": "Disclosure of operating segments [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfOperatingSegmentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfOperatingSegmentsExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/SegmentFinancialInformationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Condensed Financial Information of Segments after Elimination of Unrealized Intersegment Gain (Loss)",
        "label": "Disclosure of operating segments [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of operating segments. [Refer: Operating segments [member]]"
       }
      }
     },
     "auth_ref": [
      "r201"
     ]
    },
    "ifrs-full_DisclosureOfOperatingSegmentsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfOperatingSegmentsLineItems",
     "presentation": [
      "http://mexicopetroleum.com/role/SegmentFinancialInformationAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationScheduleofIncomebyProductDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationSupplementalGeographicInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of operating segments [line items]",
        "label": "Disclosure of operating segments [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfOperatingSegmentsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfOperatingSegmentsTable",
     "presentation": [
      "http://mexicopetroleum.com/role/SegmentFinancialInformationAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationScheduleofIncomebyProductDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationSupplementalGeographicInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of operating segments [table]",
        "label": "Disclosure of operating segments [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to operating segments."
       }
      }
     },
     "auth_ref": [
      "r201"
     ]
    },
    "ck0000932782_DisclosureOfOperationsForOilAndGasProducingActivitiesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfOperationsForOilAndGasProducingActivitiesExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Results of Operations for Oil and Gas Producing Activities",
        "label": "Disclosure Of Operations For Oil And Gas Producing Activities [table text block]",
        "documentation": "The disclosure of operation for oil and gas producing activities."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfOtherIntangibleAssetsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfOtherIntangibleAssetsTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/IntangibleAssetsNetTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Other Components of Intangible Assets",
        "label": "Disclosure of other intangible assets [text block]",
        "documentation": "Disclosure of other intangible assets."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfOtherNoncurrentAssetsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfOtherNoncurrentAssetsExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Other Assets",
        "label": "Disclosure of other non-current assets [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of other non-current assets. [Refer: Other non-current assets]"
       }
      }
     },
     "auth_ref": [
      "r605"
     ]
    },
    "ifrs-full_DisclosureOfOtherProvisionsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfOtherProvisionsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of other provisions [abstract]",
        "label": "Disclosure of other provisions [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfOtherProvisionsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfOtherProvisionsLineItems",
     "presentation": [
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of other provisions [line items]",
        "label": "Disclosure of other provisions [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfOtherProvisionsRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfOtherProvisionsRollForward",
     "presentation": [
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofAllowanceAccountforPluggingofWellsTrialsinProgressandEnvironmentalCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of other provisions [Roll Forward]",
        "label": "Disclosure of other provisions [Roll Forward]",
        "documentation": "Disclosure of other provisions"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfOtherProvisionsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfOtherProvisionsTable",
     "presentation": [
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of other provisions [table]",
        "label": "Disclosure of other provisions [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to other provisions."
       }
      }
     },
     "auth_ref": [
      "r67",
      "r299"
     ]
    },
    "ck0000932782_DisclosureOfOtherRevenueAndExpenseTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfOtherRevenueAndExpenseTableTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Other Revenues and Expenses",
        "label": "Disclosure Of Other Revenue and Expense [Table Text Block]",
        "documentation": "Disclosure Of Other Revenue and Expense"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfOtherRevenueAndExpensesNetExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfOtherRevenueAndExpensesNetExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpenses"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other Revenues and Other Expenses",
        "label": "Disclosure Of Other Revenue and Expenses Net [text block]",
        "documentation": "Entire Disclosure Of Other Revenue and Expenses Net [text block]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfPrincipalAmountOutstandingOfRegisteredDebtSecuritiesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfPrincipalAmountOutstandingOfRegisteredDebtSecuritiesExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Principal Amount Outstanding of Registered Debt Securities",
        "label": "Disclosure of Principal Amount Outstanding of Registered Debt Securities [text block]",
        "documentation": "The disclosure of principal amount outstanding of registered debt securities."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfPropertyPlantAndEquipmentAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfPropertyPlantAndEquipmentAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of detailed information about property, plant and equipment [abstract]",
        "label": "Disclosure of detailed information about property, plant and equipment [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfPropertyPlantAndEquipmentExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfPropertyPlantAndEquipmentExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNet"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Wells, Pipelines, Properties, Plant and Equipment, Net",
        "label": "Disclosure of property, plant and equipment [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for property, plant and equipment."
       }
      }
     },
     "auth_ref": [
      "r22"
     ]
    },
    "ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfPropertyPlantAndEquipmentLineItems",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialTranformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetRecoverableAmountsofAssetsCGUsPemexLogisticsDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofDiscountRatesandUsefulLivesCGUsPemexLogisticsDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexLogisticsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of detailed information about property, plant and equipment [line items]",
        "label": "Disclosure of detailed information about property, plant and equipment [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfPropertyPlantAndEquipmentTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfPropertyPlantAndEquipmentTable",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofProvedDevelopedandUndevelopedReserveDetail",
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofStandardizedMeasureofDiscountedFutureNetCashFlowsDetail",
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofOilandGasProvedReservesDetail",
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofSalesPricesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialTranformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetRecoverableAmountsofAssetsCGUsPemexLogisticsDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofDiscountRatesandUsefulLivesCGUsPemexLogisticsDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexLogisticsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of detailed information about property, plant and equipment [table]",
        "label": "Disclosure of detailed information about property, plant and equipment [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to details of property, plant and equipment."
       }
      }
     },
     "auth_ref": [
      "r19",
      "r277"
     ]
    },
    "ck0000932782_DisclosureOfProvedReserveExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfProvedReserveExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Oil and Gas Proved Reserves",
        "label": "Disclosure Of Proved Reserve [text block]",
        "documentation": "Disclosure of proved reserve."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfProvedReserveRollforwardExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfProvedReserveRollforwardExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of Proved Developed and Undeveloped Reserve",
        "label": "Disclosure Of Proved Reserve Rollforward [text block]",
        "documentation": "Disclosure Of Proved Reserve Rollforward [text block]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfProvisionForPluggingOfWellsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfProvisionForPluggingOfWellsLineItems",
     "presentation": [
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofprovisionsforpluggingofwellsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure Of Provision For Plugging Of Wells [Line Items]",
        "label": "Disclosure Of Provision For Plugging Of Wells [Line Items]",
        "documentation": "Disclosure Of Provision For Plugging Of Wells [line item]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfProvisionForPluggingOfWellsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfProvisionForPluggingOfWellsTable",
     "presentation": [
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofprovisionsforpluggingofwellsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure Of Provision For Plugging Of Wells [Table]",
        "label": "Disclosure Of Provision For Plugging Of Wells [Table]",
        "documentation": "Disclosure Of Provision For Plugging Of Wells [table]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfProvisionForPluggingOfWellsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfProvisionForPluggingOfWellsTableTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of provisions for plugging of wells",
        "label": "Disclosure Of Provision For Plugging Of Wells [Table Text Block]",
        "documentation": "Disclosure Of Provision For Plugging Of Wells [text block]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfProvisionsCurrentExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfProvisionsCurrentExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Allowance Account for Plugging of Wells, Trials in Progress and Environmental Costs",
        "label": "Disclosure Of Provisions - current [text block]",
        "documentation": "Disclosure Of Provisions - current."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfProvisionsForSundryCreditorsExplanatoryTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfProvisionsForSundryCreditorsExplanatoryTableTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Provisions for Sundry Creditors and Others",
        "label": "Disclosure of provisions for sundry creditors explanatory [Table Text Block]",
        "documentation": "Disclosure of provisions for sundry creditors."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfProvisionsForSundryCreditorsTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfProvisionsForSundryCreditorsTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditors"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Provisions For Sundry Creditors",
        "label": "Disclosure of provisions for sundry creditors [Text Block]",
        "documentation": "Disclosure of provisions for sundry creditors."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfQuantitativeInformationAboutRightOfUseAssetsRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfQuantitativeInformationAboutRightOfUseAssetsRollForward",
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesSummaryofrightofuseassetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of quantitative information about right-of-use assets [Roll Forward]",
        "label": "Disclosure of quantitative information about right-of-use assets [Roll Forward]",
        "documentation": "Disclosure of quantitative information about right-of-use assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfQuantitativeInformationAboutRightofuseAssetsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of quantitative information about right-of-use assets [abstract]",
        "label": "Disclosure of quantitative information about right-of-use assets [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfQuantitativeInformationAboutRightofuseAssetsExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of right-of-use assets",
        "label": "Disclosure of quantitative information about right-of-use assets [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of quantitative information about right-of-use assets. [Refer: Right-of-use assets]"
       }
      }
     },
     "auth_ref": [
      "r141",
      "r245"
     ]
    },
    "ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems",
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/LeasesSummaryofrightofuseassetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of quantitative information about right-of-use assets [line items]",
        "label": "Disclosure of quantitative information about right-of-use assets [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfQuantitativeInformationAboutRightofuseAssetsTable",
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesSummaryofrightofuseassetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of quantitative information about right-of-use assets [table]",
        "label": "Disclosure of quantitative information about right-of-use assets [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to right-of-use assets."
       }
      }
     },
     "auth_ref": [
      "r141",
      "r245"
     ]
    },
    "ck0000932782_DisclosureOfReconciliationForImpairedAccountsReceivableExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfReconciliationForImpairedAccountsReceivableExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Reconciliation for Impaired Accounts Receivable",
        "label": "Disclosure of reconciliation for impaired accounts receivable [text block]",
        "documentation": "Disclosure of reconciliation for impaired accounts receivable."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfRelatedPartyExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfRelatedPartyExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/RelatedParties"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Related Parties",
        "label": "Disclosure of related party [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for related parties."
       }
      }
     },
     "auth_ref": [
      "r51"
     ]
    },
    "ifrs-full_DisclosureOfRevenueFromContractsWithCustomersExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfRevenueFromContractsWithCustomersExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/Revenue"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Revenue",
        "label": "Disclosure of revenue from contracts with customers [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for revenue from contracts with customers."
       }
      }
     },
     "auth_ref": [
      "r131",
      "r132"
     ]
    },
    "ck0000932782_DisclosureOfRollForwardRelatedToTheMexicanBondsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfRollForwardRelatedToTheMexicanBondsTable",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofRollforwardoftheMexicanBondsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of Roll Forward Related to the Mexican Bonds [Table]",
        "label": "Disclosure of Roll Forward Related to the Mexican Bonds [Table]",
        "documentation": "Disclosure of Roll Forward Related to the Mexican Bonds [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfRollForwardRelatedToThePromissoryNotesRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfRollForwardRelatedToThePromissoryNotesRollForward",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofChangesinConsolidatedDebtDetail",
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofRollforwardoftheMexicanBondsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of Roll Forward Related to the Promissory Notes [Roll Forward]",
        "label": "Disclosure of Roll Forward Related to the Promissory Notes [Roll Forward]",
        "documentation": "Disclosure of Roll Forward Related to the Promissory Notes"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfRollForwardRelatedToThePromissoryNotesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfRollForwardRelatedToThePromissoryNotesTable",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of Roll Forward Related to the Promissory Notes [Table]",
        "label": "Disclosure of Roll Forward Related to the Promissory Notes [Table]",
        "documentation": "Disclosure of Roll Forward Related to the Promissory Notes [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfSensitivityAnalysisForActuarialAssumptionsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfSensitivityAnalysisForActuarialAssumptionsExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Principal Actuarial Assumptions Used in Determining the Defined Benefit Obligation",
        "label": "Disclosure of sensitivity analysis for actuarial assumptions [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of a sensitivity analysis for significant actuarial assumptions used to determine the present value of a defined benefit obligation. [Refer: Actuarial assumptions [domain]; Defined benefit obligation, at present value]"
       }
      }
     },
     "auth_ref": [
      "r38"
     ]
    },
    "ifrs-full_DisclosureOfSensitivityAnalysisForActuarialAssumptionsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfSensitivityAnalysisForActuarialAssumptionsTable",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsRecognizedforOtherLongtermObligationsDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofPrincipalActuarialAssumptionsUsedinDeterminingtheDefinedBenefitObligationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of sensitivity analysis for actuarial assumptions [table]",
        "label": "Disclosure of sensitivity analysis for actuarial assumptions [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to the sensitivity analysis for actuarial assumptions."
       }
      }
     },
     "auth_ref": [
      "r38"
     ]
    },
    "ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfSignificantInvestmentsInSubsidiariesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of subsidiaries [abstract]",
        "label": "Disclosure of subsidiaries [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfSignificantInvestmentsInSubsidiariesLineItems",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryEntitiesandSubsidiaryCompaniesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of subsidiaries [line items]",
        "label": "Disclosure of subsidiaries [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfSignificantInvestmentsInSubsidiariesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfSignificantInvestmentsInSubsidiariesTable",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryEntitiesandSubsidiaryCompaniesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of subsidiaries [table]",
        "label": "Disclosure of subsidiaries [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to subsidiaries."
       }
      }
     },
     "auth_ref": [
      "r56",
      "r58",
      "r117",
      "r331"
     ]
    },
    "ifrs-full_DisclosureOfSignificantUnobservableInputsUsedInFairValueMeasurementOfAssetsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfSignificantUnobservableInputsUsedInFairValueMeasurementOfAssetsExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Assumptions to Determine Net Present Value of Reserves Long Lived Assets",
        "label": "Disclosure of significant unobservable inputs used in fair value measurement of assets [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of significant inputs for which market data are not available and that are developed using the best information available about the assumptions that market participants would use when measuring the fair value of assets."
       }
      }
     },
     "auth_ref": [
      "r121"
     ]
    },
    "ifrs-full_DisclosureOfSignificantUnobservableInputsUsedInFairValueMeasurementOfAssetsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfSignificantUnobservableInputsUsedInFairValueMeasurementOfAssetsLineItems",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofReservesPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of significant unobservable inputs used in fair value measurement of assets [line items]",
        "label": "Disclosure of significant unobservable inputs used in fair value measurement of assets [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfSignificantUnobservableInputsUsedInFairValueMeasurementOfAssetsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfSignificantUnobservableInputsUsedInFairValueMeasurementOfAssetsTable",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofReservesPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of significant unobservable inputs used in fair value measurement of assets [table]",
        "label": "Disclosure of significant unobservable inputs used in fair value measurement of assets [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to significant unobservable inputs used in the fair value measurement of assets."
       }
      }
     },
     "auth_ref": [
      "r121"
     ]
    },
    "ck0000932782_DisclosureOfStandardizedMeasureOfDiscountedFutureNetCashFlowsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfStandardizedMeasureOfDiscountedFutureNetCashFlowsExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of standardized measure of discounted future net cash flows",
        "label": "Disclosure Of Standardized Measure Of Discounted Future Net Cash Flows [text block]",
        "documentation": "Disclosure of standardized measure of discounted future net cash flows."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfStructuredEntitiesExplanatoryTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfStructuredEntitiesExplanatoryTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/StructureandBusinessOperationsofPetroleosMexicanosSubsidiaryEntitiesandSubsidiaryCompanies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Structure and Business Operations of Petroleos Mexicanos, Subsidiary Entities and Subsidiary Companies",
        "label": "Disclosure of Structured Entities Explanatory [Text Block]",
        "documentation": "Disclosure of structured entities."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfSubsidiaryEntitiesAndSubsidiaryCompaniesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfSubsidiaryEntitiesAndSubsidiaryCompaniesExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryEntitiesandSubsidiaryCompanies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subsidiary Entities and Subsidiary Companies",
        "label": "Disclosure Of Subsidiary Entities And Subsidiary Companies [Text block]",
        "documentation": "The entire disclosure of subsidiary entities and subsidiary companies."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfSupplementalGeographicInformationExplanatoryTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfSupplementalGeographicInformationExplanatoryTableTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/SegmentFinancialInformationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Income By Product",
        "label": "Disclosure of supplemental geographic information explanatory [Table Text Block]",
        "documentation": "Disclosure of supplemental geographic information explanatory."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfSupplementalGuarantorInformationExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfSupplementalGuarantorInformationExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subsidiary Guarantor Information",
        "label": "Disclosure Of Supplemental Guarantor Information [text block]",
        "documentation": "The disclosure of supplemental guarantor information."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfSupplementalStatementOfCashFlowExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfSupplementalStatementOfCashFlowExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Supplemental Statement of Cash Flows",
        "label": "Disclosure of supplemental statement of cash flow [text block]",
        "documentation": "The disclosure of supplemental statement of cash flow."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfSupplementalStatementOfIncomeExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfSupplementalStatementOfIncomeExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Supplemental Statement of Comprehensive Income",
        "label": "Disclosure of supplemental statement of income explanatory [text block]",
        "documentation": "The disclosure of supplemental statement of income."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfSupplementalStatementsOfFinancialPositionExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfSupplementalStatementsOfFinancialPositionExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Supplemental Statement of Financial Position",
        "label": "Disclosure of supplemental statements of financial position explanatory [text block]",
        "documentation": "The disclosure of supplemental statements of financial position."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfSupplementaryInformationExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfSupplementaryInformationExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Supplementary Information On Oil and Gas Exploration And Production Activities (Unaudited)",
        "label": "Disclosure of Supplementary information [text block]",
        "documentation": "The disclosure of supplementary information."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfSupplementaryInformationOnOilAndGasExplorationAndProductionActivitiesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfSupplementaryInformationOnOilAndGasExplorationAndProductionActivitiesLineItems",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofProvedDevelopedandUndevelopedReserveDetail",
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofStandardizedMeasureofDiscountedFutureNetCashFlowsDetail",
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofCapitalizedCostsforOilandGasProducingActivitiesDetail",
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofCostsIncurredforOilandGasPropertyExplorationandDevelopmentActivitiesDetail",
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofOilandGasProvedReservesDetail",
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofSalesPricesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of supplementary information on oil and gas exploration and production activities [Line Items]",
        "label": "Disclosure of supplementary information on oil and gas exploration and production activities [Line Items]",
        "documentation": "Disclosure of supplementary information on oil and gas exploration and production activities"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureOfTaxEffectsOfComponentsOfOtherComprehensiveIncomeExplanatoryTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureOfTaxEffectsOfComponentsOfOtherComprehensiveIncomeExplanatoryTableTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Expense (Benefit) Attributable to Profit (Loss) from Continuing Operations before Income Taxes",
        "label": "Disclosure of tax effects of components of other comprehensive income Explanatory [Table Text Block]",
        "documentation": "Disclosure of tax effects of components of other comprehensive income."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfTradeAndOtherReceivablesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfTradeAndOtherReceivablesExplanatory",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivable"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Customers and Other Financing and Non-Financing Accounts Receivable",
        "label": "Disclosure of trade and other receivables [text block]"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of trade and other receivables. [Refer: Trade and other receivables]"
       }
      }
     },
     "auth_ref": [
      "r605"
     ]
    },
    "ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfTransactionsBetweenRelatedPartiesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of transactions between related parties [abstract]",
        "label": "Disclosure of transactions between related parties [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfTransactionsBetweenRelatedPartiesLineItems",
     "presentation": [
      "http://mexicopetroleum.com/role/RelatedPartiesAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/RelatedPartiesSummaryofProductsAcquisitionfromPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of transactions between related parties [line items]",
        "label": "Disclosure of transactions between related parties [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfTransactionsBetweenRelatedPartiesTable",
     "presentation": [
      "http://mexicopetroleum.com/role/RelatedPartiesAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/RelatedPartiesSummaryofProductsAcquisitionfromPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of transactions between related parties [table]",
        "label": "Disclosure of transactions between related parties [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to transactions between related parties."
       }
      }
     },
     "auth_ref": [
      "r50",
      "r293"
     ]
    },
    "ifrs-full_DisclosureOfVoluntaryChangeInAccountingPolicyAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfVoluntaryChangeInAccountingPolicyAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure of voluntary change in accounting policy [abstract]",
        "label": "Disclosure of voluntary change in accounting policy [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DisclosureSupplementaryInformationOnOilAndGasExplorationAndProductionActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DisclosureSupplementaryInformationOnOilAndGasExplorationAndProductionActivitiesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Disclosure - Supplementary Information on Oil and Gas Exploration and Production Activities (Unaudited) - Disclosure of Changes in standardized Measure of Discounted Future Net Cash Flows [Abstract]",
        "label": "Disclosure - supplementary information on oil and gas exploration and production activities [Abstract]",
        "documentation": "Disclosure - Supplementary Information on Oil and Gas Exploration and Production Activities (Unaudited) - Disclosure of Changes in standardized Measure of Discounted Future Net Cash Flows [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DiscountRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DiscountRate",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialTranformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofDiscountRatesandUsefulLivesCGUsPemexLogisticsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Pre-tax discount rate",
        "label": "Discount Rate",
        "documentation": "Discount rate."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DiscountRateImpairmentReversal": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DiscountRateImpairmentReversal",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Discount rate, impairment reversal",
        "label": "Discount Rate, Impairment Reversal",
        "documentation": "Discount Rate, Impairment Reversal"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DiscountRateOfReserveForWellAbandonment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DiscountRateOfReserveForWellAbandonment",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 16.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unrealized foreign exchange loss in discount rate of reserve for well abandonment",
        "label": "Discount Rate Of Reserve For Well Abandonment",
        "documentation": "Discount rate of reserve for well abandonment."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DiscountRateOverTimeAmountUsedInProvisionAgainstFixedAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DiscountRateOverTimeAmountUsedInProvisionAgainstFixedAssets",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Discount rate effect in provision against fixed assets",
        "label": "Discount Rate Over Time Amount used in Provision Against Fixed Assets",
        "documentation": "Discount Rate Over Time Amount used in Provision Against Fixed Assets"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DiscountRateYield": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DiscountRateYield",
     "presentation": [
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Discount rate yield",
        "label": "Discount Rate Yield",
        "documentation": "Discount rate yield."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisposalsPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisposalsPropertyPlantAndEquipment",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Disposals",
        "label": "Disposals, property, plant and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "The decrease in property, plant and equipment resulting from disposals. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r13",
      "r272"
     ]
    },
    "dei_DocumentAccountingStandard": {
     "xbrltype": "accountingStandardItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentAccountingStandard",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Accounting Standard",
        "label": "Document Accounting Standard",
        "documentation": "The basis of accounting the registrant has used to prepare the financial statements included in this filing This can either be 'U.S. GAAP', 'International Financial Reporting Standards', or 'Other'."
       }
      }
     },
     "auth_ref": [
      "r456"
     ]
    },
    "dei_DocumentAnnualReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentAnnualReport",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Annual Report",
        "label": "Document Annual Report",
        "documentation": "Boolean flag that is true only for a form used as an annual report."
       }
      }
     },
     "auth_ref": [
      "r455",
      "r456",
      "r479"
     ]
    },
    "dei_DocumentFinStmtErrorCorrectionFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentFinStmtErrorCorrectionFlag",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Financial Statement Error Correction",
        "label": "Document Financial Statement Error Correction [Flag]",
        "documentation": "Indicates whether any of the financial statement period in the filing include a restatement due to error correction."
       }
      }
     },
     "auth_ref": [
      "r455",
      "r456",
      "r479",
      "r522"
     ]
    },
    "dei_DocumentFiscalPeriodFocus": {
     "xbrltype": "fiscalPeriodItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentFiscalPeriodFocus",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Fiscal Period Focus",
        "label": "Document Fiscal Period Focus",
        "documentation": "Fiscal period values are FY, Q1, Q2, and Q3. 1st, 2nd and 3rd quarter 10-Q or 10-QT statements have value Q1, Q2, and Q3 respectively, with 10-K, 10-KT or other fiscal year statements having FY."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentFiscalYearFocus": {
     "xbrltype": "gYearItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentFiscalYearFocus",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Fiscal Year Focus",
        "label": "Document Fiscal Year Focus",
        "documentation": "This is focus fiscal year of the document report in YYYY format. For a 2006 annual report, which may also provide financial information from prior periods, fiscal 2006 should be given as the fiscal year focus. Example: 2006."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentInformationLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentInformationLineItems",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Information [Line Items]",
        "label": "Document Information [Line Items]",
        "documentation": "Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentInformationTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentInformationTable",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Information [Table]",
        "label": "Document Information [Table]",
        "documentation": "Container to support the formal attachment of each official or unofficial, public or private document as part of a submission package."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentPeriodEndDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentPeriodEndDate",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Period End Date",
        "label": "Document Period End Date",
        "documentation": "For the EDGAR submission types of Form 8-K: the date of the report, the date of the earliest event reported; for the EDGAR submission types of Form N-1A: the filing date; for all other submission types: the end of the reporting or transition period. The format of the date is YYYY-MM-DD."
       }
      }
     },
     "auth_ref": []
    },
    "dei_DocumentRegistrationStatement": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentRegistrationStatement",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Registration Statement",
        "label": "Document Registration Statement",
        "documentation": "Boolean flag that is true only for a form used as a registration statement."
       }
      }
     },
     "auth_ref": [
      "r453"
     ]
    },
    "dei_DocumentShellCompanyReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentShellCompanyReport",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Shell Company Report",
        "label": "Document Shell Company Report",
        "documentation": "Boolean flag that is true for a Shell Company Report pursuant to section 13 or 15(d) of the Exchange Act."
       }
      }
     },
     "auth_ref": [
      "r456"
     ]
    },
    "dei_DocumentTransitionReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentTransitionReport",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Transition Report",
        "label": "Document Transition Report",
        "documentation": "Boolean flag that is true only for a form used as a transition report."
       }
      }
     },
     "auth_ref": [
      "r500"
     ]
    },
    "dei_DocumentType": {
     "xbrltype": "submissionTypeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentType",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Document Type",
        "label": "Document Type",
        "documentation": "The type of document being provided (such as 10-K, 10-Q, 485BPOS, etc). The document type is limited to the same value as the supporting SEC submission type, or the word 'Other'."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DomesticBorrowingsNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DomesticBorrowingsNet",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Domestic net debt",
        "label": "Domestic Borrowings Net",
        "documentation": "Domestic borrowings net."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DomesticCustomersMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DomesticCustomersMember",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableScheduleofBreakdownofAccountsReceivableBasedonCreditHistoryDetail",
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofAccountsReceivableandOtherReceivablesDetail",
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofReconciliationforImpairedAccountsReceivableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Domestic customers",
        "verboseLabel": "Domestic customers",
        "label": "Domestic customers [member]",
        "documentation": "Domestic customers."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DrillingEquipmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DrillingEquipmentMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Drilling equipment",
        "label": "Drilling Equipment [member]",
        "documentation": "Drilling equipment"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DrillingEquipmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DrillingEquipmentsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesSummaryofrightofuseassetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Drilling equipment",
        "label": "Drilling Equipments [Member]",
        "documentation": "Drilling Equipments [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DryGasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DryGasMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofOilandGasProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Dry Gas",
        "label": "Dry Gas [Member]",
        "documentation": "Dry Gas [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DryGasReserveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DryGasReserveMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofProvedDevelopedandUndevelopedReserveDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Dry gas reserve",
        "label": "Dry Gas Reserve [member]",
        "documentation": "Dry gas reserve."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DucMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DucMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingtheDeferredDUCDetail",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofTotalDUCandOthersDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "DUC",
        "label": "DUC [member]",
        "documentation": "DUC."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DutiesAndIncomeTaxesPaidRefund": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DutiesAndIncomeTaxesPaidRefund",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesProfitSharingDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Duties and income tax paid",
        "label": "Duties And Income Taxes Paid Refund",
        "documentation": "Duties And Income Taxes Paid Refund."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_DutiesTaxesAndOther": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "DutiesTaxesAndOther",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total duties, taxes and other",
        "label": "Duties, taxes and other",
        "documentation": "Total duties, taxes and other."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_DvddsOrOthrErngsPdOnEqtyAwrdsNtOthrwsRflctdInTtlCompForCvrdYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "DvddsOrOthrErngsPdOnEqtyAwrdsNtOthrwsRflctdInTtlCompForCvrdYrMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends or Other Earnings Paid on Equity Awards not Otherwise Reflected in Total Compensation for Covered Year [Member]",
        "terseLabel": "Dividends or Other Earnings Paid on Equity Awards not Otherwise Reflected in Total Compensation for Covered Year"
       }
      }
     },
     "auth_ref": [
      "r511"
     ]
    },
    "ck0000932782_EPMexicoS.A.DeC.V.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "EPMexicoS.A.DeC.V.Member",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "E&amp;P Mexico, S.A. de C.V.",
        "label": "E&amp;P Mexico, S.A. de C.V. [Member]",
        "documentation": "E&amp;P Mexico, S.A. de C.V."
       }
      }
     },
     "auth_ref": []
    },
    "currency_EUR": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/currency/2025",
     "localname": "EUR",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofInterestRateSensitivityDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofInterestRateandCurrencyDerivativeFinancialInstrumentsDetail",
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofMonetaryAssetsandLiabilitiesDenominatedInForeignCurrencyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Euro",
        "terseLabel": "Euro",
        "label": "Euro Member Countries, Euro"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_EbanoCEEMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "EbanoCEEMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofValuesinUseforCGUImpairmentorReversalPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "\u00c9bano (CEE)",
        "label": "Ebano (CEE) [Member]",
        "documentation": "Ebano (CEE)"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_EbanoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "EbanoMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "\u00c9bano",
        "label": "Ebano [member]",
        "documentation": "Ebano."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "EffectOfExchangeRateChangesOnCashAndCashEquivalents",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Effects of foreign exchange on cash balances",
        "terseLabel": "Effects of foreign exchange on cash balances",
        "label": "Effect of exchange rate changes on cash and cash equivalents"
       }
      },
      "en": {
       "role": {
        "documentation": "The effect of exchange rate changes on cash and cash equivalents held or due in a foreign currency. [Refer: Cash and cash equivalents]"
       }
      }
     },
     "auth_ref": [
      "r85",
      "r86"
     ]
    },
    "ck0000932782_EffectOfIncreaseDecreaseInVolumeOfCrudeOil": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "EffectOfIncreaseDecreaseInVolumeOfCrudeOil",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Effect of increase decrease in volume of crude oil",
        "label": "Effect Of Increase Decrease In Volume Of Crude Oil",
        "documentation": "Effect of increase decrease in volume of crude oil."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_EightPointSevenFiveZeroPercentNotesDueTwoThousandTwentyNineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "EightPointSevenFiveZeroPercentNotesDueTwoThousandTwentyNineMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationSummaryofPrincipalAmountOutstandingofRegisteredDebtSecuritiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "8.750% Notes due 2029",
        "label": "Eight Point Seven Five Zero Percent Notes Due Two Thousand Twenty Nine [Member]",
        "documentation": "Eight Point Seven Five Zero Percent Notes Due Two Thousand Twenty Nine"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_EighteenCordillerasMexicanasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "EighteenCordillerasMexicanasMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Eighteen, Cordilleras Mexicanas",
        "label": "Eighteen, Cordilleras Mexicanas [member]",
        "documentation": "Eighteen, Cordilleras Mexicanas."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_EkBalamBlockMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "EkBalamBlockMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Ek Balam Block",
        "label": "Ek Balam Block [member]",
        "documentation": "Ek Balam block."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_EkOrBalamMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "EkOrBalamMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "EK-Balam",
        "label": "EK or balam [member]",
        "documentation": "EK or balam [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_EliminationOfIntersegmentAmountsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "EliminationOfIntersegmentAmountsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Intersegment eliminations",
        "label": "Elimination of intersegment amounts [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the elimination of intersegment amounts in the reconciliations of total segment amounts to amounts recognised in the entity's financial statements."
       }
      }
     },
     "auth_ref": [
      "r433",
      "r434"
     ]
    },
    "ck0000932782_EliminationsAndReconcilingItemsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "EliminationsAndReconcilingItemsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Eliminations And Reconciling Items",
        "label": "Eliminations And Reconciling Items [Member]",
        "documentation": "Eliminations And Reconciling Items"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_EmbeddedDerivativesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "EmbeddedDerivativesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofNetGainLossRecognizedinIncomeonDerivativeFinancialInstrumentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Currency options",
        "label": "Embedded Derivatives [Member]",
        "documentation": "Embedded Derivatives"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_EmployeeBenefitsExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "EmployeeBenefitsExpense",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 13.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Employee benefits",
        "label": "Employee benefits expense"
       }
      }
     },
     "auth_ref": [
      "r252",
      "r341",
      "r384",
      "r447"
     ]
    },
    "ck0000932782_EmployeeBenefitsExpenseExpectedPaymentLongTerm": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "EmployeeBenefitsExpenseExpectedPaymentLongTerm",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Long term expected benefit payments",
        "label": "Employee Benefits Expense Expected Payment, Long Term",
        "documentation": "Employee Benefits Expense Expected Payment, Long Term"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_EmployeeBenefitsNonCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "EmployeeBenefitsNonCurrent",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Employee benefits",
        "label": "Employee Benefits Non Current",
        "documentation": "Employee benefits non current."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_EmployeeBenefitsProvisionsForSundryCreditorsOtherLiabilitiesAndDeferredTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "EmployeeBenefitsProvisionsForSundryCreditorsOtherLiabilitiesAndDeferredTaxes",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Employee benefits, provisions for sundry creditors, other liabilities and deferred taxes",
        "label": "Employee Benefits Provisions for Sundry Creditors Other Liabilities and Deferred Taxes",
        "documentation": "Employee benefits, provisions for sundry creditors, other liabilities and deferred taxes."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_EmployeeStockOptionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "EmployeeStockOptionMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Employee Stock Option [Member]",
        "terseLabel": "Employee Stock Option"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_EnergyTransformationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "EnergyTransformationMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexEnergyTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Energy Transformation (formerly part of Pemex Industrial Transformation)",
        "label": "Energy Transformation [Member]",
        "documentation": "Energy Transformation"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_EnergyTransformationSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "EnergyTransformationSegmentMember",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Energy Transformation",
        "label": "Energy Transformation Segment [Member]",
        "documentation": "Energy Transformation Segment"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressAddressLine1": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityAddressAddressLine1",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Address, Address Line One",
        "label": "Entity Address, Address Line One",
        "documentation": "Address Line 1 such as Attn, Building Name, Street Name"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressAddressLine2": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityAddressAddressLine2",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Address, Address Line Two",
        "label": "Entity Address, Address Line Two",
        "documentation": "Address Line 2 such as Street or Suite number"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressCityOrTown": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityAddressCityOrTown",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Address, City or Town",
        "label": "Entity Address, City or Town",
        "documentation": "Name of the City or Town"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressCountry": {
     "xbrltype": "countryCodeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityAddressCountry",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Address, Country",
        "label": "Entity Address, Country",
        "documentation": "ISO 3166-1 alpha-2 country code."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressPostalZipCode": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityAddressPostalZipCode",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Address, Postal Zip Code",
        "label": "Entity Address, Postal Zip Code",
        "documentation": "Code for the postal or zip code"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressesAddressTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityAddressesAddressTypeAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Addresses, Address Type [Axis]",
        "label": "Entity Addresses, Address Type [Axis]",
        "documentation": "The axis of a table defines the relationship between the domain members or categories in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityCentralIndexKey": {
     "xbrltype": "centralIndexKeyItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityCentralIndexKey",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Central Index Key",
        "label": "Entity Central Index Key",
        "documentation": "A unique 10-digit SEC-issued value to identify entities that have filed disclosures with the SEC. It is commonly abbreviated as CIK."
       }
      }
     },
     "auth_ref": [
      "r454"
     ]
    },
    "dei_EntityCurrentReportingStatus": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityCurrentReportingStatus",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Current Reporting Status",
        "label": "Entity Current Reporting Status",
        "documentation": "Indicate 'Yes' or 'No' whether registrants (1) have filed all reports required to be filed by Section 13 or 15(d) of the Securities Exchange Act of 1934 during the preceding 12 months (or for such shorter period that registrants were required to file such reports), and (2) have been subject to such filing requirements for the past 90 days. This information should be based on the registrant's current or most recent filing containing the related disclosure."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpenseBenefitAttributabletoProfitLossfromContinuingOperationsbeforeIncomeTaxesDetail",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxExpenseBenefitDetail",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingtheDeferredDUCDetail",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofTotalDUCandOthersDetail",
      "http://mexicopetroleum.com/role/LeasesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity [Domain]",
        "label": "Entity [Domain]",
        "documentation": "All the names of the entities being reported upon in a document. Any legal structure used to conduct activities or to hold assets. Some examples of such structures are corporations, partnerships, limited liability companies, grantor trusts, and other trusts. This item does not include business and geographical segments which are included in the geographical or business segments domains."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityEmergingGrowthCompany": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityEmergingGrowthCompany",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Emerging Growth Company",
        "label": "Entity Emerging Growth Company",
        "documentation": "Indicate if registrant meets the emerging growth company criteria."
       }
      }
     },
     "auth_ref": [
      "r454"
     ]
    },
    "dei_EntityFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityFileNumber",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity File Number",
        "label": "Entity File Number",
        "documentation": "Commission file number. The field allows up to 17 characters. The prefix may contain 1-3 digits, the sequence number may contain 1-8 digits, the optional suffix may contain 1-4 characters, and the fields are separated with a hyphen."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityFilerCategory": {
     "xbrltype": "filerCategoryItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityFilerCategory",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Filer Category",
        "label": "Entity Filer Category",
        "documentation": "Indicate whether the registrant is one of the following: Large Accelerated Filer, Accelerated Filer, Non-accelerated Filer. Definitions of these categories are stated in Rule 12b-2 of the Exchange Act. This information should be based on the registrant's current or most recent filing containing the related disclosure."
       }
      }
     },
     "auth_ref": [
      "r454"
     ]
    },
    "dei_EntityIncorporationStateCountryCode": {
     "xbrltype": "edgarStateCountryItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityIncorporationStateCountryCode",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Incorporation, State or Country Code",
        "label": "Entity Incorporation, State or Country Code",
        "documentation": "Two-character EDGAR code representing the state or country of incorporation."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityInteractiveDataCurrent": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityInteractiveDataCurrent",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Interactive Data Current",
        "label": "Entity Interactive Data Current",
        "documentation": "Boolean flag that is true when the registrant has submitted electronically every Interactive Data File required to be submitted pursuant to Rule 405 of Regulation S-T during the preceding 12 months (or for such shorter period that the registrant was required to submit such files)."
       }
      }
     },
     "auth_ref": [
      "r562"
     ]
    },
    "dei_EntityRegistrantName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityRegistrantName",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Registrant Name",
        "label": "Entity Registrant Name",
        "documentation": "The exact name of the entity filing the report as specified in its charter, which is required by forms filed with the SEC."
       }
      }
     },
     "auth_ref": [
      "r454"
     ]
    },
    "dei_EntityShellCompany": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityShellCompany",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Shell Company",
        "label": "Entity Shell Company",
        "documentation": "Boolean flag that is true when the registrant is a shell company as defined in Rule 12b-2 of the Exchange Act."
       }
      }
     },
     "auth_ref": [
      "r454"
     ]
    },
    "dei_EntityVoluntaryFilers": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityVoluntaryFilers",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Voluntary Filers",
        "label": "Entity Voluntary Filers",
        "documentation": "Indicate 'Yes' or 'No' if the registrant is not required to file reports pursuant to Section 13 or Section 15(d) of the Act."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityWellKnownSeasonedIssuer": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityWellKnownSeasonedIssuer",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Entity Well-known Seasoned Issuer",
        "label": "Entity Well-known Seasoned Issuer",
        "documentation": "Indicate 'Yes' or 'No' if the registrant is a well-known seasoned issuer, as defined in Rule 405 of the Securities Act. Is used on Form Type: 10-K, 10-Q, 8-K, 20-F, 6-K, 10-K/A, 10-Q/A, 20-F/A, 6-K/A, N-CSR, N-Q, N-1A."
       }
      }
     },
     "auth_ref": [
      "r563"
     ]
    },
    "ecd_EqtyAwrdsAdjFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "EqtyAwrdsAdjFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Awards Adjustments, Footnote [Text Block]",
        "terseLabel": "Equity Awards Adjustments, Footnote"
       }
      }
     },
     "auth_ref": [
      "r505"
     ]
    },
    "ecd_EqtyAwrdsAdjsExclgValRprtdInSummryCompstnTblMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "EqtyAwrdsAdjsExclgValRprtdInSummryCompstnTblMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Awards Adjustments, Excluding Value Reported in the Compensation Table [Member]",
        "terseLabel": "Equity Awards Adjustments, Excluding Value Reported in Compensation Table"
       }
      }
     },
     "auth_ref": [
      "r558"
     ]
    },
    "ecd_EqtyAwrdsAdjsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "EqtyAwrdsAdjsMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Awards Adjustments [Member]",
        "terseLabel": "Equity Awards Adjustments"
       }
      }
     },
     "auth_ref": [
      "r558"
     ]
    },
    "ecd_EqtyAwrdsInSummryCompstnTblForAplblYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "EqtyAwrdsInSummryCompstnTblForAplblYrMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aggregate Grant Date Fair Value of Equity Award Amounts Reported in Summary Compensation Table [Member]",
        "terseLabel": "Aggregate Grant Date Fair Value of Equity Award Amounts Reported in Summary Compensation Table"
       }
      }
     },
     "auth_ref": [
      "r558"
     ]
    },
    "ck0000932782_Equipment1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "Equipment1Member",
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesSummaryofrightofuseassetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Machinery and Equipment",
        "label": "Equipment1 [Member]",
        "documentation": "Equipment1"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_Equity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "Equity",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_EquityAndLiabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofChangesinEquityDeficit",
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
      "http://mexicopetroleum.com/role/EquityDeficitAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total equity (deficit)",
        "periodStartLabel": "Beginning balance",
        "periodEndLabel": "Ending Balance",
        "terseLabel": "Total equity (deficit)",
        "verboseLabel": "Equity (deficit), net",
        "label": "Equity"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of residual interest in the assets of the entity after deducting all its liabilities."
       }
      }
     },
     "auth_ref": [
      "r97",
      "r99",
      "r119",
      "r120",
      "r122",
      "r294",
      "r312",
      "r333",
      "r334",
      "r338",
      "r361",
      "r369"
     ]
    },
    "ifrs-full_EquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "EquityAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Controlling interest:",
        "label": "Equity [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_EquityAndLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "EquityAndLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total liabilities and equity (deficit)",
        "label": "Equity and liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of the entity's equity and liabilities. [Refer: Equity; Liabilities]"
       }
      }
     },
     "auth_ref": [
      "r361"
     ]
    },
    "ifrs-full_EquityAttributableToOwnersOfParent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "EquityAttributableToOwnersOfParent",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_Equity",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total controlling interest",
        "label": "Equity attributable to owners of parent"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of equity attributable to the owners of the parent. This specifically excludes non-controlling interest."
       }
      }
     },
     "auth_ref": [
      "r360"
     ]
    },
    "ifrs-full_EquityAttributableToOwnersOfParentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "EquityAttributableToOwnersOfParentMember",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofChangesinEquityDeficit"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total",
        "label": "Equity attributable to owners of parent [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for equity attributable to the owners of the parent."
       }
      }
     },
     "auth_ref": [
      "r347"
     ]
    },
    "ck0000932782_EquityInstrumentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "EquityInstrumentsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Equity instruments",
        "label": "Equity instruments [member]",
        "documentation": "Equity instruments."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_EquityValuationAssumptionDifferenceFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "EquityValuationAssumptionDifferenceFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity Valuation Assumption Difference, Footnote [Text Block]",
        "terseLabel": "Equity Valuation Assumption Difference, Footnote"
       }
      }
     },
     "auth_ref": [
      "r515"
     ]
    },
    "ecd_ErrCompAnalysisTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ErrCompAnalysisTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Erroneous Compensation Analysis [Text Block]",
        "terseLabel": "Erroneous Compensation Analysis"
       }
      }
     },
     "auth_ref": [
      "r472",
      "r483",
      "r493",
      "r526"
     ]
    },
    "ecd_ErrCompRecoveryTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ErrCompRecoveryTable",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Erroneously Awarded Compensation Recovery [Table]",
        "terseLabel": "Erroneously Awarded Compensation Recovery"
       }
      }
     },
     "auth_ref": [
      "r469",
      "r480",
      "r490",
      "r523"
     ]
    },
    "ck0000932782_EstimatedFutureContractPayments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "EstimatedFutureContractPayments",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/CommitmentsEstimatedFuturePaymentsUnderContractsDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CommitmentsEstimatedFuturePaymentsUnderContractsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total",
        "label": "Estimated future contract payments",
        "documentation": "Estimated future contract payments."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_EstimatedFutureContractPaymentsNextTwelveMonths": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "EstimatedFutureContractPaymentsNextTwelveMonths",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/CommitmentsEstimatedFuturePaymentsUnderContractsDetail": {
       "parentTag": "ck0000932782_EstimatedFutureContractPayments",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CommitmentsEstimatedFuturePaymentsUnderContractsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2026",
        "label": "Estimated future contract payments next twelve months",
        "documentation": "Estimated future contract payments next twelve months."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_EstimatedFutureContractPaymentsYearFive": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "EstimatedFutureContractPaymentsYearFive",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/CommitmentsEstimatedFuturePaymentsUnderContractsDetail": {
       "parentTag": "ck0000932782_EstimatedFutureContractPayments",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CommitmentsEstimatedFuturePaymentsUnderContractsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2030",
        "label": "Estimated future contract payments year five",
        "documentation": "Estimated future contract payments year five"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_EstimatedFutureContractPaymentsYearFour": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "EstimatedFutureContractPaymentsYearFour",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/CommitmentsEstimatedFuturePaymentsUnderContractsDetail": {
       "parentTag": "ck0000932782_EstimatedFutureContractPayments",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CommitmentsEstimatedFuturePaymentsUnderContractsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2029",
        "label": "Estimated future contract payments year four",
        "documentation": "Estimated future contract payments year four."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_EstimatedFutureContractPaymentsYearThree": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "EstimatedFutureContractPaymentsYearThree",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/CommitmentsEstimatedFuturePaymentsUnderContractsDetail": {
       "parentTag": "ck0000932782_EstimatedFutureContractPayments",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CommitmentsEstimatedFuturePaymentsUnderContractsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2028",
        "label": "Estimated future contract payments year three",
        "documentation": "Estimated future contract payments year three."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_EstimatedFutureContractPaymentsYearTwo": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "EstimatedFutureContractPaymentsYearTwo",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/CommitmentsEstimatedFuturePaymentsUnderContractsDetail": {
       "parentTag": "ck0000932782_EstimatedFutureContractPayments",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CommitmentsEstimatedFuturePaymentsUnderContractsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2027",
        "label": "Estimated future contract payments year two",
        "documentation": "Estimated future contract payments year two."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_EstimatedReservesPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "EstimatedReservesPercentage",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Estimated reserves percentage",
        "label": "Estimated reserves percentage",
        "documentation": "Estimated reserves percentage."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_EstimatedValueOfContracts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "EstimatedValueOfContracts",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/CommitmentsEstimatedValueofContractsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Estimated value of contracts",
        "label": "Estimated value of contracts",
        "documentation": "Estimated value of contracts."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_EthyleneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "EthyleneMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialTranformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Ethylene",
        "label": "Ethylene [Member]",
        "documentation": "Ethylene"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_EthyleneProcessorComplexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "EthyleneProcessorComplexMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Ethylene Processor Complex",
        "label": "Ethylene Processor Complex [Member]",
        "documentation": "Ethylene Processor Complex"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_EuroMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "EuroMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofForeignCurrencyTranslationDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFinancialLiabilitiesInterestAndPrincipalCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Euro",
        "label": "Euro [member]",
        "documentation": "Euro [member]"
       }
      }
     },
     "auth_ref": []
    },
    "srt_EuropeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "EuropeMember",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationSupplementalGeographicInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Europe",
        "label": "Europe [Member]",
        "documentation": "Continent of Europe."
       }
      }
     },
     "auth_ref": [
      "r595",
      "r596",
      "r597",
      "r598"
     ]
    },
    "ck0000932782_ExchangeTradeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ExchangeTradeMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValuesandNotionalAmountsofDFIsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Exchange traded",
        "label": "Exchange trade [member]",
        "documentation": "Exchange trade [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_ExecutiveCategoryAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ExecutiveCategoryAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Executive Category [Axis]",
        "terseLabel": "Executive Category:"
       }
      }
     },
     "auth_ref": [
      "r521"
     ]
    },
    "ifrs-full_ExpectedCreditLossRate": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ExpectedCreditLossRate",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Expected percentage of credit loss for accounts receivable",
        "label": "Expected credit loss rate"
       }
      },
      "en": {
       "role": {
        "documentation": "The rate of expected credit losses, calculated as percentage of the gross carrying amount. Expected credit losses are the weighted average of credit losses with the respective risks of a default occurring as the weights."
       }
      }
     },
     "auth_ref": [
      "r418",
      "r427"
     ]
    },
    "ck0000932782_ExpectedCreditLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ExpectedCreditLosses",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofBalanceofGovernmentBondsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Expected credit losses",
        "label": "Expected Credit Losses",
        "documentation": "Expected credit losses."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ExpectedIncomeTaxBenefitExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ExpectedIncomeTaxBenefitExpenses",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpectedBenefitforDUCDetail": {
       "parentTag": "ck0000932782_ProfitSharingDutyNet",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpectedBenefitforDUCDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Expected expense (benefit):",
        "label": "Expected income tax benefit expenses",
        "documentation": "Expected income tax benefit expenses."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ExpenseArisingFromExplorationForAndEvaluationOfMineralResources": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ExpenseArisingFromExplorationForAndEvaluationOfMineralResources",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofCostsIncurredforOilandGasPropertyExplorationandDevelopmentActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Total costs incurred",
        "label": "Expense arising from exploration for and evaluation of mineral resources"
       }
      }
     },
     "auth_ref": [
      "r165"
     ]
    },
    "ck0000932782_ExpenseArisingFromExplorationForGeologicalAndGeophysicalStudies": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ExpenseArisingFromExplorationForGeologicalAndGeophysicalStudies",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Exploration costs for geological and geophysical studies",
        "label": "Expense Arising From Exploration For Geological And Geophysical Studies",
        "documentation": "Expense arising from exploration for geological and geophysical studies."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ExpenseBenefitForDeferredProfitSharingDuty": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ExpenseBenefitForDeferredProfitSharingDuty",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofTotalDUCandOthersDetail": {
       "parentTag": "ck0000932782_IncomeTaxReclassificationAdjustmentsAmountAfterReclassification",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofTotalDUCandOthersDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred DUC expense",
        "label": "Expense Benefit for Deferred Profit- sharing Duty",
        "documentation": "Expense Benefit for Deferred Profit- sharing Duty"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_Expenserelatedtodebtissuancecost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "Expenserelatedtodebtissuancecost",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofChangesinConsolidatedDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Expense related to issuance of debt",
        "label": "ExpenseRelatedToDebtIssuanceCost",
        "documentation": "ExpenseRelatedToDebtIssuanceCost."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ExpensesArisingFromExplorationAndExtraction": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ExpensesArisingFromExplorationAndExtraction",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail": {
       "parentTag": "ck0000932782_CostOfSalesAndGeneralExpenses",
       "weight": 1.0,
       "order": 13.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Exploration and Extraction Hydrocarbons Duty and taxes",
        "label": "Expenses Arising From Exploration And Extraction",
        "documentation": "Expenses Arising From Exploration And Extraction"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ExpensesForEnvironmentalProvision": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ExpensesForEnvironmentalProvision",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail": {
       "parentTag": "ck0000932782_CostOfSalesAndGeneralExpenses",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Expenses for environmental provision",
        "label": "Expenses For Environmental Provision",
        "documentation": "Expenses For Environmental Provision"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ExpensesRelatedToShortTermLeases": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ExpensesRelatedToShortTermLeases",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesSummaryofleaseliabilitiesrecognizedinstatementofcomprehensiveincomeDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Expenses related to short-term leases",
        "label": "Expenses Related To Short Term Leases",
        "documentation": "Expenses related to short term leases."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ExpensesRelatedToUnsuccessfulWells": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ExpensesRelatedToUnsuccessfulWells",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/IntangibleAssetsNetAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Expenses related to unsuccessful wells",
        "label": "Expenses Related To Unsuccessful Wells",
        "documentation": "Expenses related to unsuccessful wells."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ExplorationAndEvaluationAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ExplorationAndEvaluationAssetsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/ContingenciesAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesProfitSharingDutyNarrativeDetails",
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofCostsIncurredforOilandGasPropertyExplorationandDevelopmentActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Exploration",
        "label": "Exploration and evaluation assets [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for exploration and evaluation expenditures recognised as assets in accordance with the entity's accounting policy. Exploration and evaluation expenditures are expenditures incurred by an entity in connection with the exploration for, and evaluation of, mineral resources before the technical feasibility and commercial viability of extracting a mineral resource are demonstrable."
       }
      }
     },
     "auth_ref": [
      "r576"
     ]
    },
    "ck0000932782_ExplorationAndExtraction": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ExplorationAndExtraction",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxesandDutiesPayableDetail": {
       "parentTag": "ck0000932782_OtherTaxesAndDuties",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxesandDutiesPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Exploration and Extraction Hydrocarbons Duty",
        "label": "Exploration and Extraction",
        "documentation": "Exploration and Extraction"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ExplorationAndExtractionContractsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ExplorationAndExtractionContractsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Exploration and extraction contracts",
        "label": "Exploration and extraction contracts [member]",
        "documentation": "Exploration and extraction contracts [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ExplorationAndExtractionSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ExplorationAndExtractionSegmentMember",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Exploration and Extraction",
        "label": "Exploration and extraction segment [Member]",
        "documentation": "Exploration and extraction segment."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ExplorationAndProductionSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ExplorationAndProductionSegmentMember",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Exploration and Production",
        "label": "Exploration and production segment [member]",
        "documentation": "Exploration and production segment."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ExplorationExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ExplorationExpenses",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail": {
       "parentTag": "ck0000932782_CostOfSalesAndGeneralExpenses",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Exploration expenses",
        "label": "Exploration Expenses",
        "documentation": "Exploration expenses ."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ExplorationExpensesEvaluationOfAssetsAndConcessoinsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ExplorationExpensesEvaluationOfAssetsAndConcessoinsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofOtherComponentsofIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Exploration expenses, evaluation of assets and concessions",
        "label": "Exploration expenses, evaluation of assets and concessoins [member]",
        "documentation": "Exploration expenses, evaluation of assets and concessoins."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ExplorationExpensesForOilAndGas": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ExplorationExpensesForOilAndGas",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofResultsofOperationsforOilandGasProducingActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Exploration expenses",
        "label": "Exploration Expenses For Oil and Gas",
        "documentation": "Exploration expenses for oil and gas."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ExploratoryActivityInShallowWatersAndOnshoreRegionsIncorporated": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ExploratoryActivityInShallowWatersAndOnshoreRegionsIncorporated",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Exploratory activity in shallow waters and onshore regions incorporated",
        "label": "Exploratory Activity In Shallow Waters And Onshore Regions Incorporated",
        "documentation": "Exploratoroy activity in shallow waters and onshore regions incorporated."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ExportCreditAgenciesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ExportCreditAgenciesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableScheduleofBreakdownofAccountsReceivableBasedonCreditHistoryDetail",
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofAccountsReceivableandOtherReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Export customers",
        "label": "Export Credit Agencies [member]",
        "documentation": "Export credit agencies."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ExportCustomersMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ExportCustomersMember",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofReconciliationforImpairedAccountsReceivableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Export customers",
        "label": "Export Customers [member]",
        "documentation": "Export customers."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ExtensionsAndDiscoveriesOfProvedDevelopedAndUndevelopedReserves": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ExtensionsAndDiscoveriesOfProvedDevelopedAndUndevelopedReserves",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Extensions and discoveries",
        "label": "Extensions And Discoveries Of Proved Developed and Undeveloped Reserves",
        "documentation": "Extensions And Discoveries Of Proved Developed and Undeveloped Reserves"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ExtensionsAndDiscoveriesOfProvedDevelopedReserves": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ExtensionsAndDiscoveriesOfProvedDevelopedReserves",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofProvedDevelopedandUndevelopedReserveDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Extensions and discoveries",
        "label": "Extensions and discoveries of proved developed reserves",
        "documentation": "Extensions and discoveries of proved developed reserves."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ExtensionsAndDiscoveriesRelatedCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ExtensionsAndDiscoveriesRelatedCost",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofChangesinstandardizedMeasureofDiscountedFutureNetCashFlowsDetail": {
       "parentTag": "srt_StandardizedMeasureOfDiscountedFutureNetCashFlowOfProvedOilAndGasReservesPeriodIncreaseDecrease",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofChangesinstandardizedMeasureofDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Extensions and discoveries",
        "label": "Extensions And Discoveries Related Cost",
        "documentation": "Extensions and discoveries related cost."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ExternalBorrowingsNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ExternalBorrowingsNet",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "External net debt",
        "label": "External Borrowings Net",
        "documentation": "External borrowings net."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FairValueOfAssociatedFinancialLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FairValueOfAssociatedFinancialLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair value of associated financial liabilities",
        "label": "Fair value of associated financial liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The fair value of financial liabilities associated with transferred financial assets that are not derecognised in their entirety. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r183"
     ]
    },
    "ifrs-full_FairValueOfTransferredFinancialAssetsAssociatedFinancialLiabilitiesThatAreNotDerecognisedInTheirEntirety": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FairValueOfTransferredFinancialAssetsAssociatedFinancialLiabilitiesThatAreNotDerecognisedInTheirEntirety",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair value of transferred financial assets and associated financial liabilities, net",
        "label": "Fair value of transferred financial assets (associated financial liabilities) that are not derecognised in their entirety"
       }
      },
      "en": {
       "role": {
        "documentation": "The difference between the fair value of transferred financial assets that have not been derecognised in their entirety and their associated liabilities. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r183"
     ]
    },
    "ifrs-full_FairValueOfTransferredFinancialAssetsThatAreNotDerecognisedInTheirEntirety": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FairValueOfTransferredFinancialAssetsThatAreNotDerecognisedInTheirEntirety",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair value of the transferred assets",
        "label": "Fair value of transferred financial assets that are not derecognised in their entirety"
       }
      },
      "en": {
       "role": {
        "documentation": "The fair value of transferred financial assets that are not derecognised in their entirety. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r183"
     ]
    },
    "ck0000932782_FarmOutsAndTransferOfFieldsDueToNhcBiddingProcessOfProvedDevelopedReserves": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FarmOutsAndTransferOfFieldsDueToNhcBiddingProcessOfProvedDevelopedReserves",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofProvedDevelopedandUndevelopedReserveDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Farm outs &amp; transfer to exploration and production contracts (CEE) &amp; transfer of fields due to NHC bidding process",
        "label": "Farm Outs And Transfer Of Fields Due To Nhc Bidding Process Of Proved Developed Reserves",
        "documentation": "Farm outs and transfer of fields due to Nhc bidding process of proved developed reserves."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_FedEffectiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FedEffectiveMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fed Effective",
        "label": "Fed Effective [Member]",
        "documentation": "Fed Effective"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_FederalBudgetMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FederalBudgetMember",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofGovernmentContributionstoPetroleosMexicanosthroughtheMinistryofEnergyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Federal budget",
        "label": "Federal budget [member]",
        "documentation": "Federal budget."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_Fees": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "Fees",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail": {
       "parentTag": "ck0000932782_CostOfSalesAndGeneralExpenses",
       "weight": 1.0,
       "order": 21.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fees",
        "label": "Fees",
        "documentation": "Fees"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_FertilizersSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FertilizersSegmentMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialTranformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fertilizers",
        "label": "Fertilizers Segment [member]",
        "documentation": "Fertilizers segment."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_FifteenSeriesOfDevelopmentBondsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FifteenSeriesOfDevelopmentBondsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fifteen Series of Development Bonds",
        "label": "Fifteen Series of Development Bonds [Member]",
        "documentation": "Fifteen Series of Development Bonds"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinanceCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinanceCosts",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss": {
       "parentTag": "ck0000932782_BeforeShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Financing cost",
        "label": "Finance costs"
       }
      }
     },
     "auth_ref": [
      "r378"
     ]
    },
    "ck0000932782_FinanceCostsNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FinanceCostsNet",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofComprehensiveIncomeDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Financing cost, net",
        "label": "Finance Costs Net",
        "documentation": "Finance costs net."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinanceIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinanceIncome",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss": {
       "parentTag": "ck0000932782_BeforeShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financing income",
        "verboseLabel": "Financing income",
        "label": "Finance income"
       }
      }
     },
     "auth_ref": [
      "r617"
     ]
    },
    "ck0000932782_FinanceIncomeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FinanceIncomeMember",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financing income",
        "label": "Finance Income [member]",
        "documentation": "Finance income."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_FinancedPublicWorksContractsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FinancedPublicWorksContractsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofChangesinConsolidatedDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financed public works contracts",
        "label": "Financed Public Works Contracts [member]",
        "documentation": "Financed public works contracts."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_FinancialArrangementTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FinancialArrangementTerm",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial arrangement, term",
        "label": "Financial Arrangement Term",
        "documentation": "Financial Arrangement Term"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinancialAssets",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofMonetaryAssetsandLiabilitiesDenominatedInForeignCurrencyDetail": {
       "parentTag": "ck0000932782_NetFinancialAssetsLiabilitiesPosition",
       "weight": 1.0,
       "order": 2.0
      },
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail",
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofMonetaryAssetsandLiabilitiesDenominatedInForeignCurrencyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Financial assets not measured at fair value",
        "terseLabel": "Assets",
        "label": "Financial assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of assets that are: (a) cash; (b) an equity instrument of another entity; (c) a contractual right: (i) to receive cash or another financial asset from another entity; or (ii) to exchange financial assets or financial liabilities with another entity under conditions that are potentially favourable to the entity; or (d) a contract that will, or may be, settled in the entity\u2019s own equity instruments and is: (i) a non-derivative for which the entity is, or may be, obliged to receive a variable number of the entity\u2019s own equity instruments; or (ii) a derivative that will, or may be, settled other than by the exchange of a fixed amount of cash or another financial asset for a fixed number of the entity\u2019s own equity instruments. For this purpose the entity\u2019s own equity instruments do not include puttable financial instruments classified as equity instruments in accordance with paragraphs 16A-16B of IAS 32, instruments that impose on the entity an obligation to deliver to another party a pro rata share of the net assets of the entity only on liquidation and are classified as equity instruments in accordance with paragraphs 16C-16D of IAS 32, or instruments that are contracts for the future receipt or delivery of the entity\u2019s own equity instruments. [Refer: Classes of financial instruments [domain]; Financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r173",
      "r177",
      "r178",
      "r180",
      "r327",
      "r328",
      "r329",
      "r418"
     ]
    },
    "ck0000932782_FinancialAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FinancialAssetsAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofOtherAccountsReceivableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other financing receivables:",
        "label": "Financial Assets [Abstract]",
        "documentation": "Financial assets [Abstract]."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinancialAssetsAtAmortisedCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinancialAssetsAtAmortisedCost",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial assets at amortised cost",
        "label": "Financial assets at amortised cost"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of financial assets at amortised cost. The amortised cost is the amount at which financial assets are measured at initial recognition minus principal repayments, plus or minus the cumulative amortisation using the effective interest method of any difference between that initial amount and the maturity amount, and adjusted for any impairment. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r190",
      "r320"
     ]
    },
    "ifrs-full_FinancialAssetsAtAmortisedCostCategoryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinancialAssetsAtAmortisedCostCategoryMember",
     "presentation": [
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial assets at amortized cost",
        "label": "Financial assets at amortised cost, category [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the financial assets at amortised cost category. [Refer: Financial assets at amortised cost]"
       }
      }
     },
     "auth_ref": [
      "r190",
      "r320"
     ]
    },
    "ifrs-full_FinancialAssetsAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinancialAssetsAtFairValue",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial assets measured at fair value",
        "label": "Financial assets, at fair value"
       }
      },
      "en": {
       "role": {
        "documentation": "The fair value of financial assets. [Refer: At fair value [member]; Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r173"
     ]
    },
    "ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLossCategoryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinancialAssetsAtFairValueThroughProfitOrLossCategoryMember",
     "presentation": [
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "FVTPL",
        "label": "Financial assets at fair value through profit or loss, category [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the financial assets at fair value through profit or loss category. [Refer: Financial assets at fair value through profit or loss]"
       }
      }
     },
     "auth_ref": [
      "r188",
      "r318"
     ]
    },
    "ck0000932782_FinancialGuarantees": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FinancialGuarantees",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofOtherAssetsDetail": {
       "parentTag": "ifrs-full_OtherNoncurrentAssets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofOtherAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Guarantees",
        "label": "Financial Guarantees",
        "documentation": "Financial Guarantees"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_FinancialInstrumentsFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FinancialInstrumentsFairValue",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValuesandNotionalAmountsofDFIsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fair Value",
        "label": "Financial instruments, fair value",
        "documentation": "Financial instruments, fair value."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_FinancialInstrumentsNotionalVolume": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FinancialInstrumentsNotionalVolume",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValuesandNotionalAmountsofDFIsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Volume (MMb)",
        "label": "Financial Instruments Notional Volume",
        "documentation": "Financial instruments notional volume."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinancialLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinancialLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofMonetaryAssetsandLiabilitiesDenominatedInForeignCurrencyDetail": {
       "parentTag": "ck0000932782_NetFinancialAssetsLiabilitiesPosition",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFinancialLiabilitiesInterestAndPrincipalCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail",
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofMonetaryAssetsandLiabilitiesDenominatedInForeignCurrencyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTotalLabel": "Total",
        "terseLabel": "Liabilities",
        "totalLabel": "Total",
        "label": "Financial liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of liabilities that are: (a) a contractual obligation: (i) to deliver cash or another financial asset to another entity; or (ii) to exchange financial assets or financial liabilities with another entity under conditions that are potentially unfavourable to the entity; or (b) a contract that will, or may be, settled in the entity\u2019s own equity instruments and is: (i) a non-derivative for which the entity is, or may be, obliged to deliver a variable number of the entity\u2019s own equity instruments; or (ii) a derivative that will, or may be, settled other than by the exchange of a fixed amount of cash or another financial asset for a fixed number of the entity\u2019s own equity instruments. For this purpose, rights, options or warrants to acquire a fixed number of the entity\u2019s own equity instruments for a fixed amount of any currency are equity instruments if the entity offers the rights, options or warrants pro rata to all of its existing owners of the same class of its own non-derivative equity instruments. Also, for those purposes the entity\u2019s own equity instruments do not include puttable financial instruments that are classified as equity instruments in accordance with paragraphs 16A-16B of IAS 32, instruments that impose on the entity an obligation to deliver to another party a pro rata share of the net assets of the entity only on liquidation and are classified as equity instruments in accordance with paragraphs 16C-16D of IAS 32, or instruments that are contracts for the future receipt or delivery of the entity\u2019s own equity instruments. As an exception, an instrument that meets the definition of a financial liability is classified as an equity instrument if it has all the features and meets the conditions in paragraphs 16A-16B or paragraphs 16C-16D of IAS 32. [Refer: Classes of financial instruments [domain]; Financial assets; Derivatives [member]]"
       }
      }
     },
     "auth_ref": [
      "r173"
     ]
    },
    "ifrs-full_FinancialLiabilitiesAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinancialLiabilitiesAtFairValue",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Financial liabilities measured at fair value",
        "label": "Financial liabilities, at fair value"
       }
      },
      "en": {
       "role": {
        "documentation": "The fair value of financial liabilities. [Refer: At fair value [member]; Financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r173"
     ]
    },
    "ifrs-full_FinancialLiabilitiesAtFairValueThroughProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinancialLiabilitiesAtFairValueThroughProfitOrLoss",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financial liabilities at fair value through profit or loss",
        "label": "Financial liabilities at fair value through profit or loss"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of financial liabilities that meet either of the following conditions: (a) they meet the definition of held for trading; or (b) upon initial recognition they are designated by the entity as at fair value through profit or loss. An entity may use this designation only when permitted by paragraph 4.3.5 of IFRS 9 (embedded derivatives) or when doing so results in more relevant information, because either: (a) it eliminates or significantly reduces a measurement or recognition inconsistency (sometimes referred to as \u2018an accounting mismatch\u2019) that would otherwise arise from measuring assets or liabilities or recognising the gains and losses on them on different bases; or (b) a group of financial liabilities or financial assets and financial liabilities is managed and its performance is evaluated on a fair value basis, in accordance with a documented risk management or investment strategy, and information about the group is provided internally on that basis to the entity\u2019s key management personnel (as defined in IAS 24). [Refer: At fair value [member]; Key management personnel of entity or parent [member]; Derivatives [member]; Financial assets; Financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r189",
      "r319"
     ]
    },
    "ck0000932782_FinancingCostCapitalisedToFixedAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FinancingCostCapitalisedToFixedAssets",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financing cost",
        "label": "Financing cost capitalised to fixed assets",
        "documentation": "Financing cost capitalised to fixed assets."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_FinancingCostsRates": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FinancingCostsRates",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financing costs rates",
        "label": "Financing Costs Rates",
        "documentation": "Financing costs rates."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_FinancingOfInfrastructureAssetMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FinancingOfInfrastructureAssetMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financing of Infrastructure asset",
        "label": "Financing Of Infrastructure Asset [Member]",
        "documentation": "Financing Of Infrastructure asset [member]."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_FinancingReceivableIndividuallyEvaluatedForImpairment1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FinancingReceivableIndividuallyEvaluatedForImpairment1",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financing receivable individually evaluated for impairment",
        "label": "Financing Receivable Individually Evaluated For Impairment 1",
        "documentation": "Financing receivable individually evaluated for impairment"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_Fines": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "Fines",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherExpensesDetail": {
       "parentTag": "ifrs-full_OtherExpenseByNature",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherExpensesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Fines",
        "label": "Fines",
        "documentation": "Fines."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_FivePointFiveZeroZeroPercentBondsDueTwoThousandFortyFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FivePointFiveZeroZeroPercentBondsDueTwoThousandFortyFourMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationSummaryofPrincipalAmountOutstandingofRegisteredDebtSecuritiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "5.500% Bonds due 2044",
        "label": "Five Point Five Zero Zero Percent Bonds Due Two Thousand Forty Four [Member]",
        "documentation": "Five point five zero zero percent bonds due two thousand forty four."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_FivePointNineFiveZeroPercentNotesDueTwoThousandThirtyOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FivePointNineFiveZeroPercentNotesDueTwoThousandThirtyOneMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationSummaryofPrincipalAmountOutstandingofRegisteredDebtSecuritiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "5.950% Notes due 2031",
        "label": "Five Point Nine Five Zero Percent Notes Due Two Thousand Thirty One [Member]",
        "documentation": "Five Point Nine Five Zero Percent Notes Due Two Thousand Thirty One [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_FivePointSixTwoFivePercentBondsDueTwoThousandFortySixMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FivePointSixTwoFivePercentBondsDueTwoThousandFortySixMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationSummaryofPrincipalAmountOutstandingofRegisteredDebtSecuritiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "5.625% Bonds due 2046",
        "label": "Five Point Six Two Five Percent Bonds Due Two Thousand Forty Six [member]",
        "documentation": "Five point six two five percent bonds due two thousand forty six."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_FivePointThreeFiveZeroPercentNotesDueTwoThousandTwentyEightmemberMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FivePointThreeFiveZeroPercentNotesDueTwoThousandTwentyEightmemberMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationSummaryofPrincipalAmountOutstandingofRegisteredDebtSecuritiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "5.350% Notes due 2028",
        "label": "Five point three five zero percent Notes due two thousand twenty eight member [Member]",
        "documentation": "Five point three five zero percent notes due two thousand twenty eight."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_FiveToSevenYearMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FiveToSevenYearMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofCurrentandPotentialExposuresandAggregatedbyCreditRatingDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "5-7 years",
        "label": "Five to Seven Year [member]",
        "documentation": "Five to seven year."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_FixedInterestPlus750BasisPointsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FixedInterestPlus750BasisPointsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fixed Interest Plus 750 Basis Points",
        "label": "Fixed Interest Plus 750 Basis Points [Member]",
        "documentation": "Fixed Interest Plus 750 Basis Points"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FixedInterestRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FixedInterestRateMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsequentEventsRecentFinancingActivitiesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fixed interest rate",
        "label": "Fixed interest rate [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a fixed interest rate. [Refer: Interest rate risk [member]]"
       }
      }
     },
     "auth_ref": [
      "r592"
     ]
    },
    "ck0000932782_FixedRateDollarsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FixedRateDollarsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fixed rate (U.S. dollars)",
        "label": "Fixed rate (U.S. dollars) [member]",
        "documentation": "Fixed rate (U.S. dollars)."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_FixedRateEurosMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FixedRateEurosMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fixed rate (euros)",
        "label": "Fixed rate (euros) [member]",
        "documentation": "Fixed rate (euros)."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_FixedRateJapaneseYenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FixedRateJapaneseYenMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fixed rate (Japanese yen)",
        "label": "Fixed rate (Japanese yen) [member]",
        "documentation": "Fixed rate (Japanese yen)."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_FixedRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FixedRateMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Total fixed rate debt",
        "label": "Fixed rate [member]",
        "documentation": "Fixed rate."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_FixedRatePesosMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FixedRatePesosMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fixed rate (pesos)",
        "label": "Fixed rate (pesos) [member]",
        "documentation": "Fixed rate (pesos)."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_FixedRatePoundsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FixedRatePoundsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fixed rate (pound sterling)",
        "label": "Fixed rate (Pounds) [member]",
        "documentation": "Fixed rate (Pounds)."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_FixedRateUdisMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FixedRateUdisMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fixed rate (UDIs)",
        "label": "Fixed rate (UDIs) [member]",
        "documentation": "Fixed rate (UDIs)."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FloatingInterestRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FloatingInterestRateMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsequentEventsRecentFinancingActivitiesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Floating interest rate",
        "label": "Floating interest rate [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a non-fixed interest rate. [Refer: Interest rate risk [member]]"
       }
      }
     },
     "auth_ref": [
      "r592"
     ]
    },
    "ck0000932782_FolapeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FolapeMember",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "FOLAPE",
        "label": "FOLAPE [Member]",
        "documentation": "FOLAPE."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_FonadinMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FonadinMember",
     "presentation": [
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "FONADIN",
        "label": "FONADIN [Member]",
        "documentation": "FONADIN"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_FondoLaboralPemexPortfolioMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FondoLaboralPemexPortfolioMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fondo laboral pemex portfolio",
        "label": "Fondo Laboral Pemex Portfolio [member]",
        "documentation": "Fondo laboral pemex portfolio."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ForeignCountriesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ForeignCountriesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SegmentFinancialInformationAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Foreign countries",
        "label": "Foreign countries [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for countries outside the entity's country of domicile. [Refer: Country of domicile [member]]"
       }
      }
     },
     "auth_ref": [
      "r209",
      "r210"
     ]
    },
    "ck0000932782_ForeignExchangeEffectsOnRightOfUseAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ForeignExchangeEffectsOnRightOfUseAsset",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesSummaryofrightofuseassetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Currency translation effect",
        "label": "Foreign Exchange Effects On Right Of Use Asset",
        "documentation": "Foreign exchange effects on right of use assets."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ForeignExchangeRateAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ForeignExchangeRateAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValuesandNotionalAmountsofDFIsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Foreign Exchange Rate [axis]",
        "label": "Foreign Exchange Rate [axis]",
        "documentation": "Foreign Exchange Rate [axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ForeignExchangeRateDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ForeignExchangeRateDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValuesandNotionalAmountsofDFIsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Foreign Exchange Rate [domain]",
        "label": "Foreign Exchange Rate [domain]",
        "documentation": "Foreign Exchange Rate [domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_ForgoneRecoveryDueToDisqualificationOfTaxBenefitsAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ForgoneRecoveryDueToDisqualificationOfTaxBenefitsAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forgone Recovery due to Disqualification of Tax Benefits, Amount",
        "terseLabel": "Forgone Recovery due to Disqualification of Tax Benefits, Amount"
       }
      }
     },
     "auth_ref": [
      "r476",
      "r487",
      "r497",
      "r530"
     ]
    },
    "ecd_ForgoneRecoveryDueToExpenseOfEnforcementAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ForgoneRecoveryDueToExpenseOfEnforcementAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forgone Recovery due to Expense of Enforcement, Amount",
        "terseLabel": "Forgone Recovery due to Expense of Enforcement, Amount"
       }
      }
     },
     "auth_ref": [
      "r476",
      "r487",
      "r497",
      "r530"
     ]
    },
    "ecd_ForgoneRecoveryDueToViolationOfHomeCountryLawAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ForgoneRecoveryDueToViolationOfHomeCountryLawAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forgone Recovery due to Violation of Home Country Law, Amount",
        "terseLabel": "Forgone Recovery due to Violation of Home Country Law, Amount"
       }
      }
     },
     "auth_ref": [
      "r476",
      "r487",
      "r497",
      "r530"
     ]
    },
    "ecd_ForgoneRecoveryExplanationOfImpracticabilityTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ForgoneRecoveryExplanationOfImpracticabilityTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forgone Recovery, Explanation of Impracticability [Text Block]",
        "terseLabel": "Forgone Recovery, Explanation of Impracticability"
       }
      }
     },
     "auth_ref": [
      "r476",
      "r487",
      "r497",
      "r530"
     ]
    },
    "ecd_ForgoneRecoveryIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "ForgoneRecoveryIndName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Forgone Recovery, Individual Name",
        "terseLabel": "Name"
       }
      }
     },
     "auth_ref": [
      "r476",
      "r487",
      "r497",
      "r530"
     ]
    },
    "ifrs-full_ForwardContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ForwardContractMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofNetGainLossRecognizedinIncomeonDerivativeFinancialInstrumentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Forwards",
        "label": "Forward contract [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a contract between two parties for the purchase or sale of an underlying asset at a specified future date for a settlement price determined in advance."
       }
      }
     },
     "auth_ref": [
      "r610"
     ]
    },
    "ck0000932782_ForwardsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ForwardsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValueofDFIsincludedinStatementofFinancialPositionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Forwards",
        "label": "Forwards [Member]",
        "documentation": "Forwards"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_FrValAsOfPrrYrEndOfEqtyAwrdsGrntdInPrrYrsFldVstngCondsDrngCvrdYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "FrValAsOfPrrYrEndOfEqtyAwrdsGrntdInPrrYrsFldVstngCondsDrngCvrdYrMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Prior Year End Fair Value of Equity Awards Granted in Any Prior Year that Fail to Meet Applicable Vesting Conditions During Covered Year [Member]",
        "terseLabel": "Prior Year End Fair Value of Equity Awards Granted in Any Prior Year that Fail to Meet Applicable Vesting Conditions During Covered Year"
       }
      }
     },
     "auth_ref": [
      "r510"
     ]
    },
    "ck0000932782_FreightExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FreightExpense",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail": {
       "parentTag": "ck0000932782_CostOfSalesAndGeneralExpenses",
       "weight": 1.0,
       "order": 12.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Freight",
        "label": "Freight Expense",
        "documentation": "Freight expense."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_FreightsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FreightsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/RelatedPartiesSummaryofProductsAcquisitionfromPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Freights",
        "label": "Freights [member]",
        "documentation": "Freights."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_FuelOilMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FuelOilMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails",
      "http://mexicopetroleum.com/role/RelatedPartiesSummaryofProductsAcquisitionfromPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fuel Oil",
        "verboseLabel": "Fuel oil",
        "label": "Fuel oil [member]",
        "documentation": "Fuel oil."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_FundsUsedInOperatingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FundsUsedInOperatingActivitiesAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Funds from operating activities",
        "label": "Funds used in operating activities abstract",
        "documentation": "Funds used in operating activities abstract"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_FurnitureAndEquipmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FurnitureAndEquipmentMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Furniture and equipment",
        "label": "Furniture and Equipment [member]",
        "documentation": "Furniture and equipment."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_FutureCashFlowTimeHorizon": {
     "xbrltype": "durationItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FutureCashFlowTimeHorizon",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Useful life",
        "label": "Future cash flow time horizon",
        "documentation": "Future cash flow time horizon."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_FutureNetCashFlowsRelatingToProvedOilAndGasReservesCashFlowsBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FutureNetCashFlowsRelatingToProvedOilAndGasReservesCashFlowsBeforeTax",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofStandardizedMeasureofDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Future cash flows before tax",
        "label": "Future Net Cash Flows Relating To Proved Oil And Gas Reserves Cash Flows Before Tax",
        "documentation": "Future net cash flows relating to proved oil and gas reserves cash flows before tax."
       }
      }
     },
     "auth_ref": []
    },
    "srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesCashInflows": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "FutureNetCashFlowsRelatingToProvedOilAndGasReservesCashInflows",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofStandardizedMeasureofDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Future cash inflows",
        "label": "Oil and Gas, Standardized Measure, Discounted Future Net Cash Flow, Future Cash Inflow",
        "documentation": "Amount of estimated future accumulated cash inflow for proved oil and gas reserves."
       }
      }
     },
     "auth_ref": [
      "r0"
     ]
    },
    "srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesDevelopmentCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "FutureNetCashFlowsRelatingToProvedOilAndGasReservesDevelopmentCosts",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofStandardizedMeasureofDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Future development costs",
        "label": "Oil and Gas, Standardized Measure, Discounted Future Net Cash Flow, Development Cost",
        "documentation": "Amount of estimated future accumulated cash outflow for costs to be incurred in developing proved oil and gas reserves."
       }
      }
     },
     "auth_ref": [
      "r0"
     ]
    },
    "ck0000932782_FutureNetCashFlowsRelatingToProvedOilAndGasReservesFutureProductionAndExcessGainsTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FutureNetCashFlowsRelatingToProvedOilAndGasReservesFutureProductionAndExcessGainsTaxes",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofStandardizedMeasureofDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Future production and excess gains taxes",
        "label": "Future Net Cash Flows Relating To Proved Oil And Gas Reserves Future Production And Excess Gains Taxes",
        "documentation": "Future net cash flows relating to proved oil and gas reserves future production and excess gains taxes."
       }
      }
     },
     "auth_ref": []
    },
    "srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesNetCashFlows": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "FutureNetCashFlowsRelatingToProvedOilAndGasReservesNetCashFlows",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofStandardizedMeasureofDiscountedFutureNetCashFlowsDetail": {
       "parentTag": "ck0000932782_StandardizedMeasureOfDiscountedFutureNetCashFlowRelatingToProvedOilAndGasReserves",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofStandardizedMeasureofDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Future net cash flows",
        "label": "Oil and Gas, Standardized Measure, Discounted Future Net Cash Flow, Future Net Cash Flow, before Discount",
        "documentation": "Amount, before discount and after future accumulated cash outflow for development and production costs and future income tax expense, of estimated future accumulated cash inflow for proved oil and gas reserves."
       }
      }
     },
     "auth_ref": [
      "r0"
     ]
    },
    "srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesProductionCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "FutureNetCashFlowsRelatingToProvedOilAndGasReservesProductionCosts",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofStandardizedMeasureofDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Future production costs (excluding profit taxes)",
        "label": "Oil and Gas, Standardized Measure, Discounted Future Net Cash Flow, Production Cost",
        "documentation": "Amount of estimated future accumulated cash outflow for costs to be incurred in producing proved oil and gas reserves."
       }
      }
     },
     "auth_ref": [
      "r0"
     ]
    },
    "srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesTenPercentAnnualDiscountForEstimatedTimingOfCashFlows": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "FutureNetCashFlowsRelatingToProvedOilAndGasReservesTenPercentAnnualDiscountForEstimatedTimingOfCashFlows",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofStandardizedMeasureofDiscountedFutureNetCashFlowsDetail": {
       "parentTag": "ck0000932782_StandardizedMeasureOfDiscountedFutureNetCashFlowRelatingToProvedOilAndGasReserves",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofStandardizedMeasureofDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Effect of discounting net cash flows by 10%",
        "label": "Oil and Gas, Standardized Measure, Discounted Future Net Cash Flow, Discount",
        "documentation": "Amount of discount on estimated future accumulated cash inflow, after future accumulated cash outflow for development and production costs and future income tax expense, for proved oil and gas reserves, using discount rate of 10 percent per year."
       }
      }
     },
     "auth_ref": [
      "r0"
     ]
    },
    "ifrs-full_FuturesContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FuturesContractMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValuesandNotionalAmountsofDFIsDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofNetGainLossRecognizedinIncomeonDerivativeFinancialInstrumentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Futures",
        "verboseLabel": "Futures",
        "label": "Futures contract [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a standardised, exchange-traded contract for the purchase or sale of an underlying asset at a specified future date for a settlement price determined in advance."
       }
      }
     },
     "auth_ref": [
      "r610"
     ]
    },
    "ck0000932782_FxForwardsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "FxForwardsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "FX Forwards",
        "label": "FX Forwards [Member]",
        "documentation": "FX Forwards."
       }
      }
     },
     "auth_ref": []
    },
    "currency_GBP": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/currency/2025",
     "localname": "GBP",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofInterestRateSensitivityDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofInterestRateandCurrencyDerivativeFinancialInstrumentsDetail",
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofMonetaryAssetsandLiabilitiesDenominatedInForeignCurrencyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Pounds sterling",
        "label": "United Kingdom, Pounds"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_GainLossOnChangesInEffectOfLimitingNetDefinedBenefitAssetToAssetCeiling": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GainLossOnChangesInEffectOfLimitingNetDefinedBenefitAssetToAssetCeiling",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsRecognizedforOtherLongtermObligationsDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofRetirementandPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Actuarial (gains) losses in plan assets",
        "negatedLabel": "For experience during the year",
        "label": "Decrease (increase) in net defined benefit liability (asset) resulting from gain (loss) on changes in effect of limiting net defined benefit asset to asset ceiling excluding interest income or expense"
       }
      }
     },
     "auth_ref": [
      "r31"
     ]
    },
    "ck0000932782_GainLossOnDisposalOfAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "GainLossOnDisposalOfAssets",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherExpensesDetail": {
       "parentTag": "ifrs-full_OtherExpenseByNature",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherExpensesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Loss from derecognition of disposal of assets",
        "label": "Gain Loss On Disposal Of Assets",
        "documentation": "Gain Loss On Disposal Of Assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_GainLossOnRemeasurementOfNetDefinedBenefitLiabilityAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GainLossOnRemeasurementOfNetDefinedBenefitLiabilityAsset",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofRetirementandPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net actuarial gains recognized in other comprehensive income",
        "label": "Decrease (increase) in net defined benefit liability (asset) resulting from gain (loss) on remeasurement in other comprehensive income"
       }
      },
      "en": {
       "role": {
        "documentation": "The decrease (increase) in a net defined benefit liability (asset) resulting from the remeasurement of that net defined benefit liability (asset). [Refer: Net defined benefit liability (asset)]"
       }
      }
     },
     "auth_ref": [
      "r32",
      "r284"
     ]
    },
    "ifrs-full_GainLossOnRemeasurementOfNetDefinedBenefitLiabilityAssetAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GainLossOnRemeasurementOfNetDefinedBenefitLiabilityAssetAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsRecognizedforOtherLongtermObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Actuarial losses (gains) recognized in income due to:",
        "label": "Changes in net defined benefit liability (asset) resulting from gain (loss) on remeasurement in other comprehensive income [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_GainLossOnSaleOfLongLivedAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "GainLossOnSaleOfLongLivedAssets",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail": {
       "parentTag": "ifrs-full_OtherRevenue",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Gain on sale of fixed assets",
        "label": "Gain Loss on Sale of Long Lived Assets",
        "documentation": "Gain loss on sale of long lived assets."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_GainsLossesArisingFromSaleAndLeasebackTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GainsLossesArisingFromSaleAndLeasebackTransactions",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesSummaryofrightofuseassetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Cancellations",
        "label": "Gains (losses) arising from sale and leaseback transactions"
       }
      }
     },
     "auth_ref": [
      "r139",
      "r243"
     ]
    },
    "ifrs-full_GainsLossesArisingFromSettlementsNetDefinedBenefitLiabilityAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GainsLossesArisingFromSettlementsNetDefinedBenefitLiabilityAsset",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsandTypesofPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "For experience during the year",
        "label": "Decrease (increase) in net defined benefit liability (asset) resulting from gains (losses) arising from settlements"
       }
      },
      "en": {
       "role": {
        "documentation": "The decrease (increase) in the net defined benefit liability (asset) resulting from settlements. Settlements are transactions that eliminate all further legal or constructive obligations for part or all of the benefits provided under a defined benefit plan, other than a payment of benefits to, or on behalf of, employees that is set out in the terms of the plan and included in the actuarial assumptions. [Refer: Net defined benefit liability (asset); Defined benefit plans [domain]; Actuarial assumptions [domain]]"
       }
      }
     },
     "auth_ref": [
      "r33"
     ]
    },
    "ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofChangesinConsolidatedDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Foreign exchange",
        "label": "Foreign exchange gain (loss)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of exchange differences recognised in profit or loss that arise from foreign currency transactions, excluding those arising on financial instruments measured at fair value through profit or loss in accordance with IFRS 9. [Refer: At fair value [member]; Classes of financial instruments [domain]]"
       }
      }
     },
     "auth_ref": [
      "r43",
      "r290",
      "r349"
     ]
    },
    "ck0000932782_GasAndCondensateProductsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "GasAndCondensateProductsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/InventoriesSummaryofInventoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Gas and condensate products",
        "label": "Gas And Condensate Products [member]",
        "documentation": "Gas and condensate products."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_GasArenqueProcessorComplexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "GasArenqueProcessorComplexMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexEnergyTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Matapionche Gas Processor Complex",
        "label": "Gas Arenque Processor Complex [Member]",
        "documentation": "Gas Arenque Processor Complex"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_GasBurgosGasProcessorComplexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "GasBurgosGasProcessorComplexMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexEnergyTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Gas Burgos Gas Processor Complex",
        "label": "Gas Burgos Gas Processor Complex [Member]",
        "documentation": "Gas Burgos Gas Processor Complex"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_GasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "GasMember",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationScheduleofIncomebyProductDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialTranformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Gas",
        "label": "Gas [member]",
        "documentation": "Gas."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_GasPozaRicaProcessorComplexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "GasPozaRicaProcessorComplexMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexEnergyTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Gas Poza Rica Processor Complex",
        "label": "Gas Poza Rica Processor Complex [Member]",
        "documentation": "Gas Poza Rica Processor Complex"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_GasolineAndAviationGasolineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "GasolineAndAviationGasolineMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Gasoline And Aviation Gasoline",
        "label": "Gasoline And Aviation Gasoline [Member]",
        "documentation": "Gasoline and aviation gasoline."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_GeneralExpensesWithThirdParties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "GeneralExpensesWithThirdParties",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail": {
       "parentTag": "ck0000932782_CostOfSalesAndGeneralExpenses",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "General expenses with third-parties",
        "label": "General Expenses With Third Parties",
        "documentation": "General expenses with third-parties."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_GeneralRate": {
     "xbrltype": "pureItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "GeneralRate",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesWelfareOilDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "General rate",
        "label": "General Rate",
        "documentation": "General Rate"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_GeographicalAreasAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GeographicalAreasAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationSupplementalGeographicInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Geographical areas [axis]",
        "label": "Geographical areas [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r211",
      "r388",
      "r410",
      "r416",
      "r436"
     ]
    },
    "ifrs-full_GeographicalAreasDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GeographicalAreasDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationSupplementalGeographicInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Geographical market",
        "label": "Geographical areas [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for aggregated geographical areas. It also represents the standard value for the 'Geographical areas' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r211",
      "r388",
      "r410",
      "r416",
      "r436"
     ]
    },
    "ck0000932782_GovernmentAgencyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "GovernmentAgencyAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Government Agency [Axis]",
        "label": "Government Agency [Axis]",
        "documentation": "Government Agency"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_GovernmentAgencyDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "GovernmentAgencyDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Government Agency [Domain]",
        "label": "Government Agency [Domain]",
        "documentation": "Government Agency [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_GovernmentAgencyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "GovernmentAgencyMember",
     "presentation": [
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Government Agency",
        "label": "Government Agency [Member]",
        "documentation": "Government Agency"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_GovernmentBondsCollected": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "GovernmentBondsCollected",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofRollforwardoftheMexicanBondsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Government Bonds collected (1)",
        "label": "Government Bonds Collected",
        "documentation": "Government bonds collected."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_GovernmentBondsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "GovernmentBondsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofBalanceofGovernmentBondsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Government Bonds",
        "label": "Government Bonds [Member]",
        "documentation": "Government Bonds [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_GovernmentContributionsNatureOfContributionAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "GovernmentContributionsNatureOfContributionAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofGovernmentContributionstoPetroleosMexicanosthroughtheMinistryofEnergyDetail",
      "http://mexicopetroleum.com/role/SubsequentEventsSummaryofContributionsfromtheMexicanGovernmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Government Contributions, Nature Of Contribution [Axis]",
        "label": "Government Contributions, Nature Of Contribution [Axis]",
        "documentation": "Government Contributions, Nature Of Contribution"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_GovernmentContributionsNatureOfContributionDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "GovernmentContributionsNatureOfContributionDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofGovernmentContributionstoPetroleosMexicanosthroughtheMinistryofEnergyDetail",
      "http://mexicopetroleum.com/role/SubsequentEventsSummaryofContributionsfromtheMexicanGovernmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Government Contributions, Nature Of Contribution [Domain]",
        "label": "Government Contributions, Nature Of Contribution [Domain]",
        "documentation": "Government Contributions, Nature Of Contribution [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_GovernmentContributionsToEquity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "GovernmentContributionsToEquity",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Mexican Government contributions",
        "label": "Government contributions to equity",
        "documentation": "Government contributions to equity."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_GovernmentDebtInstrumentsHeld": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GovernmentDebtInstrumentsHeld",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail": {
       "parentTag": "ifrs-full_FinancialAssets",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail",
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofBalanceofGovernmentBondsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Mexican Government Bonds",
        "terseLabel": "Government bonds",
        "label": "Government debt instruments held"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of debt instruments, including instruments called debt securities, held by the entity that were issued by a government. [Refer: Debt instruments held; Government [member]]"
       }
      }
     },
     "auth_ref": [
      "r610"
     ]
    },
    "ck0000932782_GreaterThanOrEqualTo91OctaneGasolineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "GreaterThanOrEqualTo91OctaneGasolineMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Greater Than 91 Octane Gasoline",
        "label": "Greater Than or Equal To 91 Octane Gasoline [Member]",
        "documentation": "Greater Than or Equal To 91 Octane Gasoline"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_GrossCarryingAmountMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GrossCarryingAmountMember",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableScheduleofBreakdownofAccountsReceivableBasedonCreditHistoryDetail",
      "http://mexicopetroleum.com/role/DebtSummaryofMaturitiesofLongTermDebtPrincipalOutstandingandAccruedInterestDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFinancialLiabilitiesInterestAndPrincipalCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail",
      "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofOtherComponentsofIntangibleAssetsDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total carrying amount",
        "verboseLabel": "Total",
        "netLabel": "Investment",
        "label": "Gross carrying amount [member]"
       }
      }
     },
     "auth_ref": [
      "r12",
      "r71",
      "r80",
      "r83",
      "r162",
      "r178",
      "r180",
      "r271",
      "r302",
      "r308",
      "r311",
      "r328",
      "r329",
      "r418"
     ]
    },
    "ifrs-full_GrossProfit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GrossProfit",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss": {
       "parentTag": "ifrs-full_ProfitLossFromOperatingActivities",
       "weight": 1.0,
       "order": 3.0
      },
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails": {
       "parentTag": "ifrs-full_ProfitLossFromOperatingActivities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofComprehensiveIncomeDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Gross income (loss)",
        "terseLabel": "Gross income",
        "label": "Gross profit"
       }
      }
     },
     "auth_ref": [
      "r448"
     ]
    },
    "srt_GuarantorSubsidiariesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "GuarantorSubsidiariesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofComprehensiveIncomeDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subsidiary guarantors",
        "label": "Guarantor Subsidiaries [Member]",
        "documentation": "Entity owned or controlled guaranteeing issuance of security by another subsidiary or parent. Excludes entity in which broker-dealer holds controlling financial interest but control is likely to be temporary."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_HeavyFuelOilMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "HeavyFuelOilMember",
     "presentation": [
      "http://mexicopetroleum.com/role/RelatedPartiesSummaryofProductsAcquisitionfromPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Heavy fuel oil",
        "label": "Heavy fuel oil [member]",
        "documentation": "Heavy fuel oil."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_HedgedItemAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "HedgedItemAssets",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Hedged risk exposure",
        "label": "Hedged item, assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of a hedged item, recognised as an asset. [Refer: Hedged items [domain]]"
       }
      }
     },
     "auth_ref": [
      "r172",
      "r324"
     ]
    },
    "ifrs-full_HedgingInstrumentsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "HedgingInstrumentsAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValueofDFIsincludedinStatementofFinancialPositionDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofNetGainLossRecognizedinIncomeonDerivativeFinancialInstrumentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Hedging instruments [axis]",
        "label": "Hedging instruments [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r168",
      "r171",
      "r323"
     ]
    },
    "ifrs-full_HedgingInstrumentsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "HedgingInstrumentsDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValueofDFIsincludedinStatementofFinancialPositionDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofNetGainLossRecognizedinIncomeonDerivativeFinancialInstrumentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Hedging instruments",
        "label": "Hedging instruments [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for hedging instruments. A hedging instrument can be a designated: (a) derivative measured at fair value through profit or loss, except for some written options (see paragraph B6.2.4 of IFRS 9); (b) non-derivative financial asset or non-derivative financial liability measured at fair value through profit or loss, unless it is a financial liability designated as at fair value through profit or loss for which the amount of its change in fair value that is attributable to changes in the credit risk of that liability is presented in other comprehensive income in accordance with paragraph 5.7.7 of IFRS 9. For a hedge of foreign currency risk, the foreign currency risk component of a non-derivative financial asset or a non-derivative financial liability may be designated as a hedging instrument provided that it is not an investment in an equity instrument for which an entity has elected to present changes in fair value in other comprehensive income in accordance with paragraph 5.7.5 of IFRS 9. This member also represents the standard value for the 'Hedging instruments' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r168",
      "r171",
      "r323"
     ]
    },
    "ck0000932782_HydrocarbonDutiesAndTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "HydrocarbonDutiesAndTaxes",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofResultsofOperationsforOilandGasProducingActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Hydrocarbon duties",
        "label": "Hydrocarbon duties and taxes",
        "documentation": "Hydrocarbon duties and taxes"
       }
      }
     },
     "auth_ref": []
    },
    "dei_IcfrAuditorAttestationFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "IcfrAuditorAttestationFlag",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "ICFR Auditor Attestation Flag",
        "label": "ICFR Auditor Attestation Flag"
       }
      }
     },
     "auth_ref": [
      "r455",
      "r456",
      "r479"
     ]
    },
    "ck0000932782_IepsTaxInFavorOfStatesMunicipalitiesAndTerritoriesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IepsTaxInFavorOfStatesMunicipalitiesAndTerritoriesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "IEPS Tax in Favor of States, Municipalities and Territories",
        "label": "IEPS tax in favor of States, Municipalities and Territories [member]",
        "documentation": "IEPS tax in favor of States, Municipalities and Territories [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_IepsTaxOnFossilFuelsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IepsTaxOnFossilFuelsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "IEPS Tax on Fossil Fuels",
        "label": "IEPS Tax on Fossil Fuels [member]",
        "documentation": "IEPS Tax on Fossil Fuels [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_IepsTaxSaleOfAutomotiveFuelsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IepsTaxSaleOfAutomotiveFuelsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "IEPS Tax on the Sale of Automotive Fuels",
        "label": "IEPS tax sale of automotive fuels [member]",
        "documentation": "IEPS tax sale of automotive fuels [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ImpairedLoansMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ImpairedLoansMember",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableScheduleofBreakdownofAccountsReceivableBasedonCreditHistoryDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Impaired (reserved)",
        "label": "Impaired loans [member]",
        "documentation": "Impaired loans."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "(Impairment)",
        "label": "Impairment loss recognised in profit or loss, property, plant and equipment"
       }
      }
     },
     "auth_ref": [
      "r15",
      "r274",
      "r383"
     ]
    },
    "ifrs-full_ImpairmentLossRecognisedInProfitOrLossRightofuseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ImpairmentLossRecognisedInProfitOrLossRightofuseAssets",
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesSummaryofrightofuseassetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Impairment",
        "label": "Impairment loss recognised in profit or loss, right-of-use assets"
       }
      }
     },
     "auth_ref": [
      "r567"
     ]
    },
    "ifrs-full_ImpairmentLossRecognisedInProfitOrLossTradeReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ImpairmentLossRecognisedInProfitOrLossTradeReceivables",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss": {
       "parentTag": "ifrs-full_ProfitLossFromOperatingActivities",
       "weight": -1.0,
       "order": 6.0
      },
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail": {
       "parentTag": "ck0000932782_CostOfSalesAndGeneralExpenses",
       "weight": 1.0,
       "order": 22.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss",
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail",
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofComprehensiveIncomeDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Impairment losses on trade receivables from customers",
        "negatedLabel": "(Impairment) reversal of accounts receivables recognized in the income statement",
        "terseLabel": "Impairment losses on trade receivables from customers",
        "label": "Impairment loss recognised in profit or loss, trade receivables"
       }
      }
     },
     "auth_ref": [
      "r610"
     ]
    },
    "ck0000932782_ImpairmentLossRecognisedInProfitOrLossTradeReceivables1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ImpairmentLossRecognisedInProfitOrLossTradeReceivables1",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofReconciliationforImpairedAccountsReceivableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Impairment of accounts receivable",
        "label": "Impairment Loss Recognised In Profit Or Loss Trade Receivables 1",
        "documentation": "Impairment loss recognised in profit or loss trade receivables."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofComprehensiveIncomeDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "(Impairment) of wells, pipelines, properties, plant and equipment",
        "label": "Impairment loss (reversal of impairment loss) recognised in profit or loss"
       }
      }
     },
     "auth_ref": [
      "r253",
      "r384"
     ]
    },
    "ck0000932782_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexLogisticsDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofValuesinUseforCGUImpairmentorReversalPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Reversal of impairment (impairment), net",
        "terseLabel": "Total",
        "negatedLabel": "Reversal of impairment (impairment), net",
        "label": "Impairment Loss Reversal Of Impairment Loss Recognised In Profit Or Loss Property Plant And Equipment",
        "documentation": "The amount of impairment loss reversal of impairment loss recognised in profit or loss for property, plant and equipment."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ImpairmentOfBonds": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ImpairmentOfBonds",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofRollforwardoftheMexicanBondsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Reversal of impairment of bonds",
        "label": "Impairment of Bonds",
        "documentation": "Impairment of bonds."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ImpairmentOfFinancialAssetsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ImpairmentOfFinancialAssetsAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofReconciliationforImpairedAccountsReceivableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Impairment of financial assets [axis]",
        "label": "Impairment of financial assets [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r339"
     ]
    },
    "ifrs-full_ImpairmentOfFinancialAssetsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ImpairmentOfFinancialAssetsDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofReconciliationforImpairedAccountsReceivableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Impairment of financial assets",
        "label": "Impairment of financial assets [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Impairment of financial assets' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r339"
     ]
    },
    "ck0000932782_ImpairmentOfLeases": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ImpairmentOfLeases",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperationsBeforeChangesInWorkingCapital",
       "weight": 1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Impairment of leases",
        "label": "Impairment Of Leases",
        "documentation": "Impairment Of Leases"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ImpairmentOfRightsOfUse": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ImpairmentOfRightsOfUse",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesSummaryofleaseliabilitiesrecognizedinstatementofcomprehensiveincomeDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Impairment of rights of use",
        "label": "Impairment Of Rights Of Use",
        "documentation": "Impairment Of Rights Of Use"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ImportTaxesAndDuties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ImportTaxesAndDuties",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxesandDutiesPayableDetail": {
       "parentTag": "ck0000932782_OtherTaxesAndDuties",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxesandDutiesPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Import taxes and duties",
        "label": "Import Taxes and Duties",
        "documentation": "Import Taxes and Duties"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_IncentiveForAutomotiveFuelsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IncentiveForAutomotiveFuelsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Incentive for automotive fuels",
        "label": "Incentive for automotive fuels [Member]",
        "documentation": "Incentive for automotive fuels"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_IncomeExpensesDefinedContributionScheme": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IncomeExpensesDefinedContributionScheme",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Expense in the income statement (net cost for the period, CD-guarantee)",
        "label": "Income Expenses Defined Contribution Scheme",
        "documentation": "Income expenses defined contribution scheme"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_IncomeFromContractsWithReinsurers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IncomeFromContractsWithReinsurers",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail": {
       "parentTag": "ifrs-full_OtherRevenue",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Revenues from reinsurance premiums",
        "label": "Income from contracts with reinsurers",
        "documentation": "The amount of income from contracts with reinsurers."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncomeStatementAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncomeStatementAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Profit or loss [abstract]",
        "label": "Profit or loss [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_IncomeTaxAuthority1Axis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IncomeTaxAuthority1Axis",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Income tax authority 1 [axis]",
        "label": "Income tax authority 1 [axis]",
        "documentation": "Income tax authority 1 [axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_IncomeTaxAuthority1Domain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IncomeTaxAuthority1Domain",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Income Tax Authority 1 [domain]",
        "label": "Income Tax Authority 1 [domain]",
        "documentation": "Income Tax Authority domain."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncomeTaxExpenseContinuingOperations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncomeTaxExpenseContinuingOperations",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss_1": {
       "parentTag": "ifrs-full_ProfitLoss",
       "weight": -1.0,
       "order": 2.0
      },
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxExpenseBenefitDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpenseBenefitAttributabletoProfitLossfromContinuingOperationsbeforeIncomeTaxesDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpenseBenefitAttributabletoProfitLossfromContinuingOperationsbeforeIncomeTaxesDetail",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxExpenseBenefitDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total duties, taxes and other",
        "label": "Tax expense (income)"
       }
      }
     },
     "auth_ref": [
      "r3",
      "r5",
      "r6",
      "r53",
      "r116",
      "r200",
      "r264",
      "r265",
      "r266",
      "r380"
     ]
    },
    "ck0000932782_IncomeTaxExpenseForExplorationPhase": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IncomeTaxExpenseForExplorationPhase",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationandExtractionHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tax payable for exploration phase",
        "label": "Income tax expense for exploration phase",
        "documentation": "Income tax expense for exploration phase."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_IncomeTaxExpenseForExtractionPhase": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IncomeTaxExpenseForExtractionPhase",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationandExtractionHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tax payable for extraction phase",
        "label": "Income tax expense for extraction phase",
        "documentation": "Income tax expense for extraction phase."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_IncomeTaxPayablesFeeIncreasesPeriod": {
     "xbrltype": "durationItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IncomeTaxPayablesFeeIncreasesPeriod",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationandExtractionHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fee increases, period",
        "label": "Income Tax Payables, Fee Increases, Period",
        "documentation": "Income Tax Payables, Fee Increases, Period"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_IncomeTaxPayablesForNonproducingAreas": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IncomeTaxPayablesForNonproducingAreas",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationandExtractionHydrocarbonsDutyNarrativeDetails",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tax payable for non-producing areas",
        "label": "Income Tax Payables For Non-Producing Areas",
        "documentation": "Income tax payables for non-producing areas."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_IncomeTaxPayablesForNonproducingAreasIncreasedAmount": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IncomeTaxPayablesForNonproducingAreasIncreasedAmount",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationandExtractionHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tax payable for non-producing areas over 60 months",
        "label": "Income Tax Payables For Non-Producing Areas Increased Amount",
        "documentation": "Income tax payables for non-producing areas increased amount."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_IncomeTaxReclassificationAdjustmentsAmountAfterReclassification": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IncomeTaxReclassificationAdjustmentsAmountAfterReclassification",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofTotalDUCandOthersDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofTotalDUCandOthersDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total DUC",
        "label": "Income Tax Reclassification Adjustments Amount After Reclassification",
        "documentation": "Income tax reclassification adjustments amount after reclasification."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncomeTaxRelatingToRemeasurementsOfDefinedBenefitPlansOfOtherComprehensiveIncome",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred tax effect of actuarial gains and losses",
        "label": "Income tax relating to remeasurements of defined benefit plans included in other comprehensive income"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of income tax relating to amounts recognised in other comprehensive income in relation to remeasurements of defined benefit plans. [Refer: Other comprehensive income; Reserve of remeasurements of defined benefit plans; Defined benefit plans [domain]]"
       }
      }
     },
     "auth_ref": [
      "r4",
      "r381"
     ]
    },
    "ck0000932782_IncomeTaxesAndDuties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IncomeTaxesAndDuties",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxesandDutiesPayableDetail": {
       "parentTag": "ck0000932782_OtherIncomeTaxesAndDuties",
       "weight": 1.0,
       "order": 2.0
      },
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperationsBeforeChangesInWorkingCapital",
       "weight": 1.0,
       "order": 3.0
      },
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 12.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxesandDutiesPayableDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Income taxes and duties",
        "totalLabel": "Total income taxes and duties",
        "label": "Income Taxes And Duties",
        "documentation": "Income taxes and duties."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_IncomeTaxesExcludingProfitSharingDuties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IncomeTaxesExcludingProfitSharingDuties",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": 1.0,
       "order": 1.0
      },
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxesandDutiesPayableDetail": {
       "parentTag": "ck0000932782_IncomeTaxesAndDuties",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxesandDutiesPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Income tax expense",
        "terseLabel": "Income tax",
        "label": "Income taxes excluding profit sharing duties",
        "documentation": "Income taxes excluding profit sharing duties"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncomeTaxesPaidRefund": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncomeTaxesPaidRefund",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationandExtractionHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Payments of income tax",
        "label": "Income taxes paid (refund)"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash flows from income taxes paid or refunded."
       }
      }
     },
     "auth_ref": [
      "r88"
     ]
    },
    "ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncomeTaxesPaidRefundClassifiedAsOperatingActivities",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": -1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Taxes and duties",
        "label": "Income taxes paid (refund), classified as operating activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash flows from income taxes paid or refunded, classified as operating activities. [Refer: Income taxes paid (refund)]"
       }
      }
     },
     "auth_ref": [
      "r88",
      "r397"
     ]
    },
    "ck0000932782_IncreaseDecreaseInApplicableTaxRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IncreaseDecreaseInApplicableTaxRate",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesProfitSharingDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage DUC tax rate",
        "label": "Increase Decrease In Applicable Tax Rate",
        "documentation": "Increase decrease in applicable tax rate."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_IncreaseDecreaseInBasisPoints": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IncreaseDecreaseInBasisPoints",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Assumption of either an increase or decrease of basis points in floating interest rates of debt and corresponding hedges",
        "label": "Increase (decrease) in basis points",
        "documentation": "Increase (decrease) in basis points."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncreaseDecreaseInCashAndCashEquivalentsBeforeEffectOfExchangeRateChanges": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseInCashAndCashEquivalentsBeforeEffectOfExchangeRateChanges",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net increase (decrease) in cash and cash equivalents",
        "terseLabel": "Net increase (decrease) in cash and cash equivalents",
        "label": "Increase (decrease) in cash and cash equivalents before effect of exchange rate changes"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in cash and cash equivalents before the effect of exchange rate changes on cash and cash equivalents held in foreign currencies. [Refer: Cash and cash equivalents; Effect of exchange rate changes on cash and cash equivalents]"
       }
      }
     },
     "auth_ref": [
      "r90",
      "r256"
     ]
    },
    "srt_IncreaseDecreaseInEstimatedFutureDevelopmentCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "IncreaseDecreaseInEstimatedFutureDevelopmentCosts",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofChangesinstandardizedMeasureofDiscountedFutureNetCashFlowsDetail": {
       "parentTag": "srt_StandardizedMeasureOfDiscountedFutureNetCashFlowOfProvedOilAndGasReservesPeriodIncreaseDecrease",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofChangesinstandardizedMeasureofDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Changes in estimated development costs",
        "label": "Oil and Gas, Standardized Measure, Discounted Future Net Cash Flow, Estimated Future Development Cost, Increase (Decrease)",
        "documentation": "Amount of increase (decrease) in standardized measure of discounted future net cash flow as a result of change in estimated future development costs."
       }
      }
     },
     "auth_ref": [
      "r0"
     ]
    },
    "ck0000932782_IncreaseDecreaseInExchangeRateEffectAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IncreaseDecreaseInExchangeRateEffectAmount",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Exchange rate effect amount",
        "label": "Increase Decrease In Exchange Rate Effect Amount",
        "documentation": "Increase Decrease In Exchange Rate Effect Amount"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_IncreaseDecreaseInIncomeTaxesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IncreaseDecreaseInIncomeTaxesAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpectedBenefitforDUCDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Increase (decrease) resulting from:",
        "label": "Increase decrease in income taxes [abstract]",
        "documentation": "Increase decrease in income taxes."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_IncreaseDecreaseInPriceOfTheMexicanCrudeOilExportMixPerBarrel": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IncreaseDecreaseInPriceOfTheMexicanCrudeOilExportMixPerBarrel",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Increase decrease in price of the Mexican crude oil export mix per barrel",
        "label": "Increase decrease in price of the Mexican crude oil export mix per barrel",
        "documentation": "Increase decrease in price of the Mexican crude oil export mix per barrel."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncreaseDecreaseThroughAppropriationOfRetainedEarnings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseThroughAppropriationOfRetainedEarnings",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofChangesinEquityDeficit"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Transfer to accumulated deficit",
        "label": "Increase (decrease) through appropriation of retained earnings, equity"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in equity resulting from the appropriation of retained earnings. [Refer: Retained earnings]"
       }
      }
     },
     "auth_ref": [
      "r608"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesIntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseThroughNetExchangeDifferencesIntangibleAssetsOtherThanGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofOtherComponentsofIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Effects of foreign exchange",
        "label": "Increase (decrease) through net exchange differences, intangible assets other than goodwill"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in intangible assets other than goodwill resulting from net exchange differences arising on the translation of the financial statements from the functional currency into a different presentation currency, including the translation of a foreign operation into the presentation currency of the reporting entity. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r74"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Translation effect",
        "label": "Increase (decrease) through net exchange differences, property, plant and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in property, plant and equipment resulting from net exchange differences arising on the translation of the financial statements from the functional currency into a different presentation currency, including the translation of a foreign operation into the presentation currency of the reporting entity. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r17"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughOtherChangesIntangibleAssetsAndGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseThroughOtherChangesIntangibleAssetsAndGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Transfers against expenses",
        "label": "Increase (decrease) through other changes, intangible assets and goodwill"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in intangible assets and goodwill resulting from changes that the entity does not separately disclose in the same statement or note. [Refer: Intangible assets and goodwill]"
       }
      }
     },
     "auth_ref": [
      "r579"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughOtherContributionsByOwners": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseThroughOtherContributionsByOwners",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofChangesinEquityDeficit",
      "http://mexicopetroleum.com/role/EquityDeficitAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Increase in Certificates of Contribution \u201cA\u201d",
        "verboseLabel": "Equity contributions",
        "label": "Increase through other contributions by owners, equity"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase in equity through other contributions by owners that the entity does not separately disclose in the same statement or note."
       }
      }
     },
     "auth_ref": [
      "r346"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughTransfersIntangibleAssetsAndGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseThroughTransfersIntangibleAssetsAndGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofIntangibleAssetsDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Transfers against fixed assets",
        "label": "Increase (decrease) through transfers, intangible assets and goodwill"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in intangible assets and goodwill resulting from transfers. [Refer: Intangible assets and goodwill]"
       }
      }
     },
     "auth_ref": [
      "r580"
     ]
    },
    "ck0000932782_IncreaseDecreaseToInterCompanyInvesting": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IncreaseDecreaseToInterCompanyInvesting",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "(Increase) decrease due to Inter-company investing",
        "label": "Increase Decrease To Inter Company Investing",
        "documentation": "Increase decrease to inter company investing."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_IncreaseInCertificatesOfContribution": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IncreaseInCertificatesOfContribution",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofCertificateofContributionADetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Increase in certificates of contribution",
        "label": "Increase in Certificates of Contribution",
        "documentation": "Increase in Certificates of Contribution"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_IncreaseInEquityDueToCertificatesOfContributionA": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IncreaseInEquityDueToCertificatesOfContributionA",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Increase in equity due to Certificates of Contribution \u201cA\u201d",
        "label": "Increase In Equity Due To Certificates Of Contribution A",
        "documentation": "Increase in equity due to certificates of contribution A."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_IncreaseInEquityDueToCertificatesOfContributionAAndProceedsFromGrants": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IncreaseInEquityDueToCertificatesOfContributionAAndProceedsFromGrants",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Increase in equity due to Certificates of Contribution \u201cA\u201d",
        "label": "Increase In Equity Due To Certificates Of Contribution A and Proceeds from Grants",
        "documentation": "Increase In Equity Due To Certificates Of Contribution A and Proceeds from Grants"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_IncreaseInLongTermContractualLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IncreaseInLongTermContractualLiabilities",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Increase in long-term contractual liabilities",
        "label": "Increase In Long-Term Contractual Liabilities",
        "documentation": "Increase In Long-Term Contractual Liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_IncreaseInOccursOfCrudeOilHedge": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IncreaseInOccursOfCrudeOilHedge",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Increase in occurs of crude oil hedge",
        "label": "Increase in occurs of crude oil hedge",
        "documentation": "Increase in occurs of crude oil hedge."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_IncreaseMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IncreaseMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Increase",
        "label": "Increase [member]",
        "documentation": "Increase."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_IncreaseOfProvedReserves": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IncreaseOfProvedReserves",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Increase of proved reserves",
        "label": "Increase of Proved Reserves",
        "documentation": "Increase of Proved Reserves"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_IndependenciaPetrochemicalComplexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IndependenciaPetrochemicalComplexMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Independencia Petrochemical Complex",
        "label": "Independencia Petrochemical Complex [Member]",
        "documentation": "Independencia Petrochemical Complex"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IndividualAssetsOrCashgeneratingUnitsAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofDiscountRatesandUsefulLivesCGUsPemexLogisticsDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexLogisticsDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofValuesinUseforCGUImpairmentorReversalPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Individual assets or cash-generating units [axis]",
        "label": "Individual assets or cash-generating units [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r64"
     ]
    },
    "ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IndividualAssetsOrCashgeneratingUnitsDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofDiscountRatesandUsefulLivesCGUsPemexLogisticsDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexLogisticsDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofValuesinUseforCGUImpairmentorReversalPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Individual assets or cash-generating units",
        "label": "Individual assets or cash-generating units [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Individual assets or cash-generating units' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r64"
     ]
    },
    "ecd_IndividualAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "IndividualAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure",
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure",
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements",
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Individual [Axis]",
        "terseLabel": "Individual:"
       }
      }
     },
     "auth_ref": [
      "r476",
      "r487",
      "r497",
      "r521",
      "r530",
      "r534",
      "r542"
     ]
    },
    "ck0000932782_IndustrialDieselMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IndustrialDieselMember",
     "presentation": [
      "http://mexicopetroleum.com/role/RelatedPartiesSummaryofProductsAcquisitionfromPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Industrial diesel",
        "label": "Industrial diesel [member]",
        "documentation": "Industrial diesel."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_IndustrialProcessesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IndustrialProcessesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialProcessesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Industrial Processes (formerly part of Pemex Industrial Transformation)",
        "label": "Industrial Processes [Member]",
        "documentation": "formerly Pemex industrial transformation"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_IndustrialProcessesSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IndustrialProcessesSegmentMember",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Industrial Processes",
        "label": "Industrial Processes Segment [Member]",
        "documentation": "Industrial Processes Segment"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_IndustrialTransformationSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IndustrialTransformationSegmentMember",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialTranformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Industrial Transformation",
        "label": "Industrial Transformation Segment [member]",
        "documentation": "Industrial transformation segment."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_InfrastructureAndServiceWorksMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "InfrastructureAndServiceWorksMember",
     "presentation": [
      "http://mexicopetroleum.com/role/CommitmentsEstimatedValueofContractsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Infrastructure and service works",
        "label": "Infrastructure and service works [member]",
        "documentation": "Infrastructure and service works [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_InitialExpectedEquityContributionsByOwners": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "InitialExpectedEquityContributionsByOwners",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Initial expected equity contributions by owners",
        "label": "Initial Expected Equity Contributions By Owners",
        "documentation": "Initial Expected Equity Contributions By Owners"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_InpexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "InpexMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Inpex",
        "label": "Inpex [member]",
        "documentation": "Inpex."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_InsiderTradingArrLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "InsiderTradingArrLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Insider Trading Arrangements [Line Items]",
        "terseLabel": "Insider Trading Arrangements:"
       }
      }
     },
     "auth_ref": [
      "r540"
     ]
    },
    "ecd_InsiderTradingPoliciesProcLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "InsiderTradingPoliciesProcLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Insider Trading Policies and Procedures [Line Items]",
        "terseLabel": "Insider Trading Policies and Procedures:"
       }
      }
     },
     "auth_ref": [
      "r457",
      "r546"
     ]
    },
    "ecd_InsiderTrdPoliciesProcAdoptedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "InsiderTrdPoliciesProcAdoptedFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingPoliciesProc"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Insider Trading Policies and Procedures Adopted [Flag]",
        "terseLabel": "Insider Trading Policies and Procedures Adopted"
       }
      }
     },
     "auth_ref": [
      "r457",
      "r546"
     ]
    },
    "ecd_InsiderTrdPoliciesProcNotAdoptedTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "InsiderTrdPoliciesProcNotAdoptedTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingPoliciesProc"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Insider Trading Policies and Procedures Not Adopted [Text Block]",
        "terseLabel": "Insider Trading Policies and Procedures Not Adopted"
       }
      }
     },
     "auth_ref": [
      "r457",
      "r546"
     ]
    },
    "ck0000932782_InsuranceAndDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "InsuranceAndDeposits",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail": {
       "parentTag": "ifrs-full_OtherRevenue",
       "weight": 1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Insurance and deposits",
        "label": "Insurance And Deposits",
        "documentation": "Inssurance and deposits."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InsuranceExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InsuranceExpense",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail": {
       "parentTag": "ck0000932782_CostOfSalesAndGeneralExpenses",
       "weight": 1.0,
       "order": 18.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Insurance",
        "label": "Insurance expense"
       }
      }
     },
     "auth_ref": [
      "r610"
     ]
    },
    "ifrs-full_IntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IntangibleAssetsOtherThanGoodwill",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
      "http://mexicopetroleum.com/role/IntangibleAssetsNetAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofIntangibleAssetsDetail",
      "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofOtherComponentsofIntangibleAssetsDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Intangible assets, net",
        "terseLabel": "Intangible assets",
        "periodStartLabel": "Balance at the beginning of the year",
        "periodEndLabel": "Balance at the end of the year",
        "label": "Intangible assets other than goodwill"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of identifiable non-monetary assets without physical substance. This amount does not include goodwill. [Refer: Goodwill]"
       }
      }
     },
     "auth_ref": [
      "r75",
      "r305",
      "r351"
     ]
    },
    "ifrs-full_IntangibleAssetsOtherThanGoodwillMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IntangibleAssetsOtherThanGoodwillMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofIntangibleAssetsDetail",
      "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofOtherComponentsofIntangibleAssetsDetail",
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofCostsIncurredforOilandGasPropertyExplorationandDevelopmentActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Intangible assets other than goodwill",
        "label": "Intangible assets other than goodwill [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for intangible assets other than goodwill. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r395",
      "r413",
      "r439",
      "r444"
     ]
    },
    "ck0000932782_IntegratedContractsExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IntegratedContractsExpenses",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail": {
       "parentTag": "ck0000932782_CostOfSalesAndGeneralExpenses",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Integrated Contracts",
        "label": "Integrated Contracts Expenses",
        "documentation": "Integrated contracts expenses."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_InterCompanyChargesAndDeductions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "InterCompanyChargesAndDeductions",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Inter-company charges and deductions",
        "label": "Inter Company Charges And Deductions",
        "documentation": "Inter company charges and deductions."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_InterCompanyIncreaseDecreaseFinancing": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "InterCompanyIncreaseDecreaseFinancing",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Inter-company (decrease) increase financing",
        "label": "Inter Company Increase Decrease Financing",
        "documentation": "Inter company increase decrease financing."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_InterbankYieldCurves": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "InterbankYieldCurves",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofInterestRateandCurrencyDerivativeFinancialInstrumentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Sensitivity Debt",
        "label": "Interbank Yield Curves",
        "documentation": "Interbank Yield Curves"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_InterbankYieldCurvesSensitivityDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "InterbankYieldCurvesSensitivityDebt",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofInterestRateSensitivityDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofInterestRateandCurrencyDerivativeFinancialInstrumentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Sensitivity debt",
        "terseLabel": "Sensitivity debt",
        "label": "Interbank yield curves sensitivity debt",
        "documentation": "Interbank yield curves sensitivity debt."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_InterbankYieldCurvesSensitivityDerivativeFinancialInstruments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "InterbankYieldCurvesSensitivityDerivativeFinancialInstruments",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofInterestRateSensitivityDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofInterestRateandCurrencyDerivativeFinancialInstrumentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Sensitivity DFIs",
        "negatedLabel": "Sensitivity DFIs",
        "label": "Interbank yield curves sensitivity derivative financial instruments",
        "documentation": "Interbank yield curves sensitivity derivative financial instruments"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_InterbankYieldCurvesSensitivityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "InterbankYieldCurvesSensitivityMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofInterestRateandCurrencyDerivativeFinancialInstrumentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interbank Yield Curves Sensitivity",
        "label": "Interbank Yield Curves Sensitivity [Member]",
        "documentation": "Interbank yield curves sensitivity."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InterestExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InterestExpense",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest cost",
        "label": "Interest expense"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of expense arising from interest."
       }
      }
     },
     "auth_ref": [
      "r115",
      "r197",
      "r206"
     ]
    },
    "ifrs-full_InterestExpenseIncomeNetDefinedBenefitLiabilityAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InterestExpenseIncomeNetDefinedBenefitLiabilityAsset",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsRecognizedforOtherLongtermObligationsDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofRetirementandPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "netLabel": "Net interest",
        "terseLabel": "Charge to income for the year",
        "label": "Increase (decrease) in net defined benefit liability (asset) resulting from interest expense (income)"
       }
      }
     },
     "auth_ref": [
      "r27",
      "r283"
     ]
    },
    "ifrs-full_InterestExpenseOnLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InterestExpenseOnLeaseLiabilities",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesSummaryofleasesliabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accrued interest",
        "label": "Interest expense on lease liabilities"
       }
      }
     },
     "auth_ref": [
      "r137",
      "r241"
     ]
    },
    "ck0000932782_InterestIncomeNonOperating": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "InterestIncomeNonOperating",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest income",
        "label": "Interest Income Non Operating",
        "documentation": "Interest income non operating."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InterestIncomeOnDebtInstrumentsHeld": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InterestIncomeOnDebtInstrumentsHeld",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest income",
        "label": "Interest income on debt instruments held"
       }
      }
     },
     "auth_ref": [
      "r610"
     ]
    },
    "ck0000932782_InterestIncomeOnDebtInstrumentsReceived": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "InterestIncomeOnDebtInstrumentsReceived",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Payment received",
        "label": "Interest income on debt instruments received",
        "documentation": "Interest income on debt instruments received"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_InterestIncomeOnPromissoryNotes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "InterestIncomeOnPromissoryNotes",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Promissory note interest amount",
        "label": "Interest income on promissory notes",
        "documentation": "Interest income on promissory notes."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InterestPaidClassifiedAsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InterestPaidClassifiedAsFinancingActivities",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 6.0
      },
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Interest paid",
        "label": "Interest paid, classified as financing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for interest paid, classified as financing activities."
       }
      }
     },
     "auth_ref": [
      "r87"
     ]
    },
    "ck0000932782_InterestPaidFromLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "InterestPaidFromLeaseLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesSummaryofleasesliabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Interests paid",
        "label": "Interest Paid From Lease Liabilities",
        "documentation": "Interest paid from lease liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_InterestRateAndCurrencyDfisSensitivityNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "InterestRateAndCurrencyDfisSensitivityNet",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofInterestRateSensitivityDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofInterestRateandCurrencyDerivativeFinancialInstrumentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Sensitivity net",
        "terseLabel": "Sensitivity net",
        "label": "Interest rate and currency DFIS sensitivity net",
        "documentation": "Interest rate and currency DFIS sensitivity net."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_InterestRateOptionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "InterestRateOptionsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofNetGainLossRecognizedinIncomeonDerivativeFinancialInstrumentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest rate options",
        "label": "Interest Rate Options [Member]",
        "documentation": "Crude Oil Options Position One."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_InterestRateOptionsPositionOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "InterestRateOptionsPositionOneMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Buy Cap, Sell Floor on floating in U.S. dollar SOFR 1M",
        "label": "Interest Rate Options Position One [Member]",
        "documentation": "Interest rate options position one."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_InterestRateOptionsPositionTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "InterestRateOptionsPositionTwoMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValuesandNotionalAmountsofDFIsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Petr\u00f3leos Mexicanos pays TIIEF + spread in pesos and receives fixed in U.S. dollar",
        "label": "Interest Rate Options Position Two [Member]",
        "documentation": "Interest Rate Options Position Two"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InterestRateRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InterestRateRiskMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest rate risk",
        "label": "Interest rate risk [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the type of risk that the fair value or future cash flows of a financial instrument will fluctuate because of changes in market interest rates. [Refer: Classes of financial instruments [domain]]"
       }
      }
     },
     "auth_ref": [
      "r151",
      "r152",
      "r153",
      "r154",
      "r194"
     ]
    },
    "ck0000932782_InterestRateSwap1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "InterestRateSwap1Member",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest Rate Swaps (U.S. dollars)",
        "label": "Interest Rate Swap 1 [member]",
        "documentation": "Interest rate swap."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InterestRateSwapContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InterestRateSwapContractMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValueofDFIsincludedinStatementofFinancialPositionDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofNetGainLossRecognizedinIncomeonDerivativeFinancialInstrumentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest rate swaps",
        "label": "Interest rate swap contract [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for an interest rate swap contract. [Refer: Swap contract [member]]"
       }
      }
     },
     "auth_ref": [
      "r610"
     ]
    },
    "ck0000932782_InterestRateSwapsPositionOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "InterestRateSwapsPositionOneMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValuesandNotionalAmountsofDFIsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Petr\u00f3leos Mexicanos pays fixed in U.S. dollar and receives floating in 3-month U.S. dollar SOFR + spread.",
        "label": "Interest Rate Swaps Position One [member]",
        "documentation": "Interest rate swaps position one."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_InterestRateSwapsPositionThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "InterestRateSwapsPositionThreeMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValuesandNotionalAmountsofDFIsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Petr\u00f3leos Mexicanos pays floating in 6-month U.S. dollar SOFR + spread and receives fixed in U.S. dollar",
        "label": "Interest Rate Swaps Position Three [member]",
        "documentation": "Interest rate swaps position three."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_InterestRateSwapsPositionTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "InterestRateSwapsPositionTwoMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValuesandNotionalAmountsofDFIsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Petr\u00f3leos Mexicanos pays fixed in U.S. dollar and receives floating in 6-month U.S. dollar SOFR + spread.",
        "label": "Interest Rate Swaps Position Two [member]",
        "documentation": "Interest rate swaps position two."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InterestReceivedClassifiedAsInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InterestReceivedClassifiedAsInvestingActivities",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofRollforwardoftheMexicanBondsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Interests received from bonds",
        "label": "Interest received, classified as investing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash inflow from interest received, classified as investing activities."
       }
      }
     },
     "auth_ref": [
      "r87"
     ]
    },
    "ck0000932782_InterestReceivedOnClassifiedAsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "InterestReceivedOnClassifiedAsFinancingActivities",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest collected from the Mexican Government",
        "label": "Interest received on classified as financing activities",
        "documentation": ".Concept not in agreement with IAS 7.33"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_InterestReceivedOtherClassifiedAsInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "InterestReceivedOtherClassifiedAsInvestingActivities",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Interest collected",
        "label": "Interest Received Other Classified As Investing Activities",
        "documentation": "Interest received other classified as investing activities."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_InterestsFromFinancialLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "InterestsFromFinancialLeaseLiabilities",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesSummaryofleaseliabilitiesrecognizedinstatementofcomprehensiveincomeDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interests from lease liabilities",
        "label": "Interests From Financial Lease Liabilities",
        "documentation": "Interests from financial lease liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_InterestsPaid": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "InterestsPaid",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofChangesinConsolidatedDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest (paid)",
        "label": "Interests Paid",
        "documentation": "Interests paid."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_InterestsPaidClassifiedAsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "InterestsPaidClassifiedAsFinancingActivities",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 2.0
      },
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperationsBeforeChangesInWorkingCapital",
       "weight": 1.0,
       "order": 16.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financing cost",
        "verboseLabel": "Financing cost",
        "label": "Interests Paid Classified As Financing Activities",
        "documentation": "Interests paid classified as financing activities."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_InterestsReceivedClassifiedAsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "InterestsReceivedClassifiedAsFinancingActivities",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperationsBeforeChangesInWorkingCapital",
       "weight": -1.0,
       "order": 17.0
      },
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": -1.0,
       "order": 18.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Financing income",
        "label": "Interests Received Classified As Financing Activities",
        "documentation": "Interests received classified as financing activities."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_Inventories": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "Inventories",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssets",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
      "http://mexicopetroleum.com/role/InventoriesSummaryofInventoriesDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Inventories",
        "label": "Current inventories"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current inventories. [Refer: Inventories]"
       }
      }
     },
     "auth_ref": [
      "r40",
      "r254",
      "r353",
      "r449"
     ]
    },
    "ck0000932782_InventoriesRecognizedAsCostOfSales": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "InventoriesRecognizedAsCostOfSales",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/InventoriesSummaryofInventoriesParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Inventories recognized as cost of sales",
        "label": "Inventories Recognized as Cost of Sales",
        "documentation": "Inventories recognized as cost of sales."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_InventoriesVariations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "InventoriesVariations",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail": {
       "parentTag": "ck0000932782_CostOfSalesAndGeneralExpenses",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Inventory variations",
        "label": "Inventories variations",
        "documentation": "Inventories variations."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InvestmentsInEquityInstrumentsMeasuredAtFairValueThroughOtherComprehensiveIncomeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InvestmentsInEquityInstrumentsMeasuredAtFairValueThroughOtherComprehensiveIncomeMember",
     "presentation": [
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "FVOCI \u2013 equity instruments",
        "label": "Investments in equity instruments designated at fair value through other comprehensive income [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for investments in equity instruments that the entity has designated at fair value through other comprehensive income. [Refer: At fair value [member]; Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r191",
      "r321"
     ]
    },
    "ck0000932782_InvestmentsInPortfolio": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "InvestmentsInPortfolio",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investment in portfolio",
        "label": "Investments in portfolio",
        "documentation": "Investments in portfolio."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InvestmentsInSubsidiariesJointVenturesAndAssociates",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 3.0
      },
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail": {
       "parentTag": "ifrs-full_FinancialAssets",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Investments in associates",
        "verboseLabel": "Investments in associates",
        "label": "Investments in subsidiaries, joint ventures and associates reported in separate financial statements"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of investments in subsidiaries, joint ventures and associates in an entity's separate financial statements. [Refer: Total for all associates [member]; Total for all joint ventures [member]; Total for all subsidiaries [member]; Investments in subsidiaries reported in separate financial statements]"
       }
      }
     },
     "auth_ref": [
      "r54"
     ]
    },
    "ck0000932782_InvoicePaymentTerms": {
     "xbrltype": "durationItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "InvoicePaymentTerms",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Invoice payment terms",
        "label": "Invoice Payment Terms",
        "documentation": "Invoice Payment Terms"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IssuedCapital": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IssuedCapital",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Certificates of Contribution \u201cA\u201d",
        "label": "Issued capital"
       }
      },
      "en": {
       "role": {
        "documentation": "The nominal value of capital issued."
       }
      }
     },
     "auth_ref": [
      "r446",
      "r451"
     ]
    },
    "ck0000932782_ItemsRelatedToFinancingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ItemsRelatedToFinancingActivitiesAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Items related to financing activities",
        "label": "Items related to financing activities abstract",
        "documentation": "Items related to financing activities abstract."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ItemsRelatedToInvestmentActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ItemsRelatedToInvestmentActivitiesAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Items related to investment activities",
        "label": "Items related to investment activities abstract",
        "documentation": "Items related to investment activities abstract."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_IxtalManikMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "IxtalManikMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofValuesinUseforCGUImpairmentorReversalPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Ixtal - Manik",
        "label": "Ixtal Manik [Member]",
        "documentation": "Ixtal Manik."
       }
      }
     },
     "auth_ref": []
    },
    "currency_JPY": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/currency/2025",
     "localname": "JPY",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofInterestRateSensitivityDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofInterestRateandCurrencyDerivativeFinancialInstrumentsDetail",
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofMonetaryAssetsandLiabilitiesDenominatedInForeignCurrencyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Japanese yen",
        "terseLabel": "Yen",
        "label": "Japan, Yen"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_JapaneseYenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "JapaneseYenMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofForeignCurrencyTranslationDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFinancialLiabilitiesInterestAndPrincipalCashFlowMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Japanese yen",
        "label": "Japanese yen [member]",
        "documentation": "Japanese yen [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_JetFuelAndOtherKeroseneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "JetFuelAndOtherKeroseneMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Jet Fuel And Other Kerosene",
        "label": "Jet Fuel And Other Kerosene [Member]",
        "documentation": "Jet Fuel And Other Kerosene."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_KeyManagementPersonnelCompensation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "KeyManagementPersonnelCompensation",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/RelatedPartiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Aggregate compensation of executive officers",
        "label": "Key management personnel compensation"
       }
      }
     },
     "auth_ref": [
      "r49",
      "r292"
     ]
    },
    "ifrs-full_KeyManagementPersonnelCompensationOtherLongtermBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "KeyManagementPersonnelCompensationOtherLongtermBenefits",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/RelatedPartiesSummaryofRetirementandFormerEmployeeBenefitsGrantedDetail": {
       "parentTag": "ifrs-full_KeyManagementPersonnelCompensationTerminationBenefits",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/RelatedPartiesSummaryofRetirementandFormerEmployeeBenefitsGrantedDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Long-term",
        "label": "Key management personnel compensation, other long-term employee benefits"
       }
      }
     },
     "auth_ref": [
      "r47"
     ]
    },
    "ifrs-full_KeyManagementPersonnelCompensationPostemploymentBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "KeyManagementPersonnelCompensationPostemploymentBenefits",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/RelatedPartiesSummaryofRetirementandFormerEmployeeBenefitsGrantedDetail": {
       "parentTag": "ifrs-full_KeyManagementPersonnelCompensationTerminationBenefits",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/RelatedPartiesSummaryofRetirementandFormerEmployeeBenefitsGrantedDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Post-employment",
        "label": "Key management personnel compensation, post-employment benefits"
       }
      }
     },
     "auth_ref": [
      "r46"
     ]
    },
    "ifrs-full_KeyManagementPersonnelCompensationShorttermEmployeeBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "KeyManagementPersonnelCompensationShorttermEmployeeBenefits",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/RelatedPartiesSummaryofRetirementandFormerEmployeeBenefitsGrantedDetail": {
       "parentTag": "ifrs-full_KeyManagementPersonnelCompensationTerminationBenefits",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/RelatedPartiesSummaryofRetirementandFormerEmployeeBenefitsGrantedDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Retirement",
        "label": "Key management personnel compensation, short-term employee benefits"
       }
      }
     },
     "auth_ref": [
      "r45"
     ]
    },
    "ifrs-full_KeyManagementPersonnelCompensationTerminationBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "KeyManagementPersonnelCompensationTerminationBenefits",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/RelatedPartiesSummaryofRetirementandFormerEmployeeBenefitsGrantedDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/RelatedPartiesSummaryofRetirementandFormerEmployeeBenefitsGrantedDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total",
        "label": "Key management personnel compensation, termination benefits"
       }
      }
     },
     "auth_ref": [
      "r48"
     ]
    },
    "ck0000932782_KuMaloobZaapMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "KuMaloobZaapMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofValuesinUseforCGUImpairmentorReversalPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Ku Maloob Zaap",
        "label": "Ku Maloob Zaap [Member]",
        "documentation": "Ku Maloob Zaap"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LaVentaGasProcessorComplexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LaVentaGasProcessorComplexMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "La Venta Gas Processor Complex",
        "label": "La Venta Gas Processor Complex [Member]",
        "documentation": "La Venta Gas Processor Complex"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LakachMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LakachMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofValuesinUseforCGUImpairmentorReversalPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Lakach",
        "label": "Lakach [Member]",
        "documentation": "Lakach."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LandAndTransportWhitePipelinesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LandAndTransportWhitePipelinesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexLogisticsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Land and transport (white pipelines)",
        "label": "Land and transport white pipelines [Member]",
        "documentation": "Land and transport white pipelines"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LandMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LandMember",
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesSummaryofrightofuseassetsDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Land",
        "label": "Land [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of property, plant and equipment representing land held by the entity for use in operations. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r387"
     ]
    },
    "ck0000932782_LandingTransportMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LandingTransportMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofDiscountRatesandUsefulLivesCGUsPemexLogisticsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Landing transport",
        "label": "Landing transport [Member]",
        "documentation": "Landing transport"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LaterThanFiveYearsAndThereafterMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LaterThanFiveYearsAndThereafterMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofMaturitiesofLongTermDebtPrincipalOutstandingandAccruedInterestDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2031 and thereafter",
        "label": "Later than five years and thereafter [Member]",
        "documentation": "Later than five years and thereafter"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LaterThanFiveYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LaterThanFiveYearsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/CommitmentsEstimatedValueofContractsDetail",
      "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesScheduleofAmortizationofLongTermContractualLiabilitiesDetails",
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofprovisionsforpluggingofwellsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "netLabel": "2031 and thereafter",
        "terseLabel": "More than five years",
        "verboseLabel": "More than 5 years",
        "label": "Later than five years [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than five years."
       }
      }
     },
     "auth_ref": [
      "r142",
      "r144",
      "r156",
      "r247",
      "r250",
      "r422",
      "r425",
      "r428"
     ]
    },
    "ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LaterThanFourYearsAndNotLaterThanFiveYearsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/CommitmentsEstimatedValueofContractsDetail",
      "http://mexicopetroleum.com/role/DebtSummaryofMaturitiesofLongTermDebtPrincipalOutstandingandAccruedInterestDetail",
      "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesScheduleofAmortizationofLongTermContractualLiabilitiesDetails",
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofprovisionsforpluggingofwellsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "netLabel": "2030",
        "verboseLabel": "2030",
        "terseLabel": "4 to 5 years",
        "label": "Later than four years and not later than five years [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than four years and not later than five years."
       }
      }
     },
     "auth_ref": [
      "r142",
      "r144",
      "r156",
      "r422",
      "r428",
      "r610"
     ]
    },
    "ifrs-full_LaterThanOneMonthAndNotLaterThanTwoMonthsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LaterThanOneMonthAndNotLaterThanTwoMonthsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableScheduleofBreakdownofAccountsReceivableBasedonCreditHistoryDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "31 to 60 days",
        "label": "Later than one month and not later than two months [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than one month and not later than two months."
       }
      }
     },
     "auth_ref": [
      "r418",
      "r427",
      "r610"
     ]
    },
    "ifrs-full_LaterThanOneYearAndNotLaterThanThreeYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LaterThanOneYearAndNotLaterThanThreeYearsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/CommitmentsEstimatedValueofContractsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "1 to 3 years",
        "label": "Later than one year and not later than three years [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than one year and not later than three years."
       }
      }
     },
     "auth_ref": [
      "r422",
      "r424",
      "r428"
     ]
    },
    "ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LaterThanOneYearAndNotLaterThanTwoYearsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofMaturitiesofLongTermDebtPrincipalOutstandingandAccruedInterestDetail",
      "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesScheduleofAmortizationofLongTermContractualLiabilitiesDetails",
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofprovisionsforpluggingofwellsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2027",
        "verboseLabel": "2027",
        "label": "Later than one year and not later than two years [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than one year and not later than two years."
       }
      }
     },
     "auth_ref": [
      "r142",
      "r144",
      "r156",
      "r422",
      "r428",
      "r610"
     ]
    },
    "ifrs-full_LaterThanThreeMonthsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LaterThanThreeMonthsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableScheduleofBreakdownofAccountsReceivableBasedonCreditHistoryDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "More than 90 days",
        "label": "Later than three months [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than three months."
       }
      }
     },
     "auth_ref": [
      "r418",
      "r427"
     ]
    },
    "ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LaterThanThreeYearsAndNotLaterThanFourYearsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofMaturitiesofLongTermDebtPrincipalOutstandingandAccruedInterestDetail",
      "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesScheduleofAmortizationofLongTermContractualLiabilitiesDetails",
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofprovisionsforpluggingofwellsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2029",
        "verboseLabel": "2029",
        "label": "Later than three years and not later than four years [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than three years and not later than four years."
       }
      }
     },
     "auth_ref": [
      "r142",
      "r144",
      "r156",
      "r422",
      "r428",
      "r610"
     ]
    },
    "ifrs-full_LaterThanTwoMonthsAndNotLaterThanThreeMonthsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LaterThanTwoMonthsAndNotLaterThanThreeMonthsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableScheduleofBreakdownofAccountsReceivableBasedonCreditHistoryDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "61 to 90 days",
        "label": "Later than two months and not later than three months [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than two months and not later than three months."
       }
      }
     },
     "auth_ref": [
      "r418",
      "r427",
      "r610"
     ]
    },
    "ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LaterThanTwoYearsAndNotLaterThanThreeYearsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofMaturitiesofLongTermDebtPrincipalOutstandingandAccruedInterestDetail",
      "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesScheduleofAmortizationofLongTermContractualLiabilitiesDetails",
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofprovisionsforpluggingofwellsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "2028",
        "verboseLabel": "2028",
        "label": "Later than two years and not later than three years [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than two years and not later than three years."
       }
      }
     },
     "auth_ref": [
      "r142",
      "r144",
      "r156",
      "r422",
      "r428",
      "r610"
     ]
    },
    "ifrs-full_LeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LeaseLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFinancialLiabilitiesInterestAndPrincipalCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail",
      "http://mexicopetroleum.com/role/LeasesAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/LeasesSummaryofleasesliabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Leases",
        "terseLabel": "Lease liabilities",
        "periodStartLabel": "Beginning balance",
        "periodEndLabel": "Ending balance",
        "verboseLabel": "Leases",
        "label": "Lease liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of liabilities related to the entity's leases. Lease is a contract, or part of a contract, that conveys the right to use an underlying asset for a period of time in exchange for consideration."
       }
      }
     },
     "auth_ref": [
      "r135"
     ]
    },
    "ck0000932782_LeaseLiabilitiesForeignExchangeAdjustments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LeaseLiabilitiesForeignExchangeAdjustments",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesSummaryofleasesliabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Foreign Exchange",
        "label": "Lease Liabilities Foreign Exchange Adjustments",
        "documentation": "Lease liabilities foreign exchange adjustments."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LeaseLiabilitiesIncurred": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LeaseLiabilitiesIncurred",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesSummaryofleasesliabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Additions",
        "label": "Lease Liabilities Incurred",
        "documentation": "Lease liabilities incurred."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LeaseLiabilitiesPayments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LeaseLiabilitiesPayments",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesSummaryofleasesliabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Payments of principal",
        "label": "Lease Liabilities Payments",
        "documentation": "Lease liabilities payments."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LeaseLiabilitiesRollForward": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LeaseLiabilitiesRollForward",
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesSummaryofleasesliabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Lease liabilities [Roll Forward]",
        "label": "Lease liabilities [Roll Forward]",
        "documentation": "Lease liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LeasePaymentsOfPrincipalAndInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LeasePaymentsOfPrincipalAndInterest",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesSummaryofleaseliabilitiesrecognizedinstatementofcashflowsDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Lease payments (principal and interest)",
        "label": "Lease Payments Of Principal And Interest",
        "documentation": "Lease payments of principal and interest."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LegalEntiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LegalEntiesAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherExpensesDetail",
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Legal Enties [Axis]",
        "label": "Legal Enties [Axis]",
        "documentation": "Legal enties."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LegalEntiesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LegalEntiesDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherExpensesDetail",
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Legal Enties [Domain]",
        "label": "Legal Enties [Domain]",
        "documentation": "Legal Enties [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "dei_LegalEntityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "LegalEntityAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpenseBenefitAttributabletoProfitLossfromContinuingOperationsbeforeIncomeTaxesDetail",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxExpenseBenefitDetail",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingtheDeferredDUCDetail",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofTotalDUCandOthersDetail",
      "http://mexicopetroleum.com/role/LeasesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Legal Entity [Axis]",
        "label": "Legal Entity [Axis]",
        "documentation": "The set of legal entities associated with a report."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LegalEntityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LegalEntityDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherExpensesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Legal Entity [Domain]",
        "label": "Legal Entity [Domain]",
        "documentation": "Legal entity."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LegalProceedingClaimDamagesSoughtValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LegalProceedingClaimDamagesSoughtValue",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/ContingenciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Legal proceeding claim damages sought value",
        "label": "Legal proceeding claim damages sought value",
        "documentation": "Legal proceeding claim damages sought value."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LessThan91OctanesGasolineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LessThan91OctanesGasolineMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Less Than 91 Octanes Gasoline",
        "label": "Less Than 91 Octanes Gasoline [Member]",
        "documentation": "Less than 91 octanes gasoline."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LessThanOneYearMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LessThanOneYearMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofCurrentandPotentialExposuresandAggregatedbyCreditRatingDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Less than 1 year",
        "label": "Less than one year [member]",
        "documentation": "Less than one year."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LesseeLeaseTerms": {
     "xbrltype": "durationItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LesseeLeaseTerms",
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Lease term",
        "label": "Lessee, Lease Terms",
        "documentation": "Lessee, Lease Terms"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LesseeLeasingArrangementsLeaseTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LesseeLeasingArrangementsLeaseTerm",
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/LeasesSummaryofrightofuseassetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Estimated useful life",
        "label": "Lessee Leasing Arrangements Lease Term",
        "documentation": "Lessee leasing arrangements lease term."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LesseeRenegotiationOptionTerms": {
     "xbrltype": "durationItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LesseeRenegotiationOptionTerms",
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Lessee, renegotiation option, terms",
        "label": "Lessee, Renegotiation Option, Terms",
        "documentation": "Lessee, Renegotiation Option, Terms"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_Level1OfFairValueHierarchyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "Level1OfFairValueHierarchyMember",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAdditionalFairvalueDisclosureAboutPlanAssetsandIndicateTheirRankDetail",
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Level 1",
        "verboseLabel": "Quoted prices in active markets for identical assets (level 1)",
        "label": "Level 1 of fair value hierarchy [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a category of the fair value hierarchy where inputs to the valuation techniques are quoted prices (unadjusted) in active markets for identical assets or liabilities that the entity can access at the measurement date."
       }
      }
     },
     "auth_ref": [
      "r36",
      "r63",
      "r65",
      "r120",
      "r297",
      "r334"
     ]
    },
    "ifrs-full_Level2OfFairValueHierarchyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "Level2OfFairValueHierarchyMember",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAdditionalFairvalueDisclosureAboutPlanAssetsandIndicateTheirRankDetail",
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Level 2",
        "verboseLabel": "Significant observable inputs (level 2)",
        "label": "Level 2 of fair value hierarchy [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a category of the fair value hierarchy where inputs to the valuation techniques are inputs other than quoted prices included within Level 1 that are observable for the asset or liability, either directly or indirectly."
       }
      }
     },
     "auth_ref": [
      "r63",
      "r65",
      "r120",
      "r297",
      "r334"
     ]
    },
    "ifrs-full_Level3OfFairValueHierarchyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "Level3OfFairValueHierarchyMember",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAdditionalFairvalueDisclosureAboutPlanAssetsandIndicateTheirRankDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Significant unobservable inputs (level 3)",
        "label": "Level 3 of fair value hierarchy [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a category of the fair value hierarchy where inputs to the valuation techniques are unobservable inputs for the asset or liability. Unobservable inputs are inputs for which market data are not available and that are developed using the best information available about the assumptions that the market participants would use when pricing the asset or liability."
       }
      }
     },
     "auth_ref": [
      "r63",
      "r65",
      "r120",
      "r297",
      "r334"
     ]
    },
    "ifrs-full_LevelsOfFairValueHierarchyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LevelsOfFairValueHierarchyAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAdditionalFairvalueDisclosureAboutPlanAssetsandIndicateTheirRankDetail",
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Levels of fair value hierarchy [axis]",
        "label": "Levels of fair value hierarchy [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r36",
      "r120",
      "r334"
     ]
    },
    "ifrs-full_LevelsOfFairValueHierarchyDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LevelsOfFairValueHierarchyDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAdditionalFairvalueDisclosureAboutPlanAssetsandIndicateTheirRankDetail",
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Levels of fair value hierarchy",
        "label": "Levels of fair value hierarchy [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for all levels of the fair value hierarchy. It also represents the standard value for the 'Levels of fair value hierarchy' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r36",
      "r120",
      "r334"
     ]
    },
    "ifrs-full_Liabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "Liabilities",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_EquityAndLiabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total liabilities",
        "label": "Liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of a present obligation of the entity to transfer an economic resource as a result of past events. Economic resource is a right that has the potential to produce economic benefits."
       }
      }
     },
     "auth_ref": [
      "r119",
      "r120",
      "r122",
      "r201",
      "r205",
      "r333",
      "r334",
      "r361"
     ]
    },
    "ifrs-full_LiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LiabilitiesAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Liabilities",
        "label": "Liabilities [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LiabilityAssetOfDefinedBenefitPlans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LiabilityAssetOfDefinedBenefitPlans",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsAssociatedWithPEMEXsLaborObligationsDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsRecognizedforOtherLongtermObligationsDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsandTypesofPlanAssetsDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofRetirementandPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total liability for defined benefits recognized in the consolidated statement of financial position at the end of the year",
        "periodStartLabel": "Defined benefit obligations at the beginning of the year",
        "periodEndLabel": "Defined benefit liabilities at end of year",
        "label": "Net defined benefit liability (asset)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of deficit or surplus in a defined benefit plan, adjusted for any effect of limiting a net defined benefit asset to the asset ceiling. [Refer: Defined benefit plans [domain]]"
       }
      }
     },
     "auth_ref": [
      "r25",
      "r281"
     ]
    },
    "ifrs-full_LicencesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LicencesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofOtherComponentsofIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Licenses",
        "label": "Licences [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of intangible assets representing the right to use certain intangible assets owned by another entity. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r582"
     ]
    },
    "ck0000932782_LicenseContractsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LicenseContractsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "License Contracts",
        "label": "License Contracts [Member]",
        "documentation": "License Contracts"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LicensesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LicensesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Licenses",
        "label": "Licenses [member]",
        "documentation": "Licenses."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LineOfCredit1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LineOfCredit1",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Line of credit",
        "label": "Line Of Credit 1",
        "documentation": "Amount borrowed under the credit facility as of the balance sheet date."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LinesOfCreditMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LinesOfCreditMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Lines Of Credit",
        "label": "Lines Of Credit [Member]",
        "documentation": "Lines Of Credit."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LiquidationEventLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LiquidationEventLoss",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofRetirementandPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Liquidation event loss",
        "label": "Liquidation Event Loss",
        "documentation": "Liquidation event loss."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LiquidityRiskMitigationAmountThroughBilateralCreditLines": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LiquidityRiskMitigationAmountThroughBilateralCreditLines",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Liquidity risk mitigation amount through bilateral credit lines",
        "label": "Liquidity Risk Mitigation Amount Through Bilateral Credit Lines",
        "documentation": "Liquidity risk mitigation amount through bilateral credit lines."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LiquidityRiskMitigationAmountThroughSyndicatedCreditLines": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LiquidityRiskMitigationAmountThroughSyndicatedCreditLines",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Liquidity risk mitigation amount through syndicated credit lines",
        "label": "Liquidity Risk Mitigation Amount Through Syndicated Credit Lines",
        "documentation": "Liquidity Risk Mitigation Amount Through Syndicated Credit Lines"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LoansAndAdvances": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LoansAndAdvances",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Long-term notes receivable, net of current portion",
        "terseLabel": "Loans and advances",
        "label": "Loans and advances"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of loans and advances the entity has made."
       }
      }
     },
     "auth_ref": [
      "r614"
     ]
    },
    "ck0000932782_LoansAndReceivablesFromForeignBanks": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LoansAndReceivablesFromForeignBanks",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofForeignCurrencyTranslationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loan from foreign banks",
        "label": "Loans And Receivables From Foreign Banks",
        "documentation": "Loans And Receivables From Foreign Banks."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LoansReceived": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LoansReceived",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofChangesinConsolidatedDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loans obtained - financing institutions",
        "label": "Loans received"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of loans received."
       }
      }
     },
     "auth_ref": [
      "r610"
     ]
    },
    "ck0000932782_LocalCountryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LocalCountryMember",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Local",
        "label": "Local Country [member]",
        "documentation": "Local Country."
       }
      }
     },
     "auth_ref": []
    },
    "dei_LocalPhoneNumber": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "LocalPhoneNumber",
     "presentation": [
      "http://mexicopetroleum.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Local Phone Number",
        "label": "Local Phone Number",
        "documentation": "Local phone number for entity."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LogisticsSegmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LogisticsSegmentMember",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Logistics",
        "label": "Logistics Segment [member]",
        "documentation": "Logistics segment."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LongTermContractualLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LongTermContractualLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFinancialLiabilitiesInterestAndPrincipalCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Long-term contractual liabilities",
        "negatedLabel": "Long-term contractual liabilities",
        "label": "Long-Term Contractual Liabilities",
        "documentation": "Long-Term Contractual Liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LongTermContractualLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LongTermContractualLiabilitiesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Long Term Contractual Liabilities [Abstract]",
        "documentation": "Long Term Contractual Liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LongTermContractualLiabilitiesFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LongTermContractualLiabilitiesFairValue",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesScheduleofAmortizationofLongTermContractualLiabilitiesDetails",
      "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesScheduleofContractualLongTermliabilityFairValuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Long-term contractual liabilities fair value",
        "label": "Long-Term Contractual Liabilities Fair Value",
        "documentation": "Long-Term Contractual Liabilities Fair Value"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LongTermContractualLiabilitiesOfRedocumentationsFairValuesExplanatoryTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LongTermContractualLiabilitiesOfRedocumentationsFairValuesExplanatoryTableTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Contractual Long-Term liability Fair Values",
        "label": "Long-Term Contractual Liabilities Of Redocumentations Fair Values Explanatory [Table Text Block]",
        "documentation": "Long-Term Contractual Liabilities Of Redocumentations Fair Values Explanatory"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LongTermContractualLiabilitiesPercentage": {
     "xbrltype": "pureItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LongTermContractualLiabilitiesPercentage",
     "presentation": [
      "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesScheduleofContractualLongTermliabilityFairValuesDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest rate spread",
        "label": "Long-Term Contractual Liabilities Percentage",
        "documentation": "Long-Term Contractual Liabilities Percentage"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LongTermDebtRepaymentObligation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LongTermDebtRepaymentObligation",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofChangesinConsolidatedDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Debt payments",
        "label": "Long term debt repayment obligation",
        "documentation": "Long term debt repayment obligation"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LongTermEmployeeBenefitsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LongTermEmployeeBenefitsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Long term employee benefits",
        "label": "Long Term Employee Benefits [member]",
        "documentation": "Long term employee benefits."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LongTermGovernmentBond": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LongTermGovernmentBond",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Government Bonds",
        "label": "Long term government bond",
        "documentation": "Long term government bond."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LongTermPayablesInterCompany": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LongTermPayablesInterCompany",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Long-term payables\u2014intercompany",
        "label": "Long Term Payables Inter Company",
        "documentation": "Long term payables inter company."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LongtermBorrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LongtermBorrowings",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail",
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Long-term debt, net of current portion",
        "verboseLabel": "Long-term debt",
        "label": "Non-current portion of non-current borrowings"
       }
      },
      "en": {
       "role": {
        "documentation": "The non-current portion of non-current borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r614"
     ]
    },
    "ck0000932782_LossContingenciesByNatureAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LossContingenciesByNatureAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/ContingenciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loss Contingencies By Nature [Axis]",
        "label": "Loss Contingencies By Nature [Axis]",
        "documentation": "Loss Contingencies By Nature"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LossContingenciesByNatureDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LossContingenciesByNatureDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/ContingenciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loss Contingencies By Nature [Domain]",
        "label": "Loss Contingencies By Nature [Domain]",
        "documentation": "Loss Contingencies By Nature [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LossContingencyDamagesSoughtAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LossContingencyDamagesSoughtAmount",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/ContingenciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loss contingency damages sought amount",
        "label": "Loss Contingency Damages Sought Amount",
        "documentation": "Loss Contingency Damages Sought Amount"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LossesFromFuelsSubtraction": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LossesFromFuelsSubtraction",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail": {
       "parentTag": "ck0000932782_CostOfSalesAndGeneralExpenses",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Losses from fuels subtraction",
        "label": "Losses From Fuels Subtraction",
        "documentation": "Losses from fuels substraction."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_LowerThan91OctaneGasolineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "LowerThan91OctaneGasolineMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Lower Than 91 Octane Gasoline",
        "label": "Lower Than 91 Octane Gasoline [Member]",
        "documentation": "Lower Than 91 Octane Gasoline"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_MGASMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "MGASMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "MGAS",
        "label": "MGAS [Member]",
        "documentation": "MGAS"
       }
      }
     },
     "auth_ref": []
    },
    "country_MX": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/country/2025",
     "localname": "MX",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Incentive for automotive fuels",
        "verboseLabel": "Mexico",
        "label": "MEXICO"
       }
      }
     },
     "auth_ref": []
    },
    "currency_MXN": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/currency/2025",
     "localname": "MXN",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofInterestRateSensitivityDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofInterestRateandCurrencyDerivativeFinancialInstrumentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Peso",
        "label": "Mexico, Pesos"
       }
      }
     },
     "auth_ref": []
    },
    "currency_MXV": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/currency/2025",
     "localname": "MXV",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofForeignCurrencyTranslationDetail",
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofInterestRateSensitivityDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofInterestRateandCurrencyDerivativeFinancialInstrumentsDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFinancialLiabilitiesInterestAndPrincipalCashFlowMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "UDIs",
        "verboseLabel": "UDI",
        "label": "Mexican Unidad de Inversion (UDI) (funds code)"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_MaderoRefineryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "MaderoRefineryMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Madero Refinery",
        "label": "Madero Refinery [member]",
        "documentation": "Madero refinery."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_MagnaGasolineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "MagnaGasolineMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Magna Gasoline",
        "label": "Magna Gasoline [member]",
        "documentation": "Magna gasoline."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_MasterTrustMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "MasterTrustMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationSummaryofPrincipalAmountOutstandingofRegisteredDebtSecuritiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Master Trust",
        "label": "Master Trust [member]",
        "documentation": "Master trust."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_MatapioncheGasProcessorComplexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "MatapioncheGasProcessorComplexMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Matapionche Gas Processor Complex",
        "label": "Matapionche Gas Processor Complex [Member]",
        "documentation": "Matapionche Gas Processor Complex"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_MaterialsAndProductsInStockMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "MaterialsAndProductsInStockMember",
     "presentation": [
      "http://mexicopetroleum.com/role/InventoriesSummaryofInventoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Materials and products in stock",
        "label": "Materials And Products In Stock [member]",
        "documentation": "Materials and products in stock"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_MaterialsAndSuppliesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "MaterialsAndSuppliesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/InventoriesSummaryofInventoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Materials in transit",
        "label": "Materials And Supplies [member]",
        "documentation": "Materials and supplies."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_MaturityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "MaturityAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/CommitmentsEstimatedValueofContractsDetail",
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableScheduleofBreakdownofAccountsReceivableBasedonCreditHistoryDetail",
      "http://mexicopetroleum.com/role/DebtSummaryofMaturitiesofLongTermDebtPrincipalOutstandingandAccruedInterestDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesScheduleofAmortizationofLongTermContractualLiabilitiesDetails",
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofprovisionsforpluggingofwellsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Maturity [axis]",
        "label": "Maturity [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r130",
      "r142",
      "r144",
      "r147",
      "r148",
      "r150",
      "r156",
      "r169",
      "r184",
      "r235",
      "r239",
      "r248",
      "r251",
      "r325",
      "r364",
      "r392",
      "r422"
     ]
    },
    "ifrs-full_MaturityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "MaturityDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/CommitmentsEstimatedValueofContractsDetail",
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableScheduleofBreakdownofAccountsReceivableBasedonCreditHistoryDetail",
      "http://mexicopetroleum.com/role/DebtSummaryofMaturitiesofLongTermDebtPrincipalOutstandingandAccruedInterestDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesScheduleofAmortizationofLongTermContractualLiabilitiesDetails",
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofprovisionsforpluggingofwellsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Maturity",
        "label": "Maturity [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for aggregated time bands. It also represents the standard value for the 'Maturity' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r130",
      "r142",
      "r144",
      "r147",
      "r148",
      "r150",
      "r156",
      "r169",
      "r235",
      "r239",
      "r248",
      "r251",
      "r325",
      "r364",
      "r392",
      "r422",
      "r426"
     ]
    },
    "ck0000932782_MaturityPeriodAfterYearFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "MaturityPeriodAfterYearFiveMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFinancialLiabilitiesInterestAndPrincipalCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Maturity Period After Year Five",
        "label": "Maturity Period After Year Five [Member]",
        "documentation": "Maturity Period After Year Five"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_MaturityPeriodFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "MaturityPeriodFiveMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFinancialLiabilitiesInterestAndPrincipalCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Maturity Period Five",
        "label": "Maturity Period Five [member]",
        "documentation": "Maturity period five."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_MaturityPeriodFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "MaturityPeriodFourMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFinancialLiabilitiesInterestAndPrincipalCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Maturity Period Four",
        "label": "Maturity Period Four [member]",
        "documentation": "Maturity period four."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_MaturityPeriodOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "MaturityPeriodOneMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFinancialLiabilitiesInterestAndPrincipalCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Maturity Period One",
        "label": "Maturity Period One [Member]",
        "documentation": "Maturity Period One"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_MaturityPeriodThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "MaturityPeriodThreeMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFinancialLiabilitiesInterestAndPrincipalCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Maturity Period Three",
        "label": "Maturity Period Three [member]",
        "documentation": "Maturity period three."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_MaturityPeriodTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "MaturityPeriodTwoMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFinancialLiabilitiesInterestAndPrincipalCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Maturity Period Two",
        "label": "Maturity Period Two [member]",
        "documentation": "Maturity period two."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_MeasureAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "MeasureAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measure [Axis]",
        "terseLabel": "Measure:"
       }
      }
     },
     "auth_ref": [
      "r513"
     ]
    },
    "ecd_MeasureName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "MeasureName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measure Name",
        "terseLabel": "Name"
       }
      }
     },
     "auth_ref": [
      "r513"
     ]
    },
    "ifrs-full_MeasurementAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "MeasurementAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Measurement [axis]",
        "label": "Measurement [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r78",
      "r82",
      "r119",
      "r310",
      "r333"
     ]
    },
    "ifrs-full_MeasurementDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "MeasurementDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Measurement [domain]",
        "label": "Measurement [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for all types of measurement. It also represents the standard value for the 'Measurement' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r78",
      "r82",
      "r119",
      "r310",
      "r333"
     ]
    },
    "ck0000932782_MexicanBondsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "MexicanBondsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofRollforwardoftheMexicanBondsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Mexican Bonds",
        "label": "Mexican Bonds [Member]",
        "documentation": "Mexican Bonds [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_MexicanBondsOutstandingAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "MexicanBondsOutstandingAmount",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofRollforwardoftheMexicanBondsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Balance as of the beginning of the year",
        "periodEndLabel": "Balance at the end of the year",
        "label": "Mexican Bonds Outstanding Amount",
        "documentation": "Mexican bonds outstanding amount."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_MexicanGovernmentContributionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "MexicanGovernmentContributionsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofChangesinEquityDeficit"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Mexican Government contributions",
        "label": "Mexican Government contributions [member]",
        "documentation": "Mexican Government contributions"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_MexicanGovernmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "MexicanGovernmentMember",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofRollforwardoftheMexicanBondsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Mexican Government",
        "label": "Mexican Government [Member]",
        "documentation": "Mexican Government [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_MinatitlanRefineryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "MinatitlanRefineryMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Minatitl\u00e1n Refinery",
        "label": "Minatitlan Refinery [Member]",
        "documentation": "Minatitln Refinery."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_MineralCarbonMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "MineralCarbonMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Mineral Carbon",
        "label": "Mineral Carbon [Member]",
        "documentation": "Mineral carbon."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_MiquetlaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "MiquetlaMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Miquetla",
        "label": "Miquetla [member]",
        "documentation": "Miquetla."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_MiscellaneousOtherOperatingExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "MiscellaneousOtherOperatingExpense",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherExpensesDetail": {
       "parentTag": "ifrs-full_OtherExpenseByNature",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherExpensesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Other expenses",
        "label": "Miscellaneous other operating expense"
       }
      }
     },
     "auth_ref": [
      "r610"
     ]
    },
    "ifrs-full_MiscellaneousOtherOperatingIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "MiscellaneousOtherOperatingIncome",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail": {
       "parentTag": "ifrs-full_OtherRevenue",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other income",
        "label": "Miscellaneous other operating income"
       }
      }
     },
     "auth_ref": [
      "r610"
     ]
    },
    "ck0000932782_MisionBlockMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "MisionBlockMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Mision Block",
        "label": "Mision Block [member]",
        "documentation": "Mision block."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_MisionCEEMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "MisionCEEMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Misi\u00f3n (CEE)",
        "label": "Mision (CEE) [Member]",
        "documentation": "Mision (CEE)"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_MnpiDiscTimedForCompValFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "MnpiDiscTimedForCompValFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "MNPI Disclosure Timed for Compensation Value [Flag]",
        "terseLabel": "MNPI Disclosure Timed for Compensation Value"
       }
      }
     },
     "auth_ref": [
      "r533"
     ]
    },
    "ck0000932782_MonetaryAssetsAndLiabilitiesDenominatedInForeignCurrencyLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "MonetaryAssetsAndLiabilitiesDenominatedInForeignCurrencyLineItems",
     "presentation": [
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofMonetaryAssetsandLiabilitiesDenominatedInForeignCurrencyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Monetary assets and liabilities denominated in foreign currency [line items]",
        "label": "Monetary assets and liabilities denominated in foreign currency [line items]",
        "documentation": "Monetary assets and liabilities denominated in foreign currency."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_MonetaryAssetsAndLiabilitiesDenominatedInForeignCurrencyTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "MonetaryAssetsAndLiabilitiesDenominatedInForeignCurrencyTable",
     "presentation": [
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofMonetaryAssetsandLiabilitiesDenominatedInForeignCurrencyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Monetary assets and liabilities denominated in foreign currency [table]",
        "label": "Monetary assets and liabilities denominated in foreign currency [table]",
        "documentation": "Monetary assets and liabilities denominated in foreign currency ."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_MonthlyProvisionalPayments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "MonthlyProvisionalPayments",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesWelfareOilDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Monthly provisional payments",
        "label": "Monthly Provisional Payments",
        "documentation": "Monthly Provisional Payments"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_MoreThan91OctanesGasolineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "MoreThan91OctanesGasolineMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "More Than 91 Octanes Gasoline",
        "label": "More Than 91 Octanes Gasoline [Member]",
        "documentation": "More than 91 octanes gasoline."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_MoreThanTenYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "MoreThanTenYearsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofCurrentandPotentialExposuresandAggregatedbyCreditRatingDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "More than 10 years",
        "label": "More Than Ten Years [member]",
        "documentation": "More than ten years."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_MorelosEthyleneProcessorComplexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "MorelosEthyleneProcessorComplexMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Morelos Ethylene Processor Complex",
        "label": "Morelos Ethylene Processor Complex [Member]",
        "documentation": "Morelos ethylene processor complex."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_MorelosPetrochemicalComplexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "MorelosPetrochemicalComplexMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Morelos Petrochemical Complex",
        "label": "Morelos Petrochemical Complex [Member]",
        "documentation": "Morelos Petrochemical Complex"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_MorelosPetrochemicalsComplexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "MorelosPetrochemicalsComplexMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialProcessesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Morelos Petrochemical Complex",
        "label": "Morelos Petrochemicals Complex [Member]",
        "documentation": "Morelos Petrochemicals Complex"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_MtrlTermsOfTrdArrTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "MtrlTermsOfTrdArrTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Material Terms of Trading Arrangement [Text Block]",
        "terseLabel": "Material Terms of Trading Arrangement"
       }
      }
     },
     "auth_ref": [
      "r541"
     ]
    },
    "ecd_NamedExecutiveOfficersFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "NamedExecutiveOfficersFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Named Executive Officers, Footnote [Text Block]",
        "terseLabel": "Named Executive Officers, Footnote"
       }
      }
     },
     "auth_ref": [
      "r514"
     ]
    },
    "ck0000932782_NaturalGasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NaturalGasMember",
     "presentation": [
      "http://mexicopetroleum.com/role/RelatedPartiesSummaryofProductsAcquisitionfromPemexIndustrialTransformationDetail",
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofSalesPricesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Natural Gas",
        "terseLabel": "Natural gas, per thousand cubic feet",
        "label": "Natural Gas [member]",
        "documentation": "Natural gas."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NegativeBudgetFinancialBalance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NegativeBudgetFinancialBalance",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofGovernmentContributionstoPetroleosMexicanosthroughtheMinistryofEnergyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total",
        "label": "Negative Budget Financial Balance",
        "documentation": "Negative budget financial balance."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NegativeEffectFromDecreaseInProduction": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NegativeEffectFromDecreaseInProduction",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Negative effect from decrease in production",
        "label": "Negative Effect From Decrease In Production",
        "documentation": "Negative Effect From Decrease In Production"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NegativeTaxEffectDueToHigherIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NegativeTaxEffectDueToHigherIncome",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Negative tax effect due to higher income",
        "label": "Negative Tax Effect Due To Higher Income",
        "documentation": "Negative Tax Effect Due To Higher Income."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NetCarryingAmountMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NetCarryingAmountMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Total Carrying Value",
        "label": "Net Carrying Amount [member]",
        "documentation": "Net carrying amount."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NetChangesInProductionAndExcessGainsTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NetChangesInProductionAndExcessGainsTaxes",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofChangesinstandardizedMeasureofDiscountedFutureNetCashFlowsDetail": {
       "parentTag": "srt_StandardizedMeasureOfDiscountedFutureNetCashFlowOfProvedOilAndGasReservesPeriodIncreaseDecrease",
       "weight": -1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofChangesinstandardizedMeasureofDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Net changes in production and excess gains taxes",
        "label": "Net Changes in Production and Excess Gains Taxes",
        "documentation": "Net changes in production and excess gains taxes."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NetDeferredTaxAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NetDeferredTaxAssets",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingtheDeferredDUCDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net long-term deferred income tax asset",
        "label": "Net deferred tax assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of deferred tax assets net of deferred tax liabilities, when the absolute amount of deferred tax assets is greater than the absolute amount of deferred tax liabilities. [Refer: Deferred tax assets; Deferred tax liabilities]"
       }
      }
     },
     "auth_ref": [
      "r564"
     ]
    },
    "ck0000932782_NetDeferredTaxAssetsBeforeValuationReserve": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NetDeferredTaxAssetsBeforeValuationReserve",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail": {
       "parentTag": "ifrs-full_NetDeferredTaxAssets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingtheDeferredDUCDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total deferred income tax asset",
        "label": "Net deferred tax assets before valuation reserve",
        "documentation": "Net deferred tax assets before valuation reserve."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NetDefinedBenefitLiabilityAssetAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NetDefinedBenefitLiabilityAssetAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAdditionalFairvalueDisclosureAboutPlanAssetsandIndicateTheirRankDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsandTypesofPlanAssetsDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofRetirementandPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net defined benefit liability (asset) [axis]",
        "label": "Net defined benefit liability (asset) [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r25",
      "r281"
     ]
    },
    "ifrs-full_NetDefinedBenefitLiabilityAssetDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NetDefinedBenefitLiabilityAssetDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAdditionalFairvalueDisclosureAboutPlanAssetsandIndicateTheirRankDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsandTypesofPlanAssetsDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofRetirementandPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net defined benefit liability (asset)",
        "label": "Net defined benefit liability (asset) [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the net defined benefit liability (asset). It also represents the standard value for the 'Net defined benefit liability (asset)' axis if no other member is used. [Refer: Net defined benefit liability (asset)]"
       }
      }
     },
     "auth_ref": [
      "r25",
      "r281"
     ]
    },
    "ck0000932782_NetFinanceCostNetDefinedBenefitLiabilityAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NetFinanceCostNetDefinedBenefitLiabilityAsset",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsandTypesofPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Financing costs",
        "label": "Net Finance Cost Net Defined Benefit Liability Asset",
        "documentation": "Net finance cost net defined benefit liability asset."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NetFinancialAssetsLiabilitiesPosition": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NetFinancialAssetsLiabilitiesPosition",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofMonetaryAssetsandLiabilitiesDenominatedInForeignCurrencyDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofMonetaryAssetsandLiabilitiesDenominatedInForeignCurrencyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net position Asset/(Liability)",
        "label": "Net Financial Assets Liabilities Position",
        "documentation": "Net financial assets liabilities position."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NetForeignExchangeGain": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NetForeignExchangeGain",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net foreign exchange gain",
        "label": "Net foreign exchange gain"
       }
      }
     },
     "auth_ref": [
      "r575",
      "r613"
     ]
    },
    "ck0000932782_NetForeignExchangeGainLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NetForeignExchangeGainLoss",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss": {
       "parentTag": "ck0000932782_BeforeShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail",
      "http://mexicopetroleum.com/role/SubsequentEventsExchangeratesandcrudeoilpricesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Foreign exchange income (loss), net",
        "label": "Net Foreign Exchange Gain Loss",
        "documentation": "Net foreign exchange gain (loss)."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NetForeignExchangeLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NetForeignExchangeLoss",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Net foreign exchange loss",
        "label": "Net foreign exchange loss"
       }
      }
     },
     "auth_ref": [
      "r575",
      "r613"
     ]
    },
    "ck0000932782_NetForeignExchangeLossGain": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NetForeignExchangeLossGain",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofComprehensiveIncomeDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Foreign exchange (loss) income , net",
        "label": "Net Foreign Exchange Loss Gain",
        "documentation": "Net foreign exchange loss gain."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NetGainLossOnDerivativesNotDesignatedAsHedgingInstrument": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NetGainLossOnDerivativesNotDesignatedAsHedgingInstrument",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofNetGainLossRecognizedinIncomeonDerivativeFinancialInstrumentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Amount of gain (loss) recognized in the Statement of operations on derivatives",
        "label": "Net Gain (loss) on derivatives not designated as hedging instrument",
        "documentation": "Net gain (loss) on derivatives not designated as hedging instrument."
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_NetIncomeLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "NetIncomeLoss",
     "crdr": "credit",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Income (Loss)",
        "terseLabel": "Net Income (Loss)"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NetIncomeLossDuringThePeriod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NetIncomeLossDuringThePeriod",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net (loss) income",
        "label": "Net income (loss) during the period",
        "documentation": "Net income (loss) during the period."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NetIncomeLossForPeriod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NetIncomeLossForPeriod",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net (loss) for the year",
        "label": "Net Income Loss for Period",
        "documentation": "Net income loss for period."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NetIncreaseDecreaseInTransferPricesAndProductionCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NetIncreaseDecreaseInTransferPricesAndProductionCosts",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofChangesinstandardizedMeasureofDiscountedFutureNetCashFlowsDetail": {
       "parentTag": "srt_StandardizedMeasureOfDiscountedFutureNetCashFlowOfProvedOilAndGasReservesPeriodIncreaseDecrease",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofChangesinstandardizedMeasureofDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net changes in prices and production costs",
        "label": "Net increase decrease in transfer prices and production costs",
        "documentation": "Net increase decrease in transfer prices and production costs."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NetPeriodicCostOfEmployeeBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NetPeriodicCostOfEmployeeBenefits",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail": {
       "parentTag": "ck0000932782_CostOfSalesAndGeneralExpenses",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Net periodic cost of employee benefits",
        "terseLabel": "Net periodic cost of employee benefits",
        "label": "Net periodic cost of employee benefits",
        "documentation": "Net periodic cost of employee benefits."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NinePointFiveZeroPercentGlobalGuaranteedBondsDueTwoThousandTwentySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NinePointFiveZeroPercentGlobalGuaranteedBondsDueTwoThousandTwentySevenMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationSummaryofPrincipalAmountOutstandingofRegisteredDebtSecuritiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "9.500% Global Guaranteed Bonds due 2027",
        "label": "Nine Point Five Zero Percent Global Guaranteed Bonds Due Two Thousand Twenty Seven [member]",
        "documentation": "Nine point five zero percent global guaranteed bonds due two thousand twenty seven."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NinePointFiveZeroZeroPercentGuaranteedBondsDueTwoThousandTwentySevenmemberMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NinePointFiveZeroZeroPercentGuaranteedBondsDueTwoThousandTwentySevenmemberMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationSummaryofPrincipalAmountOutstandingofRegisteredDebtSecuritiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "9.500% Guaranteed Bonds due 2027",
        "label": "Nine Point Five Zero Zero Percent Guaranteed Bonds Due Two Thousand Twenty Seven member [Member]",
        "documentation": "Nine point five zero zero percent guaranteed bonds due two thousand twenty seven."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NinetyDaySOFRPlus350BasisPointMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NinetyDaySOFRPlus350BasisPointMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Ninety Day SOFR Plus 350 Basis Point",
        "label": "Ninety Day SOFR Plus 350 Basis Point [Member]",
        "documentation": "Ninety Day SOFR Plus 350 Basis Point"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NinetyDaysSOFRPlus300BasisPointMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NinetyDaysSOFRPlus300BasisPointMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Ninety Days SOFR Plus 300 Basis Point",
        "label": "Ninety Days SOFR Plus 300 Basis Point [Member]",
        "documentation": "Ninety Days SOFR Plus 300 Basis Point"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NinetyDaysSOFRPlus454BasisPointMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NinetyDaysSOFRPlus454BasisPointMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Ninety Days SOFR Plus 454 Basis Point",
        "label": "Ninety Days SOFR Plus 454 Basis Point [Member]",
        "documentation": "Ninety Days SOFR Plus 454 Basis Point"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NinetyOneDaysTIEERateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NinetyOneDaysTIEERateMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Ninety One Days TIEE Rate",
        "label": "Ninety One Days TIEE Rate [Member]",
        "documentation": "Ninety One Days TIEE Rate"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NinetyOneDaysTIIEMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NinetyOneDaysTIIEMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Ninety One Days TIIE",
        "label": "Ninety One Days TIIE [Member]",
        "documentation": "Ninety One Days TIIE"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NinetyOneDaysTIIEPlus350BasisPointMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NinetyOneDaysTIIEPlus350BasisPointMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Ninety One Days TIIE Plus 350 Basis Point",
        "label": "Ninety One Days TIIE Plus 350 Basis Point [Member]",
        "documentation": "Ninety One Days TIIE Plus 350 Basis Point"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NinetyOneDaysTIIEPlus400BasisPointsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NinetyOneDaysTIIEPlus400BasisPointsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Ninety One Days TIIE Plus 400 Basis Points",
        "label": "Ninety One Days TIIE Plus 400 Basis Points [Member]",
        "documentation": "Ninety One Days TIIE Plus 400 Basis Points"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NitrogenSupplyContractMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NitrogenSupplyContractMember",
     "presentation": [
      "http://mexicopetroleum.com/role/CommitmentsEstimatedFuturePaymentsUnderContractsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Nitrogen supply contract",
        "label": "Nitrogen supply contract [member]",
        "documentation": "Nitrogen supply contract."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NitrogenSupplyContractValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NitrogenSupplyContractValue",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/CommitmentsAdditionalinformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Nitrogen to be supplied",
        "label": "Nitrogen supply contract value",
        "documentation": "Nitrogen supply contract value."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NominalAmountOfHedgingInstruments": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NominalAmountOfHedgingInstruments",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Variable to fixed",
        "label": "Nominal Amount Of Hedging Instruments",
        "documentation": "Nominal amount of hedging instruments."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NominalAmountOfHedgingInstrumentsFixedToVariable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NominalAmountOfHedgingInstrumentsFixedToVariable",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fixed to variable",
        "label": "Nominal Amount Of Hedging Instruments, Fixed to Variable",
        "documentation": "Nominal Amount Of Hedging Instruments, Fixed to Variable"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NominalFixedRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NominalFixedRateMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsequentEventsRecentFinancingActivitiesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Nominal fixed rate",
        "label": "Nominal fixed rate [Member]",
        "documentation": "Nominal fixed rate"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NonAssociatedGasAndCondensatesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NonAssociatedGasAndCondensatesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesWelfareOilDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-Associated Gas And Condensates",
        "label": "Non-Associated Gas And Condensates [Member]",
        "documentation": "Non-Associated Gas And Condensates"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NonAssociatedGasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NonAssociatedGasMember",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-associated gas",
        "label": "Non Associated Gas [Member]",
        "documentation": "Non Associated Gas"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NonCurrentTradeReceivablesInterCompany": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NonCurrentTradeReceivablesInterCompany",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Long-term receivables\u2014intercompany",
        "label": "Non current Trade Receivables Inter Company",
        "documentation": "Non current trade receivables inter company."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NonFinancialAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NonFinancialAssetsAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofOtherAccountsReceivableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other non-financing receivables:",
        "label": "Non Financial Assets [Abstract]",
        "documentation": "Non-financial assets [Abstract]."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_NonGaapMeasureDescriptionTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "NonGaapMeasureDescriptionTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-GAAP Measure Description [Text Block]",
        "terseLabel": "Non-GAAP Measure Description"
       }
      }
     },
     "auth_ref": [
      "r513"
     ]
    },
    "srt_NonGuarantorSubsidiariesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "NonGuarantorSubsidiariesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofComprehensiveIncomeDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-guarantor subsidiaries",
        "label": "Non-Guarantor Subsidiaries [Member]",
        "documentation": "Entity owned or controlled not guaranteeing issuance of security by another subsidiary or parent. Excludes entity in which broker-dealer holds controlling financial interest but control is likely to be temporary."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_NonNeosMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "NonNeosMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-NEOs [Member]",
        "terseLabel": "Non-NEOs"
       }
      }
     },
     "auth_ref": [
      "r476",
      "r487",
      "r497",
      "r521",
      "r530"
     ]
    },
    "ecd_NonPeoNeoAvgCompActuallyPaidAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "NonPeoNeoAvgCompActuallyPaidAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-PEO NEO Average Compensation Actually Paid Amount",
        "terseLabel": "Non-PEO NEO Average Compensation Actually Paid Amount"
       }
      }
     },
     "auth_ref": [
      "r504"
     ]
    },
    "ecd_NonPeoNeoAvgTotalCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "NonPeoNeoAvgTotalCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-PEO NEO Average Total Compensation Amount",
        "terseLabel": "Non-PEO NEO Average Total Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r503"
     ]
    },
    "ecd_NonPeoNeoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "NonPeoNeoMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-PEO NEO [Member]",
        "terseLabel": "Non-PEO NEO"
       }
      }
     },
     "auth_ref": [
      "r521"
     ]
    },
    "ecd_NonRule10b51ArrAdoptedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "NonRule10b51ArrAdoptedFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-Rule 10b5-1 Arrangement Adopted [Flag]",
        "terseLabel": "Non-Rule 10b5-1 Arrangement Adopted"
       }
      }
     },
     "auth_ref": [
      "r541"
     ]
    },
    "ecd_NonRule10b51ArrTrmntdFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "NonRule10b51ArrTrmntdFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-Rule 10b5-1 Arrangement Terminated [Flag]",
        "terseLabel": "Non-Rule 10b5-1 Arrangement Terminated"
       }
      }
     },
     "auth_ref": [
      "r541"
     ]
    },
    "ifrs-full_NonadjustingEventsAfterReportingPeriodAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NonadjustingEventsAfterReportingPeriodAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofGovernmentContributionstoPetroleosMexicanosthroughtheMinistryofEnergyDetail",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesProfitSharingDutyNarrativeDetails",
      "http://mexicopetroleum.com/role/RelatedPartiesAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/SubsequentEventsAmendingagreementswithsuppliersDetails",
      "http://mexicopetroleum.com/role/SubsequentEventsExchangeratesandcrudeoilpricesDetail",
      "http://mexicopetroleum.com/role/SubsequentEventsRecentFinancingActivitiesNarrativeDetails",
      "http://mexicopetroleum.com/role/SubsequentEventsSummaryofContributionsfromtheMexicanGovernmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-adjusting events after reporting period [axis]",
        "label": "Non-adjusting events after reporting period [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r1",
      "r263"
     ]
    },
    "ifrs-full_NonadjustingEventsAfterReportingPeriodDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NonadjustingEventsAfterReportingPeriodDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofGovernmentContributionstoPetroleosMexicanosthroughtheMinistryofEnergyDetail",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesProfitSharingDutyNarrativeDetails",
      "http://mexicopetroleum.com/role/RelatedPartiesAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/SubsequentEventsAmendingagreementswithsuppliersDetails",
      "http://mexicopetroleum.com/role/SubsequentEventsExchangeratesandcrudeoilpricesDetail",
      "http://mexicopetroleum.com/role/SubsequentEventsRecentFinancingActivitiesNarrativeDetails",
      "http://mexicopetroleum.com/role/SubsequentEventsSummaryofContributionsfromtheMexicanGovernmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-adjusting events after reporting period",
        "label": "Non-adjusting events after reporting period [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for events that occur between the end of the reporting period and the date when the financial statements are authorised for issue and are indicative of conditions that arose after the reporting period. It also represents the standard value for the 'Non-adjusting events after reporting period' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r1",
      "r263"
     ]
    },
    "ifrs-full_NoncontrollingInterests": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncontrollingInterests",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_Equity",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total non-controlling interest",
        "label": "Non-controlling interests"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of equity in a subsidiary not attributable, directly or indirectly, to a parent. [Refer: Total for all subsidiaries [member]]"
       }
      }
     },
     "auth_ref": [
      "r101",
      "r103",
      "r359"
     ]
    },
    "ifrs-full_NoncontrollingInterestsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncontrollingInterestsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofChangesinEquityDeficit",
      "http://mexicopetroleum.com/role/EquityDeficitAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non- controlling interest",
        "label": "Non-controlling interests [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for equity in a subsidiary not attributable, directly or indirectly, to the parent."
       }
      }
     },
     "auth_ref": [
      "r347"
     ]
    },
    "ifrs-full_NoncurrentAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentAssets",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_Assets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total non-current assets",
        "netLabel": "Long-lived assets outside of Mexico",
        "verboseLabel": "Total non-current assets",
        "label": "Non-current assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of assets that do not meet the definition of current assets. [Refer: Current assets]"
       }
      }
     },
     "auth_ref": [
      "r107",
      "r365",
      "r404"
     ]
    },
    "ifrs-full_NoncurrentAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentAssetsAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-current assets:",
        "label": "Non-current assets [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NoncurrentAssetsOtherThanFinancialInstrumentsDeferredTaxAssetsPostemploymentBenefitAssetsAndRightsArisingUnderInsuranceContracts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentAssetsOtherThanFinancialInstrumentsDeferredTaxAssetsPostemploymentBenefitAssetsAndRightsArisingUnderInsuranceContracts",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofOtherAssetsDetail": {
       "parentTag": "ifrs-full_OtherNoncurrentAssets",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofOtherAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Insurance",
        "label": "Non-current assets other than financial instruments, deferred tax assets, post-employment benefit assets, and rights arising under insurance contracts"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current assets other than financial instruments, deferred tax assets, post-employment benefit assets and rights arising under insurance contracts. [Refer: Deferred tax assets; Classes of financial instruments [domain]; Non-current assets]"
       }
      }
     },
     "auth_ref": [
      "r210"
     ]
    },
    "ifrs-full_NoncurrentLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentLeaseLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
      "http://mexicopetroleum.com/role/LeasesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Long-term leases, net of current portion",
        "verboseLabel": "Non-current lease liabilities",
        "label": "Non-current lease liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current lease liabilities. [Refer: Lease liabilities]"
       }
      }
     },
     "auth_ref": [
      "r135"
     ]
    },
    "ifrs-full_NoncurrentLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_Liabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total long-term liabilities",
        "verboseLabel": "Total long-term liabilities",
        "label": "Non-current liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of liabilities that do not meet the definition of current liabilities. [Refer: Current liabilities]"
       }
      }
     },
     "auth_ref": [
      "r109",
      "r366",
      "r404"
     ]
    },
    "ifrs-full_NoncurrentLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentLiabilitiesAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Long-term liabilities:",
        "label": "Non-current liabilities [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NoncurrentPortionOfNoncurrentBondsIssued": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentPortionOfNoncurrentBondsIssued",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofBalanceofGovernmentBondsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total long-term notes receivable",
        "label": "Non-current portion of non-current bonds issued"
       }
      },
      "en": {
       "role": {
        "documentation": "The non-current portion of non-current bonds issued. [Refer: Bonds issued]"
       }
      }
     },
     "auth_ref": [
      "r610"
     ]
    },
    "ifrs-full_NoncurrentTradeReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentTradeReceivables",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail": {
       "parentTag": "ifrs-full_FinancialAssets",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Notes receivable",
        "label": "Non-current trade receivables"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current trade receivables. [Refer: Trade receivables]"
       }
      }
     },
     "auth_ref": [
      "r445",
      "r450"
     ]
    },
    "ifrs-full_NotLaterThanOneMonthMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NotLaterThanOneMonthMember",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableScheduleofBreakdownofAccountsReceivableBasedonCreditHistoryDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "1 to 30 days",
        "label": "Not later than one month [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of not later than one month."
       }
      }
     },
     "auth_ref": [
      "r421",
      "r423",
      "r428"
     ]
    },
    "ifrs-full_NotLaterThanOneYearMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NotLaterThanOneYearMember",
     "presentation": [
      "http://mexicopetroleum.com/role/CommitmentsEstimatedValueofContractsDetail",
      "http://mexicopetroleum.com/role/DebtSummaryofMaturitiesofLongTermDebtPrincipalOutstandingandAccruedInterestDetail",
      "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesScheduleofAmortizationofLongTermContractualLiabilitiesDetails",
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofprovisionsforpluggingofwellsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "netLabel": "2026",
        "verboseLabel": "2026",
        "terseLabel": "Up to 1 year",
        "label": "Not later than one year [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of not later than one year."
       }
      }
     },
     "auth_ref": [
      "r142",
      "r144",
      "r156",
      "r246",
      "r249",
      "r363",
      "r422",
      "r428"
     ]
    },
    "ifrs-full_NotesAndOtherExplanatoryInformationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NotesAndOtherExplanatoryInformationAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Notes and other explanatory information [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NotionalAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NotionalAmount",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValuesandNotionalAmountsofDFIsDetail",
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Notional amount of debt issued",
        "terseLabel": "Notional Amount",
        "label": "Notional amount"
       }
      },
      "en": {
       "role": {
        "documentation": "The nominal or face amount of a financial instrument, used to calculate payments made on that instrument."
       }
      }
     },
     "auth_ref": [
      "r610"
     ]
    },
    "ck0000932782_NuevoPemexGasProcessorComplexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NuevoPemexGasProcessorComplexMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Nuevo Pemex Gas Processor Complex",
        "label": "Nuevo Pemex Gas Processor Complex [Member]",
        "documentation": "Nuevo pemex gas processor complex."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NumberOfBarrelsHedged": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NumberOfBarrelsHedged",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of barrels hedged",
        "label": "Number of barrels hedged",
        "documentation": "Number of barrels hedged"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NumberOfBusinessSegments": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NumberOfBusinessSegments",
     "presentation": [
      "http://mexicopetroleum.com/role/SegmentFinancialInformationAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of business segments",
        "label": "Number of business segments",
        "documentation": "Number of business segments."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NumberOfCrossCurrencySwapsSubjectToRestructure": {
     "xbrltype": "integerItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NumberOfCrossCurrencySwapsSubjectToRestructure",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of cross currency swaps subject to restructure",
        "label": "Number of Cross Currency Swaps Subject to Restructure",
        "documentation": "Number of cross currency swaps subject to restructure."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NumberOfCrossCurrencySwapsWithARecouponingClauseSubjectToPartialRestructure": {
     "xbrltype": "integerItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NumberOfCrossCurrencySwapsWithARecouponingClauseSubjectToPartialRestructure",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of cross currency swaps with a recouponing clause subject to partial restructure",
        "label": "Number of Cross Currency Swaps with a Recouponing Clause Subject to Partial Restructure",
        "documentation": "Number of Cross Currency Swaps with a Recouponing Clause Subject to Partial Restructure"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NumberOfDerivativeFinancialInstrumentsInForeignCurrency": {
     "xbrltype": "integerItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NumberOfDerivativeFinancialInstrumentsInForeignCurrency",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of derivative financial instruments in foreign currency",
        "label": "Number Of Derivative Financial Instruments In Foreign Currency",
        "documentation": "Number Of Derivative Financial Instruments In Foreign Currency"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NumberOfInstallmentPayments": {
     "xbrltype": "integerItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NumberOfInstallmentPayments",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of installment payments",
        "label": "Number Of Installment Payments",
        "documentation": "Number Of Installment Payments"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NumberOfInterestRateSwapAgreements": {
     "xbrltype": "integerItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NumberOfInterestRateSwapAgreements",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of interest rate swap agreements",
        "label": "Number of interest rate swap agreements",
        "documentation": "Number of interest rate swap agreements."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NumberOfMajorCustomers": {
     "xbrltype": "integerItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NumberOfMajorCustomers",
     "presentation": [
      "http://mexicopetroleum.com/role/SegmentFinancialInformationAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of major customers",
        "label": "Number of Major Customers",
        "documentation": "Number of major customers."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NumberOfMunicipalities": {
     "xbrltype": "integerItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NumberOfMunicipalities",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of municipalities",
        "label": "Number of municipalities",
        "documentation": "Number of municipalities"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NumberOfNewCrudeOilFieldsDiscovered": {
     "xbrltype": "integerItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NumberOfNewCrudeOilFieldsDiscovered",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of new crude oil fields discovered",
        "label": "Number Of New Crude Oil Fields Discovered",
        "documentation": "Number Of New Crude Oil Fields Discovered"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NumberOfObservations": {
     "xbrltype": "integerItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NumberOfObservations",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of observations",
        "label": "Number Of Observations",
        "documentation": "Number of observations."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NumberOfPrepaidSwapsEnteredInto": {
     "xbrltype": "integerItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NumberOfPrepaidSwapsEnteredInto",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of prepaid swaps",
        "label": "Number Of Prepaid Swaps Entered Into",
        "documentation": "Number Of Prepaid Swaps Entered Into"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NumberOfSeriesOfDevelopmentBonds": {
     "xbrltype": "integerItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NumberOfSeriesOfDevelopmentBonds",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of series of development bonds",
        "label": "Number of Series of Development Bonds",
        "documentation": "Number of Series of Development Bonds"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NumberOfStates": {
     "xbrltype": "integerItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NumberOfStates",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of states",
        "label": "Number of states",
        "documentation": "Number of states"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_NumberOfSyndicatedCreditFacilities": {
     "xbrltype": "integerItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "NumberOfSyndicatedCreditFacilities",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Number of syndicated credit facilities",
        "label": "Number Of Syndicated Credit Facilities",
        "documentation": "Number Of Syndicated Credit Facilities"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_OffshorePlatformsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OffshorePlatformsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Offshore platforms",
        "label": "Offshore Platforms [member]",
        "documentation": "Offshore platforms."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_OgarrioFieldMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OgarrioFieldMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Ogarrio",
        "label": "Ogarrio Field [member]",
        "documentation": "Ogarrio field."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_OgarrioMagallanesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OgarrioMagallanesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofValuesinUseforCGUImpairmentorReversalPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Ogarrio Magallanes",
        "label": "Ogarrio Magallanes [Member]",
        "documentation": "Ogarrio magallanes."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_OilAndFuelProductionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OilAndFuelProductionMember",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Oil and fuel production",
        "label": "Oil And Fuel Production [Member]",
        "documentation": "Oil And Fuel Production"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_OilAndGasProductionAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OilAndGasProductionAssetsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Oil and gas production assets",
        "label": "Oil And Gas Production Assets [Member]",
        "documentation": "Oil and gas production assets [Member]."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_OilEquivalentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OilEquivalentMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofSalesPricesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Weighted average sales price per barrel of oil equivalent",
        "label": "Oil Equivalent [member]",
        "documentation": "Oil Equivalent [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_OneHundredAndEightyTwoDaysTIIEPlus370BasisPointsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OneHundredAndEightyTwoDaysTIIEPlus370BasisPointsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "One Hundred and Eighty Two Days TIIE Plus 370 Basis Points",
        "label": "One Hundred and Eighty Two Days TIIE Plus 370 Basis Points [Member]",
        "documentation": "One Hundred and Eighty Two Days TIIE Plus 370 Basis Points"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_OneHundredEightyTwoDaysTIIEMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OneHundredEightyTwoDaysTIIEMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "One Hundred Eighty Two Days TIIE",
        "label": "One Hundred Eighty Two Days TIIE [Member]",
        "documentation": "One Hundred Eighty Two Days TIIE"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_OneHundredEightyTwoDaysTIIEPlus182BasisPointsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OneHundredEightyTwoDaysTIIEPlus182BasisPointsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "One Hundred Eighty Two Days TIIE Plus 182 Basis Points",
        "label": "One Hundred Eighty Two Days TIIE Plus 182 Basis Points [Member]",
        "documentation": "One Hundred Eighty Days TIIE Plus 160 Basis Points"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_OneHundredEightyTwoDaysTIIEPlus200BasisPointsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OneHundredEightyTwoDaysTIIEPlus200BasisPointsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "One Hundred Eighty Two Days TIIE Plus 200 Basis Points",
        "label": "One Hundred Eighty Two Days TIIE Plus 200 Basis Points [Member]",
        "documentation": "One Hundred Eighty Two Days TIIE Plus 200 Basis Points"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_OneHundredEightyTwoDaysTIIEPlus500BasisPointsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OneHundredEightyTwoDaysTIIEPlus500BasisPointsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "One Hundred Eighty Two Days TIIE Plus 500 Basis Points",
        "label": "One Hundred Eighty Two Days TIIE Plus 500 Basis Points [Member]",
        "documentation": "One Hundred Eighty Days TIIE Plus 160 Basis Points"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_OneHundredEightyTwoDaysTIIERateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OneHundredEightyTwoDaysTIIERateMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "One Hundred Eighty Two Days TIIE Rate",
        "label": "One Hundred Eighty Two Days TIIE Rate [Member]",
        "documentation": "OneHundredAndEightyTwoDaysTIIERate."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_OneMonthSecuredOvernightFinancingRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OneMonthSecuredOvernightFinancingRateMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "One Month Secured Overnight Financing Rate",
        "label": "One Month Secured Overnight Financing Rate [Member]",
        "documentation": "One Month Secured Overnight Financing Rate"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_OneToThreeYearMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OneToThreeYearMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofCurrentandPotentialExposuresandAggregatedbyCreditRatingDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "1-3 years",
        "label": "One to Three Year [member]",
        "documentation": "One to Three Year [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_OperadoradeCamposDWFSAdeCVMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OperadoradeCamposDWFSAdeCVMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Operadora de Campos DWF, S.A. de C.V.",
        "label": "Operadora de Campos DWF, S.A. de C.V. [member]",
        "documentation": "Operadora de Campos DWF, S.A. de C.V."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_OperatingLossIncomeAfterWelfareOilDuty": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OperatingLossIncomeAfterWelfareOilDuty",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss": {
       "parentTag": "ifrs-full_ProfitLossBeforeTax",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Operating (loss) income after Welfare oil duty",
        "terseLabel": "Operating (loss) income after Welfare oil duty",
        "label": "Operating (Loss) Income After Welfare Oil Duty",
        "documentation": "Operating (Loss) Income After Welfare Oil Duty"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OperatingSegmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OperatingSegmentsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SegmentFinancialInformationScheduleofIncomebyProductDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Operating segment",
        "label": "Operating segments [member]"
       }
      }
     },
     "auth_ref": [
      "r207"
     ]
    },
    "ck0000932782_OtherAssetsAsInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OtherAssetsAsInvestingActivities",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other assets",
        "label": "Other Assets As Investing Activities",
        "documentation": "Other assets as investing activities."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherComprehensiveIncome",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 2.0
      },
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss_1": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofComprehensiveIncomeDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total other comprehensive results",
        "terseLabel": "Total other comprehensive results",
        "label": "Other comprehensive income"
       }
      }
     },
     "auth_ref": [
      "r112",
      "r345",
      "r371",
      "r382"
     ]
    },
    "ifrs-full_OtherComprehensiveIncomeAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherComprehensiveIncomeAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other comprehensive results attributable to:",
        "label": "Other comprehensive income [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherComprehensiveIncomeAttributableToNoncontrollingInterests": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherComprehensiveIncomeAttributableToNoncontrollingInterests",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss_1": {
       "parentTag": "ifrs-full_OtherComprehensiveIncome",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-controlling interest",
        "label": "Other comprehensive income, attributable to non-controlling interests"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of other comprehensive income attributable to non-controlling interests. [Refer: Non-controlling interests; Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r617"
     ]
    },
    "ifrs-full_OtherComprehensiveIncomeAttributableToOwnersOfParent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherComprehensiveIncomeAttributableToOwnersOfParent",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss_1": {
       "parentTag": "ifrs-full_OtherComprehensiveIncome",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Controlling interest",
        "label": "Other comprehensive income, attributable to owners of parent"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of other comprehensive income attributable to owners of the parent."
       }
      }
     },
     "auth_ref": [
      "r617"
     ]
    },
    "ifrs-full_OtherComprehensiveIncomeNetOfTaxChangeInValueOfForeignCurrencyBasisSpreads": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherComprehensiveIncomeNetOfTaxChangeInValueOfForeignCurrencyBasisSpreads",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss": {
       "parentTag": "ifrs-full_OtherComprehensiveIncome",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Currency translation effect",
        "label": "Other comprehensive income, net of tax, change in value of foreign currency basis spreads"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of other comprehensive income, net of tax, after reclassification adjustments, related to change in value of foreign currency basis spreads. [Refer: Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r367",
      "r382"
     ]
    },
    "ck0000932782_OtherContributionPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OtherContributionPayable",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxesandDutiesPayableDetail": {
       "parentTag": "ck0000932782_OtherTaxesAndDuties",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxesandDutiesPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other contributions payable",
        "label": "Other Contribution Payable",
        "documentation": "Other Contribution Payable"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_OtherCostsExpensesNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OtherCostsExpensesNet",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofResultsofOperationsforOilandGasProducingActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Other costs and expenses",
        "label": "Other Costs Expenses Net",
        "documentation": "Other costs expenses net."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_OtherCurrenciesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OtherCurrenciesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other currencies",
        "label": "Other Currencies [member]",
        "documentation": "Other currencies [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherCurrentAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherCurrentAssets",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssets",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Other current assets",
        "label": "Other current assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current assets that the entity does not separately disclose in the same statement or note. [Refer: Current assets]"
       }
      }
     },
     "auth_ref": [
      "r614"
     ]
    },
    "ifrs-full_OtherCurrentLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherCurrentLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other current liabilities",
        "label": "Other current liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current liabilities that the entity does not separately disclose in the same statement or note. [Refer: Current liabilities]"
       }
      }
     },
     "auth_ref": [
      "r614"
     ]
    },
    "ifrs-full_OtherCurrentReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherCurrentReceivables",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssets",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Other financing receivables",
        "label": "Other current receivables"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current other receivables. [Refer: Other receivables]"
       }
      }
     },
     "auth_ref": [
      "r445",
      "r450"
     ]
    },
    "ck0000932782_OtherDebtMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OtherDebtMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Others",
        "label": "Other Debt [Member]",
        "documentation": "Other Debt"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherExpenseByNature": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherExpenseByNature",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss": {
       "parentTag": "ifrs-full_ProfitLossFromOperatingActivities",
       "weight": -1.0,
       "order": 5.0
      },
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherExpensesDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss",
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherExpensesDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Other expenses",
        "terseLabel": "Other expenses",
        "negatedTotalLabel": "Total other expenses",
        "label": "Other expenses, by nature"
       }
      }
     },
     "auth_ref": [
      "r384",
      "r447"
     ]
    },
    "ck0000932782_OtherExpensesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OtherExpensesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherExpensesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other Expenses",
        "label": "Other Expenses [Member]",
        "documentation": "Other Expenses"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherFinancialAssets",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail": {
       "parentTag": "ifrs-full_FinancialAssets",
       "weight": 1.0,
       "order": 8.0
      },
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofOtherAccountsReceivableDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofOtherAccountsReceivableDetail",
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other assets",
        "totalLabel": "Total other financing receivables",
        "label": "Other financial assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of financial assets that the entity does not separately disclose in the same statement or note. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r352"
     ]
    },
    "ck0000932782_OtherFinancialsLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OtherFinancialsLiabilitiesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other financial liabilities",
        "label": "Other Financials Liabilities [member]",
        "documentation": "Other Financials Liabilities [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherGainsLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherGainsLosses",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails": {
       "parentTag": "ifrs-full_ProfitLossFromOperatingActivities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofComprehensiveIncomeDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other income (loss), net",
        "label": "Other gains (losses)"
       }
      }
     },
     "auth_ref": [
      "r606",
      "r607"
     ]
    },
    "ck0000932782_OtherIncomeFromServices": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OtherIncomeFromServices",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail": {
       "parentTag": "ifrs-full_OtherRevenue",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other income for services",
        "label": "Other income from services",
        "documentation": "Other income from services."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_OtherIncomeTaxesAndDuties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OtherIncomeTaxesAndDuties",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxesandDutiesPayableDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxesandDutiesPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total",
        "label": "Other Income Taxes and Duties",
        "documentation": "Other Income Taxes and Duties"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_OtherIncomeTaxesAndDutiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OtherIncomeTaxesAndDutiesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxesandDutiesPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other Income Taxes and Duties",
        "label": "Other Income Taxes and Duties [Member]",
        "documentation": "Other Income Taxes and Duties"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_OtherIncomeTaxesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OtherIncomeTaxesAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxesandDutiesPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other Income Taxes [Axis]",
        "label": "Other Income Taxes [Axis]",
        "documentation": "Other Income Taxes"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_OtherIncomeTaxesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OtherIncomeTaxesDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxesandDutiesPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other Income Taxes [Domain]",
        "label": "Other Income Taxes [Domain]",
        "documentation": "Other Income Taxes [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherIntangibleAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherIntangibleAssetsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofOtherComponentsofIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other intangible assets",
        "label": "Other intangible assets [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of intangible assets that the entity does not separately disclose in the same statement or note. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r582"
     ]
    },
    "ifrs-full_OtherLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other liabilities",
        "label": "Other liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of liabilities that the entity does not separately disclose in the same statement or note."
       }
      }
     },
     "auth_ref": [
      "r614"
     ]
    },
    "ck0000932782_OtherLongtermBenefitsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OtherLongtermBenefitsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofActuarialAssumptionsDetails",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsAssociatedWithPEMEXsLaborObligationsDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsRecognizedforOtherLongtermObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Liability for other long-term benefits",
        "label": "Other Long-term Benefits [member]",
        "documentation": "Other long-term benefits."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_OtherMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OtherMember",
     "presentation": [
      "http://mexicopetroleum.com/role/RelatedPartiesSummaryofProductsAcquisitionfromPemexIndustrialTransformationDetail",
      "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationSupplementalGeographicInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other countries",
        "label": "Other [member]",
        "documentation": "Other."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_OtherMiscellaneousReceivablesCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OtherMiscellaneousReceivablesCurrent",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofOtherAccountsReceivableDetail": {
       "parentTag": "ifrs-full_OtherNonfinancialAssets",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofOtherAccountsReceivableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Other accounts receivable",
        "label": "Other Miscellaneous Receivables Current",
        "documentation": "Other Miscellaneous Receivables Current."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_OtherNonCurrentAssetsOther": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OtherNonCurrentAssetsOther",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofOtherAssetsDetail": {
       "parentTag": "ifrs-full_OtherNoncurrentAssets",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofOtherAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other",
        "label": "Other Non Current Assets Others",
        "documentation": "Other non current assets others."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherNoncurrentAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherNoncurrentAssets",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 8.0
      },
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofOtherAssetsDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofOtherAssetsDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other assets",
        "totalLabel": "Total other assets",
        "label": "Other non-current assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current assets that the entity does not separately disclose in the same statement or note. [Refer: Non-current assets]"
       }
      }
     },
     "auth_ref": [
      "r614"
     ]
    },
    "ck0000932782_OtherNoncurrentAssetsPaymentsInAdvance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OtherNoncurrentAssetsPaymentsInAdvance",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofOtherAssetsDetail": {
       "parentTag": "ifrs-full_OtherNoncurrentAssets",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofOtherAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Payments in advance",
        "label": "Other Noncurrent Assets Payments In Advance",
        "documentation": "Other noncurrent assets payments in advance."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherNonfinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherNonfinancialAssets",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssets",
       "weight": 1.0,
       "order": 2.0
      },
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofOtherAccountsReceivableDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofOtherAccountsReceivableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Other non-financing receivables",
        "totalLabel": "Total other non-financing receivables",
        "label": "Other non-financial assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-financial assets that the entity does not separately disclose in the same statement or note. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r614"
     ]
    },
    "ck0000932782_OtherOperatingSubsidiaryCompaniesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OtherOperatingSubsidiaryCompaniesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other Operating Subsidiary Companies",
        "label": "Other Operating Subsidiary Companies [Member]",
        "documentation": "Other Operating Subsidiary Companies"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_OtherOperationCostsAndExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OtherOperationCostsAndExpenses",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail": {
       "parentTag": "ck0000932782_CostOfSalesAndGeneralExpenses",
       "weight": 1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other operation costs and expenses",
        "label": "Other operation costs and expenses",
        "documentation": "Other operation costs and expeneses."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_OtherOperationTaxesAndDutiesExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OtherOperationTaxesAndDutiesExpenses",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail": {
       "parentTag": "ck0000932782_CostOfSalesAndGeneralExpenses",
       "weight": 1.0,
       "order": 20.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other operation taxes and duties",
        "label": "Other operation taxes and duties expenses",
        "documentation": "Other operation taxes and duties expenses."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_OtherPerfMeasureAmt": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "OtherPerfMeasureAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Performance Measure, Amount",
        "terseLabel": "Other Performance Measure, Amount"
       }
      }
     },
     "auth_ref": [
      "r513"
     ]
    },
    "ck0000932782_OtherProductsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OtherProductsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other",
        "label": "Other Products [member]",
        "documentation": "Other products."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherRevenue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherRevenue",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss": {
       "parentTag": "ifrs-full_ProfitLossFromOperatingActivities",
       "weight": 1.0,
       "order": 1.0
      },
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss",
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other revenues",
        "verboseLabel": "Other revenue",
        "totalLabel": "Other revenues",
        "label": "Other revenue"
       }
      }
     },
     "auth_ref": [
      "r610"
     ]
    },
    "ck0000932782_OtherRevenueAndExpenseNetAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OtherRevenueAndExpenseNetAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other Revenue and Expense Net [abstract]",
        "label": "Other Revenue and Expense Net [abstract]",
        "documentation": "Other Revenue and Expense Net [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_OtherRevenueAndExpenseNetLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OtherRevenueAndExpenseNetLineItems",
     "presentation": [
      "http://mexicopetroleum.com/role/AuthorizationandBasisofPreparationAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherExpensesDetail",
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other Revenue And Expense Net [Line Items]",
        "label": "Other Revenue And Expense Net [Line Items]",
        "documentation": "Other Revenue And Expense Net"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_OtherRevenueAndExpenseNetTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OtherRevenueAndExpenseNetTable",
     "presentation": [
      "http://mexicopetroleum.com/role/AuthorizationandBasisofPreparationAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherExpensesDetail",
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other Revenue And Expense Net [Table]",
        "label": "Other Revenue And Expense Net [Table]",
        "documentation": "Other Revenue And Expense Net"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_OtherRevenueExpenseAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OtherRevenueExpenseAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other revenues (expenses):",
        "label": "Other Revenue Expense [Abstract]",
        "documentation": "Other Revenue Expense [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_OtherRevenuesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OtherRevenuesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other Revenues",
        "label": "Other Revenues [Member]",
        "documentation": "Other Revenues"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherTaxEffectsForReconciliationBetweenAccountingProfitAndTaxExpenseIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherTaxEffectsForReconciliationBetweenAccountingProfitAndTaxExpenseIncome",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpenseBenefitAttributabletoProfitLossfromContinuingOperationsbeforeIncomeTaxesDetail": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpenseBenefitAttributabletoProfitLossfromContinuingOperationsbeforeIncomeTaxesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Others-net",
        "label": "Other tax effects for reconciliation between accounting profit and tax expense (income)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount that represents the difference between the tax expense (income) and the product of the accounting profit multiplied by the applicable tax rate(s) that the entity does not separately disclose in the same statement or note. [Refer: Accounting profit; Applicable tax rate]"
       }
      }
     },
     "auth_ref": [
      "r5",
      "r265"
     ]
    },
    "ck0000932782_OtherTaxesAndDuties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OtherTaxesAndDuties",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxesandDutiesPayableDetail": {
       "parentTag": "ck0000932782_OtherIncomeTaxesAndDuties",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxesandDutiesPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total other taxes and duties",
        "label": "Other taxes and duties",
        "documentation": "Other taxes and duties"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_OtherTaxesAndDutiesPaidRefundClassifiedAsOperatingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OtherTaxesAndDutiesPaidRefundClassifiedAsOperatingActivities",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other taxes and duties",
        "label": "Other taxes and duties paid refund classified as operating activities",
        "documentation": "Other taxes and duties paid refund classified as operating activities."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_OutstandingAggtErrCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "OutstandingAggtErrCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Aggregate Erroneous Compensation Amount",
        "terseLabel": "Outstanding Aggregate Erroneous Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r474",
      "r485",
      "r495",
      "r528"
     ]
    },
    "ecd_OutstandingRecoveryCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "OutstandingRecoveryCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Recovery Compensation Amount",
        "terseLabel": "Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r477",
      "r488",
      "r498",
      "r531"
     ]
    },
    "ecd_OutstandingRecoveryIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "OutstandingRecoveryIndName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Outstanding Recovery, Individual Name",
        "terseLabel": "Name"
       }
      }
     },
     "auth_ref": [
      "r477",
      "r488",
      "r498",
      "r531"
     ]
    },
    "ck0000932782_OwnershipInterestValueNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "OwnershipInterestValueNet",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/RelatedPartiesSummaryofProductsAcquisitionfromPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Ownership amount",
        "label": "Ownership Interest Value Net",
        "documentation": "Ownership Interest Value Net"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PETROFACMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PETROFACMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "PETROFAC",
        "label": "PETROFAC [member]",
        "documentation": "PETROFAC."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PMICIMMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PMICIMMember",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/SubsidiaryEntitiesandSubsidiaryCompaniesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "PMI CIM",
        "label": "PMI CIM [member]",
        "documentation": "PMI CIM."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PMIHoldingsBVMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PMIHoldingsBVMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "P.M.I. Holdings, B.V.",
        "label": "P.M.I. Holdings, B.V. [member]",
        "documentation": "P.M.I. Holdings, B.V."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PMINorteamericaSAdeCVMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PMINorteamericaSAdeCVMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "P.M.I. Norteamrica, S. A. de C. V.",
        "label": "P.M.I. Norteamrica, S. A. de C. V. [member]",
        "documentation": "P.M.I. Norteamrica, S. A. de C. V."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PMITRDMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PMITRDMember",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "PMI TRD",
        "label": "PMI TRD [member]",
        "documentation": "PMI TRD."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PajaritosEthyleneComplexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PajaritosEthyleneComplexMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialProcessesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Pajaritos Ethylene Complex",
        "label": "Pajaritos Ethylene Complex [Member]",
        "documentation": "Pajaritos Ethylene Complex"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PajaritosEthyleneProcessorComplexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PajaritosEthyleneProcessorComplexMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Pajaritos Ethylene Processor Complex",
        "label": "Pajaritos Ethylene Processor Complex [Member]",
        "documentation": "Pajaritos Ethylene Processor Complex"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PajaritosPetrochemicalComplexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PajaritosPetrochemicalComplexMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Pajaritos Petrochemical Complex",
        "label": "Pajaritos Petrochemical Complex [Member]",
        "documentation": "Pajaritos Petrochemical Complex"
       }
      }
     },
     "auth_ref": []
    },
    "srt_ParentCompanyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "ParentCompanyMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofComprehensiveIncomeDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Petr\u00f3leos Mexicanos",
        "label": "Parent Company [Member]",
        "documentation": "Registrant with controlling financial interest in one or more subsidiaries. Controlling interest in subsidiary includes, but is not limited to, primary beneficiary of variable interest entity (VIE). Controlling interest in subsidiary excludes broker-dealer with controlling financial interest in subsidiary but control is likely to be temporary."
       }
      }
     },
     "auth_ref": [
      "r216"
     ]
    },
    "ifrs-full_PastDueStatusAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PastDueStatusAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofCurrentandPotentialExposuresandAggregatedbyCreditRatingDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Past due status [axis]",
        "label": "Past due status [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r418"
     ]
    },
    "ifrs-full_PastDueStatusDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PastDueStatusDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofCurrentandPotentialExposuresandAggregatedbyCreditRatingDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Past due status",
        "label": "Past due status [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for all past-due statuses. It also represents the standard value for the 'Past due status' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r418"
     ]
    },
    "ifrs-full_PastServiceCostNetDefinedBenefitLiabilityAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PastServiceCostNetDefinedBenefitLiabilityAsset",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsandTypesofPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Past service costs",
        "label": "Increase (decrease) in net defined benefit liability (asset) resulting from past service cost"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in the net defined benefit liability (asset) resulting from past service cost. Past service cost is the change in the present value of the defined benefit obligation for employee service in prior periods, resulting from a plan amendment (the introduction or withdrawal of, or changes to, a defined benefit plan) or a curtailment (a significant reduction by the entity in the number of employees covered by a plan). [Refer: Net defined benefit liability (asset); Defined benefit plans [domain]]"
       }
      }
     },
     "auth_ref": [
      "r33",
      "r285"
     ]
    },
    "ecd_PayVsPerformanceDisclosureLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PayVsPerformanceDisclosureLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Pay vs Performance Disclosure [Line Items]",
        "terseLabel": "Pay vs Performance Disclosure"
       }
      }
     },
     "auth_ref": [
      "r502"
     ]
    },
    "ck0000932782_PaymentOfInterestOnLeasePaid": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PaymentOfInterestOnLeasePaid",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Interest of lease paid",
        "label": "Payment Of Interest On Lease Paid",
        "documentation": "Payment of interest on lease paid."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PaymentTerms": {
     "xbrltype": "durationItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PaymentTerms",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Payment terms",
        "label": "Payment Terms",
        "documentation": "Payment Terms"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PaymentsByTheFund": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PaymentsByTheFund",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsandTypesofPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Payments by the fund",
        "label": "Payments By The Fund",
        "documentation": "Payments by the fund."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PaymentsForExplorationExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PaymentsForExplorationExpenses",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxesandDutiesPayableDetail": {
       "parentTag": "ck0000932782_OtherTaxesAndDuties",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxesandDutiesPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Exploration Hydrocarbons Duty",
        "label": "Payments for exploration expenses",
        "documentation": "Payments for exploration expenses."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PaymentsForExtractionExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PaymentsForExtractionExpenses",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxesandDutiesPayableDetail": {
       "parentTag": "ck0000932782_OtherTaxesAndDuties",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesHydrocarbonsExtractionDutyNarrativeDetails",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxesandDutiesPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Hydrocarbons Extraction Duty",
        "label": "Payments for extraction expenses",
        "documentation": "Payments for extraction expenses."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PaymentsForLegalSettlements1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PaymentsForLegalSettlements1",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/ContingenciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Payments for legal settlements",
        "label": "Payments For Legal Settlements1",
        "documentation": "Payments For Legal Settlements1"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PaymentsFromPlanNetDefinedBenefitLiabilityAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PaymentsFromPlanNetDefinedBenefitLiabilityAsset",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Expected payments",
        "label": "Decrease (increase) in net defined benefit liability (asset) resulting from payments from plan"
       }
      },
      "en": {
       "role": {
        "documentation": "The decrease (increase) in the net defined benefit liability (asset) resulting from payments from the plan. [Refer: Net defined benefit liability (asset)]"
       }
      }
     },
     "auth_ref": [
      "r35",
      "r287"
     ]
    },
    "ifrs-full_PaymentsInRespectOfSettlementsNetDefinedBenefitLiabilityAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PaymentsInRespectOfSettlementsNetDefinedBenefitLiabilityAsset",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofRetirementandPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Payments by the pension fund",
        "label": "Decrease (increase) in net defined benefit liability (asset) resulting from payments in respect of settlements"
       }
      },
      "en": {
       "role": {
        "documentation": "The decrease (increase) in the net defined benefit liability (asset) resulting from payments from the plan in respect of settlements. [Refer: Decrease (increase) in net defined benefit liability (asset) resulting from gains (losses) arising from settlements; Net defined benefit liability (asset); Defined benefit plans [domain]]"
       }
      }
     },
     "auth_ref": [
      "r35"
     ]
    },
    "ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Lease payments",
        "label": "Payments of lease liabilities, classified as financing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for payment of lease liabilities, classified as financing activities. [Refer: Lease liabilities]"
       }
      }
     },
     "auth_ref": [
      "r401"
     ]
    },
    "ck0000932782_PaymentsOfProfitSharingDuty": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PaymentsOfProfitSharingDuty",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesProfitSharingDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Profit sharing duty monthly installment",
        "label": "Payments Of Profit-Sharing Duty",
        "documentation": "Profit- sharing duty monthly installment."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PaymentsToSupplierForGoodsAndServices": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PaymentsToSupplierForGoodsAndServices",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Suppliers",
        "label": "Payments To Supplier For Goods And Services",
        "documentation": "The cash outflow to supplier for goods and services."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_PeerGroupIssuersFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PeerGroupIssuersFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Peer Group Issuers, Footnote [Text Block]",
        "terseLabel": "Peer Group Issuers, Footnote"
       }
      }
     },
     "auth_ref": [
      "r512"
     ]
    },
    "ecd_PeerGroupTotalShareholderRtnAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PeerGroupTotalShareholderRtnAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Peer Group Total Shareholder Return Amount",
        "terseLabel": "Peer Group Total Shareholder Return Amount"
       }
      }
     },
     "auth_ref": [
      "r512"
     ]
    },
    "ck0000932782_PemexCorporateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PemexCorporateMember",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Pemex corporate",
        "label": "Pemex Corporate [member]",
        "documentation": "Pemex corporate."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PemexCurvesSensitivityDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PemexCurvesSensitivityDebt",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofInterestRateSensitivityDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Sensitivity debt",
        "label": "Pemex Curves Sensitivity Debt",
        "documentation": "Pemex curves sensitivity debt."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PemexExplorationAndProductionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PemexExplorationAndProductionMember",
     "presentation": [
      "http://mexicopetroleum.com/role/ContingenciesAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesHydrocarbonsExtractionDutyNarrativeDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofReservesPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofValuesinUseforCGUImpairmentorReversalPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Exploration and Extraction (formerly Pemex Exploration and Production)",
        "label": "Pemex Exploration And Production [member]",
        "documentation": "Pemex exploration and production."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PemexIndustrialTransformationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PemexIndustrialTransformationMember",
     "presentation": [
      "http://mexicopetroleum.com/role/ContingenciesAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/RelatedPartiesSummaryofProductsAcquisitionfromPemexIndustrialTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Pemex Industrial Transformation",
        "label": "Pemex Industrial Transformation [member]",
        "documentation": "Pemex industrial transformation."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PemexLogisticsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PemexLogisticsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetRecoverableAmountsofAssetsCGUsPemexLogisticsDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofDiscountRatesandUsefulLivesCGUsPemexLogisticsDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexLogisticsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Logistics as a part of Other Operating Subsidiary Companies (formerly Pemex Logistics)",
        "label": "Pemex Logistics [member]",
        "documentation": "Pemex logistics."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PemexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PemexMember",
     "presentation": [
      "http://mexicopetroleum.com/role/ContingenciesAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpenseBenefitAttributabletoProfitLossfromContinuingOperationsbeforeIncomeTaxesDetail",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxExpenseBenefitDetail",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail",
      "http://mexicopetroleum.com/role/LeasesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "PEMEX",
        "label": "PEMEX [Member]",
        "documentation": "PEMEX."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PenaltiesAndOtherCharges": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PenaltiesAndOtherCharges",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail": {
       "parentTag": "ifrs-full_OtherRevenue",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Bidding terms, sanctions, penalties and other",
        "label": "Penalties and other charges",
        "documentation": "Penalties and other charges"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PensionsAndRetirementPlansMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PensionsAndRetirementPlansMember",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Pensions and retirement plans",
        "label": "Pensions and retirement plans [member]",
        "documentation": "Pensions and retirement plans."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_PeoActuallyPaidCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PeoActuallyPaidCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PEO Actually Paid Compensation Amount",
        "terseLabel": "PEO Actually Paid Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r504"
     ]
    },
    "ecd_PeoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PeoMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PEO [Member]",
        "terseLabel": "PEO"
       }
      }
     },
     "auth_ref": [
      "r521"
     ]
    },
    "ecd_PeoName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PeoName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PEO Name",
        "terseLabel": "PEO Name"
       }
      }
     },
     "auth_ref": [
      "r514"
     ]
    },
    "ecd_PeoTotalCompAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PeoTotalCompAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PEO Total Compensation Amount",
        "terseLabel": "PEO Total Compensation Amount"
       }
      }
     },
     "auth_ref": [
      "r503"
     ]
    },
    "ck0000932782_PercentOfGeneralVatCredit": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PercentOfGeneralVatCredit",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percent of general VAT credit",
        "label": "Percent Of General VAT Credit",
        "documentation": "Percent Of General VAT Credit"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PercentOfServiceIncomeOnDomesticSales": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PercentOfServiceIncomeOnDomesticSales",
     "presentation": [
      "http://mexicopetroleum.com/role/SegmentFinancialInformationSupplementalGeographicInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of service income from domestic sales",
        "label": "Percent Of Service Income On Domestic Sales",
        "documentation": "Percent of service income on domestic sales."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PercentageIncreaseDecreaseInPriceOfTheMexicanCrudeOilExportMixPerBarrel": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PercentageIncreaseDecreaseInPriceOfTheMexicanCrudeOilExportMixPerBarrel",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Percentage increase decrease in price of the Mexican crude oil export mix per barrel",
        "label": "Percentage increase decrease in price of the Mexican crude oil export mix per barrel",
        "documentation": "Percentage increase decrease in price of the Mexican crude oil export mix per barrel."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PercentageOfContractBehalf": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PercentageOfContractBehalf",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of contract behalf",
        "label": "Percentage of contract behalf",
        "documentation": "Percentage of contract behalf."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PercentageOfContractualArea": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PercentageOfContractualArea",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of contractual area",
        "label": "Percentage of contractual area",
        "documentation": "Percentage of contractual area."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PercentageOfDepreciationRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PercentageOfDepreciationRate",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Depreciation rates",
        "label": "Percentage of depreciation rate",
        "documentation": "Percentage of depreciation rate."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PercentageOfEmployeesBenefitsProvision": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PercentageOfEmployeesBenefitsProvision",
     "presentation": [
      "http://mexicopetroleum.com/role/AuthorizationandBasisofPreparationAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Employee benefits provision",
        "label": "Percentage of employees benefits provision",
        "documentation": "Percentage of employees benefits provision."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PercentageOfGeneralVatTaxRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PercentageOfGeneralVatTaxRate",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of general VAT tax rate",
        "label": "Percentage of general VAT tax rate",
        "documentation": "Percentage of general VAT tax rate"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PercentageOfIncreaseDecreaseInCrudeOilPrice": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PercentageOfIncreaseDecreaseInCrudeOilPrice",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsequentEventsExchangeratesandcrudeoilpricesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of increase in crude oil price",
        "label": "Percentage Of Increase (Decrease) In Crude Oil Price",
        "documentation": "Percetnage of increase in crude oil price"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PercentageOfIncreaseDecreaseInExchangeRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PercentageOfIncreaseDecreaseInExchangeRate",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Increase (decrease) in exchange rate",
        "label": "Percentage Of Increase Decrease In Exchange Rate",
        "documentation": "Percentage of increase decrease in exchange rate."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PercentageOfIncreaseOfDFIsAndDebtPortfolioToExchangeRates": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PercentageOfIncreaseOfDFIsAndDebtPortfolioToExchangeRates",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of increase of DFIs and debt portfolio to exchange rates of currencies against the U.S. dollar",
        "label": "Percentage of increase of DFIs and debt portfolio to exchange rates",
        "documentation": "Percentage of increase of DFIs and debt portfolio to exchange rates."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PercentageOfPemexsDebtInForeignCurrency": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PercentageOfPemexsDebtInForeignCurrency",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of PEMEX's debt in foreign currency",
        "label": "Percentage of PEMEXs Debt in Foreign Currency",
        "documentation": "Percentage of PEMEX's debt in foreign currency."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PercentageOfProductionArea": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PercentageOfProductionArea",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of production area",
        "label": "Percentage of Production area",
        "documentation": "Percentage of Production area."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PercentageOfReasonablyPossibleDecreaseInActuarialAssumption": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PercentageOfReasonablyPossibleDecreaseInActuarialAssumption",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Percentage of decrease in assumed variation rate",
        "label": "Percentage of reasonably possible decrease in actuarial assumption"
       }
      },
      "en": {
       "role": {
        "documentation": "The reasonably possible percentage of the decrease in the actuarial assumption used to determine the present value of defined benefit obligation. [Refer: Actuarial assumptions [domain]]"
       }
      }
     },
     "auth_ref": [
      "r37"
     ]
    },
    "ifrs-full_PercentageOfReasonablyPossibleIncreaseInActuarialAssumption": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PercentageOfReasonablyPossibleIncreaseInActuarialAssumption",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofActuarialAssumptionsDetails",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsandTypesofPlanAssetsDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofPrincipalActuarialAssumptionsUsedinDeterminingtheDefinedBenefitObligationDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofRetirementandPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of increase in the assumed variation rate",
        "verboseLabel": "Percentage of principal actuarial assumptions used in determining the defined benefit obligation",
        "label": "Percentage of reasonably possible increase in actuarial assumption"
       }
      },
      "en": {
       "role": {
        "documentation": "The reasonably possible percentage of the increase in the actuarial assumption used to determine the present value of defined benefit obligation. [Refer: Actuarial assumptions [domain]]"
       }
      }
     },
     "auth_ref": [
      "r37"
     ]
    },
    "ck0000932782_PercentageVatTaxRateForCertainActivitiesWithIncentives": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PercentageVatTaxRateForCertainActivitiesWithIncentives",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage VAT tax rate for certain activities with incentives",
        "label": "Percentage VAT tax rate for certain activities with incentives",
        "documentation": "Percentage VAT tax rate for certain activities with incentives"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PersonnelServicesExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PersonnelServicesExpense",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail": {
       "parentTag": "ck0000932782_CostOfSalesAndGeneralExpenses",
       "weight": 1.0,
       "order": 17.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Personnel services",
        "label": "Personnel services expense",
        "documentation": "Personnel services expense"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PesoTreasuryPortfolioMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PesoTreasuryPortfolioMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Peso teasury portfolio",
        "label": "Peso Treasury Portfolio [member]",
        "documentation": "Peso treasury portfolio."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PetrochemicalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PetrochemicalMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialTranformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Petrochemicals",
        "label": "Petrochemical [member]",
        "documentation": "Petrochemical [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PetrochemicalProductsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PetrochemicalProductsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SegmentFinancialInformationScheduleofIncomebyProductDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Petrochemical products",
        "label": "Petrochemical Products [member]",
        "documentation": "Petrochemical products."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PetroleosMexicanosMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PetroleosMexicanosMember",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofGovernmentContributionstoPetroleosMexicanosthroughtheMinistryofEnergyDetail",
      "http://mexicopetroleum.com/role/SubsequentEventsSummaryofContributionsfromtheMexicanGovernmentDetails",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationSummaryofPrincipalAmountOutstandingofRegisteredDebtSecuritiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Petr\u00f3leos Mexicanos",
        "label": "Petroleos Mexicanos [member]",
        "documentation": "Petroleos Mexicanos."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PetroleraCardenasMoraSAPIdeCVMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PetroleraCardenasMoraSAPIdeCVMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Petrolera Cardenas Mora, S. A. P. I. de C. V.",
        "label": "Petrolera Cardenas Mora, S. A. P. I. de C. V. [member]",
        "documentation": "Petrolera Crdenas Mora, S. A. P. I. de C. V."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PetroleumCokeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PetroleumCokeMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Petroleum Coke",
        "label": "Petroleum coke [member]",
        "documentation": "Petroleum coke."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PetroleumProductsSwapMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PetroleumProductsSwapMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFairValuesandNotionalAmountsofDFIsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Petroleum Products Swaps",
        "label": "Petroleum Products Swap [Member]",
        "documentation": "Petroleum Products Swap"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_Pipelines1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "Pipelines1Member",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofDiscountRatesandUsefulLivesCGUsPemexLogisticsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Pipelines",
        "label": "Pipelines 1 [Member]",
        "documentation": "Pipelines."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PlanAssetsAtFairValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PlanAssetsAtFairValue",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsandTypesofPlanAssetsDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAdditionalFairvalueDisclosureAboutPlanAssetsandIndicateTheirRankDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsandTypesofPlanAssetsDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofRetirementandPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Plan assets at fair value",
        "periodStartLabel": "Plan assets at the beginning of year",
        "periodEndLabel": "Pension plan assets at the end of year",
        "totalLabel": "Total",
        "label": "Plan assets, at fair value"
       }
      },
      "en": {
       "role": {
        "documentation": "The fair value of defined benefit plan assets. Plan assets comprise assets held by a long-term employee benefit fund and qualifying insurance policies. [Refer: At fair value [member]]"
       }
      }
     },
     "auth_ref": [
      "r573"
     ]
    },
    "ck0000932782_PlanAssetsHeldInTrustAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PlanAssetsHeldInTrustAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Plan Assets Held In Trust [Axis]",
        "label": "Plan Assets Held In Trust [Axis]",
        "documentation": "Plan assets held in trust."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PlanAssetsHeldInTrustDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PlanAssetsHeldInTrustDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Plan Assets Held In Trust [Domain]",
        "label": "Plan Assets Held In Trust [Domain]",
        "documentation": "Plan assets held in trust."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PlanAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PlanAssetsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAdditionalFairvalueDisclosureAboutPlanAssetsandIndicateTheirRankDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsandTypesofPlanAssetsDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofRetirementandPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Plan Assets",
        "label": "Plan assets [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for defined benefit plan assets. Plan assets comprise: (a) assets held by a long-term employee benefit fund; and (b) qualifying insurance policies."
       }
      }
     },
     "auth_ref": [
      "r24",
      "r280"
     ]
    },
    "ifrs-full_PlantsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PlantsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesSummaryofrightofuseassetsDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Plants",
        "verboseLabel": "Plants",
        "label": "Plants [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for plants."
       }
      }
     },
     "auth_ref": [
      "r584"
     ]
    },
    "srt_PlatformOperatorCryptoAssetAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "PlatformOperatorCryptoAssetAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Platform Operator, Crypto Asset [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PlegadoPerdidoBlockFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PlegadoPerdidoBlockFiveMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Plegado Perdido Block Five",
        "label": "Plegado Perdido Block five [member]",
        "documentation": "Plegado Perdido block five."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PlegadoPerdidoBlockTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PlegadoPerdidoBlockTwoMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Plegado Perdido Block Two",
        "label": "Plegado Perdido Block two [member]",
        "documentation": "Plegado Perdido block two."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PluggingAndAbandonmentCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PluggingAndAbandonmentCost",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Plugging and abandonment cost",
        "label": "Plugging And Abandonment Cost",
        "documentation": "Plugging and abandonment cost."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PmiTradingLtdMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PmiTradingLtdMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "PMI Trading Ltd",
        "label": "PMI Trading Ltd [member]",
        "documentation": "PMI Trading Ltd."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PmiTrdDacRevolvingCreditLinesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PmiTrdDacRevolvingCreditLinesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/SubsequentEventsRecentFinancingActivitiesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "PMI TRD DAC revolving credit lines",
        "label": "PMI TRD DAC revolving credit lines [Member]",
        "documentation": "PMI TRD DAC revolving credit lines [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_PnsnAdjsPrrSvcCstMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PnsnAdjsPrrSvcCstMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pension Adjustments Prior Service Cost [Member]",
        "terseLabel": "Pension Adjustments Prior Service Cost"
       }
      }
     },
     "auth_ref": [
      "r505"
     ]
    },
    "ecd_PnsnAdjsSvcCstMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PnsnAdjsSvcCstMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pension Adjustments Service Cost [Member]",
        "terseLabel": "Pension Adjustments Service Cost"
       }
      }
     },
     "auth_ref": [
      "r561"
     ]
    },
    "ecd_PnsnBnftsAdjFnTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PnsnBnftsAdjFnTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pension Benefits Adjustments, Footnote [Text Block]",
        "terseLabel": "Pension Benefits Adjustments, Footnote"
       }
      }
     },
     "auth_ref": [
      "r504"
     ]
    },
    "ck0000932782_PortFacilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PortFacilitiesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesSummaryofrightofuseassetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Port facilities",
        "label": "Port Facilities [Member]",
        "documentation": "Port Facilities [member]."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PositiveEffectDueToIncreaseDecreaseInDiscountRate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PositiveEffectDueToIncreaseDecreaseInDiscountRate",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Positive effect due to increase decrease in discount rate",
        "label": "Positive Effect Due To Increase Decrease In Discount Rate",
        "documentation": "Positive Effect Due To Increase Decrease In Discount Rate."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PositiveEffectDueToLowerFreightAndDistributionCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PositiveEffectDueToLowerFreightAndDistributionCosts",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Positive effect due to lower transportation and distribution costs",
        "label": "Positive Effect Due To Lower Freight And Distribution Costs",
        "documentation": "Positive Effect Due To Lower Freight And Distribution Costs"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PositiveEffectFromDecreaseInProduction": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PositiveEffectFromDecreaseInProduction",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Positive effect from decrease in production",
        "label": "Positive Effect From Decrease In Production",
        "documentation": "Positive effect from decrease in production."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PositiveTaxEffect": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PositiveTaxEffect",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Positive tax effect due to lower income in reserves",
        "label": "Positive Tax Effect",
        "documentation": "Positive Tax Effect"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PostemploymentBenefitExpenseDefinedBenefitPlans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PostemploymentBenefitExpenseDefinedBenefitPlans",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Post-employment benefit expense in profit or loss, defined benefit plans",
        "label": "Post-employment benefit expense in profit or loss, defined benefit plans"
       }
      }
     },
     "auth_ref": [
      "r568",
      "r572"
     ]
    },
    "ck0000932782_PoundsSterlingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PoundsSterlingMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofForeignCurrencyTranslationDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFinancialLiabilitiesInterestAndPrincipalCashFlowMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Pounds sterling",
        "label": "Pounds Sterling [member]",
        "documentation": "Pounds Sterling."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PozaRicaGasProcessorComplexMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PozaRicaGasProcessorComplexMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Poza Rica Gas Processor Complex",
        "label": "Poza Rica Gas Processor Complex [Member]",
        "documentation": "Poza Rica Gas Processor Complex"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PozaRicaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PozaRicaMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofValuesinUseforCGUImpairmentorReversalPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Poza Rica",
        "label": "Poza Rica [Member]",
        "documentation": "Poza Rica."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PremiumGasolineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PremiumGasolineMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Premium Gasoline",
        "label": "Premium Gasoline [member]",
        "documentation": "Premium gasoline."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PrepaidSwapsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PrepaidSwapsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Prepaid swaps",
        "label": "Prepaid Swaps [Member]",
        "documentation": "Prepaid Swaps"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PretaxDiscountRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PretaxDiscountRate",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofReservesPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Pre-tax discount rate",
        "label": "PreTax Discount Rate",
        "documentation": "PreTax Discount Rate."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PriceOfTheMexicanCrudeOilExportMixPerBarrel": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PriceOfTheMexicanCrudeOilExportMixPerBarrel",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Price of the Mexican crude oil export mix per barrel (USD per USD per bbl)",
        "label": "Price of the Mexican crude oil export mix per barrel",
        "documentation": "Price of the Mexican crude oil export mix per barrel."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PrimaryLogisticsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PrimaryLogisticsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetRecoverableAmountsofAssetsCGUsPemexLogisticsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Primary logistics",
        "label": "Primary logistics [member]",
        "documentation": "Primary logistics."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PrincipalAmountOfPromissoryNote": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PrincipalAmountOfPromissoryNote",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Principal amount of promissory note",
        "label": "Principal Amount Of Promissory Note",
        "documentation": "Principal amount of promissory note"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PrincipalAmountOutstanding": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PrincipalAmountOutstanding",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationSummaryofPrincipalAmountOutstandingofRegisteredDebtSecuritiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Principal amount outstanding (U.S.$)",
        "label": "Principal Amount Outstanding",
        "documentation": "Principal amount outstanding."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ProceedFromSaleOfEligibleAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProceedFromSaleOfEligibleAsset",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proceed from sale of eligible asset",
        "label": "Proceed From Sale Of Eligible Asset",
        "documentation": "Proceed From Sale Of Eligible Asset"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ProceedsAndPaymentsOfOtherAssetsAndOtherReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProceedsAndPaymentsOfOtherAssetsAndOtherReceivable",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Other assets and other receivables",
        "label": "Proceeds And Payments Of Other Assets And Other Receivable",
        "documentation": "Proceeds and payments of other assets and other receivable."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProceedsFromBorrowingsClassifiedAsFinancingActivities",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": 1.0,
       "order": 1.0
      },
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Loans obtained from financial institutions",
        "label": "Proceeds from borrowings, classified as financing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash inflow from borrowings obtained. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r399"
     ]
    },
    "ck0000932782_ProceedsFromCapitalizedUnsuccessfulWells": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProceedsFromCapitalizedUnsuccessfulWells",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 4.0
      },
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperationsBeforeChangesInWorkingCapital",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Capitalized unsuccessful wells",
        "verboseLabel": "Capitalized unsuccessful wells",
        "label": "Proceeds From Capitalized Unsuccessful Wells",
        "documentation": "Proceeds from capitalized unsuccessful wells."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProceedsFromCurrentBorrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProceedsFromCurrentBorrowings",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proceeds from revolving credit lines",
        "label": "Proceeds from current borrowings"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash inflow from current borrowings obtained. [Refer: Current borrowings]"
       }
      }
     },
     "auth_ref": [
      "r587"
     ]
    },
    "ck0000932782_ProceedsFromGovernmentGrantsAndInterestClassifiedAsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProceedsFromGovernmentGrantsAndInterestClassifiedAsFinancingActivities",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Collection and interest collected from the Mexican Government",
        "label": "Proceeds From Government Grants And Interest Classified As Financing Activities",
        "documentation": "Proceeds from government grants and interest classified as financing activities."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProceedsFromGovernmentGrantsClassifiedAsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProceedsFromGovernmentGrantsClassifiedAsFinancingActivities",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Collections from the Mexican Government",
        "label": "Proceeds from government grants, classified as financing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash inflow from government grants, classified as financing activities. [Refer: Government [member]; Government grants]"
       }
      }
     },
     "auth_ref": [
      "r574"
     ]
    },
    "ifrs-full_ProceedsFromGovernmentGrantsClassifiedAsInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProceedsFromGovernmentGrantsClassifiedAsInvestingActivities",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofGovernmentContributionstoPetroleosMexicanosthroughtheMinistryofEnergyDetail",
      "http://mexicopetroleum.com/role/SubsequentEventsSummaryofContributionsfromtheMexicanGovernmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proceeds from government grants",
        "netLabel": "Total",
        "label": "Proceeds from government grants, classified as investing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash inflow from government grants, classified as investing activities. [Refer: Government [member]; Government grants]"
       }
      }
     },
     "auth_ref": [
      "r574"
     ]
    },
    "ifrs-full_ProceedsFromNoncurrentBorrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProceedsFromNoncurrentBorrowings",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/SubsequentEventsRecentFinancingActivitiesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Obtain of revolving credit lines",
        "label": "Proceeds from non-current borrowings"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash inflow from non-current borrowings obtained. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r587"
     ]
    },
    "ck0000932782_ProceedsFromUnsuccessfulWells": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProceedsFromUnsuccessfulWells",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperationsBeforeChangesInWorkingCapital",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unsuccessful wells from intangible assets",
        "label": "Proceeds From Unsuccessful Wells",
        "documentation": "Proceeds from unsuccessful wells."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ProcessedVolume": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProcessedVolume",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialTranformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Processed volume (millions per day)",
        "label": "Processed Volume",
        "documentation": "Processed volume."
       }
      }
     },
     "auth_ref": []
    },
    "srt_ProductOrServiceAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "ProductOrServiceAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Product and Service [Axis]",
        "label": "Product and Service [Axis]",
        "documentation": "Information by product and service, or group of similar products and similar services."
       }
      }
     },
     "auth_ref": [
      "r217",
      "r218",
      "r219",
      "r220",
      "r221",
      "r222",
      "r233",
      "r604"
     ]
    },
    "ck0000932782_ProductionCosts1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProductionCosts1",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofResultsofOperationsforOilandGasProducingActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Production costs (excluding taxes)",
        "label": "Production costs 1",
        "documentation": "Production costs."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ProductionOfProvedDevelopedReserves": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProductionOfProvedDevelopedReserves",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofProvedDevelopedandUndevelopedReserveDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Production",
        "label": "Production of proved developed reserves",
        "documentation": "Production of proved developed reserves."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ProductionVolume": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProductionVolume",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Production forecast",
        "label": "Production Volume",
        "documentation": "Production volume."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProductsAndServicesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProductsAndServicesAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesWelfareOilDutyNarrativeDetails",
      "http://mexicopetroleum.com/role/InventoriesSummaryofInventoriesDetail",
      "http://mexicopetroleum.com/role/RelatedPartiesSummaryofProductsAcquisitionfromPemexIndustrialTransformationDetail",
      "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Products and services [axis]",
        "label": "Products and services [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r208",
      "r409",
      "r435"
     ]
    },
    "srt_ProductsAndServicesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "ProductsAndServicesDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Product and Service [Domain]",
        "label": "Product and Service [Domain]",
        "documentation": "Product or service, or a group of similar products or similar services."
       }
      }
     },
     "auth_ref": [
      "r217",
      "r218",
      "r219",
      "r220",
      "r221",
      "r222",
      "r233",
      "r604"
     ]
    },
    "ifrs-full_ProductsAndServicesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProductsAndServicesDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesWelfareOilDutyNarrativeDetails",
      "http://mexicopetroleum.com/role/InventoriesSummaryofInventoriesDetail",
      "http://mexicopetroleum.com/role/RelatedPartiesSummaryofProductsAcquisitionfromPemexIndustrialTransformationDetail",
      "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Major products and services",
        "terseLabel": "Products and services",
        "label": "Products and services [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the entity's products and services. It also represents the standard value for the 'Products and services' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r208",
      "r409",
      "r435"
     ]
    },
    "ck0000932782_ProductsAndServicesTransferredOverTimeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProductsAndServicesTransferredOverTimeMember",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Products and services transferred over the time",
        "label": "Products and services transferred over time [member]",
        "documentation": "Products and services transferred over time."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ProductsInTransitMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProductsInTransitMember",
     "presentation": [
      "http://mexicopetroleum.com/role/InventoriesSummaryofInventoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Products in transit",
        "label": "Products In Transit [member]",
        "documentation": "Products in transit."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ProductsTransferredAtPointInTimeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProductsTransferredAtPointInTimeMember",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Products transferred at a point in time",
        "label": "Products transferred at point in time [member]",
        "documentation": "Products transferred at point in time."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProfitLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProfitLoss",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 1.0
      },
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperationsBeforeChangesInWorkingCapital",
       "weight": 1.0,
       "order": 1.0
      },
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss_1": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows",
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/EquityDeficitAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofComprehensiveIncomeDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Net (loss) income",
        "terseLabel": "Net (loss) income",
        "netLabel": "Net (loss) income",
        "negatedTerseLabel": "Net (loss) income",
        "label": "Profit (loss)"
       }
      },
      "en": {
       "role": {
        "documentation": "The total of income less expenses from continuing and discontinued operations, excluding the components of other comprehensive income. [Refer: Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r98",
      "r100",
      "r201",
      "r203",
      "r295",
      "r313",
      "r344",
      "r370",
      "r404",
      "r414"
     ]
    },
    "ifrs-full_ProfitLossAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProfitLossAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net revenues",
        "label": "Profit (loss) [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProfitLossAttributableToAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProfitLossAttributableToAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Net (loss) income attributable to:",
        "label": "Profit (loss), attributable to [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProfitLossAttributableToNoncontrollingInterests": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProfitLossAttributableToNoncontrollingInterests",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss": {
       "parentTag": "ifrs-full_ProfitLoss",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-controlling interest",
        "label": "Profit (loss), attributable to non-controlling interests"
       }
      },
      "en": {
       "role": {
        "documentation": "The profit (loss) from continuing and discontinued operations attributable to non-controlling interests. [Refer: Profit (loss); Non-controlling interests]"
       }
      }
     },
     "auth_ref": [
      "r102",
      "r373"
     ]
    },
    "ifrs-full_ProfitLossAttributableToOwnersOfParent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProfitLossAttributableToOwnersOfParent",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss": {
       "parentTag": "ifrs-full_ProfitLoss",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Controlling interest",
        "label": "Profit (loss), attributable to owners of parent"
       }
      },
      "en": {
       "role": {
        "documentation": "The profit (loss) from continuing and discontinued operations attributable to owners of the parent. [Refer: Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r374"
     ]
    },
    "ifrs-full_ProfitLossBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProfitLossBeforeTax",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss_1": {
       "parentTag": "ifrs-full_ProfitLoss",
       "weight": 1.0,
       "order": 1.0
      },
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofComprehensiveIncomeDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "(Loss) income before duties, taxes and other",
        "label": "Profit (loss) before tax"
       }
      }
     },
     "auth_ref": [
      "r164",
      "r431",
      "r432",
      "r447",
      "r448"
     ]
    },
    "ifrs-full_ProfitLossFromOperatingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProfitLossFromOperatingActivities",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss": {
       "parentTag": "ck0000932782_OperatingLossIncomeAfterWelfareOilDuty",
       "weight": 1.0,
       "order": 1.0
      },
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofComprehensiveIncomeDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Operating income (loss)",
        "verboseLabel": "Operating (loss) income",
        "label": "Profit (loss) from operating activities"
       }
      }
     },
     "auth_ref": [
      "r394",
      "r617"
     ]
    },
    "ck0000932782_ProfitSharingDutyNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProfitSharingDutyNet",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": 1.0,
       "order": 2.0
      },
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxesandDutiesPayableDetail": {
       "parentTag": "ck0000932782_IncomeTaxesAndDuties",
       "weight": 1.0,
       "order": 2.0
      },
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpectedBenefitforDUCDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpectedBenefitforDUCDetail",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxesandDutiesPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Profit sharing duty, net",
        "terseLabel": "Profit-sharing Duty",
        "totalLabel": "DUC-Profit-sharing duty expense",
        "label": "Profit- sharing duty, net",
        "documentation": "Profit- sharing duty, net."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ProfitSharingDutyRemainingBalancePayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProfitSharingDutyRemainingBalancePayable",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesProfitSharingDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Profit sharing duty balance amount",
        "label": "Profit Sharing Duty Remaining Balance Payable",
        "documentation": "Profit sharing duty remaining balance payable."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ProfitSharingDutyTaxCreditAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProfitSharingDutyTaxCreditAmount",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpectedBenefitforDUCDetail": {
       "parentTag": "ck0000932782_ProfitSharingDutyNet",
       "weight": -1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpectedBenefitforDUCDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "DUC tax credit",
        "label": "Profit Sharing Duty Tax Credit Amount",
        "documentation": "Profit Sharing Duty Tax Credit Amount."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ProfitSharingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProfitSharingMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Production-sharing contracts",
        "label": "Profit sharing [member]",
        "documentation": "Profit sharing [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ProfitsharingDutyDeferredDUCExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProfitsharingDutyDeferredDUCExpense",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpectedBenefitforDUCDetail": {
       "parentTag": "ck0000932782_ProfitSharingDutyNet",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpectedBenefitforDUCDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deferred DUC expense (benefit)",
        "label": "Profit-sharing duty Deferred DUC expense",
        "documentation": "Profit-sharing duty deferred DUC expense."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ProfitsharingDutyExpenseDeductibleDuties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProfitsharingDutyExpenseDeductibleDuties",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpectedBenefitforDUCDetail": {
       "parentTag": "ck0000932782_ProfitSharingDutyNet",
       "weight": 1.0,
       "order": 3.0
      },
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpenseBenefitAttributabletoProfitLossfromContinuingOperationsbeforeIncomeTaxesDetail": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpectedBenefitforDUCDetail",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpenseBenefitAttributabletoProfitLossfromContinuingOperationsbeforeIncomeTaxesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deductible duties",
        "verboseLabel": "Deductible Duty",
        "label": "Profit-sharing duty expense deductible duties",
        "documentation": "Profit-sharing duty expense deductible duties."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ProfitsharingDutyExpenseDeductionsCap": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProfitsharingDutyExpenseDeductionsCap",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpectedBenefitforDUCDetail": {
       "parentTag": "ck0000932782_ProfitSharingDutyNet",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpectedBenefitforDUCDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Deductions cap",
        "label": "Profit-sharing duty expense deductions cap",
        "documentation": "Profit-sharing duty expense deductions cap."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ProfitsharingDutyExpenseExpectedBenefitContract": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProfitsharingDutyExpenseExpectedBenefitContract",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpectedBenefitforDUCDetail": {
       "parentTag": "ck0000932782_ProfitSharingDutyNet",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpectedBenefitforDUCDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Expected benefit contract",
        "label": "Profit-sharing duty expense Expected benefit contract",
        "documentation": "Profit-sharing duty expense Expected benefit contract."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ProfitsharingDutyExpenseNoncumulativeProfit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProfitsharingDutyExpenseNoncumulativeProfit",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpectedBenefitforDUCDetail": {
       "parentTag": "ck0000932782_ProfitSharingDutyNet",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpectedBenefitforDUCDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-cumulative profit",
        "label": "Profit-sharing duty expense non-cumulative profit",
        "documentation": "Profit-sharing duty expense non-cumulative profit."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ProfitsharingDutyExpenseNondeductibleExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProfitsharingDutyExpenseNondeductibleExpenses",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpectedBenefitforDUCDetail": {
       "parentTag": "ck0000932782_ProfitSharingDutyNet",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpectedBenefitforDUCDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-deductible expenses",
        "label": "Profit-sharing duty expense nondeductible expenses",
        "documentation": "Profit-sharing duty expense nondeductible expenses."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ProfitsharingDutyExpenseProductionValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProfitsharingDutyExpenseProductionValue",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpectedBenefitforDUCDetail": {
       "parentTag": "ck0000932782_ProfitSharingDutyNet",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpectedBenefitforDUCDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Production value",
        "label": "Profit-sharing duty expense production value",
        "documentation": "Profit-sharing duty expense production value."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ProjectFinanceMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProjectFinanceMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Project financing",
        "label": "Project Finance [member]",
        "documentation": "Project finance."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PromissoryNoteMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PromissoryNoteMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Promissory Note",
        "label": "Promissory Note [Member]",
        "documentation": "Promissory Note [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_PropaneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PropaneMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Propane",
        "label": "Propane [member]",
        "documentation": "Propane."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PropertyPlantAndEquipment",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Wells, pipelines, properties, plant and equipment, net",
        "periodStartLabel": "Beginning balance",
        "periodEndLabel": "Ending balance",
        "verboseLabel": "Wells, pipelines, properties, plant and equipment, net",
        "label": "Property, plant and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of tangible assets that: (a) are held for use in the production or supply of goods or services, for rental to others, or for administrative purposes; and (b) are expected to be used during more than one period. Note that right-of-use assets are not included. [Contrast: Property, plant and equipment including right-of-use assets]"
       }
      }
     },
     "auth_ref": [
      "r18",
      "r276",
      "r350"
     ]
    },
    "ifrs-full_PropertyPlantAndEquipmentByOperatingLeaseStatusAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PropertyPlantAndEquipmentByOperatingLeaseStatusAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofOilandGasProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Property, plant and equipment by operating lease status [axis]",
        "label": "Property, plant and equipment by operating lease status [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r143"
     ]
    },
    "ifrs-full_PropertyPlantAndEquipmentByOperatingLeaseStatusDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PropertyPlantAndEquipmentByOperatingLeaseStatusDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofOilandGasProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Property, plant and equipment by operating lease status",
        "label": "Property, plant and equipment by operating lease status [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for all property, plant and equipment when disaggregated by the operating lease status by a lessor. It also represents the standard value for the 'Property, plant and equipment by operating lease status' axis if no other member is used. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r143"
     ]
    },
    "ifrs-full_PropertyPlantAndEquipmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PropertyPlantAndEquipmentMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofProvedDevelopedandUndevelopedReserveDetail",
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofStandardizedMeasureofDiscountedFutureNetCashFlowsDetail",
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofCapitalizedCostsforOilandGasProducingActivitiesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialTranformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetRecoverableAmountsofAssetsCGUsPemexLogisticsDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Property, plant and equipment",
        "label": "Property, plant and equipment [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for property, plant and equipment. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r19",
      "r277",
      "r395",
      "r413",
      "r439",
      "r444"
     ]
    },
    "ck0000932782_ProportionOfNetDebtOutstandingConsistedOfFloatingRateDebt": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProportionOfNetDebtOutstandingConsistedOfFloatingRateDebt",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total net debt outstanding consisted of floating rate debt",
        "label": "Proportion of net debt outstanding consisted of floating rate debt",
        "documentation": "Proportion of net debt outstanding consisted of floating rate debt."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProportionOfOwnershipInterestInSubsidiary": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProportionOfOwnershipInterestInSubsidiary",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryEntitiesandSubsidiaryCompaniesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proportion of ownership interest held",
        "label": "Proportion of ownership interest in subsidiary"
       }
      },
      "en": {
       "role": {
        "documentation": "The proportion of ownership interest in a subsidiary attributable to the entity. [Refer: Total for all subsidiaries [member]]"
       }
      }
     },
     "auth_ref": [
      "r55",
      "r57",
      "r104"
     ]
    },
    "ifrs-full_ProportionOfVotingPowerHeldInSubsidiary": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProportionOfVotingPowerHeldInSubsidiary",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryEntitiesandSubsidiaryCompaniesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proportion of voting rights held in subsidiary",
        "label": "Proportion of voting rights held in subsidiary"
       }
      },
      "en": {
       "role": {
        "documentation": "The proportion of the voting rights in a subsidiary held by the entity. [Refer: Total for all subsidiaries [member]]"
       }
      }
     },
     "auth_ref": [
      "r55",
      "r57",
      "r104"
     ]
    },
    "ck0000932782_ProvedCrudeOilReserves": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProvedCrudeOilReserves",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofOilandGasProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total proved reserves",
        "label": "Proved crude oil reserves",
        "documentation": "Proved crude oil reserves."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ProvedDevelopedAndUndevelopedReservesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProvedDevelopedAndUndevelopedReservesAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofProvedDevelopedandUndevelopedReserveDetail",
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofOilandGasProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proved developed and undeveloped reserves:",
        "verboseLabel": "Proved developed and undeveloped reserves:",
        "label": "Proved Developed And Undeveloped Reserves [abstract]",
        "documentation": "Proved Developed And Undeveloped Reserves [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "srt_ProvedDevelopedAndUndevelopedReservesNet": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "ProvedDevelopedAndUndevelopedReservesNet",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofProvedDevelopedandUndevelopedReserveDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "Beginning balance",
        "periodEndLabel": "Ending Balance",
        "label": "Oil and Gas, Proved Reserve, Quantity, Volume",
        "documentation": "The net quantity of proved reserves as of the balance sheet date. Proved oil reserves are the estimated quantities of crude oil and natural gas liquids which geological and engineering data demonstrate with reasonable certainty to be recoverable."
       }
      }
     },
     "auth_ref": [
      "r0"
     ]
    },
    "ck0000932782_ProvedDevelopedReserves": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProvedDevelopedReserves",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofProvedDevelopedandUndevelopedReserveDetail",
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofOilandGasProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proved developed reserves",
        "verboseLabel": "Proved developed reserves at December 31,",
        "label": "Proved developed reserves",
        "documentation": "Proved developed reserves."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ProvedPropertiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProvedPropertiesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofCapitalizedCostsforOilandGasProducingActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proved Properties",
        "label": "Proved Properties [Member]",
        "documentation": "Proved properties."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ProvedReservesAfterNetCashFlowsDiscountFactor": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProvedReservesAfterNetCashFlowsDiscountFactor",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proved reserves after net cash flows discount factor",
        "label": "Proved Reserves After Net Cash Flows Discount Factor",
        "documentation": "Proved reserves after net cash flows discount factor."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ProvedUndevelopedReserves": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProvedUndevelopedReserves",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofProvedDevelopedandUndevelopedReserveDetail",
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofOilandGasProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Proved undeveloped reserves",
        "verboseLabel": "Proved undeveloped reserves at December 31,",
        "label": "Proved undeveloped reserves",
        "documentation": "Proved undeveloped reserves."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ProvisionForEnvironmentalCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProvisionForEnvironmentalCosts",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofProvisionsforSundryCreditorsandOthersDetail": {
       "parentTag": "ifrs-full_Provisions",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofAllowanceAccountforPluggingofWellsTrialsinProgressandEnvironmentalCostsDetail",
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofProvisionsforSundryCreditorsandOthersDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Provision for environmental costs",
        "periodStartLabel": "Balance at the beginning of the year",
        "periodEndLabel": "Balance at the end of the year",
        "label": "Provision For Environmental Costs",
        "documentation": "Provision for environmental costs."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ProvisionForEnvironmentalCostsAmountUsed": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProvisionForEnvironmentalCostsAmountUsed",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofAllowanceAccountforPluggingofWellsTrialsinProgressandEnvironmentalCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Amount used",
        "label": "Provision For Environmental Costs Amount Used",
        "documentation": "Provision for environmental costs deductions."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProvisionOfGuaranteesOrCollateralByEntityRelatedPartyTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProvisionOfGuaranteesOrCollateralByEntityRelatedPartyTransactions",
     "presentation": [
      "http://mexicopetroleum.com/role/ContingenciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Provision of guarantees or collateral to entity, related party transactions",
        "label": "Provision of guarantees or collateral by entity, related party transactions"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of guarantees or collateral provided by the entity in related party transactions. [Refer: Guarantees [member]; Total for all related parties [member]]"
       }
      }
     },
     "auth_ref": [
      "r393",
      "r443"
     ]
    },
    "ifrs-full_ProvisionUsedOtherProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProvisionUsedOtherProvisions",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofAllowanceAccountforPluggingofWellsTrialsinProgressandEnvironmentalCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Amount used",
        "label": "Provision used, other provisions"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount used (ie incurred and charged against the provision) for other provisions. [Refer: Other provisions]"
       }
      }
     },
     "auth_ref": [
      "r66",
      "r298"
     ]
    },
    "ifrs-full_Provisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "Provisions",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 5.0
      },
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofProvisionsforSundryCreditorsandOthersDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofProvisionsforSundryCreditorsandOthersDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Provisions for sundry creditors",
        "totalLabel": "Provisions",
        "label": "Provisions"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of liabilities of uncertain timing or amount, including provisions for employee benefits."
       }
      }
     },
     "auth_ref": [
      "r356"
     ]
    },
    "ck0000932782_ProvisionsForEnvironmentalCostsCancellation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProvisionsForEnvironmentalCostsCancellation",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofAllowanceAccountforPluggingofWellsTrialsinProgressandEnvironmentalCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Cancellation against expenses",
        "label": "Provisions For Environmental Costs Cancellation",
        "documentation": "Provisions for environmental costs cancellation"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ProvisionsForPluggingOfWells": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProvisionsForPluggingOfWells",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofProvisionsforSundryCreditorsandOthersDetail": {
       "parentTag": "ifrs-full_Provisions",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofAllowanceAccountforPluggingofWellsTrialsinProgressandEnvironmentalCostsDetail",
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofProvisionsforSundryCreditorsandOthersDetail",
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofprovisionsforpluggingofwellsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Provision for plugging of wells (Note 12)",
        "periodStartLabel": "Balance at the beginning of the year",
        "periodEndLabel": "Balance at the end of the year",
        "verboseLabel": "Provisions for plugging of wells",
        "label": "Provisions For Plugging Of Wells",
        "documentation": "Provisions for plugging of wells."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ProvisionsForPluggingOfWellsIncreaseDecreaseCapitalizedInFixedAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProvisionsForPluggingOfWellsIncreaseDecreaseCapitalizedInFixedAssets",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofAllowanceAccountforPluggingofWellsTrialsinProgressandEnvironmentalCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Increase (decrease) capitalized in fixed assets",
        "label": "Provisions for Plugging of Wells Increase Decrease Capitalized In Fixed Assets",
        "documentation": "Provisions for plugging of wells increase decrease capitalized in fixed assets."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ProvisionsForPluggingWells": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProvisionsForPluggingWells",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Provisions for plugging wells",
        "label": "Provisions For Plugging Wells",
        "documentation": "Provisions for plugging wells."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ProvisionsForTrailsInProcess": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProvisionsForTrailsInProcess",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofProvisionsforSundryCreditorsandOthersDetail": {
       "parentTag": "ifrs-full_Provisions",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ContingenciesAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofAllowanceAccountforPluggingofWellsTrialsinProgressandEnvironmentalCostsDetail",
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofProvisionsforSundryCreditorsandOthersDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Provision for trails in process (Note 27)",
        "periodStartLabel": "Balance at the beginning of the year",
        "periodEndLabel": "Balance at the end of the year",
        "label": "Provisions For Trails In Process",
        "documentation": "Provisions for trails in process."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ProvisionsForTrailsInProcessAdditionsAgainstExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProvisionsForTrailsInProcessAdditionsAgainstExpenses",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofAllowanceAccountforPluggingofWellsTrialsinProgressandEnvironmentalCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Additions against expenses",
        "label": "Provisions For Trails In Process Additions Against Expenses",
        "documentation": "Provisions for trails in process additions against expenses."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ProvisionsForTrailsInProcessAmountUsed": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProvisionsForTrailsInProcessAmountUsed",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofAllowanceAccountforPluggingofWellsTrialsinProgressandEnvironmentalCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Amount used",
        "label": "Provisions For Trails In Process Amount Used",
        "documentation": "Provisions for trails in process deductions."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ProvisionsForTrailsInProcessCancellation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ProvisionsForTrailsInProcessCancellation",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofAllowanceAccountforPluggingofWellsTrialsinProgressandEnvironmentalCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Provision cancellation",
        "label": "Provisions For Trails In Process Cancellation",
        "documentation": "Provisions For Trails In Process Cancellation"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PurchaseOfIntangibleAssetsClassifiedAsInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PurchaseOfIntangibleAssetsClassifiedAsInvestingActivities",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Acquisition of intangible assets",
        "label": "Purchase of intangible assets, classified as investing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for the purchases of intangible assets, classified as investing activities. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r398"
     ]
    },
    "ck0000932782_PurchaseOfPropertyPlantAndEquipmentAndIntangibleAssetsClassifiedAsInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PurchaseOfPropertyPlantAndEquipmentAndIntangibleAssetsClassifiedAsInvestingActivities",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Acquisition of wells, pipelines, properties, plant and equipment and intangible assets",
        "label": "Purchase of property, plant and equipment and intangible assets, classified as investing activities",
        "documentation": "Purchase of property, plant and equipment and intangible assets, classified as investing activities."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PurchaseOfPropertyPlantAndEquipmentClassifiedAsInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PurchaseOfPropertyPlantAndEquipmentClassifiedAsInvestingActivities",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Acquisition of wells, pipelines, properties, plant and equipment",
        "label": "Purchase of property, plant and equipment, classified as investing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for the purchases of property, plant and equipment, classified as investing activities. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r398"
     ]
    },
    "ck0000932782_PurchasesExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "PurchasesExpense",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail": {
       "parentTag": "ck0000932782_CostOfSalesAndGeneralExpenses",
       "weight": 1.0,
       "order": 19.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Purchases",
        "label": "Purchases expense",
        "documentation": "Purchases expense."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_PvpTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PvpTable",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pay vs Performance Disclosure [Table]",
        "terseLabel": "Pay vs Performance Disclosure"
       }
      }
     },
     "auth_ref": [
      "r502"
     ]
    },
    "ecd_PvpTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "PvpTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pay vs Performance [Table Text Block]",
        "terseLabel": "Pay vs Performance Disclosure, Table"
       }
      }
     },
     "auth_ref": [
      "r502"
     ]
    },
    "ck0000932782_QPIMexicoS.A.DeC.V.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "QPIMexicoS.A.DeC.V.Member",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "QPI Mexico, S.A. de C.V.",
        "label": "QPI Mexico, S.A. de C.V. [Member]",
        "documentation": "QPI Mexico, S.A. de C.V."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RangeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RangeAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofOtherComponentsofIntangibleAssetsDetail",
      "http://mexicopetroleum.com/role/LeasesAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/LeasesSummaryofrightofuseassetsDetail",
      "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/RelatedPartiesAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Range [axis]",
        "label": "Range [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r89",
      "r124",
      "r150",
      "r158",
      "r255",
      "r406",
      "r408",
      "r594"
     ]
    },
    "ifrs-full_RangeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RangeDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofOtherComponentsofIntangibleAssetsDetail",
      "http://mexicopetroleum.com/role/LeasesAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/LeasesSummaryofrightofuseassetsDetail",
      "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/RelatedPartiesAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Range",
        "label": "Range [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for aggregate ranges. It also represents the standard value for the 'Range' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r89",
      "r124",
      "r150",
      "r158",
      "r255",
      "r406",
      "r408",
      "r594"
     ]
    },
    "ck0000932782_RatedCreditExposureDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "RatedCreditExposureDebt",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofCurrentandPotentialExposuresandAggregatedbyCreditRatingDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Maximum Credit Exposure by term in Petroleos Mexicanos including debt",
        "label": "Rated Credit Exposure Debt",
        "documentation": "Rated credit expsoure debt."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_RatedCreditExposuresNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "RatedCreditExposuresNet",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofCurrentandPotentialExposuresandAggregatedbyCreditRatingDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Maximum Credit Exposure by term in Petroleos Mexicanos",
        "label": "Rated credit exposures, net",
        "documentation": "Rated credit exposures, net"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RawMaterialsAndConsumablesUsed": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RawMaterialsAndConsumablesUsed",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail": {
       "parentTag": "ck0000932782_CostOfSalesAndGeneralExpenses",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Raw materials and spare parts",
        "label": "Raw materials and consumables used"
       }
      }
     },
     "auth_ref": [
      "r384",
      "r447"
     ]
    },
    "ifrs-full_ReceivablesFromTaxesOtherThanIncomeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ReceivablesFromTaxesOtherThanIncomeTax",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofOtherAccountsReceivableDetail": {
       "parentTag": "ifrs-full_OtherNonfinancialAssets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofOtherAccountsReceivableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Taxes to be recovered and prepaid taxes",
        "label": "Receivables from taxes other than income tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of receivables from taxes other than income tax. Income taxes include all domestic and foreign taxes that are based on taxable profits. Income taxes also include taxes, such as withholding taxes, that are payable by a subsidiary, associate or joint arrangement on distributions to the reporting entity."
       }
      }
     },
     "auth_ref": [
      "r615"
     ]
    },
    "ck0000932782_ReceiveEurosPayUsDollarsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ReceiveEurosPayUsDollarsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Receive euros/Pay U.S. dollars",
        "label": "Receive euros pay us dollars [member]",
        "documentation": "Receive euros pay us dollars [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ReceiveJapaneseYenPayUsDollarsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ReceiveJapaneseYenPayUsDollarsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Receive Japanese yen/Pay U.S. dollars",
        "label": "Receive Japanese yen pay us dollars [member]",
        "documentation": "Receive Japanese yen pay us dollars [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ReceivePesosPayU.S.DollarsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ReceivePesosPayU.S.DollarsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Receive pesos/Pay U.S. dollars",
        "label": "Receive pesos/Pay U.S. dollars [Member]",
        "documentation": "Receive pesos/Pay U.S. dollars"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ReceivePoundsSterlingPayUsDollarsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ReceivePoundsSterlingPayUsDollarsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Receive pounds sterling/Pay U.S. dollars",
        "label": "Receive pounds sterling pay us dollars [member]",
        "documentation": "Receive pounds sterling pay us dollars [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ReceiveSwissFrancsPayUsDollarsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ReceiveSwissFrancsPayUsDollarsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Receive Swiss francs/Pay U.S. dollars",
        "label": "Receive swiss francs pay us dollars [member]",
        "documentation": "Receive swiss francs pay us dollars [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ReceiveUdiPayPesosMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ReceiveUdiPayPesosMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Receive UDI/Pay pesos",
        "label": "Receive udi pay pesos [member]",
        "documentation": "Receive udi pay pesos [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ReceiveUsdPayPesosMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ReceiveUsdPayPesosMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Receive U.S. dollars and pesos / Pay U.S. dollars and pesos",
        "label": "Receive Usd Pay Pesos [Member]",
        "documentation": "ReceiveD Usd pay pesos."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_RecognizedInOciAndEquityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "RecognizedInOciAndEquityMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Recognized in OCI",
        "label": "Recognized in OCI and equity [member]",
        "documentation": "Recognized in OCI and equity."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_RecognizedInProfitOrLossMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "RecognizedInProfitOrLossMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Recognized in profit and loss",
        "label": "Recognized in profit or loss [member]",
        "documentation": "Recognized in profit or loss."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ReconciliationOfChangesInPropertyPlantAndEquipmentAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ReconciliationOfChangesInPropertyPlantAndEquipmentAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Reconciliation of changes in property, plant and equipment [abstract]",
        "label": "Reconciliation of changes in property, plant and equipment [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RecoverableAmountOfAssetOrCashgeneratingUnit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RecoverableAmountOfAssetOrCashgeneratingUnit",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetRecoverableAmountsofAssetsCGUsPemexLogisticsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total",
        "label": "Recoverable amount of asset or cash-generating unit"
       }
      },
      "en": {
       "role": {
        "documentation": "The higher of an asset\u2019s (or cash-generating unit\u2019s) fair value less costs of disposal and its value in use. [Refer: Total for all cash-generating units [member]]"
       }
      }
     },
     "auth_ref": [
      "r62"
     ]
    },
    "ecd_RecoveryOfErrCompDisclosureLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "RecoveryOfErrCompDisclosureLineItems",
     "lang": {
      "en-us": {
       "role": {
        "label": "Recovery of Erroneously Awarded Compensation Disclosure [Line Items]",
        "terseLabel": "Recovery of Erroneously Awarded Compensation Disclosure"
       }
      }
     },
     "auth_ref": [
      "r469",
      "r480",
      "r490",
      "r523"
     ]
    },
    "ck0000932782_ReductionsOfDefinedBenefitPlans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ReductionsOfDefinedBenefitPlans",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsandTypesofPlanAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Reductions",
        "label": "Reductions Of Defined Benefit Plans",
        "documentation": "Reductions of defined benefit plans"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_RefinedAndPetrochemicalsProductsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "RefinedAndPetrochemicalsProductsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/InventoriesSummaryofInventoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Refined and petrochemicals products",
        "label": "Refined And Petrochemicals Products [member]",
        "documentation": "Refined and petrochemicals products ."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_RefinedPetroleumProductsAndDerivativesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "RefinedPetroleumProductsAndDerivativesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SegmentFinancialInformationScheduleofIncomebyProductDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Refined petroleum products and derivatives (primarily gasolines)",
        "label": "Refined Petroleum Products and Derivatives [member]",
        "documentation": "Refined petroleum products and derivatives."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_RefinedPetroleumProductsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "RefinedPetroleumProductsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Refined petroleum products",
        "label": "Refined petroleum products [member]",
        "documentation": "Refined petroleum products."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_RefiningMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "RefiningMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialTranformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Refining",
        "label": "Refining [member]",
        "documentation": "Refining."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_RemainingEstimatedReservesPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "RemainingEstimatedReservesPercentage",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Remaining estimated reserve percentage",
        "label": "Remaining estimated reserves percentage",
        "documentation": "Remaining estimated reserves percentage."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RepairsAndMaintenanceExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RepairsAndMaintenanceExpense",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail": {
       "parentTag": "ck0000932782_CostOfSalesAndGeneralExpenses",
       "weight": 1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Conservation and maintenance",
        "label": "Repairs and maintenance expense"
       }
      }
     },
     "auth_ref": [
      "r617"
     ]
    },
    "ck0000932782_RepaymentOfDebtPrincipalAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "RepaymentOfDebtPrincipalAmount",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Debt payments, principal only",
        "label": "Repayment Of Debt Principal Amount",
        "documentation": "Repayment of debt principal amount."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RepaymentsOfBorrowingsClassifiedAsFinancingActivities",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Repayment of revolving credit lines",
        "negatedLabel": "Debt payments, principal only",
        "label": "Repayments of borrowings, classified as financing activities"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow to settle borrowings, classified as financing activities. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r400"
     ]
    },
    "ifrs-full_RepaymentsOfCurrentBorrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RepaymentsOfCurrentBorrowings",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/SubsequentEventsRecentFinancingActivitiesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Repayments of revolving credit lines",
        "label": "Repayments of current borrowings"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for repayments of current borrowings. [Refer: Current borrowings]"
       }
      }
     },
     "auth_ref": [
      "r587"
     ]
    },
    "ck0000932782_ReserveReplacementRatio": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ReserveReplacementRatio",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Reserve-replacement ratio",
        "label": "Reserve Replacement Ratio",
        "documentation": "Reserve Replacement Ratio"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ReservesProductionRatioOfProvedReservesPeriod": {
     "xbrltype": "durationItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ReservesProductionRatioOfProvedReservesPeriod",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Reserves production ratio of proved reserves, period",
        "label": "Reserves Production Ratio of Proved Reserves, Period",
        "documentation": "Reserves production ratio of proved reserves, period."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ReservesRevisionsAndTimingChanges": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ReservesRevisionsAndTimingChanges",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofChangesinstandardizedMeasureofDiscountedFutureNetCashFlowsDetail": {
       "parentTag": "srt_StandardizedMeasureOfDiscountedFutureNetCashFlowOfProvedOilAndGasReservesPeriodIncreaseDecrease",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofChangesinstandardizedMeasureofDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Reserves revisions and timing changes",
        "label": "Reserves Revisions And Timing Changes",
        "documentation": "Reserves revisions and timing changes."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ResolutionAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ResolutionAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/ContingenciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Resolution [Axis]",
        "label": "Resolution [Axis]",
        "documentation": "Resolution [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ResolutionDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ResolutionDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/ContingenciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Resolution [Domain]",
        "label": "Resolution [Domain]",
        "documentation": "Resolution [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RestatedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RestatedMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Currently stated",
        "label": "Currently stated [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the information currently stated in the financial statements. It also represents the standard value for the 'Retrospective application and retrospective restatement' and 'Departure from requirement of IFRS' axes if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r92",
      "r93",
      "r96",
      "r149",
      "r258",
      "r259",
      "r262",
      "r343",
      "r612"
     ]
    },
    "srt_RestatementAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "RestatementAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofCostsIncurredforOilandGasPropertyExplorationandDevelopmentActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Restatement [Axis]",
        "label": "Revision of Prior Period [Axis]",
        "documentation": "Information by adjustment to previously issued financial statements. Includes, but is not limited to, adjustment for retrospective application of amendment to accounting standards, other change in accounting principle, correction of error, and other revision."
       }
      }
     },
     "auth_ref": [
      "r234"
     ]
    },
    "ecd_RestatementDateAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "RestatementDateAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restatement Determination Date [Axis]",
        "terseLabel": "Restatement Determination Date:"
       }
      }
     },
     "auth_ref": [
      "r470",
      "r481",
      "r491",
      "r524"
     ]
    },
    "ecd_RestatementDeterminationDate": {
     "xbrltype": "dateItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "RestatementDeterminationDate",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restatement Determination Date",
        "terseLabel": "Restatement Determination Date"
       }
      }
     },
     "auth_ref": [
      "r471",
      "r482",
      "r492",
      "r525"
     ]
    },
    "ecd_RestatementDoesNotRequireRecoveryTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "RestatementDoesNotRequireRecoveryTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restatement Does Not Require Recovery [Text Block]",
        "terseLabel": "Restatement does not require Recovery"
       }
      }
     },
     "auth_ref": [
      "r478",
      "r489",
      "r499",
      "r532"
     ]
    },
    "srt_RestatementDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "RestatementDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofCostsIncurredforOilandGasPropertyExplorationandDevelopmentActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Restatement [Domain]",
        "label": "Revision of Prior Period [Domain]",
        "documentation": "Adjustment to previously issued financial statements. Includes, but is not limited to, adjustment for retrospective application of amendment to accounting standards, other change in accounting principle, correction of error, and other revision."
       }
      }
     },
     "auth_ref": [
      "r234"
     ]
    },
    "ifrs-full_RestrictedCashAndCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RestrictedCashAndCashEquivalents",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofOtherAssetsDetail": {
       "parentTag": "ifrs-full_OtherNoncurrentAssets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofOtherAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Restricted Cash",
        "label": "Restricted cash and cash equivalents"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of cash and cash equivalents whose use or withdrawal is restricted. [Refer: Cash and cash equivalents]"
       }
      }
     },
     "auth_ref": [
      "r614"
     ]
    },
    "ck0000932782_RestrictedCashCollateralFinancingTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "RestrictedCashCollateralFinancingTransactions",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofOtherAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Restricted cash as collateral for financing transactions",
        "label": "Restricted Cash, Collateral, Financing Transactions",
        "documentation": "Restricted Cash, Collateral, Financing Transactions"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_RestrictedCashJudicialSeizures": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "RestrictedCashJudicialSeizures",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsSummaryofOtherAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Restricted cash, judicial seizures",
        "label": "Restricted Cash, Judicial Seizures",
        "documentation": "Restricted Cash, Judicial Seizures"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ResultsOfOperationsIncomeLossFromOilAndGasProducingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ResultsOfOperationsIncomeLossFromOilAndGasProducingActivities",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofResultsofOperationsforOilandGasProducingActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Results of operations for oil and gas producing activities",
        "label": "Results of Operations, Income (Loss) from Oil and Gas Producing Activities",
        "documentation": "Results of Operations, Income (Loss) from Oil and Gas Producing Activities"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ResultsOfOperationsProductionCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ResultsOfOperationsProductionCosts",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofResultsofOperationsforOilandGasProducingActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total production costs",
        "label": "Results of operations production costs",
        "documentation": "Results of operations production costs."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RetainedEarnings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RetainedEarnings",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "From prior years",
        "label": "Retained earnings"
       }
      },
      "en": {
       "role": {
        "documentation": "A component of equity representing the entity's cumulative undistributed earnings or deficit."
       }
      }
     },
     "auth_ref": [
      "r446",
      "r451",
      "r452"
     ]
    },
    "ifrs-full_RetainedEarningsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RetainedEarningsAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accumulated deficit:",
        "label": "Retained earnings [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RetainedEarningsExcludingProfitLossForReportingPeriodMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RetainedEarningsExcludingProfitLossForReportingPeriodMember",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofChangesinEquityDeficit"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accumulated deficit, from prior years",
        "label": "Retained earnings, excluding profit (loss) for reporting period [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a component of equity representing an entity's cumulative undistributed earnings or deficit, excluding profit or loss for the reporting period. [Refer: Retained earnings [member]]"
       }
      }
     },
     "auth_ref": [
      "r609"
     ]
    },
    "ifrs-full_RetainedEarningsProfitLossForReportingPeriodMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RetainedEarningsProfitLossForReportingPeriodMember",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofChangesinEquityDeficit"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Accumulated deficit, for the year",
        "label": "Retained earnings, profit (loss) for reporting period [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a component of equity representing the entity\u2019s undistributed profit or loss for the reporting period. [Refer: Retained earnings [member]; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r609"
     ]
    },
    "ck0000932782_RetirementAndPostEmploymentBenefitsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "RetirementAndPostEmploymentBenefitsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofAmountsAssociatedWithPEMEXsLaborObligationsDetail",
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofRetirementandPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Liability for defined benefits at retirement and post-employment at the end of the year",
        "verboseLabel": "Changes in the liability for defined benefits",
        "label": "Retirement And Post Employment Benefits [member]",
        "documentation": "Retirement and post employment benefits."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RetrospectiveApplicationAndRetrospectiveRestatementAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingDeferredIncomeTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Retrospective application and retrospective restatement [axis]",
        "label": "Retrospective application and retrospective restatement [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r92",
      "r93",
      "r96",
      "r258",
      "r259",
      "r262",
      "r343"
     ]
    },
    "ifrs-full_ReturnOnPlanAssetsNetDefinedBenefitLiabilityAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ReturnOnPlanAssetsNetDefinedBenefitLiabilityAsset",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsSummaryofRetirementandPostEmploymentBenefitsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Assets of the plan during the year",
        "terseLabel": "Return on plan assets",
        "label": "Decrease (increase) in net defined benefit liability (asset) resulting from return on plan assets excluding interest income or expense"
       }
      },
      "en": {
       "role": {
        "documentation": "The decrease (increase) in the net defined benefit liability (asset) resulting from the return on plan assets, excluding amounts included in interest income or expense. The return on plan assets is interest, dividends and other revenue derived from the plan assets, together with realised and unrealised gains or losses on the plan assets, less any costs of managing plan assets and less any tax payable by the plan itself, other than tax included in the actuarial assumptions used to measure the present value of the defined benefit obligation. [Refer: Plan assets [member]; Net defined benefit liability (asset); Actuarial assumptions [domain]; Increase (decrease) in net defined benefit liability (asset) resulting from interest expense (income)]"
       }
      }
     },
     "auth_ref": [
      "r28",
      "r284"
     ]
    },
    "ifrs-full_RevaluationIncreaseDecreasePropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RevaluationIncreaseDecreasePropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Reclassifications",
        "label": "Revaluation increase (decrease), property, plant and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in property, plant and equipment resulting from revaluations to fair value. [Refer: Property, plant and equipment; Revaluation surplus]"
       }
      }
     },
     "auth_ref": [
      "r14",
      "r21",
      "r273",
      "r278"
     ]
    },
    "ifrs-full_Revenue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "Revenue",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss": {
       "parentTag": "ifrs-full_GrossProfit",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationSupplementalGeographicInformationDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofComprehensiveIncomeDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total revenues",
        "netLabel": "Net sales",
        "label": "Revenue"
       }
      }
     },
     "auth_ref": [
      "r111",
      "r164",
      "r196",
      "r202",
      "r208",
      "r209",
      "r212",
      "r377",
      "r404",
      "r447",
      "r448"
     ]
    },
    "ifrs-full_RevenueAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RevenueAbstract",
     "presentation": [
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Sales:",
        "label": "Revenue [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RevenueFromContractsWithCustomers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RevenueFromContractsWithCustomers",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total",
        "label": "Revenue from contracts with customers"
       }
      }
     },
     "auth_ref": [
      "r126",
      "r127",
      "r236"
     ]
    },
    "ck0000932782_RevenueFromDomestic": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "RevenueFromDomestic",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss": {
       "parentTag": "ifrs-full_Revenue",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationScheduleofIncomebyProductDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationSupplementalGeographicInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Domestic",
        "verboseLabel": "Domestic sales",
        "netLabel": "Total domestic sales",
        "label": "Revenue From Domestic",
        "documentation": "Revenue from domestic."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_RevenueFromDomesticSalesAndComplementaryIncentives": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "RevenueFromDomesticSalesAndComplementaryIncentives",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/SegmentFinancialInformationSupplementalGeographicInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total domestic sales",
        "label": "Revenue From Domestic Sales and Complementary Incentives",
        "documentation": "Revenue From Domestic Sales and Complementary Incentives"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_RevenueFromExport": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "RevenueFromExport",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss": {
       "parentTag": "ifrs-full_Revenue",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationScheduleofIncomebyProductDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationSupplementalGeographicInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Export",
        "verboseLabel": "Total export sales",
        "netLabel": "Total export sales",
        "label": "Revenue From Export",
        "documentation": "Revenue from export."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_RevenueFromFranchiseFees": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "RevenueFromFranchiseFees",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail": {
       "parentTag": "ifrs-full_OtherRevenue",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Franchise fees",
        "label": "Revenue From Franchise Fees",
        "documentation": "Revenue from franchise fees."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_RevenueFromIntersegmentSales": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "RevenueFromIntersegmentSales",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Intersegment",
        "label": "Revenue from intersegment sales",
        "documentation": "Revenue from intersegment sales."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RevenueFromRenderingOfServices": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RevenueFromRenderingOfServices",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss": {
       "parentTag": "ifrs-full_Revenue",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationSupplementalGeographicInformationDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofComprehensiveIncomeDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Services income",
        "label": "Revenue from rendering of services"
       }
      }
     },
     "auth_ref": [
      "r610"
     ]
    },
    "ifrs-full_RevenueFromSaleOfGoods": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RevenueFromSaleOfGoods",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofComprehensiveIncomeDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Trade",
        "terseLabel": "Total revenues",
        "label": "Revenue from sale of goods"
       }
      }
     },
     "auth_ref": [
      "r610"
     ]
    },
    "ifrs-full_RevenueFromSaleOfOilAndGasProducts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RevenueFromSaleOfOilAndGasProducts",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofResultsofOperationsforOilandGasProducingActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Revenues from sale of oil and gas",
        "label": "Revenue from sale of oil and gas products"
       }
      }
     },
     "auth_ref": [
      "r610"
     ]
    },
    "ifrs-full_RevenueThatWasIncludedInContractLiabilityBalanceAtBeginningOfPeriod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RevenueThatWasIncludedInContractLiabilityBalanceAtBeginningOfPeriod",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Amount recorded in advance from customers were recognized as revenue for the period",
        "label": "Revenue that was included in contract liability balance at beginning of period"
       }
      }
     },
     "auth_ref": [
      "r129",
      "r238"
     ]
    },
    "ck0000932782_ReversalOfImpairmentImpairmentNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ReversalOfImpairmentImpairmentNet",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total",
        "verboseLabel": "Impairment, net",
        "label": "Reversal of Impairment (Impairment), Net",
        "documentation": "Reversal of impairment (Impairment), net."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ReversalOfImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ReversalOfImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Reversal of impairment",
        "label": "Reversal of impairment loss recognised in profit or loss, property, plant and equipment"
       }
      }
     },
     "auth_ref": [
      "r16",
      "r275",
      "r383"
     ]
    },
    "ck0000932782_RevisionOfProvedDevelopedReserves": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "RevisionOfProvedDevelopedReserves",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofProvedDevelopedandUndevelopedReserveDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Revisions",
        "label": "Revision of Proved Developed Reserves",
        "documentation": "Revision of Proved Developed Reserves"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_RevolvingCreditCommittedToMitigateLiquidityRisk": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "RevolvingCreditCommittedToMitigateLiquidityRisk",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Revolving credit committed to mitigate liquidity risk",
        "label": "Revolving credit committed to mitigate liquidity risk",
        "documentation": "Revolving credit committed to mitigate liquidity risk."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_RevolvingCreditFacility": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "RevolvingCreditFacility",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Revolving credit facility amount",
        "label": "Revolving Credit Facility",
        "documentation": "Revolving credit facility."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_RevolvingCreditFacilityAvailable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "RevolvingCreditFacilityAvailable",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/SubsequentEventsRecentFinancingActivitiesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Revolving credit facility available",
        "label": "Revolving Credit Facility Available",
        "documentation": "Revolving Credit Facility Available"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_RevolvingCreditFacilityOutstanding": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "RevolvingCreditFacilityOutstanding",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/SubsequentEventsRecentFinancingActivitiesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Outstanding of revolving credit lines",
        "label": "Revolving Credit Facility Outstanding",
        "documentation": "Revolving credit facility outstanding."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_RevolvingCreditLinesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "RevolvingCreditLinesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Revolving credit lines",
        "label": "Revolving credit lines [Member]",
        "documentation": "Revolving credit lines [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RightofuseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RightofuseAssets",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
      "http://mexicopetroleum.com/role/LeasesSummaryofrightofuseassetsDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Rights of use assets",
        "periodStartLabel": "Beginning balance",
        "periodEndLabel": "Ending balance",
        "label": "Right-of-use assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of assets that represent a lessee's right to use an underlying asset for the lease term that do not meet the definition of investment property. Underlying asset is an asset that is the subject of a lease, for which the right to use that asset has been provided by a lessor to a lessee."
       }
      }
     },
     "auth_ref": [
      "r134",
      "r140",
      "r244"
     ]
    },
    "ifrs-full_RightofuseAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RightofuseAssetsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesSummaryofrightofuseassetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Rights of use",
        "label": "Right-of-use assets [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for right-of-use assets. [Refer: Right-of-use assets]"
       }
      }
     },
     "auth_ref": [
      "r133"
     ]
    },
    "ck0000932782_RiskExpiringInTwoThousandTwentyFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "RiskExpiringInTwoThousandTwentyFiveMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Risk Expiring In Two Thousand Twenty Five",
        "label": "Risk Expiring In Two Thousand Twenty Five [Member]",
        "documentation": "Risk Expiring In Two Thousand Twenty Five"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_RiskExpiringInTwoThousandTwentySixMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "RiskExpiringInTwoThousandTwentySixMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Risk Expiring In Two Thousand Twenty Six",
        "label": "Risk Expiring In Two Thousand Twenty Six [Member]",
        "documentation": "Risk Expiring In Two Thousand Twenty Six"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_Rule10b51ArrAdoptedFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "Rule10b51ArrAdoptedFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Rule 10b5-1 Arrangement Adopted [Flag]",
        "terseLabel": "Rule 10b5-1 Arrangement Adopted"
       }
      }
     },
     "auth_ref": [
      "r541"
     ]
    },
    "ecd_Rule10b51ArrTrmntdFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "Rule10b51ArrTrmntdFlag",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Rule 10b5-1 Arrangement Terminated [Flag]",
        "terseLabel": "Rule 10b5-1 Arrangement Terminated"
       }
      }
     },
     "auth_ref": [
      "r541"
     ]
    },
    "ck0000932782_SUSMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SUSMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "SUS",
        "label": "SUS [Member]",
        "documentation": "SUS"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SalamancaRefineryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SalamancaRefineryMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Salamanca Refinery",
        "label": "Salamanca Refinery [Member]",
        "documentation": "Salamanca refinery."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SalaryAdvancesOutstanding": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SalaryAdvancesOutstanding",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/RelatedPartiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Salary advances outstanding",
        "label": "Salary advances outstanding",
        "documentation": "Salary advances outstanding."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SalaryAdvancesSalaryMaximumTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SalaryAdvancesSalaryMaximumTerm",
     "presentation": [
      "http://mexicopetroleum.com/role/RelatedPartiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Salary advances, maximum salary, term (in months)",
        "label": "Salary Advances, Salary, Maximum Term",
        "documentation": "Monthly Salary Advance, Maximum Term"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SalaryDeductionsInstallmentsPeriod": {
     "xbrltype": "durationItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SalaryDeductionsInstallmentsPeriod",
     "presentation": [
      "http://mexicopetroleum.com/role/RelatedPartiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Salary deductions, installments period (in years)",
        "label": "Salary Deductions, Installments, Period",
        "documentation": "Salary Deductions, Installments, Period"
       }
      }
     },
     "auth_ref": []
    },
    "srt_SalesAndTransfersOfOilAndGasProducedNetOfProductionCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "SalesAndTransfersOfOilAndGasProducedNetOfProductionCosts",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofChangesinstandardizedMeasureofDiscountedFutureNetCashFlowsDetail": {
       "parentTag": "srt_StandardizedMeasureOfDiscountedFutureNetCashFlowOfProvedOilAndGasReservesPeriodIncreaseDecrease",
       "weight": -1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofChangesinstandardizedMeasureofDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Sales of oil and gas produced, net of production costs",
        "label": "Oil and Gas, Standardized Measure, Discounted Future Net Cash Flow, Sale and Transfer of Oil and Gas Produced",
        "documentation": "Amount of (increase) decrease in standardized measure of discounted future net cash flow as a result of sales and transfers of oil and gas produced."
       }
      }
     },
     "auth_ref": [
      "r0"
     ]
    },
    "ck0000932782_SalesPriceDeterminationPeriodMaximum": {
     "xbrltype": "durationItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SalesPriceDeterminationPeriodMaximum",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Sales price determination period, maximum",
        "label": "Sales Price Determination Period, Maximum",
        "documentation": "Sales Price Determination Period, Maximum"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SalinaCruzRefineryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SalinaCruzRefineryMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Salina Cruz Refinery",
        "label": "Salina Cruz Refinery [member]",
        "documentation": "Salina Cruz Refinery."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SantuarioCEEMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SantuarioCEEMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofValuesinUseforCGUImpairmentorReversalPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Santuario CEE",
        "label": "Santuario CEE [Member]",
        "documentation": "Santuario CEE"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SantuarioElGolpeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SantuarioElGolpeMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofValuesinUseforCGUImpairmentorReversalPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Santuario El Golpe",
        "label": "Santuario y El Golpe [member]",
        "documentation": "Santuario y El Golpe."
       }
      }
     },
     "auth_ref": []
    },
    "srt_ScenarioPreviouslyReportedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "ScenarioPreviouslyReportedMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofCostsIncurredforOilandGasPropertyExplorationandDevelopmentActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Previously Reported",
        "label": "Previously Reported [Member]",
        "documentation": "Represents amount as previously reported before adjustment for retrospective application of amendment to accounting standards, other change in accounting principle, correction of error, and other revision."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ScheduleOfAmortizationOfLongTermContractualLiabilitiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ScheduleOfAmortizationOfLongTermContractualLiabilitiesTableTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Amortization of Long-Term Contractual Liabilities",
        "label": "Schedule Of Amortization of Long-Term Contractual Liabilities [Table Text Block]",
        "documentation": "Schedule Of Amortization of Long-Term Contractual Liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ScheduleOfDerivativeInstruments1TextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ScheduleOfDerivativeInstruments1TextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/FinancialInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Carrying Amounts and Fair Value of Financial Assets and Liabilities",
        "label": "Schedule of derivative instruments 1 [Text Block]",
        "documentation": "Schedule of derivative instruments."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ScheduleOfNatureAndTimingOfSatisfactionOfPerformanceObligationTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ScheduleOfNatureAndTimingOfSatisfactionOfPerformanceObligationTableTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Schedule of Nature and Timing of Satisfaction of Performance Obligation",
        "label": "Schedule Of Nature And Timing Of Satisfaction Of Performance Obligation [Table Text Block]",
        "documentation": "Schedule Of Nature And Timing Of Satisfaction Of Performance Obligation"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ScheduleOfTradeAndOtherReceivablesExplanatoryTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ScheduleOfTradeAndOtherReceivablesExplanatoryTableTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Accounts Receivable and Other Receivables",
        "label": "Schedule of Trade and Other Receivables Explanatory [Table Text Block]",
        "documentation": "Schedule of trade and other receivables."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SeagullOptionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SeagullOptionMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Seagull option",
        "label": "Seagull Option [member]",
        "documentation": "Seagull option."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SecuredOvernightFinancingRateSOFRMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SecuredOvernightFinancingRateSOFRMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Secured Overnight Financing Rate (SOFR)",
        "label": "Secured Overnight Financing Rate (SOFR) [Member]",
        "documentation": "Secured Overnight Financing Rate (SOFR)"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_SegmentConsolidationItemsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "SegmentConsolidationItemsAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationScheduleofIncomebyProductDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Segment consolidation items [axis]",
        "label": "Segment consolidation items [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r201"
     ]
    },
    "ifrs-full_SegmentConsolidationItemsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "SegmentConsolidationItemsDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationScheduleofIncomebyProductDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Segment consolidation items",
        "label": "Segment consolidation items [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Segment consolidation items' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r207"
     ]
    },
    "ifrs-full_SegmentsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "SegmentsAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesHydrocarbonsExtractionDutyNarrativeDetails",
      "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationScheduleofIncomebyProductDetail",
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofSalesPricesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Segments [axis]",
        "label": "Segments [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r61",
      "r128",
      "r201",
      "r237",
      "r389",
      "r417"
     ]
    },
    "ifrs-full_SegmentsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "SegmentsDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesHydrocarbonsExtractionDutyNarrativeDetails",
      "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationScheduleofIncomebyProductDetail",
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedSummaryofSalesPricesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "By segment",
        "label": "Segments [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for all segments of an entity. It also represents the standard value for the 'Segments' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r61",
      "r128",
      "r207",
      "r237",
      "r389",
      "r417"
     ]
    },
    "ifrs-full_SellingGeneralAndAdministrativeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "SellingGeneralAndAdministrativeExpense",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofComprehensiveIncomeDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Total general expenses",
        "label": "Selling, general and administrative expense"
       }
      }
     },
     "auth_ref": [
      "r617"
     ]
    },
    "ck0000932782_SeniorGuaranteedFloatingRateNotesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SeniorGuaranteedFloatingRateNotesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Senior Guaranteed Floating Rate Notes",
        "label": "Senior Guaranteed Floating Rate Notes [Member]",
        "documentation": "Senior Guaranteed Floating Rate Notes"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SeriesOfDevelopmentBondsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SeriesOfDevelopmentBondsAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Series Of Development Bonds [Axis]",
        "label": "Series Of Development Bonds [Axis]",
        "documentation": "Series Of Development Bonds [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SeriesOfDevelopmentBondsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SeriesOfDevelopmentBondsDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Series Of Development Bonds [Domain]",
        "label": "Series Of Development Bonds [Domain]",
        "documentation": "Series Of Development Bonds [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ServicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ServicesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Services",
        "label": "Services [member]",
        "documentation": "Services."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ServiciosMltiplesDeBurgosMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ServiciosMltiplesDeBurgosMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Servicios Mltiples de Burgos",
        "label": "Servicios Mltiples de Burgos [member]",
        "documentation": "Servicios Mltiples de Burgos."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SevenPointSixNineZeroPercentBondsDueTwoThousandFiftyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SevenPointSixNineZeroPercentBondsDueTwoThousandFiftyMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationSummaryofPrincipalAmountOutstandingofRegisteredDebtSecuritiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "7.690% Bonds due 2050",
        "label": "Seven Point Six Nine Zero Percent Bonds Due Two Thousand Fifty [Member]",
        "documentation": "Seven Point Six Nine Zero Percent Bonds Due Two Thousand Fifty [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SevenToTenYearMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SevenToTenYearMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofCurrentandPotentialExposuresandAggregatedbyCreditRatingDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "7-10 years",
        "label": "Seven to Ten Year [member]",
        "documentation": "Seven to ten year."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SeventeenSeriesOfDevelopmentBondsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SeventeenSeriesOfDevelopmentBondsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Seventeen Series of Development Bonds",
        "label": "Seventeen Series of Development Bonds [Member]",
        "documentation": "Seventeen Series of Development Bonds [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "us-gaap_ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "ShareBasedCompensationArrangementsByShareBasedPaymentAwardAwardTypeAndPlanNameDomain",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Award Types",
        "terseLabel": "All Award Types"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ShareOfProfitLossOfAssociatesAccountedForUsingEquityMethod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ShareOfProfitLossOfAssociatesAccountedForUsingEquityMethod",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": -1.0,
       "order": 14.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "(Profit) loss sharing in associates, net",
        "label": "Share of profit (loss) of associates accounted for using equity method"
       }
      }
     },
     "auth_ref": [
      "r617"
     ]
    },
    "ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss": {
       "parentTag": "ifrs-full_ProfitLossBeforeTax",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofComprehensiveIncomeDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Profit sharing in associates",
        "netLabel": "Profit (loss) sharing in associates",
        "label": "Share of profit (loss) of associates and joint ventures accounted for using equity method"
       }
      }
     },
     "auth_ref": [
      "r199",
      "r206",
      "r379"
     ]
    },
    "ck0000932782_ShellExploracionyExtracciondeMexicoSAdeCVMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ShellExploracionyExtracciondeMexicoSAdeCVMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Shell Exploracion y Extraccion de Mxico, S.A. de C.V.",
        "label": "Shell Exploracion y Extraccion de Mxico, S.A. de C.V..[member]",
        "documentation": "Shell Exploracin y Extraccin de Mxico, S.A. de C.V."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ShortTermMaturities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ShortTermMaturities",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Short-term maturities",
        "label": "Short-Term Maturities",
        "documentation": "short-term maturities."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ShorttermBorrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ShorttermBorrowings",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition",
      "http://mexicopetroleum.com/role/EquityDeficitAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Short-term debt and current portion of long-term debt",
        "terseLabel": "Current portion of long-term debt",
        "label": "Current borrowings"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r614"
     ]
    },
    "ck0000932782_ShorttermDebtAndCurrentPortionOfLongtermDebt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ShorttermDebtAndCurrentPortionOfLongtermDebt",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Short-term debt and current portion of long-term debt",
        "label": "Short-term debt and current portion of long-term debt",
        "documentation": "Short-term debt and current portion of long-term debt."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ShorttermRestructuringProvision": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ShorttermRestructuringProvision",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Current restructuring provision",
        "label": "Current restructuring provision"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current provision for restructuring. [Refer: Restructuring provision]"
       }
      }
     },
     "auth_ref": [
      "r396"
     ]
    },
    "ifrs-full_SignificantInvestmentsInSubsidiariesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "SignificantInvestmentsInSubsidiariesAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/ContingenciesAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofGovernmentContributionstoPetroleosMexicanosthroughtheMinistryofEnergyDetail",
      "http://mexicopetroleum.com/role/SubsequentEventsSummaryofContributionsfromtheMexicanGovernmentDetails",
      "http://mexicopetroleum.com/role/SubsidiaryEntitiesandSubsidiaryCompaniesAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialTranformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofReservesPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetRecoverableAmountsofAssetsCGUsPemexLogisticsDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofDiscountRatesandUsefulLivesCGUsPemexLogisticsDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexLogisticsDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofValuesinUseforCGUImpairmentorReversalPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subsidiaries [axis]",
        "label": "Subsidiaries [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r56",
      "r58",
      "r117",
      "r331"
     ]
    },
    "ifrs-full_SignificantInvestmentsInSubsidiariesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "SignificantInvestmentsInSubsidiariesDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/ContingenciesAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofGovernmentContributionstoPetroleosMexicanosthroughtheMinistryofEnergyDetail",
      "http://mexicopetroleum.com/role/SubsequentEventsSummaryofContributionsfromtheMexicanGovernmentDetails",
      "http://mexicopetroleum.com/role/SubsidiaryEntitiesandSubsidiaryCompaniesAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialTranformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofReservesPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetRecoverableAmountsofAssetsCGUsPemexLogisticsDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofDiscountRatesandUsefulLivesCGUsPemexLogisticsDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexLogisticsDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofValuesinUseforCGUImpairmentorReversalPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subsidiaries",
        "label": "Subsidiaries [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Subsidiaries' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r56",
      "r58",
      "r117",
      "r331"
     ]
    },
    "ck0000932782_SixMonthSecuredOvernightFinancingRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SixMonthSecuredOvernightFinancingRateMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Six Month Secured Overnight Financing Rate",
        "label": "Six Month Secured Overnight Financing Rate [Member]",
        "documentation": "Six Month Secured Overnight Financing Rate"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SixPointEightFourZeroPercentNotesDueTwoThousandThirtyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SixPointEightFourZeroPercentNotesDueTwoThousandThirtyMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationSummaryofPrincipalAmountOutstandingofRegisteredDebtSecuritiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "6.840% Notes due 2030",
        "label": "Six Point Eight Four Zero Percent Notes Due Two Thousand Thirty [Member]",
        "documentation": "Six Point Eight Four Zero Percent Notes Due Two Thousand Thirty [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SixPointFiveZeroZeroPercentBondsDueTwoThousandFortyOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SixPointFiveZeroZeroPercentBondsDueTwoThousandFortyOneMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationSummaryofPrincipalAmountOutstandingofRegisteredDebtSecuritiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "6.500% Bonds due 2041",
        "label": "Six Point Five Zero Zero Percent Bonds Due Two Thousand Forty One [member]",
        "documentation": "Six point five zero zero percent bonds due two thousand forty one."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SixPointFiveZeroZeroPercentNotesDueTwoThousandTwentyNineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SixPointFiveZeroZeroPercentNotesDueTwoThousandTwentyNineMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationSummaryofPrincipalAmountOutstandingofRegisteredDebtSecuritiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "6.500% Notes due 2029",
        "label": "Six Point Five Zero Zero Percent Notes Due Two Thousand Twenty Nine [Member]",
        "documentation": "Six point five zero zero percent notes due two thousand twenty nine."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SixPointFiveZeroZeroPercentNotesDueTwoThousandTwentySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SixPointFiveZeroZeroPercentNotesDueTwoThousandTwentySevenMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationSummaryofPrincipalAmountOutstandingofRegisteredDebtSecuritiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "6.500% Notes due 2027",
        "label": "Six Point Five Zero Zero Percent Notes Due Two Thousand Twenty Seven [Member]",
        "documentation": "Six point five zero zero percent notes due two thousand twenty seven."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SixPointFourNineZeroPercentNotesDueTwoThousandTwentySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SixPointFourNineZeroPercentNotesDueTwoThousandTwentySevenMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationSummaryofPrincipalAmountOutstandingofRegisteredDebtSecuritiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "6.490% Notes due 2027",
        "label": "Six Point Four Nine Zero Percent Notes Due Two Thousand Twenty Seven [Member]",
        "documentation": "Six Point Four Nine Zero Percent Notes Due Two Thousand Twenty Seven [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SixPointNineFiveZeroPercentBondsDueTwoThousandSixtyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SixPointNineFiveZeroPercentBondsDueTwoThousandSixtyMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationSummaryofPrincipalAmountOutstandingofRegisteredDebtSecuritiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "6.950% Bonds due 2060",
        "label": "Six Point Nine Five Zero Percent Bonds Due Two Thousand Sixty [Member]",
        "documentation": "Six Point Nine Five Zero Percent Bonds Due Two Thousand Sixty [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SixPointSevenFivePercentGuaranteedNotesDueTwoThousandFortySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SixPointSevenFivePercentGuaranteedNotesDueTwoThousandFortySevenMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationSummaryofPrincipalAmountOutstandingofRegisteredDebtSecuritiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "6.750% Bonds due 2047",
        "label": "Six point seven five percent guaranteed notes due two thousand forty seven [member]",
        "documentation": "Six point seven five percent guaranteed notes due two thousand forty seven."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SixPointSevenZeroZeroPercentNotesDueTwoThousandThirtyTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SixPointSevenZeroZeroPercentNotesDueTwoThousandThirtyTwoMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationSummaryofPrincipalAmountOutstandingofRegisteredDebtSecuritiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "6.700% Notes due 2032",
        "label": "Six Point Seven Zero Zero Percent Notes Due Two Thousand Thirty Two [Member]",
        "documentation": "Six Point Seven Zero Zero Percent Notes Due Two Thousand Thirty Two [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SixPointSixTwoFivePercentGuaranteedBondsDueTwoThousandThirtyEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SixPointSixTwoFivePercentGuaranteedBondsDueTwoThousandThirtyEightMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationSummaryofPrincipalAmountOutstandingofRegisteredDebtSecuritiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "6.625% Guaranteed Bonds due 2038",
        "label": "Six Point Six Two Five Percent Guaranteed Bonds Due Two Thousand Thirty Eight [member]",
        "documentation": "Six point six two five percent guaranteed bonds due two thousand thirty eight."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SixPointSixTwoFivePercentGuaranteedBondsDueTwoThousandThirtyFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SixPointSixTwoFivePercentGuaranteedBondsDueTwoThousandThirtyFiveMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationSummaryofPrincipalAmountOutstandingofRegisteredDebtSecuritiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "6.625% Guaranteed Bonds due 2035",
        "label": "Six Point Six Two Five Percent Guaranteed Bonds Due Two Thousand Thirty Five [member]",
        "documentation": "Six point six two five percent guaranteed bonds due two thousand thirty five."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SixPointSixTwoFivePercentNotesDueTwoThousandThirtyFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SixPointSixTwoFivePercentNotesDueTwoThousandThirtyFiveMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationSummaryofPrincipalAmountOutstandingofRegisteredDebtSecuritiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "6.625% Notes due 2035",
        "label": "Six Point Six Two Five Percent Notes Due Two Thousand Thirty Five [member]",
        "documentation": "Six point six two five percent notes due two thousand thirty five."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SixPointThreeFiveZeroPercentBondsDueTwoThousandFortyEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SixPointThreeFiveZeroPercentBondsDueTwoThousandFortyEightMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationSummaryofPrincipalAmountOutstandingofRegisteredDebtSecuritiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "6.350% Bonds due 2048",
        "label": "Six point three five zero percent Bonds due two thousand forty eight [member]",
        "documentation": "Six point three five zero percent Bonds due two thousand forty eight."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SixPointThreeSevenFivePercentBondsDueTwoThousandFortyFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SixPointThreeSevenFivePercentBondsDueTwoThousandFortyFiveMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationSummaryofPrincipalAmountOutstandingofRegisteredDebtSecuritiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "6.375% Bonds due 2045",
        "label": "Six Point Three Seven Five Percent Bonds Due Two Thousand Forty Five [member]",
        "documentation": "Six point three seven five percent bonds due two thousand forty five."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SpecialTaxOnProductionAndServices": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SpecialTaxOnProductionAndServices",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofOtherAccountsReceivableDetail": {
       "parentTag": "ifrs-full_OtherNonfinancialAssets",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofOtherAccountsReceivableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Special Tax on Production and Services",
        "label": "Special Tax on Production and Services",
        "documentation": "Special Tax on Production and Services."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SpecialTaxOnProductionAndServicesIEPSTax": {
     "xbrltype": "perUnitItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SpecialTaxOnProductionAndServicesIEPSTax",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxesandDutiesPayableDetail": {
       "parentTag": "ck0000932782_OtherTaxesAndDuties",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxesandDutiesPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Special Tax on Production and Services",
        "label": "Special Tax on Production and Services (IEPS Tax)",
        "documentation": "Special tax on production and services (IEPS tax)."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_StandardizedMeasureOfDiscountedFutureNetCashFlowOfProvedOilAndGas": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "StandardizedMeasureOfDiscountedFutureNetCashFlowOfProvedOilAndGas",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofChangesinstandardizedMeasureofDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Change",
        "label": "Standardized Measure Of Discounted Future Net Cash Flow Of Proved Oil And Gas",
        "documentation": "Standardized measure of discounted future net cash flow of proved oil and gas."
       }
      }
     },
     "auth_ref": []
    },
    "srt_StandardizedMeasureOfDiscountedFutureNetCashFlowOfProvedOilAndGasReservesPeriodIncreaseDecrease": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "StandardizedMeasureOfDiscountedFutureNetCashFlowOfProvedOilAndGasReservesPeriodIncreaseDecrease",
     "calculation": {
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofChangesinstandardizedMeasureofDiscountedFutureNetCashFlowsDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofChangesinstandardizedMeasureofDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Aggregate change in standardized measure of discounted future net cash flows",
        "label": "Oil and Gas, Standardized Measure, Discounted Future Net Cash Flow, Period Increase (Decrease)",
        "documentation": "Amount of increase (decrease) in standardized measure of discounted future net cash flow relating to proved oil and gas reserves."
       }
      }
     },
     "auth_ref": [
      "r0"
     ]
    },
    "ck0000932782_StandardizedMeasureOfDiscountedFutureNetCashFlowRelatingToProvedOilAndGasReserves": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "StandardizedMeasureOfDiscountedFutureNetCashFlowRelatingToProvedOilAndGasReserves",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofStandardizedMeasureofDiscountedFutureNetCashFlowsDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofStandardizedMeasureofDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "totalLabel": "Standardized measure of discounted future net cash flows",
        "label": "Standardized Measure Of Discounted Future Net Cash Flow Relating To Proved Oil And Gas Reserves",
        "documentation": "Amount of discounted future accumulated cash inflows relating to proved oil and gas reserves."
       }
      }
     },
     "auth_ref": []
    },
    "srt_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserves": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserves",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedDisclosureofChangesinstandardizedMeasureofDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "periodStartLabel": "As of January 1",
        "periodEndLabel": "As of December 31",
        "label": "Oil and Gas, Standardized Measure, Discounted Future Net Cash Flow, Future Net Cash Flow, after Discount",
        "documentation": "Amount, after discount, future accumulated cash outflow for development and production costs, and future income tax expense, of estimated future accumulated cash inflow for proved oil and gas reserves."
       }
      }
     },
     "auth_ref": [
      "r0"
     ]
    },
    "ck0000932782_StandbyLettersOfCredit1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "StandbyLettersOfCredit1Member",
     "presentation": [
      "http://mexicopetroleum.com/role/ContingenciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Standby Letters Of Credit",
        "label": "Standby Letters Of Credit1 [Member]",
        "documentation": "Standby Letters Of Credit"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_StatementOfCashFlowsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "StatementOfCashFlowsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Statement of cash flows [abstract]",
        "label": "Statement of cash flows [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_StatementOfChangesInEquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "StatementOfChangesInEquityAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Statement of changes in equity [abstract]",
        "label": "Statement of changes in equity [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_StatementOfChangesInEquityLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "StatementOfChangesInEquityLineItems",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofChangesinEquityDeficit"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Statement [line items]",
        "label": "Statement of changes in equity [line items]"
       }
      },
      "en": {
       "role": {
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_StatementOfChangesInEquityTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "StatementOfChangesInEquityTable",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofChangesinEquityDeficit"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Statement of changes in equity [table]",
        "label": "Statement of changes in equity [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to changes in equity."
       }
      }
     },
     "auth_ref": [
      "r347"
     ]
    },
    "ck0000932782_StatementOfComprehensiveIncomeProfitOrLossLocationAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "StatementOfComprehensiveIncomeProfitOrLossLocationAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Statement of comprehensive income, profit or loss location [axis]",
        "label": "Statement of comprehensive income, profit or loss location [axis]",
        "documentation": "Statement of comprehensive income, profit or loss location."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_StatementOfComprehensiveIncomeProfitOrLossLocationDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "StatementOfComprehensiveIncomeProfitOrLossLocationDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Statement of comprehensive income, profit or loss location [Domain]",
        "label": "Statement of comprehensive income, profit or loss location [Domain]",
        "documentation": "Statement of comprehensive income, profit or loss location [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_StatementOfComprehensiveIncomeProfitOrLossLocationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "StatementOfComprehensiveIncomeProfitOrLossLocationMember",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Statement of comprehensive income, profit or loss location",
        "label": "Statement of comprehensive income, profit or loss location [member]",
        "documentation": "Statement of comprehensive income, profit or loss location 1."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_StatementOfFinancialPositionAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "StatementOfFinancialPositionAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Consolidated statements of financial position [Abstract]",
        "label": "Statement of financial position [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_StatementOperatingSegment1Axis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "StatementOperatingSegment1Axis",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Statement Operating Activities Segment [axis]",
        "label": "Statement Operating Segment1 [Axis]",
        "documentation": "Statement Operating Activities Segment [axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_StatementOperatingSegment1Domain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "StatementOperatingSegment1Domain",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Statement Operating Segment1 [Domain]",
        "label": "Statement Operating Segment1 [Domain]",
        "documentation": "Statement Operating Segment1 [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_StatutoryReserve": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "StatutoryReserve",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Legal reserve",
        "label": "Statutory reserve"
       }
      },
      "en": {
       "role": {
        "documentation": "A component of equity representing reserves created based on legal requirements."
       }
      }
     },
     "auth_ref": [
      "r614"
     ]
    },
    "ifrs-full_StatutoryReserveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "StatutoryReserveMember",
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofChangesinEquityDeficit"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Legal reserve",
        "label": "Statutory reserve [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a component of equity representing reserves created based on legal requirements."
       }
      }
     },
     "auth_ref": [
      "r609"
     ]
    },
    "ecd_StkPrcOrTsrEstimationMethodTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "StkPrcOrTsrEstimationMethodTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/ErrCompDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock Price or TSR Estimation Method [Text Block]",
        "terseLabel": "Stock Price or TSR Estimation Method"
       }
      }
     },
     "auth_ref": [
      "r473",
      "r484",
      "r494",
      "r527"
     ]
    },
    "us-gaap_StockAppreciationRightsSARSMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/us-gaap/2025",
     "localname": "StockAppreciationRightsSARSMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock Appreciation Rights (SARs) [Member]",
        "terseLabel": "Stock Appreciation Rights (SARs)"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_StorageTerminalsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "StorageTerminalsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexLogisticsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Storage terminals",
        "label": "Storage Terminals [Member]",
        "documentation": "Storage Terminals"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_StrengtheningOfFinancialPositionFebruary2026Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "StrengtheningOfFinancialPositionFebruary2026Member",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsequentEventsSummaryofContributionsfromtheMexicanGovernmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Strengthening of Financial Position, February 2026",
        "label": "Strengthening of Financial Position, February 2026 [Member]",
        "documentation": "Strengthening of Financial Position, February 2026"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_StrengtheningOfFinancialPositionMarch2026Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "StrengtheningOfFinancialPositionMarch2026Member",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsequentEventsSummaryofContributionsfromtheMexicanGovernmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Strengthening of Financial Position, March 2026",
        "label": "Strengthening of Financial Position, March 2026 [Member]",
        "documentation": "Strengthening of Financial Position, March 2026"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_StrengtheningOfFinancialPositionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "StrengtheningOfFinancialPositionMember",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofGovernmentContributionstoPetroleosMexicanosthroughtheMinistryofEnergyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Strengthening of Financial Position",
        "label": "Strengthening of Financial Position [Member]",
        "documentation": "Strengthening of Financial Position"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_StrengtheningOfFinancialPositionOneAugust2025Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "StrengtheningOfFinancialPositionOneAugust2025Member",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofGovernmentContributionstoPetroleosMexicanosthroughtheMinistryofEnergyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Strengthening of Financial Position One, August 2025",
        "label": "Strengthening of Financial Position One, August 2025 [Member]",
        "documentation": "Strengthening of Financial Position One, August 2025"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_StrengtheningOfFinancialPositionOneDecember2025Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "StrengtheningOfFinancialPositionOneDecember2025Member",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofGovernmentContributionstoPetroleosMexicanosthroughtheMinistryofEnergyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Strengthening of Financial Position One, December 2025",
        "label": "Strengthening of Financial Position One, December 2025 [Member]",
        "documentation": "Strengthening of Financial Position One, December 2025"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_StrengtheningOfFinancialPositionOneJanuary2025Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "StrengtheningOfFinancialPositionOneJanuary2025Member",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofGovernmentContributionstoPetroleosMexicanosthroughtheMinistryofEnergyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Strengthening of Financial Position One, January 2025",
        "label": "Strengthening of Financial Position One, January 2025 [Member]",
        "documentation": "Strengthening of Financial Position One, January 2025"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_StrengtheningOfFinancialPositionOneJanuary2026Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "StrengtheningOfFinancialPositionOneJanuary2026Member",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsequentEventsSummaryofContributionsfromtheMexicanGovernmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Strengthening of Financial Position One, January 2026",
        "label": "Strengthening of Financial Position One, January 2026 [Member]",
        "documentation": "Strengthening of Financial Position One, January 2026"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_StrengtheningOfFinancialPositionOneNovember2025Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "StrengtheningOfFinancialPositionOneNovember2025Member",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofGovernmentContributionstoPetroleosMexicanosthroughtheMinistryofEnergyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Strengthening of Financial Position One, November 2025",
        "label": "Strengthening of Financial Position One, November 2025 [Member]",
        "documentation": "Strengthening of Financial Position One, November 2025"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_StrengtheningOfFinancialPositionOneOctober2025Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "StrengtheningOfFinancialPositionOneOctober2025Member",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofGovernmentContributionstoPetroleosMexicanosthroughtheMinistryofEnergyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Strengthening of Financial Position One, October 2025",
        "label": "Strengthening of Financial Position One, October 2025 [Member]",
        "documentation": "Strengthening of Financial Position One, October 2025"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_StrengtheningOfFinancialPositionOneSeptember2025Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "StrengtheningOfFinancialPositionOneSeptember2025Member",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofGovernmentContributionstoPetroleosMexicanosthroughtheMinistryofEnergyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Strengthening of Financial Position One, September 2025",
        "label": "Strengthening of Financial Position One, September 2025 [Member]",
        "documentation": "Strengthening of Financial Position One, September 2025"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_StrengtheningOfFinancialPositionThreeAugust2025Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "StrengtheningOfFinancialPositionThreeAugust2025Member",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofGovernmentContributionstoPetroleosMexicanosthroughtheMinistryofEnergyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Strengthening of Financial Position Three, August 2025",
        "label": "Strengthening of Financial Position Three, August 2025 [Member]",
        "documentation": "Strengthening of Financial Position Three, August 2025"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_StrengtheningOfFinancialPositionThreeDecember2025Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "StrengtheningOfFinancialPositionThreeDecember2025Member",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofGovernmentContributionstoPetroleosMexicanosthroughtheMinistryofEnergyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Strengthening of Financial Position Three, December 2025",
        "label": "Strengthening of Financial Position Three, December 2025 [Member]",
        "documentation": "Strengthening of Financial Position Three, December 2025"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_StrengtheningOfFinancialPositionThreeNovember2025Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "StrengtheningOfFinancialPositionThreeNovember2025Member",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofGovernmentContributionstoPetroleosMexicanosthroughtheMinistryofEnergyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Strengthening of Financial Position Three, November 2025",
        "label": "Strengthening of Financial Position Three, November 2025 [Member]",
        "documentation": "Strengthening of Financial Position Three, November 2025"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_StrengtheningOfFinancialPositionThreeSeptember2025Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "StrengtheningOfFinancialPositionThreeSeptember2025Member",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofGovernmentContributionstoPetroleosMexicanosthroughtheMinistryofEnergyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Strengthening of Financial Position Three, September 2025",
        "label": "Strengthening of Financial Position Three, September 2025 [Member]",
        "documentation": "Strengthening of Financial Position Three, September 2025"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_StrengtheningOfFinancialPositionTwoAugust2025Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "StrengtheningOfFinancialPositionTwoAugust2025Member",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofGovernmentContributionstoPetroleosMexicanosthroughtheMinistryofEnergyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Strengthening of Financial Position Two, August 2025",
        "label": "Strengthening of Financial Position Two, August 2025 [Member]",
        "documentation": "Strengthening of Financial Position Two, August 2025"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_StrengtheningOfFinancialPositionTwoDecember2025Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "StrengtheningOfFinancialPositionTwoDecember2025Member",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofGovernmentContributionstoPetroleosMexicanosthroughtheMinistryofEnergyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Strengthening of Financial Position Two, December 2025",
        "label": "Strengthening of Financial Position Two, December 2025 [Member]",
        "documentation": "Strengthening of Financial Position Two, December 2025"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_StrengtheningOfFinancialPositionTwoJanuary2025Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "StrengtheningOfFinancialPositionTwoJanuary2025Member",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofGovernmentContributionstoPetroleosMexicanosthroughtheMinistryofEnergyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Strengthening of Financial Position Two, January 2025",
        "label": "Strengthening of Financial Position Two, January 2025 [Member]",
        "documentation": "Strengthening of Financial Position Two, January 2025"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_StrengtheningOfFinancialPositionTwoJanuary2026Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "StrengtheningOfFinancialPositionTwoJanuary2026Member",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsequentEventsSummaryofContributionsfromtheMexicanGovernmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Strengthening of Financial Position Two, January 2026",
        "label": "Strengthening of Financial Position Two, January 2026 [Member]",
        "documentation": "Strengthening of Financial Position Two, January 2026"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_StrengtheningOfFinancialPositionTwoNovember2025Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "StrengtheningOfFinancialPositionTwoNovember2025Member",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofGovernmentContributionstoPetroleosMexicanosthroughtheMinistryofEnergyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Strengthening of Financial Position Two, November 2025",
        "label": "Strengthening of Financial Position Two, November 2025 [Member]",
        "documentation": "Strengthening of Financial Position Two, November 2025"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_StrengtheningOfFinancialPositionTwoOctober2025Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "StrengtheningOfFinancialPositionTwoOctober2025Member",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofGovernmentContributionstoPetroleosMexicanosthroughtheMinistryofEnergyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Strengthening of Financial Position Two, October 2025",
        "label": "Strengthening of Financial Position Two, October 2025 [Member]",
        "documentation": "Strengthening of Financial Position Two, October 2025"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_StrengtheningOfFinancialPositionTwoSeptember2025Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "StrengtheningOfFinancialPositionTwoSeptember2025Member",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitSummaryofGovernmentContributionstoPetroleosMexicanosthroughtheMinistryofEnergyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Strengthening of Financial Position Two, September 2025",
        "label": "Strengthening of Financial Position Two, September 2025 [Member]",
        "documentation": "Strengthening of Financial Position Two, September 2025"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_StructureBusinessOperationsSubsidiaryEntitiesAndSubsidiaryCompaniesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "StructureBusinessOperationsSubsidiaryEntitiesAndSubsidiaryCompaniesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Structure, business operations, subsidiary entities, and subsidiary companies [Abstract]",
        "documentation": "Structure, business operations, subsidiary entities, and subsidiary companies"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SubsequentEvent1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SubsequentEvent1Member",
     "presentation": [
      "http://mexicopetroleum.com/role/EquityDeficitAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/RelatedPartiesAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/SubsequentEventsAmendingagreementswithsuppliersDetails",
      "http://mexicopetroleum.com/role/SubsequentEventsExchangeratesandcrudeoilpricesDetail",
      "http://mexicopetroleum.com/role/SubsequentEventsRecentFinancingActivitiesNarrativeDetails",
      "http://mexicopetroleum.com/role/SubsequentEventsSummaryofContributionsfromtheMexicanGovernmentDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Subsequent event",
        "label": "Subsequent Event 1 [Member]",
        "documentation": "Subsequent event."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SummaryOfIncomeTaxesAndDutiesPayableTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SummaryOfIncomeTaxesAndDutiesPayableTableTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Income Taxes and Duties Payable",
        "label": "Summary of Income Taxes and Duties Payable [Table Text Block]",
        "documentation": "Summary of Income Taxes and Duties Payable"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SummaryOfLeaseLiabilitiesRecognizedInStatementOfCashFlowsTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SummaryOfLeaseLiabilitiesRecognizedInStatementOfCashFlowsTableTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of lease liabilities recognized in statement of cash flows",
        "label": "Summary Of Lease Liabilities Recognized In Statement Of Cash Flows [Table Text Block]",
        "documentation": "Summary of lease liabilities recognized in statement of cash flows."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SummaryOfLeaseLiabilitiesRecognizedInStatementOfComprehensiveIncomeTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SummaryOfLeaseLiabilitiesRecognizedInStatementOfComprehensiveIncomeTableTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of lease liabilities recognized in statement of comprehensive income",
        "label": "Summary Of Lease Liabilities Recognized In Statement Of Comprehensive Income [Table Text Block]",
        "documentation": "Summary of lease liabilities recognized in statement of comprehensive income."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SummaryOfLeasesLiabilitiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SummaryOfLeasesLiabilitiesTableTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of leases liabilities",
        "label": "Summary Of Leases Liabilities [Table Text Block]",
        "documentation": "Summary of leases liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SummaryOfOtherAccountsReceivableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SummaryOfOtherAccountsReceivableTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Other Accounts Receivable",
        "label": "Summary of Other Accounts Receivable [Text Block]",
        "documentation": "Summary of Other Accounts Receivable."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SummaryOfPortfolioOfFinancialInstrumentsComposedOfDebtInstrumentsAndDFITableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SummaryOfPortfolioOfFinancialInstrumentsComposedOfDebtInstrumentsAndDFITableTextBlock",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Summary of Portfolio of Financial Instruments Composed of Debt Instruments and DFI",
        "label": "Summary of Portfolio of Financial Instruments Composed of Debt Instruments and DFI [Table Text Block]",
        "documentation": "Summary of portfolio of financial instruments is composed of debt instruments and DFIs."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SundryDebtors": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SundryDebtors",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofOtherAccountsReceivableDetail": {
       "parentTag": "ifrs-full_OtherFinancialAssets",
       "weight": 1.0,
       "order": 2.0
      },
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail": {
       "parentTag": "ifrs-full_FinancialAssets",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofOtherAccountsReceivableDetail",
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Sundry debtors",
        "label": "Sundry Debtors",
        "documentation": "Sundry debtors."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SupplementalInformationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SupplementalInformationAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Supplemental Information [abstract]",
        "label": "Supplemental Information [abstract]",
        "documentation": "Supplemental information."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SupplementalInformationLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SupplementalInformationLineItems",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofComprehensiveIncomeDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationSummaryofPrincipalAmountOutstandingofRegisteredDebtSecuritiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Supplemental information [line items]",
        "label": "Supplemental Information [line items]",
        "documentation": "Supplemental information."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SupplementalInformationTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SupplementalInformationTable",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofComprehensiveIncomeDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail",
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationSummaryofPrincipalAmountOutstandingofRegisteredDebtSecuritiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Supplemental information [table]",
        "label": "Supplemental information [table]",
        "documentation": "Supplemental information [table]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SuppliersPaymentTerms": {
     "xbrltype": "durationItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SuppliersPaymentTerms",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsequentEventsAmendingagreementswithsuppliersDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Suppliers payment terms",
        "label": "Suppliers Payment Terms",
        "documentation": "Suppliers Payment Terms"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SwissFrancsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SwissFrancsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofForeignCurrencyTranslationDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFinancialLiabilitiesInterestAndPrincipalCashFlowMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Swiss francs",
        "label": "Swiss Francs [member]",
        "documentation": "Swiss francs."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_SyndicatedLoanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "SyndicatedLoanMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Syndicated loans",
        "label": "Syndicated loan [member]",
        "documentation": "Syndicated loan [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_TabularListTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TabularListTableTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tabular List [Table Text Block]",
        "terseLabel": "Tabular List, Table"
       }
      }
     },
     "auth_ref": [
      "r520"
     ]
    },
    "ck0000932782_TadTdglTomsStotageTerminalsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TadTdglTomsStotageTerminalsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetRecoverableAmountsofAssetsCGUsPemexLogisticsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "TAD, TDGL, TOMS (Storage terminals)",
        "label": "TAD, TDGL, TOMS (Stotage terminals) [member]",
        "documentation": "TAD, TDGL, TOMS (stotage terminals)."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TamaulipasConstitucionesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TamaulipasConstitucionesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofValuesinUseforCGUImpairmentorReversalPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tamaulipas Constituciones",
        "label": "Tamaulipas Constituciones [Member]",
        "documentation": "Tamaulipas Constituciones."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TaxContingentLiabilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TaxContingentLiabilityMember",
     "presentation": [
      "http://mexicopetroleum.com/role/ContingenciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tax Contingent Liability",
        "label": "Tax contingent liability [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a contingent liability for taxes. [Refer: Classes of contingent liabilities [domain]]"
       }
      }
     },
     "auth_ref": [
      "r577"
     ]
    },
    "ck0000932782_TaxEffectOfDeferredTaxExpenseIncomeRecognized": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TaxEffectOfDeferredTaxExpenseIncomeRecognized",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpenseBenefitAttributabletoProfitLossfromContinuingOperationsbeforeIncomeTaxesDetail": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TaxEffectOfExpectedLossOfContracts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TaxEffectOfExpectedLossOfContracts",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpenseBenefitAttributabletoProfitLossfromContinuingOperationsbeforeIncomeTaxesDetail": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": -1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpenseBenefitAttributabletoProfitLossfromContinuingOperationsbeforeIncomeTaxesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedLabel": "Reversal of deferred income tax due to changes in tax legislation",
        "label": "Tax Effect Of Expected Loss Of Contracts",
        "documentation": "Tax effect of expected loss of contracts."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TaxEffectOfExpenseFiscalUpdatingOfPipelinesPropertiesAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TaxEffectOfExpenseFiscalUpdatingOfPipelinesPropertiesAndEquipment",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpenseBenefitAttributabletoProfitLossfromContinuingOperationsbeforeIncomeTaxesDetail": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpenseBenefitAttributabletoProfitLossfromContinuingOperationsbeforeIncomeTaxesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Fiscal updating of pipelines, properties and equipment",
        "label": "Tax Effect Of Expense Fiscal Updating Of Pipelines Properties And Equipment",
        "documentation": "Tax Effect Of Expense Fiscal Updating Of Pipelines Properties And Equipment."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TaxEffectOfExpenseNotDeductibleInDeterminingTaxableProfitTaxLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TaxEffectOfExpenseNotDeductibleInDeterminingTaxableProfitTaxLoss",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpenseBenefitAttributabletoProfitLossfromContinuingOperationsbeforeIncomeTaxesDetail": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpenseBenefitAttributabletoProfitLossfromContinuingOperationsbeforeIncomeTaxesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Non-deductible expenses",
        "label": "Tax effect of expense not deductible in determining taxable profit (tax loss)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount that represents the difference between the tax expense (income) and the product of the accounting profit multiplied by the applicable tax rate(s) that relates to expenses not deductible in determining taxable profit (tax loss). [Refer: Accounting profit]"
       }
      }
     },
     "auth_ref": [
      "r5",
      "r265"
     ]
    },
    "ck0000932782_TaxEffectOfExpenseRetirementBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TaxEffectOfExpenseRetirementBenefits",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpenseBenefitAttributabletoProfitLossfromContinuingOperationsbeforeIncomeTaxesDetail": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpenseBenefitAttributabletoProfitLossfromContinuingOperationsbeforeIncomeTaxesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Retirement benefits",
        "label": "Tax Effect Of Expense Retirement Benefits",
        "documentation": "Tax effect of expense retirement benefits."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TaxEffectOfInflationOnTaxValues": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TaxEffectOfInflationOnTaxValues",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpenseBenefitAttributabletoProfitLossfromContinuingOperationsbeforeIncomeTaxesDetail": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": 1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpenseBenefitAttributabletoProfitLossfromContinuingOperationsbeforeIncomeTaxesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tax effect of inflation-net",
        "label": "Tax Effect of Inflation on Tax Values",
        "documentation": "Tax effect of inflation on tax values."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TaxEffectOfTaxLossesByLegalResolution": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TaxEffectOfTaxLossesByLegalResolution",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail": {
       "parentTag": "ifrs-full_OtherRevenue",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tax updates",
        "label": "Tax Effect Of Tax Losses By Legal Resolution",
        "documentation": "Tax Effect Of Tax Losses By Legal Resolution"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TaxEffectOfUnrecognizedDeferredTaxChange": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TaxEffectOfUnrecognizedDeferredTaxChange",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpenseBenefitAttributabletoProfitLossfromContinuingOperationsbeforeIncomeTaxesDetail": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpenseBenefitAttributabletoProfitLossfromContinuingOperationsbeforeIncomeTaxesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unrecognized deferred tax change",
        "label": "Tax Effect Of Unrecognized Deferred Tax Change",
        "documentation": "Tax Effect Of Unrecognized Deferred Tax Change"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TaxExpenseIncomeAtApplicableTaxRate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TaxExpenseIncomeAtApplicableTaxRate",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpenseBenefitAttributabletoProfitLossfromContinuingOperationsbeforeIncomeTaxesDetail": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofExpenseBenefitAttributabletoProfitLossfromContinuingOperationsbeforeIncomeTaxesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Expected income tax expense",
        "label": "Tax expense (income) at applicable tax rate"
       }
      },
      "en": {
       "role": {
        "documentation": "The product of the accounting profit multiplied by the applicable tax rate(s). [Refer: Accounting profit; Applicable tax rate]"
       }
      }
     },
     "auth_ref": [
      "r5",
      "r265"
     ]
    },
    "ck0000932782_TaxRegimeApplicableToAssignmentsAfter60MonthsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TaxRegimeApplicableToAssignmentsAfter60MonthsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tax regime applicable to assignments after 60 months",
        "label": "Tax regime applicable to assignments after 60 months [Member]",
        "documentation": "Tax regime applicable to assignments after 60 months"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TaxRegimeApplicableToAssignmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TaxRegimeApplicableToAssignmentsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationandExtractionHydrocarbonsDutyNarrativeDetails",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tax regime applicable to assignments",
        "label": "Tax regime applicable to assignments [member]",
        "documentation": "Tax regime applicable to assignments [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TaxRegimeApplicableToContractsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TaxRegimeApplicableToContractsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationandExtractionHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tax regime applicable to contracts",
        "label": "Tax regime applicable to contracts [member]",
        "documentation": "Tax regime applicable to contracts [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TaxesWithheld": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TaxesWithheld",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxesandDutiesPayableDetail": {
       "parentTag": "ck0000932782_OtherTaxesAndDuties",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxesandDutiesPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Withheld taxes",
        "label": "Taxes Withheld",
        "documentation": "Taxes Withheld"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Temporary difference, unused tax losses and unused tax credits [axis]",
        "label": "Temporary difference, unused tax losses and unused tax credits [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r9",
      "r269"
     ]
    },
    "ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Temporary difference, unused tax losses and unused tax credits",
        "label": "Temporary difference, unused tax losses and unused tax credits [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for temporary differences, unused tax losses and unused tax credits. It also represents the standard value for the 'Temporary difference, unused tax losses and unused tax credits' axis if no other member is used. [Refer: Temporary differences [member]; Unused tax credits [member]; Unused tax losses [member]]"
       }
      }
     },
     "auth_ref": [
      "r9",
      "r269"
     ]
    },
    "ck0000932782_TenPercentNotesDueTwoThousandThirtyThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TenPercentNotesDueTwoThousandThirtyThreeMember",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationSummaryofPrincipalAmountOutstandingofRegisteredDebtSecuritiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "10.000% Notes due 2033",
        "label": "Ten Percent Notes Due Two Thousand Thirty Three [Member]",
        "documentation": "Ten Percent Notes Due Two Thousand Thirty Three"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TerminationResolutionJanuary142019Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TerminationResolutionJanuary142019Member",
     "presentation": [
      "http://mexicopetroleum.com/role/ContingenciesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Termination Resolution January 14 2019",
        "label": "Termination Resolution January 14 2019 [Member]",
        "documentation": "Termination Resolution January 14 2019 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ThirtyDaysSOFRPlus215BasisPointsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ThirtyDaysSOFRPlus215BasisPointsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Thirty Days SOFR Plus 215 Basis Points",
        "label": "Thirty Days SOFR Plus 215 Basis Points [Member]",
        "documentation": "Thirty Days SOFR Plus 215 Basis Points"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ThirtyDaysSOFRPlus350BasisPointMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ThirtyDaysSOFRPlus350BasisPointMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Thirty Days SOFR Plus 350 Basis Point",
        "label": "Thirty Days SOFR Plus 350 Basis Point [Member]",
        "documentation": "Thirty Days SOFR Plus 350 Basis Point"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ThirtyDaysSOFRPlus415BasisPointsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ThirtyDaysSOFRPlus415BasisPointsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Thirty Days SOFR Plus 415 Basis Points",
        "label": "Thirty Days SOFR Plus 415 Basis Points [Member]",
        "documentation": "Thirty Days SOFR Plus 415 Basis Points"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ThirtyDaysSOFRPlus425BasisPointsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ThirtyDaysSOFRPlus425BasisPointsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Thirty Days SOFR Plus 425 Basis Points",
        "label": "Thirty Days SOFR Plus 425 Basis Points [Member]",
        "documentation": "Thirty Days SOFR Plus 425 Basis Points"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ThreeMonthSecuredOvernightFinancingRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ThreeMonthSecuredOvernightFinancingRateMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Three Month Secured Overnight Financing Rate",
        "label": "Three Month Secured Overnight Financing Rate [Member]",
        "documentation": "Three Month Secured Overnight Financing Rate"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ThreeToFiveYearMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ThreeToFiveYearMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofCurrentandPotentialExposuresandAggregatedbyCreditRatingDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "3-5 years",
        "label": "Three to Five Year [member]",
        "documentation": "Three to five year."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_ThreeYearFinancingArrangementMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "ThreeYearFinancingArrangementMember",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Three Year Financing Arrangement",
        "label": "Three Year Financing Arrangement [Member]",
        "documentation": "Three Year Financing Arrangement [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_Tiie28dMxnMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "Tiie28dMxnMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryOfPortfolioofFinancialInstrumentsComposedofDebtInstrumentsandDFIDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "TIIE 28D MXN",
        "label": "TIIE 28D MXN [Member]",
        "documentation": "TIIE 28D MXN."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TiieRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TiieRateMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "TIIE",
        "label": "TIIE Rate [member]",
        "documentation": "TIIE Rate [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TimingOfTransferOfGoodsOrServicesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TimingOfTransferOfGoodsOrServicesAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Timing of transfer of goods or services [axis]",
        "label": "Timing of transfer of goods or services [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r412",
      "r438"
     ]
    },
    "ifrs-full_TimingOfTransferOfGoodsOrServicesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TimingOfTransferOfGoodsOrServicesDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Timing of revenue recognition",
        "label": "Timing of transfer of goods or services [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for all timings of the transfer of goods or services in contracts with customers. It also represents the standard value for the 'Timing of transfer of goods or services' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r412",
      "r438"
     ]
    },
    "ifrs-full_TopOfRangeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TopOfRangeMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofOtherComponentsofIntangibleAssetsDetail",
      "http://mexicopetroleum.com/role/LeasesAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/LeasesSummaryofrightofuseassetsDetail",
      "http://mexicopetroleum.com/role/LongTermContractualLiabilitiesAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/RelatedPartiesAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Top of range",
        "label": "Top of range [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for top of a range."
       }
      }
     },
     "auth_ref": [
      "r89",
      "r124",
      "r150",
      "r158",
      "r255",
      "r406",
      "r408",
      "r594"
     ]
    },
    "ck0000932782_TotalDutiesTaxesAndOther": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TotalDutiesTaxesAndOther",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofComprehensiveIncomeDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Total taxes, duties and other",
        "label": "Total Duties Taxes and Other",
        "documentation": "Total duties taxes and other."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TotalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TotalMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFinancialLiabilitiesInterestAndPrincipalCashFlowMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total",
        "label": "Total [Member]",
        "documentation": "Total [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_TotalShareholderRtnAmt": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TotalShareholderRtnAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Shareholder Return Amount",
        "terseLabel": "Total Shareholder Return Amount"
       }
      }
     },
     "auth_ref": [
      "r512"
     ]
    },
    "ecd_TotalShareholderRtnVsPeerGroupTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TotalShareholderRtnVsPeerGroupTextBlock",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Shareholder Return Vs Peer Group [Text Block]",
        "terseLabel": "Total Shareholder Return Vs Peer Group"
       }
      }
     },
     "auth_ref": [
      "r519"
     ]
    },
    "ifrs-full_TradeAndOtherCurrentReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TradeAndOtherCurrentReceivables",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofOtherAccountsReceivableDetail": {
       "parentTag": "ifrs-full_OtherFinancialAssets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofOtherAccountsReceivableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Employees and officers",
        "label": "Trade and other current receivables"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current trade receivables and current other receivables. [Refer: Current trade receivables; Other current receivables]"
       }
      }
     },
     "auth_ref": [
      "r337",
      "r354",
      "r368"
     ]
    },
    "ck0000932782_TradeAndOtherCurrentReceivablesAndDerivativeFinancialInstruments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TradeAndOtherCurrentReceivablesAndDerivativeFinancialInstruments",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofFinancialPositionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Trade and other accounts receivable, derivative financial instruments and other current assets",
        "label": "Trade And Other Current Receivables And Derivative Financial Instruments",
        "documentation": "Trade and other current receivables and derivative financial instruments"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TradeAndOtherCurrentReceivablesDueFromRelatedParties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TradeAndOtherCurrentReceivablesDueFromRelatedParties",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail": {
       "parentTag": "ifrs-full_FinancialAssets",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofCarryingAmountsandFairValueofFinancialAssetsandLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Officials and employees",
        "label": "Current receivables due from related parties"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current receivables due from related parties. [Refer: Total for all related parties [member]]"
       }
      }
     },
     "auth_ref": [
      "r445",
      "r450"
     ]
    },
    "ifrs-full_TradeAndOtherReceivablesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TradeAndOtherReceivablesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Trade and other receivables [abstract]",
        "label": "Trade and other receivables [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TradeAndOtherReceivablesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TradeAndOtherReceivablesLineItems",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableScheduleofBreakdownofAccountsReceivableBasedonCreditHistoryDetail",
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofAccountsReceivableandOtherReceivablesDetail",
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofReconciliationforImpairedAccountsReceivableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Trade and Other Receivables [Line Items]",
        "label": "Trade and Other Receivables [line items]",
        "documentation": "Trade and other receivables."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TradeAndOtherReceivablesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TradeAndOtherReceivablesTable",
     "presentation": [
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableScheduleofBreakdownofAccountsReceivableBasedonCreditHistoryDetail",
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofAccountsReceivableandOtherReceivablesDetail",
      "http://mexicopetroleum.com/role/CustomersandOtherFinancingandNonFinancingAccountsReceivableSummaryofReconciliationforImpairedAccountsReceivableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Trade and Other Receivables [table]",
        "label": "Trade and Other Receivables [table]",
        "documentation": "Trade and Other Receivables [table]"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_TradingArrAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TradingArrAxis",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement [Axis]",
        "terseLabel": "Trading Arrangement:"
       }
      }
     },
     "auth_ref": [
      "r540"
     ]
    },
    "ecd_TradingArrByIndTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TradingArrByIndTable",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangements, by Individual [Table]",
        "terseLabel": "Trading Arrangements, by Individual"
       }
      }
     },
     "auth_ref": [
      "r542"
     ]
    },
    "ck0000932782_TradingCompaniesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TradingCompaniesMember",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Trading Companies",
        "label": "Trading Companies [member]",
        "documentation": "Trading companies."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TransactionsRelatedToTaxContingentLiabilityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TransactionsRelatedToTaxContingentLiabilityAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationandExtractionHydrocarbonsDutyNarrativeDetails",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Transactions related to tax contingent liability [axis]",
        "label": "Transactions related to tax contingent liability [axis]",
        "documentation": "Transactions related to tax contingent liability."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TransactionsRelatedToTaxContingentLiabilityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TransactionsRelatedToTaxContingentLiabilityDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationandExtractionHydrocarbonsDutyNarrativeDetails",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesExplorationsHydrocarbonsDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Transactions related to tax contingent liability [Domain]",
        "label": "Transactions related to tax contingent liability [Domain]",
        "documentation": "Transactions related to tax contingent liability [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TransferOfGoodAndServices": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TransferOfGoodAndServices",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Transfer of good and services",
        "label": "Transfer Of Good And Services",
        "documentation": "Transfer Of Good And Services"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TransferOfServices": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TransferOfServices",
     "crdr": "credit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss": {
       "parentTag": "ifrs-full_ProfitLossFromOperatingActivities",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "Transfer of services",
        "label": "Transfer Of Services",
        "documentation": "Transfer Of Services"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TranslationEffectFromTheConsolidatedEquityMethod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TranslationEffectFromTheConsolidatedEquityMethod",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/OtherRevenuesandOtherExpensesSummaryofOtherRevenuesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Translation effect from the consolidated equity method",
        "label": "Translation Effect From the Consolidated Equity Method",
        "documentation": "Translation Effect From the Consolidated Equity Method"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TransportationAndStorageEquipmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TransportationAndStorageEquipmentMember",
     "presentation": [
      "http://mexicopetroleum.com/role/LeasesSummaryofrightofuseassetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Transportation and storage equipment",
        "label": "Transportation And Storage Equipment [Member]",
        "documentation": "Transportation and storage equipment [Member]."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TransportationDistributionAndSaleExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TransportationDistributionAndSaleExpenses",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss": {
       "parentTag": "ifrs-full_ProfitLossFromOperatingActivities",
       "weight": -1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Distribution, transportation and sale expenses",
        "verboseLabel": "Distribution, transportation and sale expenses",
        "label": "Transportation, distribution and sale expenses",
        "documentation": "Transportation, distribution and sale expenses."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TransportationEquipment1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TransportationEquipment1Member",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Transportation equipment",
        "label": "Transportation Equipment 1 [member]",
        "documentation": "Transportation equipment."
       }
      }
     },
     "auth_ref": []
    },
    "ecd_TrdArrAdoptionDate": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TrdArrAdoptionDate",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement Adoption Date",
        "terseLabel": "Adoption Date"
       }
      }
     },
     "auth_ref": [
      "r543"
     ]
    },
    "ecd_TrdArrDuration": {
     "xbrltype": "durationItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TrdArrDuration",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement Duration",
        "terseLabel": "Arrangement Duration"
       }
      }
     },
     "auth_ref": [
      "r544"
     ]
    },
    "ecd_TrdArrExpirationDate": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TrdArrExpirationDate",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement Expiration Date",
        "terseLabel": "Expiration Date"
       }
      }
     },
     "auth_ref": [
      "r544"
     ]
    },
    "ecd_TrdArrIndName": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TrdArrIndName",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement, Individual Name",
        "terseLabel": "Name"
       }
      }
     },
     "auth_ref": [
      "r542"
     ]
    },
    "ecd_TrdArrIndTitle": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TrdArrIndTitle",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement, Individual Title",
        "terseLabel": "Title"
       }
      }
     },
     "auth_ref": [
      "r542"
     ]
    },
    "ecd_TrdArrSecuritiesAggAvailAmt": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TrdArrSecuritiesAggAvailAmt",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement, Securities Aggregate Available Amount",
        "terseLabel": "Aggregate Available"
       }
      }
     },
     "auth_ref": [
      "r545"
     ]
    },
    "ecd_TrdArrTerminationDate": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "TrdArrTerminationDate",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/InsiderTradingArrangements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Arrangement Termination Date",
        "terseLabel": "Termination Date"
       }
      }
     },
     "auth_ref": [
      "r543"
     ]
    },
    "ck0000932782_TsiminXuxMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TsiminXuxMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentReversalofImpairmentCGUsPemexExplorationandProductionDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofValuesinUseforCGUImpairmentorReversalPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tsimin Xux",
        "label": "Tsimin Xux [Member]",
        "documentation": "Tsimin Xux."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TulaRefineryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TulaRefineryMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantAndEquipmentNetImpairmentofFixedAssetsPemexIndustrialTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentbyCGUsPemexIndustrialTransformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Tula Refinery",
        "label": "Tula Refinery [member]",
        "documentation": "Tula Refinery."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TwentyDayDeltaGammaRiskAnalysisMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TwentyDayDeltaGammaRiskAnalysisMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Twenty day delta gamma risk analysis",
        "label": "Twenty Day Delta Gamma Risk Analysis [member]",
        "documentation": "Twenty day delta gamma risk analysis."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TwentyEightDaysSOFRPlus350BasisPointsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TwentyEightDaysSOFRPlus350BasisPointsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Twenty Eight Days SOFR Plus 350 Basis Points",
        "label": "Twenty Eight Days SOFR Plus 350 Basis Points [Member]",
        "documentation": "Twenty Eight Days SOFR Plus 350 Basis Points"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TwentyEightDaysTIEERateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TwentyEightDaysTIEERateMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Twenty Eight Days TIEE Rate",
        "label": "Twenty Eight Days TIEE Rate [Member]",
        "documentation": "Twenty Eight Days TIEE Rate"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TwentyEightDaysTIIEMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TwentyEightDaysTIIEMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Twenty Eight Days TIIE",
        "label": "Twenty Eight Days TIIE [Member]",
        "documentation": "Twenty Eight Days TIIE"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TwentyEightDaysTIIEPlus225BasisPointsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TwentyEightDaysTIIEPlus225BasisPointsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Twenty Eight Days TIIE Plus 225 Basis Points",
        "label": "Twenty Eight Days TIIE Plus 225 Basis Points [Member]",
        "documentation": "Twenty Eight Days TIIE Plus 225 Basis Points"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TwentyEightDaysTIIEPlus270BasisPointsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TwentyEightDaysTIIEPlus270BasisPointsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Twenty Eight Days TIIE Plus 270 Basis Points",
        "label": "Twenty Eight Days TIIE Plus 270 Basis Points [Member]",
        "documentation": "Twenty Eight Days TIIE Plus 270 Basis Points"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TwentyEightDaysTIIEPlus310BasisPointMaturingJanuary2025Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TwentyEightDaysTIIEPlus310BasisPointMaturingJanuary2025Member",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Twenty Eight Days TIIE Plus 310 Basis Point, Maturing January 2025",
        "label": "Twenty Eight Days TIIE Plus 310 Basis Point, Maturing January 2025 [Member]",
        "documentation": "Twenty Eight Days TIIE Plus 310 Basis Point, Maturing January 2025"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TwentyEightDaysTIIEPlus310BasisPointsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TwentyEightDaysTIIEPlus310BasisPointsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Twenty Eight Days TIIE Plus 310 Basis Points",
        "label": "Twenty Eight Days TIIE Plus 310 Basis Points [Member]",
        "documentation": "Twenty Eight Days TIIE Plus 310 Basis Points"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TwentyEightDaysTIIEPlus315BasisPointsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TwentyEightDaysTIIEPlus315BasisPointsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Twenty Eight Days TIIE Plus 315 Basis Points",
        "label": "Twenty Eight Days TIIE Plus 315 Basis Points [Member]",
        "documentation": "Twenty Eight Days TIIE Plus 315 Basis Points"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TwentyEightDaysTIIEPlus350BasisPointsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TwentyEightDaysTIIEPlus350BasisPointsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Twenty Eight Days TIIE Plus 350 Basis Points",
        "label": "Twenty Eight Days TIIE Plus 350 Basis Points [Member]",
        "documentation": "Twenty Eight Days TIIE Plus 350 Basis Points"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TwentyEightDaysTIIEPlus365BasisPointsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TwentyEightDaysTIIEPlus365BasisPointsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Twenty Eight Days TIIE Plus 365 Basis Points",
        "label": "Twenty Eight Days TIIE Plus 365 Basis Points [Member]",
        "documentation": "Twenty Eight Days TIIE Plus 365 Basis Points"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TwentyEightDaysTIIEPlus400BasisPointsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TwentyEightDaysTIIEPlus400BasisPointsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Twenty Eight Days TIIE Plus 400 Basis Points",
        "label": "Twenty Eight Days TIIE Plus 400 Basis Points [Member]",
        "documentation": "Twenty Eight Days TIIE Plus 400 Basis Points"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TwentyEightyDaysTIIEFloatingRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TwentyEightyDaysTIIEFloatingRateMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Twenty Eighty Days TIIE Floating Rate",
        "label": "Twenty Eighty Days TIIE Floating Rate [Member]",
        "documentation": "Twenty Eighty Days TIIE Floating Rate"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TwentyEightyDaysTIIEPlus350BasisPoints1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TwentyEightyDaysTIIEPlus350BasisPoints1Member",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Twenty Eighty Days TIIE Plus 350 Basis Points 1",
        "label": "Twenty Eighty Days TIIE Plus 350 Basis Points 1 [Member]",
        "documentation": "Twenty Eighty Days TIIE Plus 350 Basis Points 1"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TwentyEightyDaysTIIEPlus350BasisPointsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TwentyEightyDaysTIIEPlus350BasisPointsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Twenty Eighty Days TIIE Plus 350 Basis Points",
        "label": "Twenty Eighty Days TIIE Plus 350 Basis Points [Member]",
        "documentation": "Twenty Eighty Days TIIE Plus 350 Basis Points"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TwentyFiveBasisPointsHigherMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TwentyFiveBasisPointsHigherMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Twenty five basis points higher",
        "label": "Twenty five basis points higher [member]",
        "documentation": "Twenty five basis points higher."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TwentyFiveBasisPointsLowerMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TwentyFiveBasisPointsLowerMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Twenty five basis points lower",
        "label": "Twenty five basis points lower [member]",
        "documentation": "Twenty five basis points lower."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TwentyTwoCuencaSalinaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TwentyTwoCuencaSalinaMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Twenty Two Cuenca Salina",
        "label": "Twenty two Cuenca Salina [member]",
        "documentation": "Twenty two cuenca salina."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TwoThousandAndTwentyFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TwoThousandAndTwentyFiveMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Two Thousand And Twenty Five",
        "label": "Two Thousand And Twenty Five [Member]",
        "documentation": "Two Thousand And Twenty Five"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TwoThousandAndTwentySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TwoThousandAndTwentySevenMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Two Thousand Twenty Seven",
        "label": "Two Thousand And Twenty Seven [Member]",
        "documentation": "Two Thousand And Twenty Seven"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TypeOfFinancingArrangementAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TypeOfFinancingArrangementAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Type Of Financing Arrangement [Axis]",
        "label": "Type Of Financing Arrangement [Axis]",
        "documentation": "Type Of Financing Arrangement [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TypeOfFinancingArrangementDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TypeOfFinancingArrangementDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/GovernmentBondsAndOtherAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Type Of Financing Arrangement [Domain]",
        "label": "Type Of Financing Arrangement [Domain]",
        "documentation": "Type Of Financing Arrangement [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TypesOfAgreementAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TypesOfAgreementAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Types of agreement [axis]",
        "label": "Types of agreement [axis]",
        "documentation": "Types of agreement [axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_TypesOfAgreementDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "TypesOfAgreementDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Types of agreement [domain]",
        "label": "Types of agreement [domain]",
        "documentation": "Types of agreement [domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TypesOfContractsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TypesOfContractsAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/CommitmentsEstimatedFuturePaymentsUnderContractsDetail",
      "http://mexicopetroleum.com/role/CommitmentsEstimatedValueofContractsDetail",
      "http://mexicopetroleum.com/role/DebtSummaryofChangesinConsolidatedDebtDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Types of contracts [axis]",
        "label": "Types of contracts [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r411",
      "r415",
      "r437"
     ]
    },
    "ifrs-full_TypesOfContractsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TypesOfContractsDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/CommitmentsEstimatedFuturePaymentsUnderContractsDetail",
      "http://mexicopetroleum.com/role/CommitmentsEstimatedValueofContractsDetail",
      "http://mexicopetroleum.com/role/DebtSummaryofChangesinConsolidatedDebtDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetCondensedStatementofComprehensiveIncomeandStatementofFinancialPositionDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Types of contracts",
        "label": "Types of contracts [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for all types of contracts with customers. It also represents the standard value for the 'Types of contracts' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r411",
      "r415",
      "r437"
     ]
    },
    "ifrs-full_TypesOfInterestRatesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TypesOfInterestRatesAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail",
      "http://mexicopetroleum.com/role/SubsequentEventsRecentFinancingActivitiesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Types of interest rates [axis]",
        "label": "Types of interest rates [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r592"
     ]
    },
    "ifrs-full_TypesOfInterestRatesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TypesOfInterestRatesDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail",
      "http://mexicopetroleum.com/role/SubsequentEventsRecentFinancingActivitiesNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Types of interest rates",
        "label": "Types of interest rates [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for all types of interest rates. It also represents the standard value for the 'Types of interest rates' axis if no other member is used. [Refer: Interest rate risk [member]]"
       }
      }
     },
     "auth_ref": [
      "r592"
     ]
    },
    "ifrs-full_TypesOfRisksAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TypesOfRisksAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Types of risks [axis]",
        "label": "Types of risks [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r44",
      "r151",
      "r152",
      "r153",
      "r155",
      "r167",
      "r175",
      "r176",
      "r291"
     ]
    },
    "ifrs-full_TypesOfRisksDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TypesOfRisksDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Types of risks",
        "label": "Types of risks [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for all types of risks. It also represents the standard value for the 'Types of risks' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r44",
      "r151",
      "r152",
      "r153",
      "r155",
      "r167",
      "r175",
      "r176",
      "r291"
     ]
    },
    "ifrs-full_TypesOfSharebasedPaymentArrangementsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TypesOfSharebasedPaymentArrangementsAxis",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Types of share-based payment arrangements [axis]",
        "label": "Types of share-based payment arrangements [axis]"
       }
      },
      "en": {
       "role": {
        "documentation": "The axis of a table defines the relationship between the members in the table and the line items or concepts that complete the table."
       }
      }
     },
     "auth_ref": [
      "r159",
      "r314"
     ]
    },
    "ifrs-full_TypesOfSharebasedPaymentArrangementsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TypesOfSharebasedPaymentArrangementsDomain",
     "presentation": [
      "http://mexicopetroleum.com/role/EmployeeBenefitsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Types of share-based payment arrangements",
        "label": "Types of share-based payment arrangements [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for an agreement between the entity or another group entity or any shareholder of the group entity and another party (including an employee) that entitles the other party to receive (a) cash or other assets of the entity for amounts that are based on the price (or value) of equity instruments (including shares or share options) of the entity or another group entity; or (b) equity instruments (including shares or share options) of the entity or another group entity, provided that the specified vesting conditions, if any, are met. It also represents the standard value for the 'Types of share-based payment arrangements' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r159",
      "r314"
     ]
    },
    "country_US": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/country/2025",
     "localname": "US",
     "presentation": [
      "http://mexicopetroleum.com/role/RevenueScheduleofRevenueDisaggregationDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationSupplementalGeographicInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "United States",
        "label": "UNITED STATES"
       }
      }
     },
     "auth_ref": []
    },
    "currency_USD": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/currency/2025",
     "localname": "USD",
     "presentation": [
      "http://mexicopetroleum.com/role/AuthorizationandBasisofPreparationAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/DebtSummaryofForeignCurrencyTranslationDetail",
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofInterestRateSensitivityDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofInterestRateandCurrencyDerivativeFinancialInstrumentsDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofFinancialLiabilitiesInterestAndPrincipalCashFlowMaturitiesDetail",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsSummaryofQuantitativeDisclosureofCashFlowsMaturitiesDetail",
      "http://mexicopetroleum.com/role/FinancialInstrumentsSummaryofMonetaryAssetsandLiabilitiesDenominatedInForeignCurrencyDetail",
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsAdditionalInformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "U.S",
        "verboseLabel": "U.S. dollar",
        "label": "United States of America, Dollars"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_USDollarTreasuryPortfolioMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "USDollarTreasuryPortfolioMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "U.S. Dollar Treasury Portfolio",
        "label": "U.S. Dollar Treasury Portfolio [member]",
        "documentation": "U.S. dollar treasury portfolio."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_UndevelopedDryGasReservesNetPeriodDecrease": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "UndevelopedDryGasReservesNetPeriodDecrease",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Undeveloped dry gas reserves increase decrease",
        "label": "Undeveloped Dry Gas Reserves Net Period Decrease",
        "documentation": "Undeveloped dry gas reserves net period decrease."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_UndevelopedDryGasReservesNetPeriodDecreasePercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "UndevelopedDryGasReservesNetPeriodDecreasePercentage",
     "presentation": [
      "http://mexicopetroleum.com/role/SupplementaryInformationonOilandGasExplorationandProductionActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Percentage of undeveloped dry gas reserves increase",
        "label": "Undeveloped Dry Gas Reserves Net Period Decrease Percentage",
        "documentation": "Undeveloped dry gas reserves net Period decrease percentage."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_UndrawnBorrowingFacilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "UndrawnBorrowingFacilities",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Available credit lines",
        "label": "Undrawn borrowing facilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of undrawn borrowing facilities that may be available for future operating activities and to settle capital commitments. [Refer: Capital commitments]"
       }
      }
     },
     "auth_ref": [
      "r402"
     ]
    },
    "ecd_UndrlygSecurityMktPriceChngPct": {
     "xbrltype": "pureItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "UndrlygSecurityMktPriceChngPct",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/AwardTimingDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Underlying Security Market Price Change, Percent",
        "terseLabel": "Underlying Security Market Price Change"
       }
      }
     },
     "auth_ref": [
      "r539"
     ]
    },
    "ck0000932782_UnrealizedForeignExchangeGainLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "UnrealizedForeignExchangeGainLoss",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofAllowanceAccountforPluggingofWellsTrialsinProgressandEnvironmentalCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unrealized foreign exchange loss (gains)",
        "label": "Unrealized Foreign Exchange Gain Loss",
        "documentation": "Unrealized foreign exchange gain loss."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_UnrealizedForeignExchangeIncomeLossOfReserveForWellAbandonment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "UnrealizedForeignExchangeIncomeLossOfReserveForWellAbandonment",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperationsBeforeChangesInWorkingCapital",
       "weight": 1.0,
       "order": 13.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Unrealized foreign exchange loss in discount rate of reserve for well abandonment",
        "label": "Unrealized Foreign Exchange Income Loss Of Reserve For Well Abandonment",
        "documentation": "Unrealized foreign exchange income loss\u00a0of reserve for well abandonment"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_UnrecognisedDeferredTaxAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "UnrecognisedDeferredTaxAsset",
     "crdr": "debit",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofPrincipalFactorsGeneratingtheDeferredDUCDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unrecognized Deferred DUC",
        "label": "Unrecognised deferred tax asset",
        "documentation": "Unrecognised deferred tax asset."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_UnsuccessfulWellsExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "UnsuccessfulWellsExpenses",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail": {
       "parentTag": "ck0000932782_CostOfSalesAndGeneralExpenses",
       "weight": 1.0,
       "order": 15.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/CostandExpensesbyNatureSummaryofCostandExpensesbyNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unsuccessful wells",
        "label": "Unsuccessful wells expenses",
        "documentation": "Unsuccessful wells expenses."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_UnsuccessfulWellsFromIntangibleAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "UnsuccessfulWellsFromIntangibleAssets",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/SubsidiaryGuarantorInformationStatementofCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "verboseLabel": "Unsuccessful wells from intangible assets",
        "label": "Unsuccessful Wells From Intangible Assets",
        "documentation": "Unsuccesful wells from intangible assets."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_UnwindingOfDiscountRateAgainstIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "UnwindingOfDiscountRateAgainstIncome",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/ProvisionsforSundryCreditorsSummaryofAllowanceAccountforPluggingofWellsTrialsinProgressandEnvironmentalCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Unwinding of discount against income",
        "label": "Unwinding of discount rate against income",
        "documentation": "Unwinding of discount rate against income."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_UsefulLifeMeasuredAsPeriodOfTimeIntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "durationItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "UsefulLifeMeasuredAsPeriodOfTimeIntangibleAssetsOtherThanGoodwill",
     "presentation": [
      "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofOtherComponentsofIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Useful lives",
        "label": "Useful life measured as period of time, intangible assets other than goodwill"
       }
      },
      "en": {
       "role": {
        "documentation": "The useful life, measured as period of time, used for intangible assets other than goodwill. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r70",
      "r301"
     ]
    },
    "ifrs-full_UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment": {
     "xbrltype": "durationItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexEnergyTransformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialProcessesDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAssumptionstoDetermineNPVofCashFlowsPemexIndustrialTranformationDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofDiscountRatesandUsefulLivesCGUsPemexLogisticsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Estimated useful lives",
        "verboseLabel": "Useful lives of the cash-generating units (year average)",
        "netLabel": "Useful life",
        "label": "Useful life measured as period of time, property, plant and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "The useful life, measured as period of time, used for property, plant and equipment. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r11",
      "r270"
     ]
    },
    "ifrs-full_ValueAtRisk": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ValueAtRisk",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofInterestRateandCurrencyDerivativeFinancialInstrumentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "VaR 95% Net",
        "terseLabel": "Value at risk",
        "label": "Value at risk"
       }
      },
      "en": {
       "role": {
        "documentation": "The measure of a potential loss exposure as a result of future market movements, based on a specified confidence interval and measurement horizon."
       }
      }
     },
     "auth_ref": [
      "r593"
     ]
    },
    "ck0000932782_VariableRate1Axis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "VariableRate1Axis",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Variable Rate [Axis]",
        "label": "Variable Rate 1 [Axis]",
        "documentation": "VariableRate."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_VariableRate1Domain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "VariableRate1Domain",
     "presentation": [
      "http://mexicopetroleum.com/role/DebtSummaryofLongtermDebtDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Variable Rate [Domain]",
        "label": "Variable Rate 1 [Domain]",
        "documentation": "Variable Rate [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_VariableRateDollarsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "VariableRateDollarsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Variable rate (U.S. dollars)",
        "label": "Variable rate (U.S. dollars) [member]",
        "documentation": "Variable rate (U.S. dollars)."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_VariableRateEurosMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "VariableRateEurosMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Variable rate (euros)",
        "label": "Variable rate (euros) [member]",
        "documentation": "Variable rate (euros)."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_VariableRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "VariableRateMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Total variable rate debt",
        "label": "Variable rate [member]",
        "documentation": "Variable rate."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_VariableRatePesosMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "VariableRatePesosMember",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsDetailsofQuantitativeDisclosureofDebtCashFlowMaturitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Variable rate (pesos)",
        "label": "Variable rate (pesos) [member]",
        "documentation": "Variable rate (pesos)."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_VesselMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "VesselMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationDetails",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofDiscountRatesandUsefulLivesCGUsPemexLogisticsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Vessel",
        "label": "Vessel [Member]",
        "documentation": "Vessel [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ecd_VstngDtFrValOfEqtyAwrdsGrntdAndVstdInCvrdYrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "VstngDtFrValOfEqtyAwrdsGrntdAndVstdInCvrdYrMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Vesting Date Fair Value of Equity Awards Granted and Vested in Covered Year [Member]",
        "terseLabel": "Vesting Date Fair Value of Equity Awards Granted and Vested in Covered Year"
       }
      }
     },
     "auth_ref": [
      "r508"
     ]
    },
    "ck0000932782_WeightedAverageFixedInterestRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "WeightedAverageFixedInterestRate",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Interest rate of derivative instrument",
        "label": "Weighted Average Fixed Interest Rate",
        "documentation": "Weighted average fixed interest rate."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_WeightedAverageTermOfDerivativeInstrument": {
     "xbrltype": "durationItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "WeightedAverageTermOfDerivativeInstrument",
     "presentation": [
      "http://mexicopetroleum.com/role/DerivativeFinancialInstrumentsAdditionalInformationDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Weighted average term of derivative instrument",
        "label": "Weighted Average Term Of Derivative Instrument",
        "documentation": "Weighted average term of derivative instrument."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_WelfareOilDuty": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "WelfareOilDuty",
     "crdr": "debit",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss": {
       "parentTag": "ck0000932782_OperatingLossIncomeAfterWelfareOilDuty",
       "weight": -1.0,
       "order": 2.0
      },
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperationsBeforeChangesInWorkingCapital",
       "weight": 1.0,
       "order": 2.0
      },
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxesandDutiesPayableDetail": {
       "parentTag": "ck0000932782_OtherTaxesAndDuties",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofCashFlows",
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss",
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesSummaryofIncomeTaxesandDutiesPayableDetail",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Welfare oil duty",
        "label": "Welfare Oil Duty",
        "documentation": "Welfare Oil Duty"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_WelfareOilDutyLiability": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "WelfareOilDutyLiability",
     "crdr": "credit",
     "presentation": [
      "http://mexicopetroleum.com/role/IncomeTaxesandDutiesWelfareOilDutyNarrativeDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Welfare oil duty liability",
        "label": "Welfare Oil Duty Liability",
        "documentation": "Welfare Oil Duty Liability"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_WellsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "WellsMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Wells",
        "label": "Wells [member]",
        "documentation": "Wells."
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_WellsUnassignedToReserveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "WellsUnassignedToReserveMember",
     "presentation": [
      "http://mexicopetroleum.com/role/IntangibleAssetsNetScheduleofIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Wells unassigned to a reserve:",
        "label": "Wells unassigned to reserve [member]",
        "documentation": "Wells unassigned to reserve [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ck0000932782_WintershallDeaMexicoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://mexicopetroleum.com/20251231",
     "localname": "WintershallDeaMexicoMember",
     "presentation": [
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetAdditionalInformationEECsDetails"
     ],
     "lang": {
      "en-us": {
       "role": {
        "terseLabel": "Wintershall Dea M\u00e9xico",
        "label": "Wintershall Dea M\u00e9xico [Member]",
        "documentation": "Wintershall Dea M\u00e9xico"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_WritedownsReversalsOfPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "WritedownsReversalsOfPropertyPlantAndEquipment",
     "calculation": {
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss": {
       "parentTag": "ifrs-full_GrossProfit",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://mexicopetroleum.com/role/ConsolidatedStatementsofComprehensiveIncomeLoss",
      "http://mexicopetroleum.com/role/SegmentFinancialInformationCondensedFinancialInformationofSegmentsafterEliminationofUnrealizedIntersegmentGainLossDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetScheduleofPropertyPlantandEquipmentDetail",
      "http://mexicopetroleum.com/role/WellsPipelinesPropertiesPlantandEquipmentNetSummaryofNetImpairmentPemexExplorationandProductionDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "negatedTerseLabel": "(Impairment) of wells, pipelines, properties, plant and equipment, net",
        "negatedLabel": "(Impairment), net",
        "label": "Write-downs (reversals of write-downs) of property, plant and equipment"
       }
      }
     },
     "auth_ref": [
      "r383"
     ]
    },
    "ecd_YrEndFrValOfEqtyAwrdsGrntdInCvrdYrOutsdngAndUnvstdMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/ecd/2025",
     "localname": "YrEndFrValOfEqtyAwrdsGrntdInCvrdYrOutsdngAndUnvstdMember",
     "presentation": [
      "http://xbrl.sec.gov/ecd/role/PvpDisclosure"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Year-end Fair Value of Equity Awards Granted in Covered Year that are Outstanding and Unvested [Member]",
        "terseLabel": "Year-end Fair Value of Equity Awards Granted in Covered Year that are Outstanding and Unvested"
       }
      }
     },
     "auth_ref": [
      "r506"
     ]
    }
   }
  }
 },
 "std_ref": {
  "r0": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Form 20-F",
   "Number": "Part II",
   "Section": "Item 18",
   "Subparagraph": "(Instruction 2)",
   "Publisher": "SEC"
  },
  "r1": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "10",
   "IssueDate": "2025-01-01",
   "Paragraph": "21",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=10&code=ifrs-tx-2025-en-r&anchor=para_21&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r2": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "10",
   "IssueDate": "2025-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=10&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IAS10_g17-22_TI",
   "URIDate": "2025-03-27"
  },
  "r3": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "79",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2025-en-r&anchor=para_79&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r4": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "81",
   "Subparagraph": "ab",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2025-en-r&anchor=para_81_ab&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r5": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "81",
   "Subparagraph": "c",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2025-en-r&anchor=para_81_c_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r6": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "81",
   "Subparagraph": "c",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2025-en-r&anchor=para_81_c_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r7": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "81",
   "Subparagraph": "g",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2025-en-r&anchor=para_81_g_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r8": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "81",
   "Subparagraph": "g",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2025-en-r&anchor=para_81_g_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r9": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "81",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2025-en-r&anchor=para_81_g&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r10": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IAS12_g79-88_TI",
   "URIDate": "2025-03-27"
  },
  "r11": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "73",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_73_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r12": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "73",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_73_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r13": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_73_e_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r14": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_73_e_iv&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r15": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "Clause": "v",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_73_e_v&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r16": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "Clause": "vi",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_73_e_vi&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r17": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "Clause": "viii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_73_e_viii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r18": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_73_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r19": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "73",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_73&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r20": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "75",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_75_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r21": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "77",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_77_f&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r22": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IAS16_g73-79_TI",
   "URIDate": "2025-03-27"
  },
  "r23": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "138",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_138&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r24": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "140",
   "Subparagraph": "a",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_140_a_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r25": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "140",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_140_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r26": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "141",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_141_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r27": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "141",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_141_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r28": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "141",
   "Subparagraph": "c",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_141_c_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r29": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "141",
   "Subparagraph": "c",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_141_c_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r30": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "141",
   "Subparagraph": "c",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_141_c_iii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r31": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "141",
   "Subparagraph": "c",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_141_c_iv&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r32": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "141",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_141_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r33": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "141",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_141_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r34": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "141",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_141_f&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r35": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "141",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_141_g&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r36": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "142",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_142&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r37": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "145",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_145_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r38": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "145",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_145&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r39": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Section": "Scope",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IAS19_g2-7_TI",
   "URIDate": "2025-03-27"
  },
  "r40": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "2",
   "IssueDate": "2025-01-01",
   "Paragraph": "36",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=2&code=ifrs-tx-2025-en-r&anchor=para_36_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r41": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "2",
   "IssueDate": "2025-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=2&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IAS02_g36-39_TI",
   "URIDate": "2025-03-27"
  },
  "r42": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "20",
   "IssueDate": "2025-01-01",
   "Paragraph": "39",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=20&code=ifrs-tx-2025-en-r&anchor=para_39_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r43": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "21",
   "IssueDate": "2025-01-01",
   "Paragraph": "52",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=21&code=ifrs-tx-2025-en-r&anchor=para_52_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r44": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "21",
   "IssueDate": "2025-01-01",
   "Paragraph": "A19",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=21&code=ifrs-tx-2025-en-r&anchor=para_A19_f&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r45": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2025-01-01",
   "Paragraph": "17",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2025-en-r&anchor=para_17_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r46": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2025-01-01",
   "Paragraph": "17",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2025-en-r&anchor=para_17_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r47": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2025-01-01",
   "Paragraph": "17",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2025-en-r&anchor=para_17_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r48": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2025-01-01",
   "Paragraph": "17",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2025-en-r&anchor=para_17_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r49": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2025-01-01",
   "Paragraph": "17",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2025-en-r&anchor=para_17&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r50": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2025-01-01",
   "Paragraph": "19",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2025-en-r&anchor=para_19&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r51": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2025-01-01",
   "Section": "Disclosures",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IAS24_g13-24_TI",
   "URIDate": "2025-03-27"
  },
  "r52": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "26",
   "IssueDate": "2025-01-01",
   "Paragraph": "35",
   "Subparagraph": "b",
   "Clause": "vi",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=26&code=ifrs-tx-2025-en-r&anchor=para_35_b_vi&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r53": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "26",
   "IssueDate": "2025-01-01",
   "Paragraph": "35",
   "Subparagraph": "b",
   "Clause": "viii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=26&code=ifrs-tx-2025-en-r&anchor=para_35_b_viii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r54": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2025-01-01",
   "Paragraph": "10",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2025-en-r&anchor=para_10&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r55": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2025-01-01",
   "Paragraph": "16",
   "Subparagraph": "b",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2025-en-r&anchor=para_16_b_iii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r56": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2025-01-01",
   "Paragraph": "16",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2025-en-r&anchor=para_16_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r57": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2025-01-01",
   "Paragraph": "17",
   "Subparagraph": "b",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2025-en-r&anchor=para_17_b_iii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r58": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2025-01-01",
   "Paragraph": "17",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2025-en-r&anchor=para_17_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r59": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2025-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IAS27_g15-17_TI",
   "URIDate": "2025-03-27"
  },
  "r60": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2025-01-01",
   "Paragraph": "126",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2025-en-r&anchor=para_126&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r61": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2025-01-01",
   "Paragraph": "130",
   "Subparagraph": "d",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2025-en-r&anchor=para_130_d_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r62": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2025-01-01",
   "Paragraph": "130",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2025-en-r&anchor=para_130_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r63": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2025-01-01",
   "Paragraph": "130",
   "Subparagraph": "f",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2025-en-r&anchor=para_130_f_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r64": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2025-01-01",
   "Paragraph": "130",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2025-en-r&anchor=para_130&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r65": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2025-01-01",
   "Paragraph": "134",
   "Subparagraph": "e",
   "Clause": "iiA",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2025-en-r&anchor=para_134_e_iiA&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r66": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2025-01-01",
   "Paragraph": "84",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2025-en-r&anchor=para_84_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r67": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2025-01-01",
   "Paragraph": "84",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2025-en-r&anchor=para_84&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r68": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2025-01-01",
   "Paragraph": "86",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2025-en-r&anchor=para_86&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r69": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2025-01-01",
   "Paragraph": "88",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2025-en-r&anchor=para_88&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r70": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2025-01-01",
   "Paragraph": "118",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2025-en-r&anchor=para_118_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r71": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2025-01-01",
   "Paragraph": "118",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2025-en-r&anchor=para_118_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r72": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2025-01-01",
   "Paragraph": "118",
   "Subparagraph": "e",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2025-en-r&anchor=para_118_e_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r73": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2025-01-01",
   "Paragraph": "118",
   "Subparagraph": "e",
   "Clause": "vi",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2025-en-r&anchor=para_118_e_vi&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r74": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2025-01-01",
   "Paragraph": "118",
   "Subparagraph": "e",
   "Clause": "vii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2025-en-r&anchor=para_118_e_vii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r75": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2025-01-01",
   "Paragraph": "118",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2025-en-r&anchor=para_118_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r76": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2025-01-01",
   "Paragraph": "118",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2025-en-r&anchor=para_118&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r77": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2025-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IAS38_g118-128_TI",
   "URIDate": "2025-03-27"
  },
  "r78": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "40",
   "IssueDate": "2025-01-01",
   "Paragraph": "32A",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=40&code=ifrs-tx-2025-en-r&anchor=para_32A&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r79": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "40",
   "IssueDate": "2025-01-01",
   "Paragraph": "76",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=40&code=ifrs-tx-2025-en-r&anchor=para_76&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r80": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "40",
   "IssueDate": "2025-01-01",
   "Paragraph": "79",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=40&code=ifrs-tx-2025-en-r&anchor=para_79_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r81": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "40",
   "IssueDate": "2025-01-01",
   "Paragraph": "79",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=40&code=ifrs-tx-2025-en-r&anchor=para_79_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r82": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "41",
   "IssueDate": "2025-01-01",
   "Paragraph": "50",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=41&code=ifrs-tx-2025-en-r&anchor=para_50&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r83": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "41",
   "IssueDate": "2025-01-01",
   "Paragraph": "54",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=41&code=ifrs-tx-2025-en-r&anchor=para_54_f&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r84": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "10",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_10&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r85": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "25",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_25&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r86": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "28",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_28&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r87": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "31",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_31&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r88": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "35",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_35&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r89": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "44H",
   "Subparagraph": "b",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_44H_b_iii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r90": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "45",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_45&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r91": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "50",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_50_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r92": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "28",
   "Subparagraph": "f",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=8&code=ifrs-tx-2025-en-r&anchor=para_28_f_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r93": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "29",
   "Subparagraph": "c",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=8&code=ifrs-tx-2025-en-r&anchor=para_29_c_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r94": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "30",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=8&code=ifrs-tx-2025-en-r&anchor=para_30_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r95": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "39",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=8&code=ifrs-tx-2025-en-r&anchor=para_39&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r96": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "49",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=8&code=ifrs-tx-2025-en-r&anchor=para_49_b_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r97": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "24",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=1&code=ifrs-tx-2025-en-r&anchor=para_24_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r98": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "24",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=1&code=ifrs-tx-2025-en-r&anchor=para_24_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r99": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "32",
   "Subparagraph": "a",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=1&code=ifrs-tx-2025-en-r&anchor=para_32_a_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r100": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "32",
   "Subparagraph": "a",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=1&code=ifrs-tx-2025-en-r&anchor=para_32_a_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r101": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "10",
   "IssueDate": "2025-01-01",
   "Paragraph": "22",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=10&code=ifrs-tx-2025-en-r&anchor=para_22&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r102": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "12",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_12_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r103": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "12",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_12_f&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r104": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "19B",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_19B_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r105": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "21",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_21_b_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r106": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B12",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B12_b_i&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r107": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B12",
   "Subparagraph": "b",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B12_b_ii&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r108": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B12",
   "Subparagraph": "b",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B12_b_iii&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r109": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B12",
   "Subparagraph": "b",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B12_b_iv&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r110": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B12",
   "Subparagraph": "b",
   "Clause": "ix",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B12_b_ix&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r111": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B12",
   "Subparagraph": "b",
   "Clause": "v",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B12_b_v&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r112": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B12",
   "Subparagraph": "b",
   "Clause": "viii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B12_b_viii&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r113": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B13",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B13_a&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r114": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B13",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B13_d&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r115": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B13",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B13_f&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r116": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B13",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B13_g&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r117": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B4",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B4_a&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r118": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Section": "Objective",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IFRS12_g1-4_TI",
   "URIDate": "2025-03-27"
  },
  "r119": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2025-01-01",
   "Paragraph": "93",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2025-en-r&anchor=para_93_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r120": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2025-01-01",
   "Paragraph": "93",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2025-en-r&anchor=para_93_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r121": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2025-01-01",
   "Paragraph": "93",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2025-en-r&anchor=para_93_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r122": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2025-01-01",
   "Paragraph": "93",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2025-en-r&anchor=para_93_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r123": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2025-01-01",
   "Paragraph": "93",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2025-en-r&anchor=para_93&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r124": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "14",
   "IssueDate": "2025-01-01",
   "Paragraph": "33",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=14&code=ifrs-tx-2025-en-r&anchor=para_33_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r125": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "15",
   "IssueDate": "2025-01-01",
   "Paragraph": "105",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2025-en-r&anchor=para_105&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r126": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "15",
   "IssueDate": "2025-01-01",
   "Paragraph": "113",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2025-en-r&anchor=para_113_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r127": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "15",
   "IssueDate": "2025-01-01",
   "Paragraph": "114",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2025-en-r&anchor=para_114&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r128": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "15",
   "IssueDate": "2025-01-01",
   "Paragraph": "115",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2025-en-r&anchor=para_115&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r129": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "15",
   "IssueDate": "2025-01-01",
   "Paragraph": "116",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2025-en-r&anchor=para_116_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r130": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "15",
   "IssueDate": "2025-01-01",
   "Paragraph": "120",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2025-en-r&anchor=para_120_b_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r131": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "15",
   "IssueDate": "2025-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IFRS15_g110-129_TI",
   "URIDate": "2025-03-27"
  },
  "r132": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "15",
   "IssueDate": "2025-01-01",
   "Section": "Presentation",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IFRS15_g105-109_TI",
   "URIDate": "2025-03-27"
  },
  "r133": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "33",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2025-en-r&anchor=para_33&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r134": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "47",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2025-en-r&anchor=para_47_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r135": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "47",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2025-en-r&anchor=para_47_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r136": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "53",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2025-en-r&anchor=para_53_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r137": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "53",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2025-en-r&anchor=para_53_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r138": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "53",
   "Subparagraph": "h",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2025-en-r&anchor=para_53_h&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r139": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "53",
   "Subparagraph": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2025-en-r&anchor=para_53_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r140": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "53",
   "Subparagraph": "j",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2025-en-r&anchor=para_53_j&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r141": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "53",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2025-en-r&anchor=para_53&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r142": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "94",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2025-en-r&anchor=para_94&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r143": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "95",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2025-en-r&anchor=para_95&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r144": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "97",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2025-en-r&anchor=para_97&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r145": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IFRS16_g51-60_TI",
   "URIDate": "2025-03-27"
  },
  "r146": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Section": "Presentation",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IFRS16_g47-50_TI",
   "URIDate": "2025-03-27"
  },
  "r147": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2025-01-01",
   "Paragraph": "109",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2025-en-r&anchor=para_109&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r148": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2025-01-01",
   "Paragraph": "109A",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2025-en-r&anchor=para_109A&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r149": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2025-01-01",
   "Paragraph": "113",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2025-en-r&anchor=para_113_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r150": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2025-01-01",
   "Paragraph": "120",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2025-en-r&anchor=para_120&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r151": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2025-01-01",
   "Paragraph": "124",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2025-en-r&anchor=para_124&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r152": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2025-01-01",
   "Paragraph": "125",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2025-en-r&anchor=para_125&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r153": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2025-01-01",
   "Paragraph": "127",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2025-en-r&anchor=para_127&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r154": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2025-01-01",
   "Paragraph": "128",
   "Subparagraph": "a",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2025-en-r&anchor=para_128_a_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r155": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2025-01-01",
   "Paragraph": "128",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2025-en-r&anchor=para_128_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r156": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2025-01-01",
   "Paragraph": "132",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2025-en-r&anchor=para_132_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r157": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2025-01-01",
   "Paragraph": "C32",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2025-en-r&anchor=para_C32&doctype=Appendix&subtype=C",
   "URIDate": "2025-03-27"
  },
  "r158": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "2",
   "IssueDate": "2025-01-01",
   "Paragraph": "45",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=2&code=ifrs-tx-2025-en-r&anchor=para_45_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r159": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "2",
   "IssueDate": "2025-01-01",
   "Paragraph": "45",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=2&code=ifrs-tx-2025-en-r&anchor=para_45&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r160": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2025-01-01",
   "Paragraph": "B64",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2025-en-r&anchor=para_B64&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r161": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2025-01-01",
   "Paragraph": "B67",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2025-en-r&anchor=para_B67_c&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r162": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2025-01-01",
   "Paragraph": "B67",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2025-en-r&anchor=para_B67_d&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r163": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2025-01-01",
   "Paragraph": "B67",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2025-en-r&anchor=para_B67&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r164": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "5",
   "IssueDate": "2025-01-01",
   "Paragraph": "33",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=5&code=ifrs-tx-2025-en-r&anchor=para_33_b_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r165": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "6",
   "IssueDate": "2025-01-01",
   "Paragraph": "24",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=6&code=ifrs-tx-2025-en-r&anchor=para_24_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r166": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "6",
   "IssueDate": "2025-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=6&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IFRS06_g23-25_TI",
   "URIDate": "2025-03-27"
  },
  "r167": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "21C",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_21C&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r168": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "23A",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_23A&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r169": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "23B",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_23B_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r170": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "23B",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_23B_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r171": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "24A",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_24A&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r172": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "24B",
   "Subparagraph": "a",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_24B_a_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r173": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "25",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_25&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r174": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "31",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_31&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r175": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "33",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_33&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r176": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "34",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_34&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r177": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "35H",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_35H&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r178": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "35I",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_35I&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r179": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "35K",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_35K&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r180": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "35M",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_35M&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r181": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "36",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_36&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r182": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "39",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_39_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r183": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "42D",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_42D_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r184": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "42E",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_42E_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r185": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "42I",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_42I&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r186": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "6",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_6&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r187": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "7",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_7&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r188": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "8",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_8_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r189": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "8",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_8_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r190": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "8",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_8_f&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r191": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "8",
   "Subparagraph": "h",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_8_h&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r192": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "8",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_8&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r193": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "B52",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_B52&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r194": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Section": "Defined terms",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&doctype=Appendix&subtype=A&dita_xref=IFRS07_APPA_TI",
   "URIDate": "2025-03-27"
  },
  "r195": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Section": "Scope",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IFRS07_g3-5A_TI",
   "URIDate": "2025-03-27"
  },
  "r196": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "23",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_23_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r197": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "23",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_23_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r198": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "23",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_23_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r199": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "23",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_23_g&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r200": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "23",
   "Subparagraph": "h",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_23_h&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r201": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "23",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_23&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r202": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "28",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_28_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r203": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "28",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_28_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r204": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "28",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_28_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r205": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "28",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_28_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r206": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "28",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_28_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r207": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "28",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_28&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r208": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "32",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_32&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r209": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "33",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_33_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r210": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "33",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_33_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r211": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "33",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_33&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r212": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "34",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_34&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r213": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IFRS08_g20-24_TI",
   "URIDate": "2025-03-27"
  },
  "r214": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "9",
   "IssueDate": "2025-01-01",
   "Paragraph": "7.2.34",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=9&code=ifrs-tx-2025-en-r&anchor=para_7.2.34&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r215": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "9",
   "IssueDate": "2025-01-01",
   "Paragraph": "7.2.42",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=9&code=ifrs-tx-2025-en-r&anchor=para_7.2.42&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r216": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "04",
   "Paragraph": "a",
   "Publisher": "SEC"
  },
  "r217": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "17",
   "Paragraph": "Column A",
   "Publisher": "SEC"
  },
  "r218": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "17",
   "Paragraph": "Column B",
   "Publisher": "SEC"
  },
  "r219": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "17",
   "Paragraph": "Column C",
   "Publisher": "SEC"
  },
  "r220": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "17",
   "Paragraph": "Column D",
   "Publisher": "SEC"
  },
  "r221": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "17",
   "Paragraph": "Column E",
   "Publisher": "SEC"
  },
  "r222": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "17",
   "Paragraph": "Column F",
   "Publisher": "SEC"
  },
  "r223": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column E",
   "Footnote": "4",
   "Publisher": "SEC"
  },
  "r224": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "13",
   "Subsection": "01",
   "Paragraph": "a",
   "Subparagraph": "(4)(i)",
   "Publisher": "SEC"
  },
  "r225": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "13",
   "Subsection": "01",
   "Paragraph": "a",
   "Subparagraph": "(4)(iii)(A)",
   "Publisher": "SEC"
  },
  "r226": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "13",
   "Subsection": "01",
   "Paragraph": "a",
   "Subparagraph": "(4)(iii)(B)",
   "Publisher": "SEC"
  },
  "r227": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "13",
   "Subsection": "01",
   "Paragraph": "a",
   "Subparagraph": "(4)(iv)",
   "Publisher": "SEC"
  },
  "r228": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "13",
   "Subsection": "02",
   "Paragraph": "a",
   "Subparagraph": "(4)(i)",
   "Publisher": "SEC"
  },
  "r229": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "13",
   "Subsection": "02",
   "Paragraph": "a",
   "Subparagraph": "(4)(iii)(A)",
   "Publisher": "SEC"
  },
  "r230": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "13",
   "Subsection": "02",
   "Paragraph": "a",
   "Subparagraph": "(4)(iii)(B)",
   "Publisher": "SEC"
  },
  "r231": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "13",
   "Subsection": "02",
   "Paragraph": "a",
   "Subparagraph": "(4)(iii)(C)",
   "Publisher": "SEC"
  },
  "r232": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "13",
   "Subsection": "02",
   "Paragraph": "a",
   "Subparagraph": "(4)(iv)",
   "Publisher": "SEC"
  },
  "r233": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Staff Accounting Bulletin (SAB)",
   "Number": "Topic 11",
   "Section": "L",
   "Publisher": "SEC"
  },
  "r234": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Staff Accounting Bulletin (SAB)",
   "Number": "Topic 11",
   "Section": "M",
   "Paragraph": "Question 2",
   "Publisher": "SEC"
  },
  "r235": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2026-01-01",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "30A",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_30A_b_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r236": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "103",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_103&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r237": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "104",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_104&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r238": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "105",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_105_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r239": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "108",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_108_b_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r240": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "115",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_115_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r241": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "115",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_115_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r242": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "115",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_115_g&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r243": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "115",
   "Subparagraph": "h",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_115_h&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r244": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "115",
   "Subparagraph": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_115_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r245": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "115",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_115&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r246": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "122",
   "Subparagraph": "a",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_122_a_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r247": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "122",
   "Subparagraph": "a",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_122_a_iii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r248": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "122",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_122_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r249": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "124",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_124_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r250": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "124",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_124_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r251": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "124",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_124&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r252": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "133",
   "Subparagraph": "a",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_133_a_iii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r253": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "133",
   "Subparagraph": "a",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_133_a_iv&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r254": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "164",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_164_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r255": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "168",
   "Subparagraph": "b",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_168_b_iii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r256": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "169",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_169&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r257": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "176",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_176&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r258": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "178",
   "Subparagraph": "f",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_178_f_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r259": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "179",
   "Subparagraph": "c",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_179_c_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r260": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "180",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_180_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r261": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "184",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_184&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r262": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "186",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_186_b_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r263": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "190",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_190&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r264": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "192",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_192&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r265": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "194",
   "Subparagraph": "c",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_194_c_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r266": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "194",
   "Subparagraph": "c",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_194_c_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r267": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "194",
   "Subparagraph": "f",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_194_f_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r268": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "194",
   "Subparagraph": "f",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_194_f_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r269": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "194",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_194_f&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r270": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "200",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_200_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r271": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "200",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_200_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r272": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "200",
   "Subparagraph": "e",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_200_e_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r273": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "200",
   "Subparagraph": "e",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_200_e_iv&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r274": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "200",
   "Subparagraph": "e",
   "Clause": "v",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_200_e_v&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r275": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "200",
   "Subparagraph": "e",
   "Clause": "vi",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_200_e_vi&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r276": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "200",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_200_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r277": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "200",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_200&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r278": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "202",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_202_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r279": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "204",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_204&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r280": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "206",
   "Subparagraph": "a",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_206_a_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r281": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "206",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_206_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r282": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "207",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_207_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r283": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "207",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_207_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r284": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "207",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_207_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r285": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "207",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_207_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r286": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "207",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_207_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r287": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "207",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_207_f&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r288": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "208",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_208&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r289": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "216",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_216_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r290": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "218",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_218_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r291": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "223",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_223_f&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r292": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "227",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_227&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r293": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "231",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_231&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r294": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "24",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_24_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r295": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "24",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_24_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r296": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "250",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_250&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r297": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "254",
   "Subparagraph": "e",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_254_e_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r298": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "257",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_257_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r299": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "257",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_257&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r300": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "259",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_259&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r301": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "263",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_263_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r302": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "263",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_263_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r303": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "263",
   "Subparagraph": "e",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_263_e_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r304": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "263",
   "Subparagraph": "e",
   "Clause": "vi",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_263_e_vi&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r305": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "263",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_263_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r306": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "263",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_263&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r307": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "269",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_269&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r308": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "271",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_271_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r309": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "271",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_271_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r310": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "273",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_273&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r311": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "274",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_274_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r312": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "28",
   "Subparagraph": "a",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_28_a_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r313": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "28",
   "Subparagraph": "a",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_28_a_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r314": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "31",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_31&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r315": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "35",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_35&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r316": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "37",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_37&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r317": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "43",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_43&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r318": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "44",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_44_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r319": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "44",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_44_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r320": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "44",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_44_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r321": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "44",
   "Subparagraph": "e",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_44_e_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r322": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "44",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_44&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r323": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "60",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_60&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r324": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "61",
   "Subparagraph": "a",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_61_a_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r325": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "64A",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_64A_b_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r326": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "64B",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_64B&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r327": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "66",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_66&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r328": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "70",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_70&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r329": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "71",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_71&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r330": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "72",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_72_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r331": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "75",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_75_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r332": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "88",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_88_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r333": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "95",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_95_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r334": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "95",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_95_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r335": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "95",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_95&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r336": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "B13",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_B13&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r337": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "B9",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_B9_b&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r338": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "B9",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_B9_f&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r339": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expired 2023-01-01",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "37",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2017-en-b&anchor=para_37&doctype=Standard&book=b",
   "URIDate": "2025-03-27"
  },
  "r340": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2026-01-01",
   "Name": "IFRS",
   "Number": "9",
   "IssueDate": "2025-01-01",
   "Paragraph": "7.2.49",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=9&code=ifrs-tx-2025-en-r&anchor=para_7.2.49&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r341": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "104",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_104&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r342": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "106",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_106_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r343": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "106",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_106_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r344": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "106",
   "Subparagraph": "d",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_106_d_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r345": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "106",
   "Subparagraph": "d",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_106_d_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r346": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "106",
   "Subparagraph": "d",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_106_d_iii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r347": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "106",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_106&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r348": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "117",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_117&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r349": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "35",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_35&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r350": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "54",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_54_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r351": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "54",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_54_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r352": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "54",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_54_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r353": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "54",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_54_g&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r354": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "54",
   "Subparagraph": "h",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_54_h&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r355": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "54",
   "Subparagraph": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_54_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r356": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "54",
   "Subparagraph": "l",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_54_l&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r357": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "54",
   "Subparagraph": "n",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_54_n&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r358": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "54",
   "Subparagraph": "o",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_54_o&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r359": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "54",
   "Subparagraph": "q",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_54_q&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r360": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "54",
   "Subparagraph": "r",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_54_r&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r361": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "55",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_55&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r362": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "56",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_56&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r363": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "61",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_61_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r364": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "61",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_61&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r365": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "66",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_66&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r366": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "69",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_69&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r367": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "7",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_7&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r368": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "78",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_78_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r369": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "78",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_78_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r370": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "81A",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_81A_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r371": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "81A",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_81A_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r372": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "81A",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_81A_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r373": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "81B",
   "Subparagraph": "a",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_81B_a_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r374": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "81B",
   "Subparagraph": "a",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_81B_a_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r375": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "81B",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_81B_b_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r376": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "81B",
   "Subparagraph": "b",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_81B_b_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r377": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "82",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_82_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r378": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "82",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_82_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r379": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "82",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_82_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r380": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "82",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_82_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r381": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "90",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_90&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r382": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "91",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_91_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r383": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "98",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_98_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r384": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "99",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_99&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r385": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "10",
   "IssueDate": "2025-01-01",
   "Paragraph": "22",
   "Subparagraph": "h",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=10&code=ifrs-tx-2025-en-r&anchor=para_22_h&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r386": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "80",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2025-en-r&anchor=para_80_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r387": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "37",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_37_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r388": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "138",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_138_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r389": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "138",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_138_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r390": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "142",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_142_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r391": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "142",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_142_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r392": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "147",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_147_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r393": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2025-01-01",
   "Paragraph": "21",
   "Subparagraph": "h",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2025-en-r&anchor=para_21_h&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r394": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "32",
   "IssueDate": "2025-01-01",
   "Paragraph": "IE33",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=32&code=ifrs-tx-2025-en-r&anchor=para_IE33&doctype=Illustrative%20Examples",
   "URIDate": "2025-03-27"
  },
  "r395": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2025-01-01",
   "Paragraph": "127",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2025-en-r&anchor=para_127&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r396": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2025-01-01",
   "Paragraph": "70",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2025-en-r&anchor=para_70&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r397": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "14",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_14_f&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r398": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "16",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_16_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r399": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "17",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_17_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r400": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "17",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_17_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r401": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "17",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_17_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r402": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "50",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_50_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r403": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Section": "A Statement of cash flows for an entity other than a financial institution",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&doctype=Illustrative%20Examples&dita_xref=IAS07_IE_A_TI",
   "URIDate": "2025-03-27"
  },
  "r404": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B10",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B10_b&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r405": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2025-01-01",
   "Paragraph": "94",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2025-en-r&anchor=para_94&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r406": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2025-01-01",
   "Paragraph": "B6",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2025-en-r&anchor=para_B6&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r407": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2025-01-01",
   "Paragraph": "IE60",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2025-en-r&anchor=para_IE60&doctype=Illustrative%20Examples",
   "URIDate": "2025-03-27"
  },
  "r408": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "13",
   "IssueDate": "2025-01-01",
   "Paragraph": "IE63",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=13&code=ifrs-tx-2025-en-r&anchor=para_IE63&doctype=Illustrative%20Examples",
   "URIDate": "2025-03-27"
  },
  "r409": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "15",
   "IssueDate": "2025-01-01",
   "Paragraph": "B89",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2025-en-r&anchor=para_B89_a&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r410": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "15",
   "IssueDate": "2025-01-01",
   "Paragraph": "B89",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2025-en-r&anchor=para_B89_b&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r411": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "15",
   "IssueDate": "2025-01-01",
   "Paragraph": "B89",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2025-en-r&anchor=para_B89_d&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r412": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "15",
   "IssueDate": "2025-01-01",
   "Paragraph": "B89",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2025-en-r&anchor=para_B89_f&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r413": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "53",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2025-en-r&anchor=para_53&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r414": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2025-01-01",
   "Paragraph": "113",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2025-en-r&anchor=para_113_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r415": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2025-01-01",
   "Paragraph": "96",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2025-en-r&anchor=para_96_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r416": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2025-01-01",
   "Paragraph": "96",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2025-en-r&anchor=para_96_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r417": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "17",
   "IssueDate": "2025-01-01",
   "Paragraph": "96",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=17&code=ifrs-tx-2025-en-r&anchor=para_96_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r418": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "35N",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_35N&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r419": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "40",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_40_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r420": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "6",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_6&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r421": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "B11",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_B11_a&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r422": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "B11",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_B11&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r423": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "B35",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_B35_a&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r424": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "B35",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_B35_e&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r425": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "B35",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_B35_g&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r426": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "B35",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_B35&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r427": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "IG20D",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_IG20D&doctype=Implementation%20Guidance",
   "URIDate": "2025-03-27"
  },
  "r428": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "IG31A",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_IG31A&doctype=Implementation%20Guidance",
   "URIDate": "2025-03-27"
  },
  "r429": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "IG32",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_IG32&doctype=Implementation%20Guidance",
   "URIDate": "2025-03-27"
  },
  "r430": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "IG40B",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_IG40B&doctype=Implementation%20Guidance",
   "URIDate": "2025-03-27"
  },
  "r431": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "23",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_23&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r432": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "28",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_28_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r433": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "28",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_28&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r434": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "IG4",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_IG4&doctype=Implementation%20Guidance",
   "URIDate": "2025-03-27"
  },
  "r435": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "103",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_103_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r436": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "103",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_103_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r437": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "103",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_103_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r438": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "103",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_103_f&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r439": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "115",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_115&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r440": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "191",
   "Subparagraph": "h",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_191_h&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r441": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "193",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_193_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r442": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "208",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_208_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r443": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "234",
   "Subparagraph": "h",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_234_h&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r444": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "251",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_251&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r445": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "B9",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_B9_b&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r446": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "B9",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_B9_f&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r447": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "102",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_102&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r448": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "103",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_103&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r449": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "68",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_68&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r450": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "78",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_78_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r451": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "78",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_78_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r452": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "IG6",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_IG6&doctype=Implementation%20Guidance",
   "URIDate": "2025-03-27"
  },
  "r453": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12"
  },
  "r454": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b-2"
  },
  "r455": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 10-K",
   "Number": "249",
   "Section": "310"
  },
  "r456": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Number": "249",
   "Section": "220",
   "Subsection": "f"
  },
  "r457": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16",
   "Subsection": "J",
   "Paragraph": "a"
  },
  "r458": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K"
  },
  "r459": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "b",
   "Paragraph": "1"
  },
  "r460": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "b",
   "Paragraph": "1",
   "Subparagraph": "i"
  },
  "r461": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "b",
   "Paragraph": "1",
   "Subparagraph": "ii"
  },
  "r462": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "b",
   "Paragraph": "1",
   "Subparagraph": "iii"
  },
  "r463": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "b",
   "Paragraph": "2"
  },
  "r464": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "c",
   "Paragraph": "1"
  },
  "r465": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "c",
   "Paragraph": "2"
  },
  "r466": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "c",
   "Paragraph": "2",
   "Subparagraph": "i"
  },
  "r467": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "c",
   "Paragraph": "2",
   "Subparagraph": "ii"
  },
  "r468": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "c",
   "Paragraph": "2",
   "Subparagraph": "iii"
  },
  "r469": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1"
  },
  "r470": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i"
  },
  "r471": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "A"
  },
  "r472": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "B"
  },
  "r473": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "C"
  },
  "r474": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "D"
  },
  "r475": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "E"
  },
  "r476": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "ii"
  },
  "r477": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "iii"
  },
  "r478": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "2"
  },
  "r479": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Number": "249",
   "Section": "240",
   "Subsection": "f"
  },
  "r480": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a"
  },
  "r481": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1"
  },
  "r482": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "i"
  },
  "r483": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "ii"
  },
  "r484": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iii"
  },
  "r485": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iv"
  },
  "r486": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "v"
  },
  "r487": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "2"
  },
  "r488": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "3"
  },
  "r489": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "b"
  },
  "r490": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a"
  },
  "r491": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1"
  },
  "r492": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "i"
  },
  "r493": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "ii"
  },
  "r494": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iii"
  },
  "r495": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iv"
  },
  "r496": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "v"
  },
  "r497": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "2"
  },
  "r498": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "3"
  },
  "r499": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "b"
  },
  "r500": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Forms 10-K, 10-Q, 20-F",
   "Number": "240",
   "Section": "13",
   "Subsection": "a-1"
  },
  "r501": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v"
  },
  "r502": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "1"
  },
  "r503": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "ii"
  },
  "r504": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii"
  },
  "r505": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "B",
   "Clause": "1",
   "Subclause": "ii"
  },
  "r506": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1",
   "Subclause": "i"
  },
  "r507": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1",
   "Subclause": "ii"
  },
  "r508": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1",
   "Subclause": "iii"
  },
  "r509": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1",
   "Subclause": "iv"
  },
  "r510": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1",
   "Subclause": "v"
  },
  "r511": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1",
   "Subclause": "vi"
  },
  "r512": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iv"
  },
  "r513": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "vi"
  },
  "r514": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "3"
  },
  "r515": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "4"
  },
  "r516": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "i"
  },
  "r517": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "ii"
  },
  "r518": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "iii"
  },
  "r519": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "iv"
  },
  "r520": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "6"
  },
  "r521": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "6",
   "Subparagraph": "i"
  },
  "r522": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w"
  },
  "r523": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1"
  },
  "r524": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i"
  },
  "r525": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "A"
  },
  "r526": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "B"
  },
  "r527": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "C"
  },
  "r528": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "D"
  },
  "r529": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "E"
  },
  "r530": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "ii"
  },
  "r531": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "iii"
  },
  "r532": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "2"
  },
  "r533": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "1"
  },
  "r534": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2"
  },
  "r535": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "A"
  },
  "r536": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "C"
  },
  "r537": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "D"
  },
  "r538": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "E"
  },
  "r539": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2",
   "Subparagraph": "ii",
   "Sentence": "F"
  },
  "r540": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a"
  },
  "r541": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "1"
  },
  "r542": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "A"
  },
  "r543": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "B"
  },
  "r544": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "C"
  },
  "r545": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "D"
  },
  "r546": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "b",
   "Paragraph": "1"
  },
  "r547": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106"
  },
  "r548": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "b",
   "Paragraph": "1"
  },
  "r549": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "b",
   "Paragraph": "1",
   "Subparagraph": "i"
  },
  "r550": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "b",
   "Paragraph": "1",
   "Subparagraph": "ii"
  },
  "r551": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "b",
   "Paragraph": "1",
   "Subparagraph": "iii"
  },
  "r552": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "b",
   "Paragraph": "2"
  },
  "r553": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "c",
   "Paragraph": "1"
  },
  "r554": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "c",
   "Paragraph": "2"
  },
  "r555": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "c",
   "Paragraph": "2",
   "Subparagraph": "i"
  },
  "r556": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "c",
   "Paragraph": "2",
   "Subparagraph": "ii"
  },
  "r557": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "c",
   "Paragraph": "2",
   "Subparagraph": "iii"
  },
  "r558": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "402",
   "Number": "229",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "C",
   "Clause": "1"
  },
  "r559": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "A",
   "Number": "229"
  },
  "r560": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "B",
   "Clause": "1",
   "Number": "229"
  },
  "r561": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii",
   "Sentence": "B",
   "Clause": "1",
   "Subclause": "i",
   "Number": "229"
  },
  "r562": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-T",
   "Number": "232",
   "Section": "405"
  },
  "r563": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "405"
  },
  "r564": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "81",
   "Subparagraph": "g",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=12&code=ifrs-tx-2025-en-r&anchor=para_81_g_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r565": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "37",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_37&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r566": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "73",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_73_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r567": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_73_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r568": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "135",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_135_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r569": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "141",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_141_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r570": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "144",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_144&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r571": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "145",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_145&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r572": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "5",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_5&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r573": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "57",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_57_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r574": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "20",
   "IssueDate": "2025-01-01",
   "Paragraph": "28",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=20&code=ifrs-tx-2025-en-r&anchor=para_28&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r575": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "21",
   "IssueDate": "2025-01-01",
   "Paragraph": "52",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=21&code=ifrs-tx-2025-en-r&anchor=para_52_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r576": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2025-01-01",
   "Paragraph": "127",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2025-en-r&anchor=para_127&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r577": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "37",
   "IssueDate": "2025-01-01",
   "Paragraph": "88",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=37&code=ifrs-tx-2025-en-r&anchor=para_88&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r578": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2025-01-01",
   "Paragraph": "118",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2025-en-r&anchor=para_118_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r579": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2025-01-01",
   "Paragraph": "118",
   "Subparagraph": "e",
   "Clause": "viii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2025-en-r&anchor=para_118_e_viii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r580": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2025-01-01",
   "Paragraph": "118",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2025-en-r&anchor=para_118_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r581": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2025-01-01",
   "Paragraph": "118",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2025-en-r&anchor=para_118&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r582": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2025-01-01",
   "Paragraph": "119",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2025-en-r&anchor=para_119&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r583": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "40",
   "IssueDate": "2025-01-01",
   "Paragraph": "79",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=40&code=ifrs-tx-2025-en-r&anchor=para_79_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r584": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "41",
   "IssueDate": "2025-01-01",
   "Paragraph": "41",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=41&code=ifrs-tx-2025-en-r&anchor=para_41&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r585": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "41",
   "IssueDate": "2025-01-01",
   "Paragraph": "54",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=41&code=ifrs-tx-2025-en-r&anchor=para_54_f&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r586": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "14",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_14&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r587": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "17",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_17&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r588": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "20",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_20_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r589": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "20",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_20_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r590": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "20",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_20&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r591": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "45",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_45&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r592": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "39",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_39&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r593": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "41",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_41&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r594": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "7",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_7&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r595": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "12",
   "Paragraph": "Column A",
   "Subparagraph": "(ii)",
   "Footnote": "2",
   "Publisher": "SEC"
  },
  "r596": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "12A",
   "Paragraph": "Column A",
   "Footnote": "2",
   "Publisher": "SEC"
  },
  "r597": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "12B",
   "Paragraph": "Column A",
   "Subparagraph": "(b)",
   "Footnote": "1",
   "Publisher": "SEC"
  },
  "r598": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "14",
   "Paragraph": "Column A",
   "Footnote": "2",
   "Publisher": "SEC"
  },
  "r599": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "13",
   "Subsection": "01",
   "Paragraph": "a",
   "Subparagraph": "(4)(i)",
   "Publisher": "SEC"
  },
  "r600": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "13",
   "Subsection": "01",
   "Paragraph": "a",
   "Subparagraph": "(4)(ii)",
   "Publisher": "SEC"
  },
  "r601": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "13",
   "Subsection": "01",
   "Paragraph": "a",
   "Subparagraph": "(4)(iii)",
   "Publisher": "SEC"
  },
  "r602": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "13",
   "Subsection": "01",
   "Paragraph": "a",
   "Subparagraph": "(4)(iv)",
   "Publisher": "SEC"
  },
  "r603": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "13",
   "Subsection": "02",
   "Paragraph": "a",
   "Subparagraph": "(4)(iv)",
   "Publisher": "SEC"
  },
  "r604": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Staff Accounting Bulletin (SAB)",
   "Number": "Topic 5",
   "Section": "Y",
   "Paragraph": "Question 2",
   "Publisher": "SEC"
  },
  "r605": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "10",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_10_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r606": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "102",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_102&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r607": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "103",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_103&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r608": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "106",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_106_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r609": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "108",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_108&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r610": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "112",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_112_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r611": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "117",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_117&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r612": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "20",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_20_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r613": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "35",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_35&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r614": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "55",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_55&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r615": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "78",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_78_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r616": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "78",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_78&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r617": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "85",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_85&doctype=Standard",
   "URIDate": "2025-03-27"
  }
 }
}