{
 "version": "2.2",
 "instance": {
  "d95578d20f.htm": {
   "nsprefix": "ypf",
   "nsuri": "http://www.ypf.com/20251231",
   "dts": {
    "inline": {
     "local": [
      "d95578d20f.htm"
     ]
    },
    "schema": {
     "local": [
      "ypf-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/exch/2025/exch-2025.xsd",
      "https://xbrl.sec.gov/naics/2025/naics-2025.xsd",
      "https://xbrl.sec.gov/sic/2025/sic-2025.xsd",
      "https://xbrl.sec.gov/stpr/2025/stpr-2025.xsd"
     ]
    },
    "definitionLink": {
     "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"
     ]
    }
   },
   "keyStandard": 411,
   "keyCustom": 472,
   "axisStandard": 50,
   "axisCustom": 19,
   "memberStandard": 74,
   "memberCustom": 401,
   "hidden": {
    "total": 4,
    "http://xbrl.sec.gov/dei/2025": 4
   },
   "contextCount": 1928,
   "entityCount": 1,
   "segmentCount": 531,
   "elementCount": 1861,
   "unitCount": 24,
   "baseTaxonomies": {
    "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full": 3452,
    "http://xbrl.sec.gov/dei/2025": 49,
    "http://fasb.org/srt/2025": 43,
    "http://xbrl.sec.gov/cyd/2025": 14,
    "http://xbrl.sec.gov/ecd/2025": 1
   },
   "report": {
    "R1": {
     "role": "http://www.ypf.com/role/CoverPage",
     "longName": "1001 - Document - Cover Page",
     "shortName": "Cover Page",
     "isDefault": "true",
     "groupType": "document",
     "subGroupType": "",
     "menuCat": "Cover",
     "order": "1",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "dei:DocumentType",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "dei:DocumentType",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R2": {
     "role": "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
     "longName": "1002 - Statement - Consolidated statements of financial position",
     "shortName": "Consolidated statements of financial position",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "2",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:IntangibleAssetsOtherThanGoodwill",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:InvestmentsInJointVenturesAccountedForUsingEquityMethod",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R3": {
     "role": "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome",
     "longName": "1003 - Statement - Consolidated statements of comprehensive income",
     "shortName": "Consolidated statements of comprehensive income",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "3",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:Revenue",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:GrossProfit",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R4": {
     "role": "http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity",
     "longName": "1004 - Statement - Consolidated statements of changes in shareholders' equity",
     "shortName": "Consolidated statements of changes in shareholders' equity",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "4",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2022",
      "name": "ifrs-full:Equity",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2022_IssuedCapitalMemberifrsfullComponentsOfEquityAxis",
      "name": "ifrs-full:Equity",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R5": {
     "role": "http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquityParenthetical",
     "longName": "1005 - Statement - Consolidated statements of changes in shareholders' equity (Parenthetical)",
     "shortName": "Consolidated statements of changes in shareholders' equity (Parenthetical)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "parenthetical",
     "menuCat": "Statements",
     "order": "5",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:ReclassificationAdjustmentsOnExchangeDifferencesOnTranslationNetOfTax",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:ReclassificationAdjustmentsOnExchangeDifferencesOnTranslationNetOfTax",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R6": {
     "role": "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow",
     "longName": "1006 - Statement - Consolidated statements of cash flow",
     "shortName": "Consolidated statements of cash flow",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "",
     "menuCat": "Statements",
     "order": "6",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:ProfitLoss",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:ShareOfProfitLossOfContinuingOperationsOfAssociatesAndJointVenturesAccountedForUsingEquityMethod",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R7": {
     "role": "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlowsParenthetical",
     "longName": "1007 - Statement - Consolidated statements of cash flows (Parenthetical)",
     "shortName": "Consolidated statements of cash flows (Parenthetical)",
     "isDefault": "false",
     "groupType": "statement",
     "subGroupType": "parenthetical",
     "menuCat": "Statements",
     "order": "7",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:PaymentOfShortTermLeaseAndVariableCharge",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:PaymentOfShortTermLeaseAndVariableCharge",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R8": {
     "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": "8",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ecd:InsiderTrdPoliciesProcAdoptedFlag",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ecd:InsiderTrdPoliciesProcAdoptedFlag",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R9": {
     "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": "9",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "cyd:CybersecurityRiskManagementProcessesForAssessingIdentifyingAndManagingThreatsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "cyd:CybersecurityRiskManagementProcessesForAssessingIdentifyingAndManagingThreatsTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R10": {
     "role": "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheGroupSBusiness",
     "longName": "999001 - Disclosure - General Information, Structure and Organization of the Group's Business",
     "shortName": "General Information, Structure and Organization of the Group's Business",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "10",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfGeneralInformationExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfGeneralInformationExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R11": {
     "role": "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatements",
     "longName": "999003 - Disclosure - Basis of Preparation of the Consolidated Financial Statements",
     "shortName": "Basis of Preparation of the Consolidated Financial Statements",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "11",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfBasisOfPreparationOfFinancialStatementsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfBasisOfPreparationOfFinancialStatementsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R12": {
     "role": "http://www.ypf.com/role/AcquisitionsAndDisposals",
     "longName": "999004 - Disclosure - Acquisitions and Disposals",
     "shortName": "Acquisitions and Disposals",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "12",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfBusinessCombinationsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfBusinessCombinationsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R13": {
     "role": "http://www.ypf.com/role/FinancialRiskManagement",
     "longName": "999005 - Disclosure - Financial Risk Management",
     "shortName": "Financial Risk Management",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "13",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureFinancialRiskManagementExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureFinancialRiskManagementExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R14": {
     "role": "http://www.ypf.com/role/BusinessSegmentInformation",
     "longName": "999006 - Disclosure - Business Segment Information",
     "shortName": "Business Segment Information",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "14",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfEntitysReportableSegmentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfEntitysReportableSegmentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R15": {
     "role": "http://www.ypf.com/role/FinancialInstrumentsByCategory",
     "longName": "999007 - Disclosure - Financial Instruments by Category",
     "shortName": "Financial Instruments by Category",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "15",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R16": {
     "role": "http://www.ypf.com/role/IntangibleAssets",
     "longName": "999008 - Disclosure - Intangible Assets",
     "shortName": "Intangible Assets",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "16",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfIntangibleAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfIntangibleAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R17": {
     "role": "http://www.ypf.com/role/PropertyPlantAndEquipment",
     "longName": "999009 - Disclosure - Property, Plant and Equipment",
     "shortName": "Property, Plant and Equipment",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "17",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfPropertyPlantAndEquipmentExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfPropertyPlantAndEquipmentExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R18": {
     "role": "http://www.ypf.com/role/RightOfUseAssets",
     "longName": "999010 - Disclosure - Right-of-use Assets",
     "shortName": "Right-of-use Assets",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "18",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfRightOfUseAssets",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfRightOfUseAssets",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R19": {
     "role": "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVentures",
     "longName": "999011 - Disclosure - Investments in Associates and Joint Ventures",
     "shortName": "Investments in Associates and Joint Ventures",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "19",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfInvestmentsInAssociatesAndJointVenturesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfInvestmentsInAssociatesAndJointVenturesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R20": {
     "role": "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilities",
     "longName": "999012 - Disclosure - Assets Held For Sale and Associated Liabilities",
     "shortName": "Assets Held For Sale and Associated Liabilities",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "20",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureDetailedInformationOfAssetsHeldForSaleAndAssociatedLiabilitiesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureDetailedInformationOfAssetsHeldForSaleAndAssociatedLiabilitiesTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R21": {
     "role": "http://www.ypf.com/role/Inventories",
     "longName": "999013 - Disclosure - Inventories",
     "shortName": "Inventories",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "21",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfInventoriesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfInventoriesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R22": {
     "role": "http://www.ypf.com/role/OtherReceivables",
     "longName": "999014 - Disclosure - Other Receivables",
     "shortName": "Other Receivables",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "22",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfTradeAndOtherReceivablesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfTradeAndOtherReceivablesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R23": {
     "role": "http://www.ypf.com/role/TradeReceivables",
     "longName": "999015 - Disclosure - Trade Receivables",
     "shortName": "Trade Receivables",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "23",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfTradeReceivablesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfTradeReceivablesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R24": {
     "role": "http://www.ypf.com/role/InvestmentsInFinancialAssets",
     "longName": "999016 - Disclosure - Investments in Financial Assets",
     "shortName": "Investments in Financial Assets",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "24",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfInvestmentInFinancialAssetExplanatoryTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfInvestmentInFinancialAssetExplanatoryTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R25": {
     "role": "http://www.ypf.com/role/CashAndCashEquivalents",
     "longName": "999017 - Disclosure - Cash and Cash Equivalents",
     "shortName": "Cash and Cash Equivalents",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "25",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfCashAndCashEquivalentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfCashAndCashEquivalentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R26": {
     "role": "http://www.ypf.com/role/Provisions",
     "longName": "999018 - Disclosure - Provisions",
     "shortName": "Provisions",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "26",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfProvisionsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfProvisionsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R27": {
     "role": "http://www.ypf.com/role/IncomeTax",
     "longName": "999019 - Disclosure - Income Tax",
     "shortName": "Income Tax",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "27",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfIncomeTaxExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfIncomeTaxExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R28": {
     "role": "http://www.ypf.com/role/TaxesPayable",
     "longName": "999020 - Disclosure - Taxes Payable",
     "shortName": "Taxes Payable",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "28",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfTaxesPayable",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfTaxesPayable",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R29": {
     "role": "http://www.ypf.com/role/SalariesAndSocialSecurity",
     "longName": "999021 - Disclosure - Salaries and social security",
     "shortName": "Salaries and social security",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "29",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfSalariesAndSocialSecurityTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfSalariesAndSocialSecurityTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R30": {
     "role": "http://www.ypf.com/role/LeaseLiabilities",
     "longName": "999022 - Disclosure - Lease liabilities",
     "shortName": "Lease liabilities",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "30",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfLeasesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfLeasesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R31": {
     "role": "http://www.ypf.com/role/Loans",
     "longName": "999023 - Disclosure - Loans",
     "shortName": "Loans",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "31",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfLoansAndAdvancesToBanksExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfLoansAndAdvancesToBanksExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R32": {
     "role": "http://www.ypf.com/role/OtherLiabilities",
     "longName": "999024 - Disclosure - Other Liabilities",
     "shortName": "Other Liabilities",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "32",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfOtherLiabilitiesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfOtherLiabilitiesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R33": {
     "role": "http://www.ypf.com/role/AccountsPayable",
     "longName": "999025 - Disclosure - Accounts payable",
     "shortName": "Accounts payable",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "33",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfAccountsPayableExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfAccountsPayableExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R34": {
     "role": "http://www.ypf.com/role/Revenues",
     "longName": "999026 - Disclosure - Revenues",
     "shortName": "Revenues",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "34",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfRevenueExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfRevenueExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R35": {
     "role": "http://www.ypf.com/role/Costs",
     "longName": "999027 - Disclosure - Costs",
     "shortName": "Costs",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "35",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfExpensesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfExpensesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R36": {
     "role": "http://www.ypf.com/role/ExpensesByNature",
     "longName": "999028 - Disclosure - Expenses by Nature",
     "shortName": "Expenses by Nature",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "36",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfExpensesByNatureExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfExpensesByNatureExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R37": {
     "role": "http://www.ypf.com/role/OtherNetOperatingResults",
     "longName": "999029 - Disclosure - Other Net Operating Results",
     "shortName": "Other Net Operating Results",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "37",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfOtherOperatingIncomeExpenseExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfOtherOperatingIncomeExpenseExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R38": {
     "role": "http://www.ypf.com/role/NetFinancialResults",
     "longName": "999030 - Disclosure - Net Financial Results",
     "shortName": "Net Financial Results",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "38",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfFinancialResultsNetExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfFinancialResultsNetExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R39": {
     "role": "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiums",
     "longName": "999031 - Disclosure - Investments in Joint Operations and Consortiums",
     "shortName": "Investments in Joint Operations and Consortiums",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "39",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfJointOperationsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfJointOperationsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R40": {
     "role": "http://www.ypf.com/role/ShareholdersEquity",
     "longName": "999032 - Disclosure - Shareholders' Equity",
     "shortName": "Shareholders' Equity",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "40",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfShareCapitalReservesAndOtherEquityInterestExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfShareCapitalReservesAndOtherEquityInterestExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R41": {
     "role": "http://www.ypf.com/role/EarningsPerShare",
     "longName": "999033 - Disclosure - Earnings Per Share",
     "shortName": "Earnings Per Share",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "41",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfEarningsPerShareExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfEarningsPerShareExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R42": {
     "role": "http://www.ypf.com/role/ContingentAssetsAndLiabilities",
     "longName": "999034 - Disclosure - Contingent Assets and Liabilities",
     "shortName": "Contingent Assets and Liabilities",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "42",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfContingentAssetsAndLiabilitiesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfContingentAssetsAndLiabilitiesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R43": {
     "role": "http://www.ypf.com/role/ContractualCommitments",
     "longName": "999035 - Disclosure - Contractual Commitments",
     "shortName": "Contractual Commitments",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "43",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfCommitmentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfCommitmentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R44": {
     "role": "http://www.ypf.com/role/MainRegulations",
     "longName": "999036 - Disclosure - Main Regulations",
     "shortName": "Main Regulations",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "44",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfMainRegulationsAndOtherRegulationsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfMainRegulationsAndOtherRegulationsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R45": {
     "role": "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedParties",
     "longName": "999037 - Disclosure - Balances and Transactions with Related Parties",
     "shortName": "Balances and Transactions with Related Parties",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "45",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfBalancesAndTransactionsWithRelatedPartiesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfBalancesAndTransactionsWithRelatedPartiesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R46": {
     "role": "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligations",
     "longName": "999038 - Disclosure - Employee Benefit Plans and Similar Obligations",
     "shortName": "Employee Benefit Plans and Similar Obligations",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "46",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfEmployeeBenefitPlansAndShareBasedPaymentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfEmployeeBenefitPlansAndShareBasedPaymentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R47": {
     "role": "http://www.ypf.com/role/SubsequentEvents",
     "longName": "999039 - Disclosure - Subsequent Events",
     "shortName": "Subsequent Events",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "47",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfEventsAfterReportingPeriodExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfEventsAfterReportingPeriodExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R48": {
     "role": "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnaudited",
     "longName": "999040 - Disclosure - Supplemental Information on Oil and Gas Producing Activities (Unaudited)",
     "shortName": "Supplemental Information on Oil and Gas Producing Activities (Unaudited)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "",
     "menuCat": "Notes",
     "order": "48",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfConsolidatedAndSeparateFinancialStatementsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfConsolidatedAndSeparateFinancialStatementsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R49": {
     "role": "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsPolicies",
     "longName": "999041 - Disclosure - Basis of Preparation of the Consolidated Financial Statements (Policies)",
     "shortName": "Basis of Preparation of the Consolidated Financial Statements (Policies)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "policies",
     "menuCat": "Policies",
     "order": "49",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DescriptionOfAccountingPolicyApplicableAccountingFrameworkExplanatoryTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfBasisOfPreparationOfFinancialStatementsExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DescriptionOfAccountingPolicyApplicableAccountingFrameworkExplanatoryTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfBasisOfPreparationOfFinancialStatementsExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R50": {
     "role": "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupTables",
     "longName": "999042 - Disclosure - General Information, Structure and Organization of the Business of the Group (Tables)",
     "shortName": "General Information, Structure and Organization of the Business of the Group (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "50",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfSignificantInvestmentsInSubsidiariesAndJointVenturesAndAssociatesExplanatoryTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ypf:DisclosureOfGeneralInformationExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfSignificantInvestmentsInSubsidiariesAndJointVenturesAndAssociatesExplanatoryTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ypf:DisclosureOfGeneralInformationExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R51": {
     "role": "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsTables",
     "longName": "999043 - Disclosure - Basis of Preparation of the Consolidated Financial Statements (Tables)",
     "shortName": "Basis of Preparation of the Consolidated Financial Statements (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "51",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfPropertyPlantAndEquipmentEstimatedUsefulLifeExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfPropertyPlantAndEquipmentEstimatedUsefulLifeExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R52": {
     "role": "http://www.ypf.com/role/AcquisitionsAndDisposalsTables",
     "longName": "999044 - Disclosure - Acquisitions and Disposals (Tables)",
     "shortName": "Acquisitions and Disposals (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "52",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025_RefinorMemberifrsfullJointVenturesAxis",
      "name": "ypf:DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025_RefinorMemberifrsfullJointVenturesAxis",
      "name": "ypf:DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R53": {
     "role": "http://www.ypf.com/role/FinancialRiskManagementTables",
     "longName": "999045 - Disclosure - Financial Risk Management (Tables)",
     "shortName": "Financial Risk Management (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "53",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ypf:DisclosureFinancialRiskManagementExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ypf:DisclosureFinancialRiskManagementExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R54": {
     "role": "http://www.ypf.com/role/BusinessSegmentInformationTables",
     "longName": "999046 - Disclosure - Business Segment Information (Tables)",
     "shortName": "Business Segment Information (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "54",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfOperatingSegmentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfOperatingSegmentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R55": {
     "role": "http://www.ypf.com/role/FinancialInstrumentsByCategoryTables",
     "longName": "999047 - Disclosure - Financial Instruments by Category (Tables)",
     "shortName": "Financial Instruments by Category (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "55",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfDetailedInformationAboutFinancialInstrumentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfDetailedInformationAboutFinancialInstrumentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R56": {
     "role": "http://www.ypf.com/role/IntangibleAssetsTables",
     "longName": "999048 - Disclosure - Intangible Assets (Tables)",
     "shortName": "Intangible Assets (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "56",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfDetailedInformationAboutIntangibleAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfIntangibleAssetsExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfDetailedInformationAboutIntangibleAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfIntangibleAssetsExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R57": {
     "role": "http://www.ypf.com/role/PropertyPlantAndEquipmentTables",
     "longName": "999049 - Disclosure - Property, Plant and Equipment (Tables)",
     "shortName": "Property, Plant and Equipment (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "57",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ifrs-full:DisclosureOfPropertyPlantAndEquipmentExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ifrs-full:DisclosureOfPropertyPlantAndEquipmentExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R58": {
     "role": "http://www.ypf.com/role/RightOfUseAssetsTables",
     "longName": "999050 - Disclosure - Right-of-use Assets (Tables)",
     "shortName": "Right-of-use Assets (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "58",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfQuantitativeInformationAboutRightofuseAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfQuantitativeInformationAboutRightofuseAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R59": {
     "role": "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesTables",
     "longName": "999051 - Disclosure - Investments in Associates and Joint Ventures (Tables)",
     "shortName": "Investments in Associates and Joint Ventures (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "59",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfInvestmentsInAssociatesAndJointVenturesAggregateLevelExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ypf:DisclosureOfInvestmentsInAssociatesAndJointVenturesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfInvestmentsInAssociatesAndJointVenturesAggregateLevelExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ypf:DisclosureOfInvestmentsInAssociatesAndJointVenturesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R60": {
     "role": "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesTables",
     "longName": "999052 - Disclosure - Assets Held For Sale and Associated Liabilities (Tables)",
     "shortName": "Assets Held For Sale and Associated Liabilities (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "60",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfAssetsHeldForSaleAndAssociatedLiabilitiesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ypf:DisclosureDetailedInformationOfAssetsHeldForSaleAndAssociatedLiabilitiesTextBlock",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfAssetsHeldForSaleAndAssociatedLiabilitiesTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ypf:DisclosureDetailedInformationOfAssetsHeldForSaleAndAssociatedLiabilitiesTextBlock",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R61": {
     "role": "http://www.ypf.com/role/InventoriesTables",
     "longName": "999053 - Disclosure - Inventories (Tables)",
     "shortName": "Inventories (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "61",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfDetailedInformationOfInventoriesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfInventoriesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfDetailedInformationOfInventoriesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfInventoriesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R62": {
     "role": "http://www.ypf.com/role/OtherReceivablesTables",
     "longName": "999054 - Disclosure - Other Receivables (Tables)",
     "shortName": "Other Receivables (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "62",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfOtherAccountsReceivableExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfTradeAndOtherReceivablesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfOtherAccountsReceivableExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfTradeAndOtherReceivablesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R63": {
     "role": "http://www.ypf.com/role/TradeReceivablesTables",
     "longName": "999055 - Disclosure - Trade Receivables (Tables)",
     "shortName": "Trade Receivables (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "63",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfDetailedInformationOfTradeAccountsReceivablesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ypf:DisclosureOfTradeReceivablesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfDetailedInformationOfTradeAccountsReceivablesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ypf:DisclosureOfTradeReceivablesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R64": {
     "role": "http://www.ypf.com/role/InvestmentsInFinancialAssetsTables",
     "longName": "999056 - Disclosure - Investments in Financial Assets (Tables)",
     "shortName": "Investments in Financial Assets (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "64",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfFinancialAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ypf:DisclosureOfInvestmentInFinancialAssetExplanatoryTextBlock",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfFinancialAssetsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ypf:DisclosureOfInvestmentInFinancialAssetExplanatoryTextBlock",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R65": {
     "role": "http://www.ypf.com/role/CashAndCashEquivalentsTables",
     "longName": "999057 - Disclosure - Cash and Cash Equivalents (Tables)",
     "shortName": "Cash and Cash Equivalents (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "65",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfDetailedCashAndCashEquivalentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfCashAndCashEquivalentsExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfDetailedCashAndCashEquivalentsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfCashAndCashEquivalentsExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R66": {
     "role": "http://www.ypf.com/role/ProvisionsTables",
     "longName": "999058 - Disclosure - Provisions (Tables)",
     "shortName": "Provisions (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "66",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfProvisionMatrixExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfProvisionsExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfProvisionMatrixExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfProvisionsExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R67": {
     "role": "http://www.ypf.com/role/IncomeTaxTables",
     "longName": "999059 - Disclosure - Income Tax (Tables)",
     "shortName": "Income Tax (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "67",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfDetailedInformationAboutIncomeTaxExpenseExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfIncomeTaxExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfDetailedInformationAboutIncomeTaxExpenseExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfIncomeTaxExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R68": {
     "role": "http://www.ypf.com/role/TaxesPayableTables",
     "longName": "999060 - Disclosure - Taxes Payable (Tables)",
     "shortName": "Taxes Payable (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "68",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfDetailedInformationAboutTaxesPayable",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ypf:DisclosureOfTaxesPayable",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfDetailedInformationAboutTaxesPayable",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ypf:DisclosureOfTaxesPayable",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R69": {
     "role": "http://www.ypf.com/role/SalariesAndSocialSecurityTables",
     "longName": "999061 - Disclosure - Salaries and social security (Tables)",
     "shortName": "Salaries and social security (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "69",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfDetailedInformationAboutSalariesAndSocialSecurityTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ypf:DisclosureOfSalariesAndSocialSecurityTextBlock",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfDetailedInformationAboutSalariesAndSocialSecurityTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ypf:DisclosureOfSalariesAndSocialSecurityTextBlock",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R70": {
     "role": "http://www.ypf.com/role/LeaseLiabilitiesTables",
     "longName": "999062 - Disclosure - Lease liabilities (Tables)",
     "shortName": "Lease liabilities (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "70",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DescriptionOfDetailedInformationLeaseLiabilitiesExplanatoryTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfLeasesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DescriptionOfDetailedInformationLeaseLiabilitiesExplanatoryTableTextBlock",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfLeasesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R71": {
     "role": "http://www.ypf.com/role/LoansTables",
     "longName": "999063 - Disclosure - Loans (Tables)",
     "shortName": "Loans (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "71",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfDetailedInformationAboutBorrowingsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfLoansAndAdvancesToBanksExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DisclosureOfDetailedInformationAboutBorrowingsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfLoansAndAdvancesToBanksExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R72": {
     "role": "http://www.ypf.com/role/OtherLiabilitiesTables",
     "longName": "999064 - Disclosure - Other Liabilities (Tables)",
     "shortName": "Other Liabilities (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "72",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfOtherLiabilitiesDetailsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfOtherLiabilitiesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfOtherLiabilitiesDetailsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfOtherLiabilitiesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R73": {
     "role": "http://www.ypf.com/role/AccountsPayableTables",
     "longName": "999065 - Disclosure - Accounts payable (Tables)",
     "shortName": "Accounts payable (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "73",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfDetailedInformationAccountsPayableExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ypf:DisclosureOfAccountsPayableExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfDetailedInformationAccountsPayableExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ypf:DisclosureOfAccountsPayableExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R74": {
     "role": "http://www.ypf.com/role/RevenuesTables",
     "longName": "999066 - Disclosure - Revenues (Tables)",
     "shortName": "Revenues (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "74",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfNetRevenueExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfRevenueExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfNetRevenueExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfRevenueExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R75": {
     "role": "http://www.ypf.com/role/CostsTables",
     "longName": "999067 - Disclosure - Costs (Tables)",
     "shortName": "Costs (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "75",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfDetailsOfInventoryCostsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfExpensesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfDetailsOfInventoryCostsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfExpensesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R76": {
     "role": "http://www.ypf.com/role/ExpensesByNatureTables",
     "longName": "999068 - Disclosure - Expenses by Nature (Tables)",
     "shortName": "Expenses by Nature (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "76",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfDetailsOfExpensesByNatureExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfExpensesByNatureExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfDetailsOfExpensesByNatureExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfExpensesByNatureExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R77": {
     "role": "http://www.ypf.com/role/OtherNetOperatingResultsTables",
     "longName": "999069 - Disclosure - Other Net Operating Results (Tables)",
     "shortName": "Other Net Operating Results (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "77",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfOtherOperatingResultsNetExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfOtherOperatingIncomeExpenseExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfOtherOperatingResultsNetExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfOtherOperatingIncomeExpenseExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R78": {
     "role": "http://www.ypf.com/role/NetFinancialResultsTables",
     "longName": "999070 - Disclosure - Net Financial Results (Tables)",
     "shortName": "Net Financial Results (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "78",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfDetailInformationFinancialResultsNetExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ypf:DisclosureOfFinancialResultsNetExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfDetailInformationFinancialResultsNetExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ypf:DisclosureOfFinancialResultsNetExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R79": {
     "role": "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsTables",
     "longName": "999071 - Disclosure - Investments in Joint Operations and Consortiums (Tables)",
     "shortName": "Investments in Joint Operations and Consortiums (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "79",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfInformationInAssetsLiabilitiesAndExpensesInJointOperationsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfInformationInAssetsLiabilitiesAndExpensesInJointOperationsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R80": {
     "role": "http://www.ypf.com/role/EarningsPerShareTables",
     "longName": "999072 - Disclosure - Earnings Per Share (Tables)",
     "shortName": "Earnings Per Share (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "80",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:EarningsPerShareExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfEarningsPerShareExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:EarningsPerShareExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ifrs-full:DisclosureOfEarningsPerShareExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R81": {
     "role": "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesTables",
     "longName": "999073 - Disclosure - Balances and Transactions with Related Parties (Tables)",
     "shortName": "Balances and Transactions with Related Parties (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "81",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfRelatedPartyTransactionsWithAssociatesAndJointVenturesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ypf:DisclosureOfBalancesAndTransactionsWithRelatedPartiesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfRelatedPartyTransactionsWithAssociatesAndJointVenturesExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ypf:DisclosureOfBalancesAndTransactionsWithRelatedPartiesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R82": {
     "role": "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsTables",
     "longName": "999074 - Disclosure - Employee Benefit Plans and Similar Obligations (Tables)",
     "shortName": "Employee Benefit Plans and Similar Obligations (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "82",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025_ShareBasedBenefitPlanTwoThousandTwentyToTwoThousandTwentyThreeMemberifrsfullTypesOfSharebasedPaymentArrangementsAxis",
      "name": "ifrs-full:DisclosureOfNumberAndWeightedAverageExercisePricesOfShareOptionsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ypf:DisclosureOfEmployeeBenefitPlansAndShareBasedPaymentsExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025_ShareBasedBenefitPlanTwoThousandTwentyToTwoThousandTwentyThreeMemberifrsfullTypesOfSharebasedPaymentArrangementsAxis",
      "name": "ifrs-full:DisclosureOfNumberAndWeightedAverageExercisePricesOfShareOptionsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ypf:DisclosureOfEmployeeBenefitPlansAndShareBasedPaymentsExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R83": {
     "role": "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedTables",
     "longName": "999075 - Disclosure - Supplemental Information on Oil and Gas Producing Activities (Unaudited) (Tables)",
     "shortName": "Supplemental Information on Oil and Gas Producing Activities (Unaudited) (Tables)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "tables",
     "menuCat": "Tables",
     "order": "83",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfCapitalizedCostsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:DisclosureOfCapitalizedCostsExplanatory",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R84": {
     "role": "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail",
     "longName": "999076 - Disclosure - General Information, Structure and Organization of the Business of the Group - Summary of Main Companies of the Group (Detail)",
     "shortName": "General Information, Structure and Organization of the Business of the Group - Summary of Main Companies of the Group (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "84",
     "firstAnchor": {
      "contextRef": "P01_22_2026To01_22_2026",
      "name": "ifrs-full:ProportionOfOwnershipInterestInSubsidiary",
      "unitRef": "Unit_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "div",
       "ifrs-full:DisclosureOfEventsAfterReportingPeriodExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025_EleranMemberifrsfullCategoriesOfRelatedPartiesAxis_UpstreamMemberYPFEntityGroupAxis",
      "name": "ifrs-full:NameOfSubsidiary",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ypf:DisclosureOfGeneralInformationExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R85": {
     "role": "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
     "longName": "999077 - Disclosure - Basis of Preparation of the Consolidated Financial Statements - Additional Information (Detail)",
     "shortName": "Basis of Preparation of the Consolidated Financial Statements - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "85",
     "firstAnchor": {
      "contextRef": "P01_22_2026To01_22_2026",
      "name": "ifrs-full:ProportionOfOwnershipInterestInSubsidiary",
      "unitRef": "Unit_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "div",
       "ifrs-full:DisclosureOfEventsAfterReportingPeriodExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2024To12_31_2024",
      "name": "ypf:ReclassificationOfOtherFinancialResultsToIncomeTax",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "ypf:DescriptionOfAccountingPolicyForComparativeInformationExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R86": {
     "role": "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsDetailedInformationAboutPropertyPlantAndEquipmentDetail",
     "longName": "999078 - Disclosure - Basis of Preparation of the Consolidated Financial Statements - Detailed Information About Property, Plant and Equipment (Detail)",
     "shortName": "Basis of Preparation of the Consolidated Financial Statements - Detailed Information About Property, Plant and Equipment (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "86",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025_BuildingsMemberifrsfullClassesOfPropertyPlantAndEquipmentAxis",
      "name": "ifrs-full:UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025_BuildingsMemberifrsfullClassesOfPropertyPlantAndEquipmentAxis",
      "name": "ifrs-full:UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R87": {
     "role": "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
     "longName": "999079 - Disclosure - Acquisitions and Disposals - Additional Information (Detail)",
     "shortName": "Acquisitions and Disposals - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "87",
     "firstAnchor": {
      "contextRef": "PAsOn02_01_2026",
      "name": "ifrs-full:AcquisitiondateFairValueOfTotalConsiderationTransferred",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "ifrs-full:DisclosureOfEventsAfterReportingPeriodExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "P10_28_2025To10_28_2025_RefinorMemberifrsfullJointVenturesAxis",
      "name": "ifrs-full:ProportionOfOwnershipInterestInSubsidiary",
      "unitRef": "Unit_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R88": {
     "role": "http://www.ypf.com/role/AcquisitionsAndDisposalsSummaryOfFairValuesOfTheIdentifiableAssetsAcquiredAndTheLiabilitiesAssumedDetail",
     "longName": "999080 - Disclosure - Acquisitions and Disposals - Summary Of Fair Values Of The Identifiable Assets Acquired And The Liabilities Assumed (Detail)",
     "shortName": "Acquisitions and Disposals - Summary Of Fair Values Of The Identifiable Assets Acquired And The Liabilities Assumed (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "88",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025_AtFairValueMemberifrsfullMeasurementAxis_RefinorMemberifrsfullJointVenturesAxis",
      "name": "ifrs-full:PropertyPlantAndEquipmentRecognisedAsOfAcquisitionDate",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025_AtFairValueMemberifrsfullMeasurementAxis_RefinorMemberifrsfullJointVenturesAxis",
      "name": "ifrs-full:PropertyPlantAndEquipmentRecognisedAsOfAcquisitionDate",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R89": {
     "role": "http://www.ypf.com/role/FinancialRiskManagementScheduleOfBreakdownOfEffectAVariationOf10InPrevailingExchangeRatesOnNetIncomeDetail",
     "longName": "999081 - Disclosure - Financial Risk Management - Schedule of Breakdown of Effect a Variation of 10% in Prevailing Exchange Rates on Net Income (Detail)",
     "shortName": "Financial Risk Management - Schedule of Breakdown of Effect a Variation of 10% in Prevailing Exchange Rates on Net Income (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "89",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025_CurrencyRiskMemberifrsfullTypesOfRisksAxis_PositiveVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMemberYPFForeignCurrencyRiskAxis",
      "name": "ifrs-full:GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsExplanatory",
       "ypf:DisclosureFinancialRiskManagementExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025_CurrencyRiskMemberifrsfullTypesOfRisksAxis_PositiveVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMemberYPFForeignCurrencyRiskAxis",
      "name": "ifrs-full:GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsExplanatory",
       "ypf:DisclosureFinancialRiskManagementExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R90": {
     "role": "http://www.ypf.com/role/FinancialRiskManagementInformationAboutFinancialAssetsAndLiabilitiesThatAccruesInterestConsideringApplicableRateDetail",
     "longName": "999082 - Disclosure - Financial Risk Management - Information about Financial Assets and Liabilities That Accrues Interest Considering Applicable Rate (Detail)",
     "shortName": "Financial Risk Management - Information about Financial Assets and Liabilities That Accrues Interest Considering Applicable Rate (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "90",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:FinancialAssets",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDetailedInformationAboutFinancialInstrumentsExplanatory",
       "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025_InterestRateRiskMemberifrsfullTypesOfRisksAxis",
      "name": "ifrs-full:FinancialAssets",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfFinancialInstrumentsByTypeOfInterestRateExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R91": {
     "role": "http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail",
     "longName": "999083 - Disclosure - Financial Risk Management - Additional Information (Detail)",
     "shortName": "Financial Risk Management - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "91",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ypf:ProvisionForDoubtfulTradeReceivables",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ypf:ProvisionForDoubtfulTradeReceivables",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R92": {
     "role": "http://www.ypf.com/role/FinancialRiskManagementScheduleOfEstimatedImpactOnConsolidatedComprehensiveIncomeThatAnIncreaseOrDecreaseOf100BasisPointsInInterestRateDetail",
     "longName": "999084 - Disclosure - Financial Risk Management - Schedule of Estimated Impact on Consolidated Comprehensive Income that an Increase or Decrease of 100 Basis Points in Interest Rate (Detail)",
     "shortName": "Financial Risk Management - Schedule of Estimated Impact on Consolidated Comprehensive Income that an Increase or Decrease of 100 Basis Points in Interest Rate (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "92",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025_InterestRateRiskMemberifrsfullTypesOfRisksAxis_PositiveVariationImpactOnNetIncomeMemberifrsfullTypesOfInterestRatesAxis",
      "name": "ypf:PercentageOfIncreaseOrDecreaseInInterestRatesBasisPoints",
      "unitRef": "Unit_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025_InterestRateRiskMemberifrsfullTypesOfRisksAxis_PositiveVariationImpactOnNetIncomeMemberifrsfullTypesOfInterestRatesAxis",
      "name": "ypf:PercentageOfIncreaseOrDecreaseInInterestRatesBasisPoints",
      "unitRef": "Unit_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R93": {
     "role": "http://www.ypf.com/role/FinancialRiskManagementScheduleOfEffectOfA10VariationInThePricesOfInvestmentsInFinancialInstrumentsDetail",
     "longName": "999085 - Disclosure - Financial Risk Management - Schedule of Effect of a 10% Variation in the Prices of Investments in Financial Instruments (Detail)",
     "shortName": "Financial Risk Management - Schedule of Effect of a 10% Variation in the Prices of Investments in Financial Instruments (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "93",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025_PositiveVariationImpactOnProfitOrLossBeforeIncomeTaxMemberYPFForeignCurrencyRiskAxis_PriceRiskMemberifrsfullTypesOfRisksAxis",
      "name": "ypf:PercentageOfIncreaseDecreaseInPricesOfInvestments",
      "unitRef": "Unit_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025_PositiveVariationImpactOnProfitOrLossBeforeIncomeTaxMemberYPFForeignCurrencyRiskAxis_PriceRiskMemberifrsfullTypesOfRisksAxis",
      "name": "ypf:PercentageOfIncreaseDecreaseInPricesOfInvestments",
      "unitRef": "Unit_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ix:continuation",
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R94": {
     "role": "http://www.ypf.com/role/FinancialRiskManagementScheduleOfMaturityDatesOfFinancialLiabilitiesDetail",
     "longName": "999086 - Disclosure - Financial Risk Management - Schedule of Maturity Dates of Financial Liabilities (Detail)",
     "shortName": "Financial Risk Management - Schedule of Maturity Dates of Financial Liabilities (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "94",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:GrossLeaseLiabilities",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:MaturityAnalysisForNonderivativeFinancialLiabilities",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:GrossLeaseLiabilities",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:MaturityAnalysisForNonderivativeFinancialLiabilities",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R95": {
     "role": "http://www.ypf.com/role/FinancialRiskManagementSummaryOfMaximumExposureToCreditRiskDetail",
     "longName": "999087 - Disclosure - Financial Risk Management - Summary of Maximum Exposure to Credit Risk (Detail)",
     "shortName": "Financial Risk Management - Summary of Maximum Exposure to Credit Risk (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "95",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025_CashAndCashEquivalentMemberifrsfullClassesOfFinancialInstrumentsAxis",
      "name": "ifrs-full:MaximumExposureToCreditRisk",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfCreditRiskExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025_CashAndCashEquivalentMemberifrsfullClassesOfFinancialInstrumentsAxis",
      "name": "ifrs-full:MaximumExposureToCreditRisk",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfCreditRiskExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R96": {
     "role": "http://www.ypf.com/role/FinancialRiskManagementSummaryOfBreakdownOfTheFinancialAssetsDetail",
     "longName": "999088 - Disclosure - Financial Risk Management - Summary of Breakdown of the Financial Assets (Detail)",
     "shortName": "Financial Risk Management - Summary of Breakdown of the Financial Assets (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "96",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:FinancialAssets",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDetailedInformationAboutFinancialInstrumentsExplanatory",
       "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025_CurrentTradeReceivableMemberifrsfullClassesOfFinancialAssetsAxis",
      "name": "ifrs-full:FinancialAssets",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfDetailedInformationOfFinancialAssetsThatAreEitherPastDueOrImpairedExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R97": {
     "role": "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail",
     "longName": "999089 - Disclosure - Business Segment Information - Summary of Business Segment Information (Detail)",
     "shortName": "Business Segment Information - Summary of Business Segment Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "97",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:RevenueFromSaleOfOilAndGasProducts",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfOperatingSegmentsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:RevenueFromSaleOfOilAndGasProducts",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfOperatingSegmentsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R98": {
     "role": "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationParentheticalDetail",
     "longName": "999090 - Disclosure - Business Segment Information - Summary of Business Segment Information (Parenthetical) (Detail)",
     "shortName": "Business Segment Information - Summary of Business Segment Information (Parenthetical) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "98",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:UnproductiveExploratoryDrillings",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R99": {
     "role": "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail",
     "longName": "999091 - Disclosure - Financial Instruments by Category - Summary of Financial Assets and Liabilities by Category of Financial Instrument and Reconciliation (Detail)",
     "shortName": "Financial Instruments by Category - Summary of Financial Assets and Liabilities by Category of Financial Instrument and Reconciliation (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "99",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:FinancialAssetsAtAmortisedCost",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDetailedInformationAboutFinancialInstrumentsExplanatory",
       "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:FinancialAssetsAtAmortisedCost",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDetailedInformationAboutFinancialInstrumentsExplanatory",
       "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R100": {
     "role": "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfGainsAndLossesOnFinancialInstrumentsDetail",
     "longName": "999092 - Disclosure - Financial Instruments by Category - Summary of Gains and Losses on Financial Instruments (Detail)",
     "shortName": "Financial Instruments by Category - Summary of Gains and Losses on Financial Instruments (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "100",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:FinanceIncome",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:NetForeignExchangeGainLoss",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfGainLossOnFinancialInstrumentsExplanatoryTextBlock",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R101": {
     "role": "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfCompanysFinancialAssetsMeasuredAtFairValueDetail",
     "longName": "999093 - Disclosure - Financial Instruments by Category - Summary of Company's Financial Assets Measured at Fair Value (Detail)",
     "shortName": "Financial Instruments by Category - Summary of Company's Financial Assets Measured at Fair Value (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "101",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:FinancialAssetsAtFairValueThroughProfitOrLoss",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDetailedInformationAboutFinancialInstrumentsExplanatory",
       "ifrs-full:DisclosureOfFinancialInstrumentsExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025_InvestmentsInFinancialAssetsMemberifrsfullClassesOfAssetsAxis",
      "name": "ifrs-full:FinancialAssetsAtFairValueThroughProfitOrLoss",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfFairValueOfFinancialInstrumentsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R102": {
     "role": "http://www.ypf.com/role/FinancialInstrumentsByCategoryAdditionalInformationDetail",
     "longName": "999094 - Disclosure - Financial Instruments by Category - Additional Information (Detail)",
     "shortName": "Financial Instruments by Category - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "102",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025_EstimatedFairValueOfLoansMemberifrsfullClassesOfFinancialInstrumentsAxis_Level1OfFairValueHierarchyMemberifrsfullLevelsOfFairValueHierarchyAxis",
      "name": "ypf:EstimatedFairValueOfLoans",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025_EstimatedFairValueOfLoansMemberifrsfullClassesOfFinancialInstrumentsAxis_Level1OfFairValueHierarchyMemberifrsfullLevelsOfFairValueHierarchyAxis",
      "name": "ypf:EstimatedFairValueOfLoans",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R103": {
     "role": "http://www.ypf.com/role/IntangibleAssetsScheduleOfIntangibleAssetsDetail",
     "longName": "999095 - Disclosure - Intangible Assets - Schedule of Intangible Assets (Detail)",
     "shortName": "Intangible Assets - Schedule of Intangible Assets (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "103",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:IntangibleAssetsAndGoodwill",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDetailedInformationAboutIntangibleAssetsExplanatory",
       "ifrs-full:DisclosureOfIntangibleAssetsExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ypf:ProvisionForImpairmentOfIntangibleAssets",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDetailedInformationAboutIntangibleAssetsExplanatory",
       "ifrs-full:DisclosureOfIntangibleAssetsExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R104": {
     "role": "http://www.ypf.com/role/IntangibleAssetsSummaryOfChangesInIntangibleAssetsDetail",
     "longName": "999096 - Disclosure - Intangible Assets - Summary of Changes in Intangible Assets (Detail)",
     "shortName": "Intangible Assets - Summary of Changes in Intangible Assets (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "104",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2024",
      "name": "ifrs-full:IntangibleAssetsAndGoodwill",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDetailedInformationAboutIntangibleAssetsExplanatory",
       "ifrs-full:DisclosureOfIntangibleAssetsExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2022_GrossCarryingAmountMemberifrsfullCarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis",
      "name": "ifrs-full:IntangibleAssetsAndGoodwill",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R105": {
     "role": "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfPropertyPlantAndEquipmentDetail",
     "longName": "999097 - Disclosure - Property, Plant and Equipment - Summary of Property Plant and Equipment (Detail)",
     "shortName": "Property, Plant and Equipment - Summary of Property Plant and Equipment (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "105",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ypf:NetBookValueOfPropertyPlantAndEquipment",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory",
       "div",
       "ifrs-full:DisclosureOfPropertyPlantAndEquipmentExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ypf:NetBookValueOfPropertyPlantAndEquipment",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory",
       "div",
       "ifrs-full:DisclosureOfPropertyPlantAndEquipmentExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R106": {
     "role": "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentDetail",
     "longName": "999098 - Disclosure - Property Plant and Equipment - Summary of Changes in Property Plant and Equipment (Detail)",
     "shortName": "Property Plant and Equipment - Summary of Changes in Property Plant and Equipment (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "106",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2023",
      "name": "ifrs-full:PropertyPlantAndEquipment",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025_GrossCarryingAmountMemberifrsfullCarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis",
      "name": "ypf:IncreaseDecreaseOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R107": {
     "role": "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail",
     "longName": "999099 - Disclosure - Property Plant and Equipment - Summary of Changes in Property Plant and Equipment (Parenthetical) (Detail)",
     "shortName": "Property Plant and Equipment - Summary of Changes in Property Plant and Equipment (Parenthetical) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "107",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ypf:MineralProperty",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ypf:MineralProperty",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R108": {
     "role": "http://www.ypf.com/role/PropertyPlantAndEquipmentAdditionalInformationDetail",
     "longName": "999100 - Disclosure - Property, Plant and Equipment - Additional Information (Detail)",
     "shortName": "Property, Plant and Equipment - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "108",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:CapitalisationRateOfBorrowingCostsEligibleForCapitalisation",
      "unitRef": "Unit_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "4",
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:CapitalisationRateOfBorrowingCostsEligibleForCapitalisation",
      "unitRef": "Unit_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "4",
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R109": {
     "role": "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionForObsolescenceOfMaterialsAndEquipmentDetail",
     "longName": "999101 - Disclosure - Property, Plant and Equipment - Summary of Provision for Obsolescence of Materials and Equipment (Detail)",
     "shortName": "Property, Plant and Equipment - Summary of Provision for Obsolescence of Materials and Equipment (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "109",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2024",
      "name": "ifrs-full:PropertyPlantAndEquipment",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2022_ProvisionForObsolescenceOfMaterialsAndEquipmentMemberifrsfullCarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis",
      "name": "ifrs-full:PropertyPlantAndEquipment",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfProvisionForObsolescenceOfMaterialsAndEquipmentExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R110": {
     "role": "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionsForImpairmentOfPropertyPlantAndEquipmentDetail",
     "longName": "999102 - Disclosure - Property, Plant and Equipment - Summary of Provisions for Impairment of Property, Plant and Equipment (Detail)",
     "shortName": "Property, Plant and Equipment - Summary of Provisions for Impairment of Property, Plant and Equipment (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "110",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2024",
      "name": "ifrs-full:PropertyPlantAndEquipment",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2022_ProvisionForImpairmentOfPropertyPlantAndEquipmentMemberifrsfullCarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis",
      "name": "ifrs-full:PropertyPlantAndEquipment",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfProvisionForImpairmentOfPropertyPlantAndEquipmentExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R111": {
     "role": "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionsForImpairmentOfPropertyPlantAndEquipmentParentheticalDetail",
     "longName": "999103 - Disclosure - Property, Plant and Equipment - Summary of Provisions for Impairment of Property, Plant and Equipment (Parenthetical) (Detail)",
     "shortName": "Property, Plant and Equipment - Summary of Provisions for Impairment of Property, Plant and Equipment (Parenthetical) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "111",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2024_MatureFieldsProjectMemberifrsfullClassesOfAssetsAxis",
      "name": "ypf:ProvisionForImpairmentAssociatedWithAssets",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfProvisionForImpairmentOfPropertyPlantAndEquipmentExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2024_MatureFieldsProjectMemberifrsfullClassesOfAssetsAxis",
      "name": "ypf:ProvisionForImpairmentAssociatedWithAssets",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfProvisionForImpairmentOfPropertyPlantAndEquipmentExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R112": {
     "role": "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfPropertyPlantAndEquipmentByGeographicAreaDetail",
     "longName": "999104 - Disclosure - Property, Plant and Equipment - Summary of Property, Plant and Equipment by Geographic Area (Detail)",
     "shortName": "Property, Plant and Equipment - Summary of Property, Plant and Equipment by Geographic Area (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "112",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:PropertyPlantAndEquipment",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025_ARifrsfullGeographicalAreasAxis",
      "name": "ifrs-full:PropertyPlantAndEquipment",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureInTabularFormOfDistributionOfPropertyPlantAndEquipmentByGeographicAreaExplanatoryTextBlock",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R113": {
     "role": "http://www.ypf.com/role/RightOfUseAssetsAdditionalInformationDetail",
     "longName": "999105 - Disclosure - Right-of-use Assets - Additional Information (Detail)",
     "shortName": "Right-of-use Assets - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "113",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025_ExploitationEquipmentAndFacilitiesMemberifrsfullClassesOfAssetsAxis",
      "name": "ypf:AggregateLeaseTermLease",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfRightOfUseAssets",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025_ExploitationEquipmentAndFacilitiesMemberifrsfullClassesOfAssetsAxis",
      "name": "ypf:AggregateLeaseTermLease",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfRightOfUseAssets",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R114": {
     "role": "http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsDetail",
     "longName": "999106 - Disclosure - Right-of-use Assets - Summary of Evolution of the Group's Right-of-use Assets (Detail)",
     "shortName": "Right-of-use Assets - Summary of Evolution of the Group's Right-of-use Assets (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "114",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2024",
      "name": "ifrs-full:RightofuseAssets",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025_LandAndBuildingsMemberifrsfullClassesOfAssetsAxis",
      "name": "ifrs-full:RightofuseAssets",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfQuantitativeInformationAboutRightofuseAssetsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R115": {
     "role": "http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsParentheticalDetail",
     "longName": "999107 - Disclosure - Right-of-use Assets -Summary of Evolution of the Group's Right-of-use Assets (Parenthetical) (Detail)",
     "shortName": "Right-of-use Assets -Summary of Evolution of the Group's Right-of-use Assets (Parenthetical) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "115",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DepreciationRightofuseAssets",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R116": {
     "role": "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfInvestmentsInAssociatesAndJointVenturesAtAnAggregateLevelDetail",
     "longName": "999108 - Disclosure - Investments in Associates and Joint Ventures - Summary of Investments in Associates and Joint Ventures at an Aggregate Level (Detail)",
     "shortName": "Investments in Associates and Joint Ventures - Summary of Investments in Associates and Joint Ventures at an Aggregate Level (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "116",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:InvestmentsInAssociates",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfInvestmentsInAssociatesAndJointVenturesAggregateLevelExplanatory",
       "ypf:DisclosureOfInvestmentsInAssociatesAndJointVenturesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:InvestmentsInAssociates",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfInvestmentsInAssociatesAndJointVenturesAggregateLevelExplanatory",
       "ypf:DisclosureOfInvestmentsInAssociatesAndJointVenturesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R117": {
     "role": "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfMovementsWhichAffectedTheValueOfTheInvestmentsInAssociatesAndJointVenturesDetail",
     "longName": "999109 - Disclosure - Investments in Associates and Joint Ventures - Summary of Movements Which Affected the Value of the Investments in associates and joint ventures (Detail)",
     "shortName": "Investments in Associates and Joint Ventures - Summary of Movements Which Affected the Value of the Investments in associates and joint ventures (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "117",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2024",
      "name": "ifrs-full:InvestmentsInSubsidiariesJointVenturesAndAssociates",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfInvestmentsInAssociatesAndJointVenturesAggregateLevelExplanatory",
       "ypf:DisclosureOfInvestmentsInAssociatesAndJointVenturesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:AcquisitionsAndContributions",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfInvestmentsInAssociatesAndJointVenturesMainMovementsDuringThePeriodAggregateLevelExplanatory",
       "ypf:DisclosureOfInvestmentsInAssociatesAndJointVenturesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R118": {
     "role": "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetail",
     "longName": "999110 - Disclosure - Investments in Associates and Joint Ventures - Summary of Income from Equity Interests in Associates and Joint Ventures (Detail)",
     "shortName": "Investments in Associates and Joint Ventures - Summary of Income from Equity Interests in Associates and Joint Ventures (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "118",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:ProfitLoss",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025_JointVenturesMemberifrsfullJointVenturesAxis",
      "name": "ifrs-full:ProfitLoss",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfInvestmentsInAssociatesAndJointVentureProportionalEquityValueExplanatory",
       "ypf:DisclosureOfInvestmentsInAssociatesAndJointVenturesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R119": {
     "role": "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail",
     "longName": "999111 - Disclosure - Investments in Associates and Joint Ventures - Summary of analysis of assets and liabilities of significant associates and joint ventures (Detail)",
     "shortName": "Investments in Associates and Joint Ventures - Summary of analysis of assets and liabilities of significant associates and joint ventures (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "119",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:NoncurrentAssets",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025_YPFEEMemberifrsfullSignificantInvestmentsInSubsidiariesAxis",
      "name": "ifrs-full:NoncurrentAssets",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R120": {
     "role": "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfTheInvestmentsInAssociatesAndJointVenturesOnADisaggregatedBasisDetail",
     "longName": "999112 - Disclosure - Investments in Associates and Joint Ventures  - Summary of the investments in associates and joint ventures on a disaggregated basis (Detail)",
     "shortName": "Investments in Associates and Joint Ventures  - Summary of the investments in associates and joint ventures on a disaggregated basis (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "120",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:InvestmentsInSubsidiariesJointVenturesAndAssociates",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfInvestmentsInAssociatesAndJointVenturesAggregateLevelExplanatory",
       "ypf:DisclosureOfInvestmentsInAssociatesAndJointVenturesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025_YPFEEMemberifrsfullJointVenturesAxis",
      "name": "ifrs-full:InvestmentsInSubsidiariesJointVenturesAndAssociates",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfInvestmentAssociatesAndJointVenturesExplanatoryTableTextBlock",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R121": {
     "role": "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesSummaryOfTheMainAssetsHeldForSaleAndAssociatedLiabilitiesDetail",
     "longName": "999113 - Disclosure - Assets Held for Sale and Associated Liabilities - Summary of the Main Assets Held For Sale and Associated Liabilities (Detail)",
     "shortName": "Assets Held for Sale and Associated Liabilities - Summary of the Main Assets Held For Sale and Associated Liabilities (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "121",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:PropertyPlantAndEquipment",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025_AssetsAndLiabilitiesClassifiedAsHeldForSaleMemberifrsfullAssetsAndLiabilitiesClassifiedAsHeldForSaleAxis",
      "name": "ifrs-full:Assets",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfAssetsHeldForSaleAndAssociatedLiabilitiesTableTextBlock",
       "ypf:DisclosureDetailedInformationOfAssetsHeldForSaleAndAssociatedLiabilitiesTextBlock",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R122": {
     "role": "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesAdditionalInformationDetail",
     "longName": "999114 - Disclosure - Assets Held for Sale and Associated Liabilities - Additional Information (Detail)",
     "shortName": "Assets Held for Sale and Associated Liabilities - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "122",
     "firstAnchor": {
      "contextRef": "P01_22_2026To01_22_2026",
      "name": "ifrs-full:ProportionOfOwnershipInterestInSubsidiary",
      "unitRef": "Unit_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "div",
       "ifrs-full:DisclosureOfEventsAfterReportingPeriodExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "P10_29_2024To10_29_2024_EscalanteElTrebolMemberifrsfullSignificantInvestmentsInSubsidiariesAxis",
      "name": "ifrs-full:ProportionOfOwnershipInterestInSubsidiary",
      "unitRef": "Unit_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R123": {
     "role": "http://www.ypf.com/role/InventoriesSummaryOfInventoriesDetail",
     "longName": "999115 - Disclosure - Inventories - Summary of Inventories (Detail)",
     "shortName": "Inventories - Summary of Inventories (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "123",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:Inventories",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025_FinishedGoodsMemberifrsfullClassesOfPropertyPlantAndEquipmentAxis",
      "name": "ifrs-full:Inventories",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfDetailedInformationOfInventoriesExplanatory",
       "ifrs-full:DisclosureOfInventoriesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R124": {
     "role": "http://www.ypf.com/role/InventoriesSummaryOfInventoriesParentheticalDetail",
     "longName": "999116 - Disclosure - Inventories - Summary of Inventories (Parenthetical) (Detail)",
     "shortName": "Inventories - Summary of Inventories (Parenthetical) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "124",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:ProvisionOfInventoriesWritedown",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfDetailedInformationOfInventoriesExplanatory",
       "ifrs-full:DisclosureOfInventoriesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:ProvisionOfInventoriesWritedown",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfDetailedInformationOfInventoriesExplanatory",
       "ifrs-full:DisclosureOfInventoriesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R125": {
     "role": "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail",
     "longName": "999117 - Disclosure - Other Receivables - Summary of Other Receivables (Detail)",
     "shortName": "Other Receivables - Summary of Other Receivables (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "125",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ypf:OtherAccountsReceivableTradeCurrent",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfOtherAccountsReceivableExplanatory",
       "ifrs-full:DisclosureOfTradeAndOtherReceivablesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ypf:OtherAccountsReceivableTradeCurrent",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfOtherAccountsReceivableExplanatory",
       "ifrs-full:DisclosureOfTradeAndOtherReceivablesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R126": {
     "role": "http://www.ypf.com/role/TradeReceivablesSummaryOfTradeReceivablesDetail",
     "longName": "999118 - Disclosure - Trade Receivables - Summary of Trade Receivables (Detail)",
     "shortName": "Trade Receivables - Summary of Trade Receivables (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "126",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:CurrentTradeReceivables",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025_AccountsReceivableAndRelatedPartiesMemberifrsfullClassesOfAssetsAxis",
      "name": "ifrs-full:CurrentTradeReceivables",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfDetailedInformationOfTradeAccountsReceivablesExplanatory",
       "ypf:DisclosureOfTradeReceivablesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R127": {
     "role": "http://www.ypf.com/role/TradeReceivablesSummaryOfEvolutionOfTheProvisionForDoubtfulTradeReceivablesDetail",
     "longName": "999119 - Disclosure - Trade Receivables - Summary of Evolution of the Provision for Doubtful Trade Receivables (Detail)",
     "shortName": "Trade Receivables - Summary of Evolution of the Provision for Doubtful Trade Receivables (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "127",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2024_CurrentMemberYPFClassOfProvisionAxis",
      "name": "ifrs-full:TradeReceivables",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfInformationAboutEvolutionOfTheProvisionForDoubtfulTradeReceivablesExplanatory",
       "ypf:DisclosureOfTradeReceivablesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2022_CurrentMemberYPFClassOfProvisionAxis",
      "name": "ifrs-full:TradeReceivables",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfInformationAboutEvolutionOfTheProvisionForDoubtfulTradeReceivablesExplanatory",
       "ypf:DisclosureOfTradeReceivablesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R128": {
     "role": "http://www.ypf.com/role/InvestmentsInFinancialAssetsSummaryOfInvestmentsInFinancialAssetsDetail",
     "longName": "999120 - Disclosure - Investments in Financial Assets - Summary of Investments in Financial Assets (Detail)",
     "shortName": "Investments in Financial Assets - Summary of Investments in Financial Assets (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "128",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:NoncurrentFinancialAssets",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025_FinancialAssetsAtAmortisedCostCategoryMemberifrsfullCategoriesOfFinancialAssetsAxis",
      "name": "ifrs-full:NoncurrentFinancialAssets",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfFinancialAssetsExplanatory",
       "ypf:DisclosureOfInvestmentInFinancialAssetExplanatoryTextBlock",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R129": {
     "role": "http://www.ypf.com/role/CashAndCashEquivalentsSummaryOfCashAndCashEquivalentsDetail",
     "longName": "999121 - 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": "129",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:CashAndBankBalancesAtCentralBanks",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfDetailedCashAndCashEquivalentsExplanatory",
       "ifrs-full:DisclosureOfCashAndCashEquivalentsExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:CashAndBankBalancesAtCentralBanks",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfDetailedCashAndCashEquivalentsExplanatory",
       "ifrs-full:DisclosureOfCashAndCashEquivalentsExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R130": {
     "role": "http://www.ypf.com/role/CashAndCashEquivalentsSummaryOfCashAndCashEquivalentsParentheticalDetail",
     "longName": "999122 - Disclosure - Cash and Cash Equivalents - Summary of Cash and Cash Equivalents (Parenthetical) (Detail)",
     "shortName": "Cash and Cash Equivalents - Summary of Cash and Cash Equivalents (Parenthetical) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "130",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2023_BancoCentralDeLaRepublicaArgentinaMemberifrsfullCategoriesOfRelatedPartiesAxis",
      "name": "ypf:TermDepositsAndOtherInvestmentsClassifiedAsCashEquivalents",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfDetailedCashAndCashEquivalentsExplanatory",
       "ifrs-full:DisclosureOfCashAndCashEquivalentsExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2023_BancoCentralDeLaRepublicaArgentinaMemberifrsfullCategoriesOfRelatedPartiesAxis",
      "name": "ypf:TermDepositsAndOtherInvestmentsClassifiedAsCashEquivalents",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfDetailedCashAndCashEquivalentsExplanatory",
       "ifrs-full:DisclosureOfCashAndCashEquivalentsExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R131": {
     "role": "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsDetail",
     "longName": "999123 - Disclosure - Provisions - Summary of Changes in Group's Provisions (Detail)",
     "shortName": "Provisions - Summary of Changes in Group's Provisions (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "131",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2024_NonCurrentMemberifrsfullPastDueStatusAxis",
      "name": "ifrs-full:Provisions",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfProvisionMatrixExplanatory",
       "ifrs-full:DisclosureOfProvisionsExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2022_NonCurrentMemberifrsfullPastDueStatusAxis",
      "name": "ifrs-full:Provisions",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfProvisionMatrixExplanatory",
       "ifrs-full:DisclosureOfProvisionsExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R132": {
     "role": "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail",
     "longName": "999124 - Disclosure - Provisions - Summary of Changes in Group's Provisions (Parenthetical) (Detail)",
     "shortName": "Provisions - Summary of Changes in Group's Provisions (Parenthetical) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "132",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:IncreaseDecreaseThroughTransfersAndOtherChangesPropertyPlantAndEquipment",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025_AssetsAndLiabilitiesClassifiedAsHeldForSaleMemberifrsfullAssetsAndLiabilitiesClassifiedAsHeldForSaleAxis_HydrocarbonWellsAbandonmentObligationsMemberifrsfullClassesOfLiabilitiesAxis_OptimizationPlanMemberifrsfullClassesOfAssetsAxis",
      "name": "ifrs-full:Provisions",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfProvisionMatrixExplanatory",
       "ifrs-full:DisclosureOfProvisionsExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R133": {
     "role": "http://www.ypf.com/role/ProvisionsAdditionalInformationDetail",
     "longName": "999125 - Disclosure - Provisions - Additional Information (Detail)",
     "shortName": "Provisions - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "133",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DescriptionOfNatureOfObligationContingentLiabilities",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:DescriptionOfNatureOfObligationContingentLiabilities",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R134": {
     "role": "http://www.ypf.com/role/IncomeTaxSummaryOfCalculationOfIncomeTaxExpenseAccruedDetail",
     "longName": "999126 - Disclosure - Income Tax - Summary of Calculation of Income Tax Expense Accrued (Detail)",
     "shortName": "Income Tax - Summary of Calculation of Income Tax Expense Accrued (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "134",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:CurrentTaxExpenseIncome",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfDetailedInformationAboutIncomeTaxExpenseExplanatory",
       "ifrs-full:DisclosureOfIncomeTaxExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:CurrentTaxExpenseIncome",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfDetailedInformationAboutIncomeTaxExpenseExplanatory",
       "ifrs-full:DisclosureOfIncomeTaxExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R135": {
     "role": "http://www.ypf.com/role/IncomeTaxSummaryOfReconciliationBetweenTheChargeToNetIncomeForIncomeTaxAndTheOneThatWouldResultFromApplyingThePrevailingTaxRateOnNetIncomeBeforeIncomeTaxArisingFromTheConsolidatedStatementsOfComprehensiveIncoe8f94",
     "longName": "999127 - Disclosure - Income Tax - Summary of Reconciliation between the Charge to Net Income for Income Tax and the One that would Result from Applying the Prevailing Tax Rate on Net Income Before Income Tax Arising from the Consolidated Statements of Comprehensive Income (Detail)",
     "shortName": "Income Tax - Summary of Reconciliation between the Charge to Net Income for Income Tax and the One that would Result from Applying the Prevailing Tax Rate on Net Income Before Income Tax Arising from the Consolidated Statements of Comprehensive Income (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "135",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:ProfitLossBeforeTax",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:TaxExpenseIncomeAtApplicableTaxRate",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfReconciliationOfTaxExpenseExplanatory",
       "ifrs-full:DisclosureOfIncomeTaxExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R136": {
     "role": "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfIncomeTaxLiabilityDetail",
     "longName": "999128 - Disclosure - Income Tax - Summary of Breakdown of Income Tax Liability (Detail)",
     "shortName": "Income Tax - Summary of Breakdown of Income Tax Liability (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "136",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:CurrentTaxLiabilitiesNoncurrent",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R137": {
     "role": "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfIncomeTaxLiabilityParentheticalsDetail",
     "longName": "999129 - Disclosure - Income Tax - Summary of Breakdown of Income Tax Liability (Parentheticals) (Detail)",
     "shortName": "Income Tax - Summary of Breakdown of Income Tax Liability (Parentheticals) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "137",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:CurrentTaxLiabilities",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDeferredTaxesExplanatory",
       "ifrs-full:DisclosureOfIncomeTaxExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025_HydrocarbonWellsAbandonmentCostsMemberYPFDetailsOneAxis_InstallmentsOfTheRegularizationRegimesAssociatedWithTheDisputeOverTheCostDeductionForHydrocarbonWellAbandonmentMemberYPFDetailsAxis_TwelveInstalmentsMemberYPFInstalmentsAxis",
      "name": "ifrs-full:CurrentTaxLiabilities",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDeferredTaxesExplanatory",
       "ifrs-full:DisclosureOfIncomeTaxExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R138": {
     "role": "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxDetail",
     "longName": "999130 - Disclosure - Income Tax - Summary of Breakdown of Deferred Tax (Detail)",
     "shortName": "Income Tax - Summary of Breakdown of Deferred Tax (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "138",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:NetDeferredTaxAssets",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDeferredTaxesExplanatory",
       "ifrs-full:DisclosureOfIncomeTaxExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:NetDeferredTaxAssets",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDeferredTaxesExplanatory",
       "ifrs-full:DisclosureOfIncomeTaxExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R139": {
     "role": "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxParentheticalDetail",
     "longName": "999131 - Disclosure - Income Tax - Summary of Breakdown of Deferred Tax (Parenthetical) (Detail)",
     "shortName": "Income Tax - Summary of Breakdown of Deferred Tax (Parenthetical) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "139",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:AdjustmentForInflationOfTheOpeningDeferredTaxOfCompaniesWithThePesoAsFunctionalCurrency",
      "unitRef": "Unit_ARS",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDeferredTaxesExplanatory",
       "ifrs-full:DisclosureOfIncomeTaxExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:AdjustmentForInflationOfTheOpeningDeferredTaxOfCompaniesWithThePesoAsFunctionalCurrency",
      "unitRef": "Unit_ARS",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDeferredTaxesExplanatory",
       "ifrs-full:DisclosureOfIncomeTaxExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R140": {
     "role": "http://www.ypf.com/role/IncomeTaxAdditionalInformationDetail",
     "longName": "999132 - Disclosure - Income Tax - Additional Information (Detail)",
     "shortName": "Income Tax - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "140",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:DeferredTaxAssets",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ypf:AmountsOfDeferredTaxAssetsNotRecognised",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "ypf:AmountsOfDeferredTaxAssetsNotRecognised",
       "ypf:AmountsOfDeferredTaxAssetsNotRecognised",
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R141": {
     "role": "http://www.ypf.com/role/TaxesPayableSummaryOfTaxesPayableDetail",
     "longName": "999133 - Disclosure - Taxes Payable - Summary of taxes payable (Detail)",
     "shortName": "Taxes Payable - Summary of taxes payable (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "141",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:NoncurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025_IvaMemberYPFTaxesByTypeAxis",
      "name": "ifrs-full:CurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfDetailedInformationAboutTaxesPayable",
       "ypf:DisclosureOfTaxesPayable",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R142": {
     "role": "http://www.ypf.com/role/SalariesAndSocialSecuritySummaryOfDetailedInformationAboutSalariesAndSocialSecurityDetail",
     "longName": "999134 - Disclosure - Salaries and social security - Summary of detailed information about salaries and social security (Detail)",
     "shortName": "Salaries and social security - Summary of detailed information about salaries and social security (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "142",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ypf:SalariesAndSocialSecurityPayablesCurrent",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfDetailedInformationAboutSalariesAndSocialSecurityTableTextBlock",
       "ypf:DisclosureOfSalariesAndSocialSecurityTextBlock",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ypf:SalariesAndSocialSecurityPayablesCurrent",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfDetailedInformationAboutSalariesAndSocialSecurityTableTextBlock",
       "ypf:DisclosureOfSalariesAndSocialSecurityTextBlock",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R143": {
     "role": "http://www.ypf.com/role/LeaseLiabilitiesSummaryOfLeaseLibilitiesDetail",
     "longName": "999135 - Disclosure - Lease liabilities - Summary of Lease Libilities (Detail)",
     "shortName": "Lease liabilities - Summary of Lease Libilities (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "143",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:NoncurrentLeaseLiabilities",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": null
    },
    "R144": {
     "role": "http://www.ypf.com/role/LeaseLiabilitiesSummaryOfLeaseLiabilitiesAndDiscountRatesDetail",
     "longName": "999136 - Disclosure - Lease liabilities - Summary of lease liabilities and discount rates (Detail)",
     "shortName": "Lease liabilities - Summary of lease liabilities and discount rates (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "144",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:LeaseLiabilities",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfLeaseLiabilitiesAndDiscountRatesTableTextBlock",
       "ifrs-full:DisclosureOfLeasesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025_NotLaterThanOneYearMemberifrsfullMaturityAxis",
      "name": "ifrs-full:LeaseLiabilities",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfLeaseLiabilitiesAndDiscountRatesTableTextBlock",
       "ifrs-full:DisclosureOfLeasesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R145": {
     "role": "http://www.ypf.com/role/LeaseLiabilitiesAdditionalInformationDetail",
     "longName": "999137 - Disclosure - Lease liabilities - Additional information (Detail)",
     "shortName": "Lease liabilities - Additional information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "145",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:InterestExpensesOnLeaseLiabilitiesIncurred",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "ifrs-full:DisclosureOfLeasesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:InterestExpenseOnLeaseLiabilities",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "ifrs-full:DisclosureOfLeasesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R146": {
     "role": "http://www.ypf.com/role/LeaseLiabilitiesSummaryOfLeaseLiabilitiesActivityDetail",
     "longName": "999138 - Disclosure - Lease liabilities - Summary of lease liabilities activity (Detail)",
     "shortName": "Lease liabilities - Summary of lease liabilities activity (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "146",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2024",
      "name": "ifrs-full:LeaseLiabilities",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfLeaseLiabilitiesAndDiscountRatesTableTextBlock",
       "ifrs-full:DisclosureOfLeasesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:AdditionsToLeaseLiabilities",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfLeaseLiabilitiesActivityTableTextBlock",
       "ifrs-full:DisclosureOfLeasesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R147": {
     "role": "http://www.ypf.com/role/LoansScheduleOfLoansDetail",
     "longName": "999139 - Disclosure - Loans - Schedule of Loans (Detail)",
     "shortName": "Loans - Schedule of Loans (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "147",
     "firstAnchor": {
      "contextRef": "PAsOn02_19_2026",
      "name": "ifrs-full:BorrowingsInterestRate",
      "unitRef": "Unit_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "4",
      "ancestors": [
       "div",
       "ifrs-full:DisclosureOfEventsAfterReportingPeriodExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025_ARSsrtCurrencyAxis",
      "name": "ifrs-full:LongtermBorrowings",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDetailedInformationAboutBorrowingsExplanatory",
       "ifrs-full:DisclosureOfLoansAndAdvancesToBanksExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R148": {
     "role": "http://www.ypf.com/role/LoansScheduleOfLoansParentheticalDetail",
     "longName": "999140 - Disclosure - Loans - Schedule of Loans (Parenthetical) (Detail)",
     "shortName": "Loans - Schedule of Loans (Parenthetical) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "148",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ypf:NegotiableObligationsRepurchased",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDetailedInformationAboutBorrowingsExplanatory",
       "ifrs-full:DisclosureOfLoansAndAdvancesToBanksExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ypf:NegotiableObligationsRepurchased",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfDetailedInformationAboutBorrowingsExplanatory",
       "ifrs-full:DisclosureOfLoansAndAdvancesToBanksExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R149": {
     "role": "http://www.ypf.com/role/LoansEvolutionOfTheLoansDetail",
     "longName": "999141 - Disclosure - Loans - Evolution of the Loans (Detail)",
     "shortName": "Loans - Evolution of the Loans (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "149",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2024",
      "name": "ifrs-full:Borrowings",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfEvolutionLoansExplanatory",
       "ifrs-full:DisclosureOfLoansAndAdvancesToBanksExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:AccruedInterestOnGroupLoans",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfEvolutionLoansExplanatory",
       "ifrs-full:DisclosureOfLoansAndAdvancesToBanksExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R150": {
     "role": "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail",
     "longName": "999142 - Disclosure - Loans - Details of Negotiable Obligations (Detail)",
     "shortName": "Loans - Details of Negotiable Obligations (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "150",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ypf:NoncurrentLoans",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfNegotiableObligationsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ypf:NoncurrentLoans",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfNegotiableObligationsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R151": {
     "role": "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsParentheticalDetail",
     "longName": "999143 - Disclosure - Loans - Details of Negotiable Obligations (Parenthetical) (Detail)",
     "shortName": "Loans - Details of Negotiable Obligations (Parenthetical) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "151",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025_MediumTermNotes1MemberifrsfullClassesOfAssetsAxis_NineteenNinetySevenMemberifrsfullMaturityAxis",
      "name": "ypf:NegotiableAmount",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfNegotiableObligationsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025_MediumTermNotes1MemberifrsfullClassesOfAssetsAxis_NineteenNinetySevenMemberifrsfullMaturityAxis",
      "name": "ypf:NegotiableAmount",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfNegotiableObligationsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R152": {
     "role": "http://www.ypf.com/role/OtherLiabilitiesDetailsOfOtherLiabilitiesDetail",
     "longName": "999144 - Disclosure - Other Liabilities - Details of Other Liabilities (Detail)",
     "shortName": "Other Liabilities - Details of Other Liabilities (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "152",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ypf:LiabilitiesForConcessionsCurrent",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfOtherLiabilitiesDetailsExplanatory",
       "ifrs-full:DisclosureOfOtherLiabilitiesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ypf:LiabilitiesForConcessionsCurrent",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfOtherLiabilitiesDetailsExplanatory",
       "ifrs-full:DisclosureOfOtherLiabilitiesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R153": {
     "role": "http://www.ypf.com/role/AccountsPayableDetailedInformationAboutAccountsPayableDetail",
     "longName": "999145 - Disclosure - Accounts payable - Detailed Information about Accounts Payable (Detail)",
     "shortName": "Accounts payable - Detailed Information about Accounts Payable (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "153",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:NoncurrentPayablesToTradeSuppliers",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfDetailedInformationAccountsPayableExplanatory",
       "ypf:DisclosureOfAccountsPayableExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:NoncurrentPayablesToTradeSuppliers",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfDetailedInformationAccountsPayableExplanatory",
       "ypf:DisclosureOfAccountsPayableExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R154": {
     "role": "http://www.ypf.com/role/RevenuesDetailedInformationAboutRevenueDetail",
     "longName": "999146 - Disclosure - Revenues - Detailed Information about Revenue (Detail)",
     "shortName": "Revenues - Detailed Information about Revenue (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "154",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:RevenuesFromContractsWithCustomers",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfNetRevenueExplanatory",
       "ifrs-full:DisclosureOfRevenueExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:RevenuesFromContractsWithCustomers",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfNetRevenueExplanatory",
       "ifrs-full:DisclosureOfRevenueExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R155": {
     "role": "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail",
     "longName": "999147 - Disclosure - Revenues - Summary of Breakdown of Revenues by Type of Good or Service (Detail)",
     "shortName": "Revenues - Summary of Breakdown of Revenues by Type of Good or Service (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "155",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:RevenueFromContractsWithCustomers",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfBreakdownOfRevenuesByTypeOfGoodOrServiceExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025_DieselMemberifrsfullProductsAndServicesAxis",
      "name": "ifrs-full:RevenueFromContractsWithCustomers",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfBreakdownOfRevenuesByTypeOfGoodOrServiceExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R156": {
     "role": "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceParentheticalDetail",
     "longName": "999148 - Disclosure - Revenues - Summary of Breakdown of Revenues by Type of Good or Service (Parenthetical) (Detail)",
     "shortName": "Revenues - Summary of Breakdown of Revenues by Type of Good or Service (Parenthetical) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "156",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:RevenueFromSaleOfNaturalGas",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:RevenueFromSaleOfNaturalGas",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R157": {
     "role": "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesBySalesChannelsDetail",
     "longName": "999149 - Disclosure - Revenues - Summary of Breakdown of Revenues by Sales Channels (Detail)",
     "shortName": "Revenues - Summary of Breakdown of Revenues by Sales Channels (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "157",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:RevenueFromContractsWithCustomers",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfBreakdownOfRevenuesByTypeOfGoodOrServiceExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025_GasStationsMemberifrsfullSalesChannelsAxis",
      "name": "ifrs-full:RevenueFromContractsWithCustomers",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfBreakdownOfRevenuesBySalesChannelsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R158": {
     "role": "http://www.ypf.com/role/RevenuesSummaryOfRevenueByGeographicAreaDetail",
     "longName": "999150 - Disclosure - Revenues - Summary of Revenue by Geographic Area (Detail)",
     "shortName": "Revenues - Summary of Revenue by Geographic Area (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "158",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:Revenue",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025_ARifrsfullGeographicalAreasAxis",
      "name": "ifrs-full:Revenue",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureInTabularFormOfDistributionOfRevenuesOnAGeographicalBasisTextBlock",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R159": {
     "role": "http://www.ypf.com/role/RevenuesAdditionalInformationDetail",
     "longName": "999151 - Disclosure - Revenues - Additional Information (Detail)",
     "shortName": "Revenues - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "159",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:Revenue",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:NumberOfExternalClientAccountedForTenPercentOrMoreOfRevenue",
      "unitRef": "Unit_Client",
      "xsiNil": "false",
      "lang": null,
      "decimals": "INF",
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R160": {
     "role": "http://www.ypf.com/role/RevenuesSummaryOfCreditsContractAssetsAndContractLiabilitiesDetail",
     "longName": "999152 - Disclosure - Revenues - Summary of Credits, Contract Assets and Contract Liabilities (Detail)",
     "shortName": "Revenues - Summary of Credits, Contract Assets and Contract Liabilities (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "160",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:CurrentReceivablesFromContractsWithCustomers",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfReditsContractAssetsAndContractLiabilitiesExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:CurrentReceivablesFromContractsWithCustomers",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfReditsContractAssetsAndContractLiabilitiesExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R161": {
     "role": "http://www.ypf.com/role/CostsDetailedInformationOfInventoryCostsDetail",
     "longName": "999153 - Disclosure - Costs - Detailed Information of Inventory Costs (Detail)",
     "shortName": "Costs - Detailed Information of Inventory Costs (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "161",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2024",
      "name": "ifrs-full:Inventories",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:InventoryPurchases",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfDetailsOfInventoryCostsExplanatory",
       "ifrs-full:DisclosureOfExpensesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R162": {
     "role": "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail",
     "longName": "999154 - Disclosure - Expenses by Nature - Detailed Information about Expenses by Nature (Detail)",
     "shortName": "Expenses by Nature - Detailed Information about Expenses by Nature (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "162",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:SalariesAndSocialSecurityTaxes",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfDetailsOfExpensesByNatureExplanatory",
       "ifrs-full:DisclosureOfExpensesByNatureExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:SalariesAndSocialSecurityTaxes",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfDetailsOfExpensesByNatureExplanatory",
       "ifrs-full:DisclosureOfExpensesByNatureExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R163": {
     "role": "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureParentheticalDetail",
     "longName": "999155 - Disclosure - Expenses by Nature - Detailed Information about Expenses by Nature (Parenthetical) (Detail)",
     "shortName": "Expenses by Nature - Detailed Information about Expenses by Nature (Parenthetical) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "163",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:ExportWithholdings",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfDetailsOfExpensesByNatureExplanatory",
       "ifrs-full:DisclosureOfExpensesByNatureExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:ExportWithholdings",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfDetailsOfExpensesByNatureExplanatory",
       "ifrs-full:DisclosureOfExpensesByNatureExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R164": {
     "role": "http://www.ypf.com/role/OtherNetOperatingResultsDetail",
     "longName": "999156 - Disclosure - Other Net Operating Results (Detail)",
     "shortName": "Other Net Operating Results (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "164",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:LawsuitsOtherOperatingExpense",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfOtherOperatingResultsNetExplanatory",
       "ifrs-full:DisclosureOfOtherOperatingIncomeExpenseExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:LawsuitsOtherOperatingExpense",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfOtherOperatingResultsNetExplanatory",
       "ifrs-full:DisclosureOfOtherOperatingIncomeExpenseExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R165": {
     "role": "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail",
     "longName": "999157 - Disclosure - Net Financial Results - Detailed Information about Financial Results (Detail)",
     "shortName": "Net Financial Results - Detailed Information about Financial Results (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "165",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:InterestIncomeOnCashAndCashEquivalents",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfDetailInformationFinancialResultsNetExplanatory",
       "ypf:DisclosureOfFinancialResultsNetExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:InterestIncomeOnCashAndCashEquivalents",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfDetailInformationFinancialResultsNetExplanatory",
       "ypf:DisclosureOfFinancialResultsNetExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R166": {
     "role": "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsParentheticalDetail",
     "longName": "999158 - Disclosure - Net Financial Results - Detailed Information about Financial Results (Parenthetical) (Detail)",
     "shortName": "Net Financial Results - Detailed Information about Financial Results (Parenthetical) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "166",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:AccretionOfLiabilitiesAssociatedWithAssetsHeldForSale",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfDetailInformationFinancialResultsNetExplanatory",
       "ypf:DisclosureOfFinancialResultsNetExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:AccretionOfLiabilitiesAssociatedWithAssetsHeldForSale",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfDetailInformationFinancialResultsNetExplanatory",
       "ypf:DisclosureOfFinancialResultsNetExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R167": {
     "role": "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationOfAssetsAndLiabilitiesDetail",
     "longName": "999159 - Disclosure - Investments in Joint Operations and Consortiums - Information of Assets and Liabilities (Detail)",
     "shortName": "Investments in Joint Operations and Consortiums - Information of Assets and Liabilities (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "167",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:NoncurrentAssets",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025_JointOperationsMemberifrsfullJointOperationsAxis",
      "name": "ifrs-full:NoncurrentAssets",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfInformationInAssetsLiabilitiesAndExpensesInJointOperationsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R168": {
     "role": "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail",
     "longName": "999160 - Disclosure - Investments in Joint Operations and Consortiums - Information about Exploration and Exploitation of Joint Ventures and Other Agreements (Detail)",
     "shortName": "Investments in Joint Operations and Consortiums - Information about Exploration and Exploitation of Joint Ventures and Other Agreements (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "168",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025_AcambucoMemberifrsfullGeographicalAreasAxis_PanAmericanEnergyMemberifrsfullCategoriesOfRelatedPartiesAxis",
      "name": "ifrs-full:PrincipalPlaceOfBusinessOfJointOperation",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025_AcambucoMemberifrsfullGeographicalAreasAxis_PanAmericanEnergyMemberifrsfullCategoriesOfRelatedPartiesAxis",
      "name": "ifrs-full:PrincipalPlaceOfBusinessOfJointOperation",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R169": {
     "role": "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail",
     "longName": "999161 - Disclosure - Shareholders' Equity - Additional Information (Detail)",
     "shortName": "Shareholders' Equity - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "169",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ypf:SubscribedCapital",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "ifrs-full:DisclosureOfShareCapitalReservesAndOtherEquityInterestExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ypf:SubscribedCapital",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "ifrs-full:DisclosureOfShareCapitalReservesAndOtherEquityInterestExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R170": {
     "role": "http://www.ypf.com/role/EarningsPerShareSummaryOfEarningsPerShareDetail",
     "longName": "999162 - Disclosure - Earnings Per Share - Summary of Earnings Per Share (Detail)",
     "shortName": "Earnings Per Share - Summary of Earnings Per Share (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "170",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:ProfitLossAttributableToOwnersOfParent",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:WeightedAverageShares",
      "unitRef": "Unit_shares",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:EarningsPerShareExplanatory",
       "ifrs-full:DisclosureOfEarningsPerShareExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R171": {
     "role": "http://www.ypf.com/role/ContingentAssetsAndLiabilitiesAdditionalInformationDetail",
     "longName": "999163 - Disclosure - Contingent Assets and Liabilities - Additional Information (Detail)",
     "shortName": "Contingent Assets and Liabilities - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "171",
     "firstAnchor": {
      "contextRef": "PAsOn03_30_2023_PetersonAndEtonParkAndYpfAndTheRepublicMemberYPFCaseDetailsAxis",
      "name": "ypf:ContractualLiabilityPayableValue",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn03_30_2023_PetersonAndEtonParkAndYpfAndTheRepublicMemberYPFCaseDetailsAxis",
      "name": "ypf:ContractualLiabilityPayableValue",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R172": {
     "role": "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail",
     "longName": "999164 - Disclosure - Contractual Commitments - Contractual Commitments - Additional Information (Detail)",
     "shortName": "Contractual Commitments - Contractual Commitments - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "172",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:AmountOfExpenseByNature",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:AmountOfExpenseByNature",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R173": {
     "role": "http://www.ypf.com/role/ContractualCommitmentsGrantedGuaranteesAdditionalInformationDetail",
     "longName": "999165 - Disclosure - Contractual Commitments - Granted Guarantees - Additional Information (Detail)",
     "shortName": "Contractual Commitments - Granted Guarantees - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "173",
     "firstAnchor": {
      "contextRef": "P01_22_2026To01_22_2026",
      "name": "ifrs-full:ProportionOfOwnershipInterestInSubsidiary",
      "unitRef": "Unit_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "div",
       "ifrs-full:DisclosureOfEventsAfterReportingPeriodExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn07_08_2025",
      "name": "ifrs-full:DebtInstrumentsHeld",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R174": {
     "role": "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail",
     "longName": "999166 - Disclosure - Main Regulations - Additional Information (Detail)",
     "shortName": "Main Regulations - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "174",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:ApplicableTaxRate",
      "unitRef": "Unit_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "4",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfReconciliationOfTaxExpenseExplanatory",
       "ifrs-full:DisclosureOfIncomeTaxExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ypf:CompensationsfromtheNationalGovernmentforthePlanGasAr20202024",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R175": {
     "role": "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail1",
     "longName": "999167 - Disclosure - Main Regulations - Additional Information (Detail 1)",
     "shortName": "Main Regulations - Additional Information (Detail 1)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "175",
     "firstAnchor": {
      "contextRef": "PAsOn12_21_2023_DecreeOfNecessityAndUrgencyDNUByItsAcronyminSpanishNo702023MemberYPFStatutoryActAxis",
      "name": "ypf:MaximumPercentageOfPermissibleInterestsInGasStations",
      "unitRef": "Unit_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_21_2023_DecreeOfNecessityAndUrgencyDNUByItsAcronyminSpanishNo702023MemberYPFStatutoryActAxis",
      "name": "ypf:MaximumPercentageOfPermissibleInterestsInGasStations",
      "unitRef": "Unit_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R176": {
     "role": "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail",
     "longName": "999168 - Disclosure - Balances and Transactions with Related Parties - Information Detailed in the Tables below Shows the Balances with Associates and Joint Ventures (Detail)",
     "shortName": "Balances and Transactions with Related Parties - Information Detailed in the Tables below Shows the Balances with Associates and Joint Ventures (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "176",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025",
      "name": "ifrs-full:OtherNoncurrentReceivables",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025_JointVenturesWhereEntityIsVenturerMemberifrsfullCategoriesOfRelatedPartiesAxis",
      "name": "ifrs-full:OtherCurrentReceivables",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfRelatedPartyTransactionsWithAssociatesAndJointVenturesExplanatory",
       "ypf:DisclosureOfBalancesAndTransactionsWithRelatedPartiesExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R177": {
     "role": "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationAboutRelatedPartyDetail",
     "longName": "999169 - Disclosure - Balances and Transactions with Related Parties - Information about Related Party (Detail)",
     "shortName": "Balances and Transactions with Related Parties - Information about Related Party (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "177",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025_GasarPlanMemberifrsfullMajorCustomersAxis_SeMemberifrsfullCategoriesOfRelatedPartiesAxis",
      "name": "ypf:AmountsReceivableOrPayableRelatedPartyTransactions",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfKeyManagementPersonnelCompensationExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025_GasarPlanMemberifrsfullMajorCustomersAxis_SeMemberifrsfullCategoriesOfRelatedPartiesAxis",
      "name": "ypf:AmountsReceivableOrPayableRelatedPartyTransactions",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfKeyManagementPersonnelCompensationExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R178": {
     "role": "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesSummaryOfCompensationOfKeyManagementPersonnelDetail",
     "longName": "999170 - Disclosure - Balances and Transactions with Related Parties - Summary of Compensation of Key Management Personnel (Detail)",
     "shortName": "Balances and Transactions with Related Parties - Summary of Compensation of Key Management Personnel (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "178",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:KeyManagementPersonnelCompensationShorttermEmployeeBenefits",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfCompensationOfKeyManagementPersonnelExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:KeyManagementPersonnelCompensationShorttermEmployeeBenefits",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfCompensationOfKeyManagementPersonnelExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R179": {
     "role": "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesSummaryOfCompensationOfKeyManagementPersonnelParentheticalDetail",
     "longName": "999171 - Disclosure - Balances and Transactions with Related Parties - Summary of Compensation of Key Management Personnel (Parenthetical) (Detail)",
     "shortName": "Balances and Transactions with Related Parties - Summary of Compensation of Key Management Personnel (Parenthetical) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "179",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:SocialSecurityContributions",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "link:footnote",
       "div",
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfCompensationOfKeyManagementPersonnelExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:SocialSecurityContributions",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "link:footnote",
       "div",
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfCompensationOfKeyManagementPersonnelExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R180": {
     "role": "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesAdditionalInformationDetail",
     "longName": "999172 - Disclosure - Balances and Transactions with Related Parties - Additional Information (Detail)",
     "shortName": "Balances and Transactions with Related Parties - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "180",
     "firstAnchor": {
      "contextRef": "P01_22_2026To01_22_2026",
      "name": "ifrs-full:ProportionOfOwnershipInterestInSubsidiary",
      "unitRef": "Unit_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "2",
      "ancestors": [
       "div",
       "ifrs-full:DisclosureOfEventsAfterReportingPeriodExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2024_SellingGeneralAndAdministrativeExpenseMemberYPFComprehensiveIncomeLocationAxis",
      "name": "ifrs-full:NoncurrentProvisions",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R181": {
     "role": "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsAdditionalInformationDetail",
     "longName": "999173 - Disclosure - Employee Benefit Plans and Similar Obligations - Additional Information (Detail)",
     "shortName": "Employee Benefit Plans and Similar Obligations - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "181",
     "firstAnchor": {
      "contextRef": "P04_30_2024To04_30_2024",
      "name": "ifrs-full:NumberOfShareOptionsGrantedInSharebasedPaymentArrangement",
      "unitRef": "Unit_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "P04_30_2024To04_30_2024",
      "name": "ifrs-full:DescriptionOfMaximumTermOfOptionsGrantedForSharebasedPaymentArrangement",
      "unitRef": null,
      "xsiNil": "false",
      "lang": "en-US",
      "decimals": null,
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R182": {
     "role": "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20202023Detail",
     "longName": "999174 - Disclosure - Employee Benefit Plans and Similar Obligations - Summary of Share Based Compensation Plan (Plan 2020-2023) (Detail)",
     "shortName": "Employee Benefit Plans and Similar Obligations - Summary of Share Based Compensation Plan (Plan 2020-2023) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "182",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2023_ShareBasedBenefitPlanTwoThousandTwentyToTwoThousandTwentyThreeMemberifrsfullTypesOfSharebasedPaymentArrangementsAxis",
      "name": "ifrs-full:NumberOfOutstandingShareOptions",
      "unitRef": "Unit_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfNumberAndWeightedAverageExercisePricesOfShareOptionsExplanatory",
       "ypf:DisclosureOfEmployeeBenefitPlansAndShareBasedPaymentsExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2023_ShareBasedBenefitPlanTwoThousandTwentyToTwoThousandTwentyThreeMemberifrsfullTypesOfSharebasedPaymentArrangementsAxis",
      "name": "ifrs-full:NumberOfOutstandingShareOptions",
      "unitRef": "Unit_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfNumberAndWeightedAverageExercisePricesOfShareOptionsExplanatory",
       "ypf:DisclosureOfEmployeeBenefitPlansAndShareBasedPaymentsExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R183": {
     "role": "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20212024Detail",
     "longName": "999175 - Disclosure - Employee Benefit Plans and Similar Obligations - Summary of Share Based Compensation Plan (Plan 2021-2024) (Detail)",
     "shortName": "Employee Benefit Plans and Similar Obligations - Summary of Share Based Compensation Plan (Plan 2021-2024) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "183",
     "firstAnchor": {
      "contextRef": "P04_30_2024To04_30_2024",
      "name": "ifrs-full:NumberOfShareOptionsGrantedInSharebasedPaymentArrangement",
      "unitRef": "Unit_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2022_ShareBasedBenefitPlanTwoThousandTwentyOneToTwoThousandTwentyFourMemberifrsfullTypesOfSharebasedPaymentArrangementsAxis",
      "name": "ifrs-full:NumberOfOutstandingShareOptions",
      "unitRef": "Unit_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfNumberAndWeightedAverageExercisePricesOfShareOptionsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R184": {
     "role": "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20222025Detail",
     "longName": "999176 - Disclosure - Employee Benefit Plans and Similar Obligations - Summary of Share Based Compensation Plan (Plan 2022-2025) (Detail)",
     "shortName": "Employee Benefit Plans and Similar Obligations - Summary of Share Based Compensation Plan (Plan 2022-2025) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "184",
     "firstAnchor": {
      "contextRef": "P04_30_2024To04_30_2024",
      "name": "ifrs-full:NumberOfShareOptionsGrantedInSharebasedPaymentArrangement",
      "unitRef": "Unit_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2022_ShareBasedBenefitPlanTwoThousandTwentyTwoToTwoThousandTwentyFiveMemberifrsfullTypesOfSharebasedPaymentArrangementsAxis",
      "name": "ifrs-full:NumberOfOutstandingShareOptions",
      "unitRef": "Unit_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfNumberAndWeightedAverageExercisePricesOfShareOptionsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R185": {
     "role": "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20232026Detail",
     "longName": "999177 - Disclosure - Employee Benefit Plans and Similar Obligations - Summary of Share Based Compensation Plan (Plan 2023-2026) (Detail)",
     "shortName": "Employee Benefit Plans and Similar Obligations - Summary of Share Based Compensation Plan (Plan 2023-2026) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "185",
     "firstAnchor": {
      "contextRef": "P04_30_2024To04_30_2024",
      "name": "ifrs-full:NumberOfShareOptionsGrantedInSharebasedPaymentArrangement",
      "unitRef": "Unit_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025_ShareBasedBenefitPlanTwoThousandTwentyThreeToTwoThousandTwentySixMemberifrsfullTypesOfSharebasedPaymentArrangementsAxis",
      "name": "ifrs-full:NumberOfShareOptionsGrantedInSharebasedPaymentArrangement",
      "unitRef": "Unit_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfNumberAndWeightedAverageExercisePricesOfShareOptionsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R186": {
     "role": "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20242027Detail",
     "longName": "999178 - Disclosure - Employee Benefit Plans and Similar Obligations - Summary of Share Based Compensation Plan (Plan 2024-2027) (Detail)",
     "shortName": "Employee Benefit Plans and Similar Obligations - Summary of Share Based Compensation Plan (Plan 2024-2027) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "186",
     "firstAnchor": {
      "contextRef": "P04_30_2024To04_30_2024",
      "name": "ifrs-full:NumberOfShareOptionsGrantedInSharebasedPaymentArrangement",
      "unitRef": "Unit_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025_ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwoThousandAndTwentySevenMemberifrsfullTypesOfSharebasedPaymentArrangementsAxis",
      "name": "ifrs-full:NumberOfShareOptionsGrantedInSharebasedPaymentArrangement",
      "unitRef": "Unit_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfNumberAndWeightedAverageExercisePricesOfShareOptionsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R187": {
     "role": "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20252028Detail",
     "longName": "999179 - Disclosure - Employee Benefit Plans and Similar Obligations - Summary of Share Based Compensation Plan (Plan 2025-2028) (Detail)",
     "shortName": "Employee Benefit Plans and Similar Obligations - Summary of Share Based Compensation Plan (Plan 2025-2028) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "187",
     "firstAnchor": {
      "contextRef": "P04_30_2024To04_30_2024",
      "name": "ifrs-full:NumberOfShareOptionsGrantedInSharebasedPaymentArrangement",
      "unitRef": "Unit_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-5",
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025_Plan20252028MemberifrsfullTypesOfSharebasedPaymentArrangementsAxis",
      "name": "ifrs-full:NumberOfShareOptionsGrantedInSharebasedPaymentArrangement",
      "unitRef": "Unit_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfNumberAndWeightedAverageExercisePricesOfShareOptionsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R188": {
     "role": "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail",
     "longName": "999180 - Disclosure - Subsequent Events - Additional Information (Detail)",
     "shortName": "Subsequent Events - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "188",
     "firstAnchor": {
      "contextRef": "PAsOn02_19_2026",
      "name": "ifrs-full:BorrowingsInterestRate",
      "unitRef": "Unit_pure",
      "xsiNil": "false",
      "lang": null,
      "decimals": "4",
      "ancestors": [
       "div",
       "ifrs-full:DisclosureOfEventsAfterReportingPeriodExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn02_19_2026",
      "name": "ifrs-full:NotionalAmount",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "ifrs-full:DisclosureOfEventsAfterReportingPeriodExplanatory",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R189": {
     "role": "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail",
     "longName": "999181 - Disclosure - Supplemental Information on Oil And Gas Producing Activities (Unaudited) - Summary of Changes in YPF's Net Proved Reserves (Detail)",
     "shortName": "Supplemental Information on Oil And Gas Producing Activities (Unaudited) - Summary of Changes in YPF's Net Proved Reserves (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "189",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025_ConsolidatedStructuredEntitiesMemberifrsfullConsolidatedStructuredEntitiesAxis",
      "name": "ypf:OilAndCondensateReservePurchaseOfMinerals",
      "unitRef": "Unit_MMBbls",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfInformationAboutConsolidatedStructuredEntitiesExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025_ConsolidatedStructuredEntitiesMemberifrsfullConsolidatedStructuredEntitiesAxis",
      "name": "ypf:OilAndCondensateReservePurchaseOfMinerals",
      "unitRef": "Unit_MMBbls",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ifrs-full:DisclosureOfInformationAboutConsolidatedStructuredEntitiesExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R190": {
     "role": "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesParentheticalDetail",
     "longName": "999182 - Disclosure - Supplemental Information on Oil And Gas Producing Activities (Unaudited) - Summary of Changes in YPF's Net Proved Reserves (Parenthetical) (Detail)",
     "shortName": "Supplemental Information on Oil And Gas Producing Activities (Unaudited) - Summary of Changes in YPF's Net Proved Reserves (Parenthetical) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "190",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:EstimatedCrudeOilProductionDuringPeriod",
      "unitRef": "Unit_MMBbls",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:EstimatedCrudeOilProductionDuringPeriod",
      "unitRef": "Unit_MMBbls",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ix:continuation",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R191": {
     "role": "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail",
     "longName": "999183 - Disclosure - Supplemental Information on Oil And Gas Producing Activities (Unaudited) - Additional Information (Detail)",
     "shortName": "Supplemental Information on Oil And Gas Producing Activities (Unaudited) - Additional Information (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "191",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:ExtensionsAndDiscoveriesOfProvedUndevelopedReserves",
      "unitRef": "Unit_MBoe",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ypf:ExtensionsAndDiscoveriesOfProvedUndevelopedReserves",
      "unitRef": "Unit_MBoe",
      "xsiNil": "false",
      "lang": null,
      "decimals": "0",
      "ancestors": [
       "div",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R192": {
     "role": "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesDetail",
     "longName": "999184 - Disclosure - Supplemental Information on Oil And Gas Producing Activities (Unaudited) - Summary of Capitalized Costs, Along with the related Accumulated Depreciation and Allowances (Detail)",
     "shortName": "Supplemental Information on Oil And Gas Producing Activities (Unaudited) - Summary of Capitalized Costs, Along with the related Accumulated Depreciation and Allowances (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "192",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025_ARifrsfullGeographicalAreasAxis",
      "name": "ypf:MineralPropertyWellsAndRelatedEquipment",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfCapitalizedCostsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025_ARifrsfullGeographicalAreasAxis",
      "name": "ypf:MineralPropertyWellsAndRelatedEquipment",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfCapitalizedCostsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R193": {
     "role": "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesParentheticalDetail",
     "longName": "999185 - Disclosure - Supplemental Information on Oil And Gas Producing Activities (Unaudited) - Summary of Capitalized Costs, Along with the related Accumulated Depreciation and Allowances (Parenthetical) (Detail)",
     "shortName": "Supplemental Information on Oil And Gas Producing Activities (Unaudited) - Summary of Capitalized Costs, Along with the related Accumulated Depreciation and Allowances (Parenthetical) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "193",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025_IFRS16MemberifrsfullNewIFRSsAxis",
      "name": "ypf:UpstreamWellsRelatedEquipmentContractsComprisedInRightOfUseAssets",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfCapitalizedCostsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025_IFRS16MemberifrsfullNewIFRSsAxis",
      "name": "ypf:UpstreamWellsRelatedEquipmentContractsComprisedInRightOfUseAssets",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfCapitalizedCostsExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R194": {
     "role": "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesDetail",
     "longName": "999186 - Disclosure - Supplemental Information on Oil And Gas Producing Activities (Unaudited) - Costs Incurred for Oil and Gas Producing Activities (Detail)",
     "shortName": "Supplemental Information on Oil And Gas Producing Activities (Unaudited) - Costs Incurred for Oil and Gas Producing Activities (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "194",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025_ARifrsfullGeographicalAreasAxis",
      "name": "ypf:AcquisitionOfUnprovedProperties",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfCostIncurredInOilAndGasProducingActivityExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025_ARifrsfullGeographicalAreasAxis",
      "name": "ypf:AcquisitionOfUnprovedProperties",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfCostIncurredInOilAndGasProducingActivityExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R195": {
     "role": "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesParentheticalDetail",
     "longName": "999187 - Disclosure - Supplemental Information on Oil And Gas Producing Activities (Unaudited) - Costs Incurred for Oil and Gas Producing Activities (Parenthetical) (Detail)",
     "shortName": "Supplemental Information on Oil And Gas Producing Activities (Unaudited) - Costs Incurred for Oil and Gas Producing Activities (Parenthetical) (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "parenthetical",
     "menuCat": "Details",
     "order": "195",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025_UpstreamContractsComprisedInRightOfUseAssetsMemberifrsfullTypesOfContractsAxis",
      "name": "ypf:DevelopmentCostRelatedToUpstreamContractsComprisedInRightOfUseAssets",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfCostIncurredInOilAndGasProducingActivityExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025_UpstreamContractsComprisedInRightOfUseAssetsMemberifrsfullTypesOfContractsAxis",
      "name": "ypf:DevelopmentCostRelatedToUpstreamContractsComprisedInRightOfUseAssets",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfCostIncurredInOilAndGasProducingActivityExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R196": {
     "role": "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsFromOilAndGasProducingActivitiesDetail",
     "longName": "999188 - Disclosure - Supplemental Information on Oil And Gas Producing Activities (Unaudited) - Results of Operations from Oil and Gas Producing Activities (Detail)",
     "shortName": "Supplemental Information on Oil And Gas Producing Activities (Unaudited) - Results of Operations from Oil and Gas Producing Activities (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "196",
     "firstAnchor": {
      "contextRef": "P01_01_2025To12_31_2025",
      "name": "ifrs-full:ProfitLossBeforeTax",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "div",
       "div",
       "td",
       "tr",
       "table",
       "div",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "P01_01_2025To12_31_2025_ARifrsfullGeographicalAreasAxis",
      "name": "ypf:NetSalesToUnaffiliatedParties",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfOilAndGasProducingActivitiesExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    },
    "R197": {
     "role": "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail",
     "longName": "999189 - Disclosure - Supplemental Information on Oil And Gas Producing Activities (Unaudited) - Summary of Standardized Measure of Discounted Future Net Cash Flows (Detail)",
     "shortName": "Supplemental Information on Oil And Gas Producing Activities (Unaudited) - Summary of Standardized Measure of Discounted Future Net Cash Flows (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "197",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2025_ARifrsfullGeographicalAreasAxis",
      "name": "srt:FutureNetCashFlowsRelatingToProvedOilAndGasReservesCashInflows",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfDiscountedFutureNetCashFlowFromOilAndGasExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2025_ARifrsfullGeographicalAreasAxis",
      "name": "srt:FutureNetCashFlowsRelatingToProvedOilAndGasReservesCashInflows",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfDiscountedFutureNetCashFlowFromOilAndGasExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true,
      "unique": true
     }
    },
    "R198": {
     "role": "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInTheStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail",
     "longName": "999190 - Disclosure - Supplemental Information on Oil And Gas Producing Activities (Unaudited) - Summary of Changes in the Standardized Measure of Discounted Future Net Cash Flows (Detail)",
     "shortName": "Supplemental Information on Oil And Gas Producing Activities (Unaudited) - Summary of Changes in the Standardized Measure of Discounted Future Net Cash Flows (Detail)",
     "isDefault": "false",
     "groupType": "disclosure",
     "subGroupType": "details",
     "menuCat": "Details",
     "order": "198",
     "firstAnchor": {
      "contextRef": "PAsOn12_31_2024",
      "name": "srt:StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserves",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfStandardizedMeasureOfFutureNetCashFlowFromOilAndGasExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "first": true
     },
     "uniqueAnchor": {
      "contextRef": "PAsOn12_31_2022",
      "name": "srt:StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserves",
      "unitRef": "Unit_USD",
      "xsiNil": "false",
      "lang": null,
      "decimals": "-6",
      "ancestors": [
       "td",
       "tr",
       "table",
       "ypf:DisclosureOfStandardizedMeasureOfFutureNetCashFlowFromOilAndGasExplanatory",
       "ix:continuation",
       "div",
       "div",
       "div",
       "div",
       "body",
       "html"
      ],
      "reportCount": 1,
      "baseRef": "d95578d20f.htm",
      "unique": true
     }
    }
   },
   "tag": {
    "ypf_AESAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AESAMember",
     "presentation": [
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "AESA [Member]",
        "terseLabel": "AESA [member]",
        "documentation": "AESA."
       }
      }
     },
     "auth_ref": []
    },
    "country_AR": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/country/2025",
     "localname": "AR",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfPropertyPlantAndEquipmentByGeographicAreaDetail",
      "http://www.ypf.com/role/RevenuesSummaryOfRevenueByGeographicAreaDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsFromOilAndGasProducingActivitiesDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ARGENTINA",
        "terseLabel": "Argentina [member]"
       }
      }
     },
     "auth_ref": []
    },
    "currency_ARS": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/currency/2025",
     "localname": "ARS",
     "presentation": [
      "http://www.ypf.com/role/LoansScheduleOfLoansDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Argentina, Pesos",
        "terseLabel": "Argentine pesos [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AcambucoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AcambucoMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acambuco [Member]",
        "terseLabel": "Acambuco [member]",
        "documentation": "Acambuco."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AccountOverdraftMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AccountOverdraftMember",
     "presentation": [
      "http://www.ypf.com/role/LoansScheduleOfLoansDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Account Overdraft [member]",
        "terseLabel": "Account Overdraft [member]",
        "documentation": "Account overdraft."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AccountingEstimatesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AccountingEstimatesAxis",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting estimates [axis]",
        "terseLabel": "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": [
      "r100",
      "r303"
     ]
    },
    "ifrs-full_AccountingEstimatesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AccountingEstimatesDomain",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounting estimates [domain]",
        "terseLabel": "Accounting estimates [member]"
       }
      },
      "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": [
      "r100",
      "r303"
     ]
    },
    "ypf_AccountsPayable1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AccountsPayable1Member",
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounts Payable 1 [member]",
        "terseLabel": "Accounts payable [member]",
        "documentation": "Accounts payable."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AccountsReceivableAndRelatedPartiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AccountsReceivableAndRelatedPartiesMember",
     "presentation": [
      "http://www.ypf.com/role/TradeReceivablesSummaryOfTradeReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accounts Receivable And Related Parties [member]",
        "terseLabel": "Accounts Receivable and Related Parties [member]",
        "documentation": "Accounts receivable and related parties."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AccretionOfDiscount1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AccretionOfDiscount1",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInTheStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accretion of discount1",
        "terseLabel": "Accretion of discount",
        "documentation": "Accretion of discount1."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AccretionOfLiabilitiesAssociatedWithAssetsHeldForSale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AccretionOfLiabilitiesAssociatedWithAssetsHeldForSale",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accretion Of Liabilities Associated With Assets Held For Sale",
        "terseLabel": "Accretion of liabilities associated with assets held for sale",
        "documentation": "Accretion of liabilities associated with assets held for sale."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AccruedInterestOnGroupLoans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AccruedInterestOnGroupLoans",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/LoansEvolutionOfTheLoansDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accrued Interest On Group Loans",
        "terseLabel": "Accrued interest",
        "documentation": "Accrued interest on group loans."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AccumulatedDepreciationAmortisationAndImpairmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AccumulatedDepreciationAmortisationAndImpairmentMember",
     "presentation": [
      "http://www.ypf.com/role/IntangibleAssetsSummaryOfChangesInIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated depreciation, amortisation and impairment [member]",
        "terseLabel": "Accumulated amortization [member]"
       }
      }
     },
     "auth_ref": [
      "r11",
      "r22",
      "r77",
      "r85",
      "r88",
      "r313",
      "r342",
      "r348",
      "r351"
     ]
    },
    "ifrs-full_AccumulatedDepreciationAndAmortisationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AccumulatedDepreciationAndAmortisationMember",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail",
      "http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated depreciation and amortisation [member]",
        "terseLabel": "Accumulated depreciation [member]"
       }
      }
     },
     "auth_ref": [
      "r22",
      "r641",
      "r645",
      "r651",
      "r652"
     ]
    },
    "ypf_AccumulatedDepreciationAndValuationAllowances": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AccumulatedDepreciationAndValuationAllowances",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesDetail": {
       "parentTag": "ypf_NetCapitalizedCost",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated Depreciation And Valuation Allowances",
        "negatedLabel": "Accumulated depreciation and valuation allowances",
        "documentation": "Accumulated Depreciation of all Upstream contracts"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AccumulatedDepreciationOfAllUpstreamContractsComprisedInRightOfUseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AccumulatedDepreciationOfAllUpstreamContractsComprisedInRightOfUseAssets",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated Depreciation Of All Upstream Contracts Comprised In Right Of Use Assets",
        "terseLabel": "Accumulated depreciation of all Upstream contracts comprised in right-of-use assets",
        "documentation": "Accumulated depreciation of all Upstream contracts comprised in right-of-use assets."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AccumulatedOtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AccumulatedOtherComprehensiveIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": 1.0,
       "order": 29.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated other comprehensive income",
        "terseLabel": "Other comprehensive income"
       }
      }
     },
     "auth_ref": [
      "r678"
     ]
    },
    "ifrs-full_AccumulatedOtherComprehensiveIncomeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AccumulatedOtherComprehensiveIncomeMember",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Accumulated other comprehensive income [member]",
        "terseLabel": "Other comprehensive income [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for accumulated other comprehensive income. [Refer: Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r674"
     ]
    },
    "ypf_AcquisitionCostOfTreasuryShares": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AcquisitionCostOfTreasuryShares",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": -1.0,
       "order": 30.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquisition Cost Of Treasury Shares",
        "negatedLabel": "Acquisition cost of treasury shares",
        "documentation": "Acquisition cost of treasury shares."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AcquisitionCostOfTreasurySharesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AcquisitionCostOfTreasurySharesMember",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquisition Cost Of Treasury Shares [member]",
        "terseLabel": "Acquisition cost of treasury shares [member]",
        "documentation": "Acquisition cost of treasury shares."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AcquisitionOfProvedProperties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AcquisitionOfProvedProperties",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquisition Of Proved Properties",
        "terseLabel": "Acquisition of proved properties",
        "documentation": "Acquisition of proved properties."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AcquisitionOfUnprovedProperties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AcquisitionOfUnprovedProperties",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesDetail": {
       "parentTag": "ypf_CostsIncurredInOilAndGasProductivity",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquisition Of Unproved Properties",
        "terseLabel": "Acquisition of unproved properties",
        "documentation": "Acquisition of unproved properties."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AcquisitiondateFairValueOfTotalConsiderationTransferred": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AcquisitiondateFairValueOfTotalConsiderationTransferred",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consideration transferred, acquisition-date fair value",
        "verboseLabel": "Total price of the transaction"
       }
      },
      "en": {
       "role": {
        "documentation": "The fair value, at acquisition date, of the consideration transferred in a business combination. [Refer: Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r192",
      "r365"
     ]
    },
    "ypf_AcquisitionsAndContributions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AcquisitionsAndContributions",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfMovementsWhichAffectedTheValueOfTheInvestmentsInAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquisitions and Contributions",
        "terseLabel": "Acquisitions and contributions",
        "documentation": "Acquisitions and contributions."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AcquisitionsThroughBusinessCombinationsIntangibleAssetsAndGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AcquisitionsThroughBusinessCombinationsIntangibleAssetsAndGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/IntangibleAssetsSummaryOfChangesInIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquisitions through business combinations, intangible assets and goodwill",
        "terseLabel": "Increases from business combinations"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase in intangible assets and goodwill resulting from acquisitions through business combinations. [Refer: Total for all business combinations [member]; Intangible assets and goodwill]"
       }
      }
     },
     "auth_ref": [
      "r646"
     ]
    },
    "ifrs-full_AcquisitionsThroughBusinessCombinationsOtherProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AcquisitionsThroughBusinessCombinationsOtherProvisions",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquisitions through business combinations, other provisions",
        "terseLabel": "Increases from business combinations"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase in other provisions resulting from acquisitions through business combinations. [Refer: Total for all business combinations [member]; Other provisions]"
       }
      }
     },
     "auth_ref": [
      "r644"
     ]
    },
    "ifrs-full_AcquisitionsThroughBusinessCombinationsPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AcquisitionsThroughBusinessCombinationsPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Acquisitions through business combinations, property, plant and equipment",
        "terseLabel": "Acquisitions of property, plant and equipment",
        "verboseLabel": "Increases from business combinations"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase in property, plant and equipment resulting from acquisitions through business combinations. [Refer: Total for all business combinations [member]; Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r13",
      "r315"
     ]
    },
    "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": [
      "r575"
     ]
    },
    "ypf_AdditionalLicenseRenewalTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AdditionalLicenseRenewalTerm",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional License Renewal Term",
        "terseLabel": "Additional license renewal term",
        "documentation": "Additional license renewal term."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AdditionalNumberOfLeaseTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AdditionalNumberOfLeaseTerm",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additional Number Of Lease Term",
        "terseLabel": "Additional number of lease term",
        "documentation": "Additional number of lease term."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdditionsOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdditionsOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionForObsolescenceOfMaterialsAndEquipmentDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionsForImpairmentOfPropertyPlantAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additions other than through business combinations, property, plant and equipment",
        "verboseLabel": "Increases charged to profit or loss",
        "positiveLabel": "Increases charged to profit or loss"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of additions to property, plant and equipment other than those acquired through business combinations. [Refer: Total for all business combinations [member]; Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r12",
      "r314"
     ]
    },
    "ypf_AdditionsToLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AdditionsToLeaseLiabilities",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/LeaseLiabilitiesSummaryOfLeaseLiabilitiesActivityDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additions To Lease Liabilities",
        "terseLabel": "Increases of leases",
        "documentation": "Additions to lease liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdditionsToRightofuseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdditionsToRightofuseAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail",
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlowsParenthetical",
      "http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Additions to right-of-use assets",
        "terseLabel": "Additions of right-of-use assets",
        "presentationGuidance": "Acquisitions of right-of-use assets",
        "verboseLabel": "Increases"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of additions to right-of-use assets. [Refer: Right-of-use assets]"
       }
      }
     },
     "auth_ref": [
      "r159",
      "r278"
     ]
    },
    "dei_AddressTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "AddressTypeDomain",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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": [
      "r588"
     ]
    },
    "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": [
      "r588"
     ]
    },
    "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": [
      "r588"
     ]
    },
    "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": [
      "r588"
     ]
    },
    "ypf_AdjustedIncomeTaxExpenseBenefit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AdjustedIncomeTaxExpenseBenefit",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfCalculationOfIncomeTaxExpenseAccruedDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjusted Income Tax Expense Benefit",
        "negatedTotalLabel": "Income tax (expense)/ benefit",
        "documentation": "Income tax (expense)/ benefit."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AdjustmentForInflation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AdjustmentForInflation",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustment for Inflation",
        "documentation": "Adjustment for inflation."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AdjustmentForInflationOfTheOpeningDeferredTaxOfCompaniesWithThePesoAsFunctionalCurrency": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AdjustmentForInflationOfTheOpeningDeferredTaxOfCompaniesWithThePesoAsFunctionalCurrency",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustment For Inflation Of The Opening Deferred Tax Of Companies With The Peso As Functional Currency",
        "terseLabel": "Adjustment for inflation of the opening deferred tax of companies with the peso as functional currency",
        "documentation": "Adjustment for inflation of the opening deferred tax of companies with the peso as functional currency."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AdjustmentForTaxInflationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AdjustmentForTaxInflationMember",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustment For Tax Inflation [Member]",
        "terseLabel": "Adjustment For Tax Inflation [member]",
        "documentation": "Adjustment for tax inflation."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdjustmentsForAmortisationExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForAmortisationExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 22.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments for amortisation expense",
        "terseLabel": "Amortization of intangible assets"
       }
      }
     },
     "auth_ref": [
      "r657"
     ]
    },
    "ifrs-full_AdjustmentsForDecreaseIncreaseInContractAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForDecreaseIncreaseInContractAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 42.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments for decrease increase in contract assets",
        "verboseLabel": "Contract assets"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for the decrease (increase) in contract assets to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Contract assets; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r655"
     ]
    },
    "ifrs-full_AdjustmentsForDecreaseIncreaseInInventories": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForDecreaseIncreaseInInventories",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 31.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments for decrease (increase) in inventories",
        "terseLabel": "Inventories"
       }
      }
     },
     "auth_ref": [
      "r655"
     ]
    },
    "ifrs-full_AdjustmentsForDecreaseIncreaseInOtherOperatingReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForDecreaseIncreaseInOtherOperatingReceivables",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 30.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments for decrease (increase) in other operating receivables",
        "terseLabel": "Other receivables"
       }
      }
     },
     "auth_ref": [
      "r655"
     ]
    },
    "ifrs-full_AdjustmentsForDecreaseIncreaseInTradeAccountReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForDecreaseIncreaseInTradeAccountReceivable",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 29.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments for decrease (increase) in trade accounts receivable",
        "terseLabel": "Trade receivables"
       }
      }
     },
     "auth_ref": [
      "r655"
     ]
    },
    "ifrs-full_AdjustmentsForDepreciationExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForDepreciationExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 21.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments for depreciation expense",
        "terseLabel": "Depreciation of property, plant and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for depreciation expense to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r657"
     ]
    },
    "ifrs-full_AdjustmentsForImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossInventories": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLossInventories",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 45.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments for impairment loss (reversal of impairment loss) recognised in profit or loss, inventories",
        "terseLabel": "(Reversal) / Impairment of property, plant and equipment and inventories write-down"
       }
      }
     },
     "auth_ref": [
      "r657"
     ]
    },
    "ifrs-full_AdjustmentsForIncomeTaxExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForIncomeTaxExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 24.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments for income tax expense",
        "terseLabel": "Charge on income tax"
       }
      }
     },
     "auth_ref": [
      "r93"
     ]
    },
    "ifrs-full_AdjustmentsForIncreaseDecreaseInContractLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForIncreaseDecreaseInContractLiabilities",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 43.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments for increase (decrease) in contract liabilities",
        "terseLabel": "Contract liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for the increase (decrease) in contract liabilities to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Contract liabilities; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r655"
     ]
    },
    "ifrs-full_AdjustmentsForIncreaseDecreaseInEmployeeBenefitLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForIncreaseDecreaseInEmployeeBenefitLiabilities",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 34.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments for increase (decrease) in employee benefit liabilities",
        "terseLabel": "Salaries and social security"
       }
      },
      "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": [
      "r657"
     ]
    },
    "ypf_AdjustmentsForIncreaseDecreaseInOtherInsuranceIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AdjustmentsForIncreaseDecreaseInOtherInsuranceIncome",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 41.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments For Increase (decrease) In Other Insurance Income",
        "verboseLabel": "Other insurance income",
        "documentation": "Adjustments for increase (decrease) in Other insurance income."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdjustmentsForIncreaseDecreaseInOtherLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForIncreaseDecreaseInOtherLiabilities",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 35.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments for increase (decrease) in other liabilities",
        "terseLabel": "Other liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "Adjustments for increase (decrease) in other liabilities to reconcile profit (loss) to net cash flow from (used in) operating activities. [Refer: Other liabilities; Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r657"
     ]
    },
    "ypf_AdjustmentsForIncreaseDecreaseInProvision": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AdjustmentsForIncreaseDecreaseInProvision",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": -1.0,
       "order": 36.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments For Increase Decrease In Provision",
        "negatedLabel": "Decrease in provisions due to payment/use",
        "documentation": "Adjustments for increase (decrease) in provision."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdjustmentsForIncreaseDecreaseInTradeAccountPayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForIncreaseDecreaseInTradeAccountPayable",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 32.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments for increase (decrease) in trade accounts payable",
        "terseLabel": "Accounts payable"
       }
      }
     },
     "auth_ref": [
      "r655"
     ]
    },
    "ifrs-full_AdjustmentsForLossesGainsOnDisposalOfNoncurrentAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForLossesGainsOnDisposalOfNoncurrentAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 23.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments for losses (gains) on disposal of non-current assets",
        "terseLabel": "Retirement of property, plant and equipment and intangible assets and consumption of materials"
       }
      }
     },
     "auth_ref": [
      "r653"
     ]
    },
    "ypf_AdjustmentsForProceedsFromCollectionOfLostProfitInsurance": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AdjustmentsForProceedsFromCollectionOfLostProfitInsurance",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 38.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments for proceeds from collection of lost profit insurance",
        "terseLabel": "Proceeds from collection of profit loss insurance",
        "documentation": "Adjustments for proceeds from collection of lost profit insurance classified as operating activities."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdjustmentsForProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForProvisions",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 25.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments for provisions",
        "terseLabel": "Net increase in provisions"
       }
      }
     },
     "auth_ref": [
      "r656"
     ]
    },
    "ifrs-full_AdjustmentsForReconcileProfitLossAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForReconcileProfitLossAbstract",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments to reconcile profit (loss) [abstract]",
        "verboseLabel": "Adjustments to reconcile net (loss) / profit to cash flows provided by operating activities:"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AdjustmentsForResultFromSaleOfAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AdjustmentsForResultFromSaleOfAssets",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": -1.0,
       "order": 44.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments For Result from Sale of Assets",
        "negatedLabel": "Result from sale of assets",
        "documentation": "Adjustments for result from sale of assets."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AdjustmentsForSharebasedPayments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForSharebasedPayments",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 27.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments for share-based payments",
        "terseLabel": "Share-based benefit plans"
       }
      }
     },
     "auth_ref": [
      "r656"
     ]
    },
    "ifrs-full_AdjustmentsForUnrealisedForeignExchangeLossesGains": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdjustmentsForUnrealisedForeignExchangeLossesGains",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 26.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Adjustments for unrealised foreign exchange losses (gains)",
        "terseLabel": "Effect of changes in exchange rates, interest and others"
       }
      }
     },
     "auth_ref": [
      "r471",
      "r656"
     ]
    },
    "ifrs-full_AdministrativeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AdministrativeExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_ProfitLossFromOperatingActivities",
       "weight": -1.0,
       "order": 16.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Administrative expenses",
        "negatedLabel": "Administrative expenses"
       }
      }
     },
     "auth_ref": [
      "r45",
      "r449",
      "r517"
     ]
    },
    "ypf_AdministrativeExpensesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AdministrativeExpensesMember",
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Administrative Expenses [member]",
        "terseLabel": "Administrative expenses [Member]",
        "documentation": "Administrative expenses."
       }
      }
     },
     "auth_ref": []
    },
    "dei_AdrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "AdrMember",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ADR [Member]",
        "terseLabel": "American Depositary Shares [Member]",
        "documentation": "American Depositary Receipt (or American Depositary Share, ADS)."
       }
      }
     },
     "auth_ref": [
      "r528"
     ]
    },
    "ypf_AdvertisingExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AdvertisingExpenses",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail": {
       "parentTag": "ifrs-full_ExpenseByNature",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Advertising Expenses",
        "terseLabel": "Publicity and advertising expenses",
        "documentation": "Advertising Expenses"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AerolineasArgentinasSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AerolineasArgentinasSAMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationAboutRelatedPartyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aerolineas Argentinas SA [Member]",
        "terseLabel": "Aerol\u00edneas Argentinas S.A. [member]",
        "documentation": "Sales of jet fuel."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AerolineasArgentinasSAOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AerolineasArgentinasSAOneMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationAboutRelatedPartyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aerolineas Argentinas SA One [Member]",
        "terseLabel": "Aerol\u00edneas Argentinas S.A. [member]",
        "documentation": "Purchases of miles for YPF Serviclub Program and publicity expenses."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AggregateLeaseTermLease": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AggregateLeaseTermLease",
     "presentation": [
      "http://www.ypf.com/role/RightOfUseAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aggregate Lease Term Lease",
        "documentation": "Aggregate lease term lease."
       }
      }
     },
     "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": [
      "r633"
     ]
    },
    "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": [
      "r546",
      "r557",
      "r567",
      "r600"
     ]
    },
    "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": [
      "r549",
      "r560",
      "r570",
      "r603"
     ]
    },
    "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": [
      "r634"
     ]
    },
    "ypf_AgreementAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AgreementAxis",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail",
      "http://www.ypf.com/role/ProvisionsAdditionalInformationDetail",
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Agreement [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AgreementDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AgreementDomain",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail",
      "http://www.ypf.com/role/ProvisionsAdditionalInformationDetail",
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Agreement [Domain]",
        "documentation": "Agreement."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AgriculturalProductsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AgriculturalProductsMember",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Agricultural Products [Member]",
        "terseLabel": "Agricultural products [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AgricultureMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AgricultureMember",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesBySalesChannelsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Agriculture [member]",
        "terseLabel": "Agriculture [member]",
        "documentation": "Agriculture."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AguaYSaneamientosArgentinosS.a.Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AguaYSaneamientosArgentinosS.a.Member",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationAboutRelatedPartyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Agua y Saneamientos Argentinos S.A. [Member]",
        "terseLabel": "Agua y Saneamientos Argentinos S.A. [Member]",
        "documentation": "Agua y saneamientos argentinos S.A.."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AguadaDeCastroAndAguadaPichanaOesteMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AguadaDeCastroAndAguadaPichanaOesteMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aguada de Castro and Aguada Pichana Oeste [Member]",
        "terseLabel": "Aguada de Castro and Aguada Pichana Oeste [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AguadaDeLaArenaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AguadaDeLaArenaMember",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aguada de la Arena [member]",
        "terseLabel": "Aguada de la Arena [member]",
        "documentation": "Aguada de la Arena."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AguadaDelChaarMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AguadaDelChaarMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aguada del Chaar [Member]",
        "terseLabel": "Aguada del Chaar [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AguadaDelChanarMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AguadaDelChanarMember",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aguada del Chanar [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AguadaPichanaAreaVacaMuertaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AguadaPichanaAreaVacaMuertaMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aguada Pichana Area Vaca Muerta [Member]",
        "terseLabel": "Aguada Pichana - Area Vaca Muerta [member]",
        "documentation": "Aguada Pichana Area Vaca Muerta."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AguadaPichanaResidualMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AguadaPichanaResidualMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aguada Pichana Residual [Member]",
        "terseLabel": "Aguada Pichana - Residual [member]",
        "documentation": "Aguada Pichana Residual."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AguadaVillanuevaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AguadaVillanuevaMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail",
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aguada Villanueva [Member]",
        "terseLabel": "Aguada Villanueva [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AguaragueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AguaragueMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Aguarague [Member]",
        "terseLabel": "Aguarague [member]",
        "documentation": "Aguarague."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AlNortedelaDorsalOctgonoandDadnMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AlNortedelaDorsalOctgonoandDadnMember",
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Al Norte de la Dorsal Octgono and Dadn [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "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": [
      "r588"
     ]
    },
    "currency_AllCurrenciesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/currency/2025",
     "localname": "AllCurrenciesDomain",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail",
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfBreakdownOfEffectAVariationOf10InPrevailingExchangeRatesOnNetIncomeDetail",
      "http://www.ypf.com/role/LoansScheduleOfLoansDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "All Currencies [Domain]",
        "terseLabel": "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": [
      "r595"
     ]
    },
    "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": [
      "r550",
      "r561",
      "r571",
      "r595",
      "r604",
      "r608",
      "r616"
     ]
    },
    "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": [
      "r614"
     ]
    },
    "dei_AmendmentFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "AmendmentFlag",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amendment Flag",
        "documentation": "Boolean flag that is true when the XBRL content amends previously-filed or accepted submission."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AmortisationExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AmortisationExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail": {
       "parentTag": "ifrs-full_ExpenseByNature",
       "weight": 1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amortisation expense",
        "terseLabel": "Amortization of intangible assets"
       }
      }
     },
     "auth_ref": [
      "r675"
     ]
    },
    "ifrs-full_AmortisationIntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AmortisationIntangibleAssetsOtherThanGoodwill",
     "presentation": [
      "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amortisation, intangible assets other than goodwill",
        "terseLabel": "Amortization of intangible assets"
       }
      }
     },
     "auth_ref": [
      "r78",
      "r343"
     ]
    },
    "ypf_AmountAvailableForLiquidity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AmountAvailableForLiquidity",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amount available for liquidity",
        "terseLabel": "Amount available for liquidity",
        "documentation": "Amount available for liquidity."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AmountOfExpenseByNature": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AmountOfExpenseByNature",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amount of Expense By Nature",
        "terseLabel": "The exploratory and investment commitments and expenses until the completion of the most significant exploration permits and exploitation concessions",
        "documentation": "The exploratory and investment commitments and expenses until the completion of the most significant exploration permits and exploitation concessions."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AmountOfGranteGuarantees": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AmountOfGranteGuarantees",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsGrantedGuaranteesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amount Of Grante Guarantees",
        "terseLabel": "Amount of grante guarantees",
        "documentation": "Amount of grante guarantees."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AmountOfReceivedCompensationFromNationalGovernment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AmountOfReceivedCompensationFromNationalGovernment",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amount Of Received Compensation From National Government",
        "terseLabel": "Amount of received compensation from national government",
        "documentation": "Amount of received compensation from national government."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AmountReclassifiedAsCurrentProvisionDueToTheTrustSettlementAgreement": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AmountReclassifiedAsCurrentProvisionDueToTheTrustSettlementAgreement",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amount Reclassified As Current Provision Due To The Trust Settlement Agreement",
        "terseLabel": "Amount reclassified as current provision due to the Trust Settlement Agreement",
        "documentation": "Amount reclassified as current provision due to the trust settlement agreement."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AmountsOfDeferredTaxAssetsNotRecognised": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AmountsOfDeferredTaxAssetsNotRecognised",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amounts Of Deferred Tax Assets Not Recognised",
        "terseLabel": "Amounts of deferred tax assets not recognised",
        "documentation": "Amounts of deferred tax assets not recognised."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AmountsReceivableOrPayableRelatedPartyTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AmountsReceivableOrPayableRelatedPartyTransactions",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationAboutRelatedPartyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Amounts receivable or payable related party transactions",
        "verboseLabel": "Credit (liabilities)",
        "documentation": "Amounts receivable or (payable) related party transactions."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AnalysisOfIncomeAndExpenseAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AnalysisOfIncomeAndExpenseAbstract",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Analysis of income and expense [abstract]",
        "terseLabel": "Net income"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ApplicableStatuteAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ApplicableStatuteAxis",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Applicable Statute [Axis]",
        "documentation": "Applicable statute."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ApplicableStatuteDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ApplicableStatuteDomain",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Applicable Statute [Domain]",
        "documentation": "Applicable statute."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ApplicableTaxRate": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ApplicableTaxRate",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfReconciliationBetweenTheChargeToNetIncomeForIncomeTaxAndTheOneThatWouldResultFromApplyingThePrevailingTaxRateOnNetIncomeBeforeIncomeTaxArisingFromTheConsolidatedStatementsOfComprehensiveIncoe8f94",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Applicable tax rate",
        "positiveLabel": "Average tax rate",
        "verboseLabel": "General tax rate"
       }
      },
      "en": {
       "role": {
        "documentation": "The applicable income tax rate."
       }
      }
     },
     "auth_ref": [
      "r5",
      "r308"
     ]
    },
    "ypf_ApplicationsDueToUtilization": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ApplicationsDueToUtilization",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Applications Due To Utilization",
        "negatedLabel": "Applications due to utilization",
        "documentation": "Applications due to utilization."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AppropriationToReservesEquity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AppropriationToReservesEquity",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Appropriation To Reserves Equity",
        "terseLabel": "Appropriation\u00a0to\u00a0reserves",
        "documentation": "Appropriation to\u00a0reserves equity"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ArcaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ArcaMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationAboutRelatedPartyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ARCA [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ArgentinaLngMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ArgentinaLngMember",
     "presentation": [
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Argentina LNG [Member]",
        "terseLabel": "Argentina LNG [Member]",
        "documentation": "Argentina LNG."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AsAResultOfEconomicsRelatedToChangesInFieldsOperatingCostsAndOilAndGasPrices": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AsAResultOfEconomicsRelatedToChangesInFieldsOperatingCostsAndOilAndGasPrices",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "As A Result Of Economics Related To Changes In Fields Operating Costs And Oil And Gas Prices",
        "terseLabel": "As a result of economics related to changes in fields operating costs and oil and gas prices",
        "documentation": "As a result of economics related to changes in fields operating costs and oil and gas prices."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AsociacionSuperficiariosDeLaPatagoniaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AsociacionSuperficiariosDeLaPatagoniaMember",
     "presentation": [
      "http://www.ypf.com/role/ContingentAssetsAndLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Asociacion Superficiarios De La Patagonia [member]",
        "terseLabel": "Asociacion Superficiarios de la Patagonia [Member]",
        "documentation": "Asociacion Superficiarios de la Patagonia."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AsphaltsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AsphaltsMember",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Asphalts [member]",
        "terseLabel": "Asphalts [member]",
        "documentation": "Asphalts."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_Assets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "Assets",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesSummaryOfTheMainAssetsHeldForSaleAndAssociatedLiabilitiesDetail",
      "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail",
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationOfAssetsAndLiabilitiesDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets",
        "totalLabel": "TOTAL ASSETS",
        "terseLabel": "Assets",
        "verboseLabel": "Total 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": [
      "r139",
      "r140",
      "r141",
      "r238",
      "r241",
      "r387",
      "r388",
      "r422"
     ]
    },
    "ifrs-full_AssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AssetsAbstract",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets [abstract]",
        "terseLabel": "ASSETS"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AssetsAndLiabilitiesClassifiedAsHeldForSaleAxis",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesSummaryOfTheMainAssetsHeldForSaleAndAssociatedLiabilitiesDetail",
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets and liabilities classified as held for sale [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": [
      "r199"
     ]
    },
    "ifrs-full_AssetsAndLiabilitiesClassifiedAsHeldForSaleMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AssetsAndLiabilitiesClassifiedAsHeldForSaleMember",
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesSummaryOfTheMainAssetsHeldForSaleAndAssociatedLiabilitiesDetail",
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets and liabilities classified as held for sale [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for assets and liabilities that are classified as held for sale. [Refer: Non-current assets held for sale [member]; Liabilities included in disposal groups classified as held for sale; Disposal groups classified as held for sale [member]]"
       }
      }
     },
     "auth_ref": [
      "r199"
     ]
    },
    "ifrs-full_AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AssetsAndLiabilitiesNotClassifiedAsHeldForSaleMember",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesSummaryOfTheMainAssetsHeldForSaleAndAssociatedLiabilitiesDetail",
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets and liabilities not classified as held for sale [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for assets and liabilities that are not classified as held for sale. It also represents the standard value for the 'Assets and liabilities classified as held for sale' axis if no other member is used. [Refer: Non-current assets held for sale [member]; Liabilities included in disposal groups classified as held for sale; Disposal groups classified as held for sale [member]]"
       }
      }
     },
     "auth_ref": [
      "r199"
     ]
    },
    "ypf_AssetsExchangeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AssetsExchangeMember",
     "presentation": [
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets Exchange [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AssetsHeldForSaleAndAssociatedLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AssetsHeldForSaleAndAssociatedLiabilitiesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets Held For Sale And Associated Liabilities [Abstract]",
        "documentation": "Assets Held For Sale And Associated Liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AssetsHeldForSaleAndAssociatedLiabilitiesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AssetsHeldForSaleAndAssociatedLiabilitiesLineItems",
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesAdditionalInformationDetail",
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesSummaryOfTheMainAssetsHeldForSaleAndAssociatedLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets Held For Sale And Associated Liabilities [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_AssetsHeldForSaleAndAssociatedLiabilitiesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "AssetsHeldForSaleAndAssociatedLiabilitiesTable",
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesAdditionalInformationDetail",
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesSummaryOfTheMainAssetsHeldForSaleAndAssociatedLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets Held For Sale And Associated Liabilities [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AssociatesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AssociatesMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total for all associates [member]",
        "terseLabel": "Associates [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the entities over which the investor has significant influence."
       }
      }
     },
     "auth_ref": [
      "r41",
      "r51",
      "r55",
      "r136",
      "r330",
      "r384"
     ]
    },
    "ifrs-full_AtFairValueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AtFairValueMember",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsSummaryOfFairValuesOfTheIdentifiableAssetsAcquiredAndTheLiabilitiesAssumedDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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": [
      "r83",
      "r87",
      "r118",
      "r139",
      "r350",
      "r385",
      "r387"
     ]
    },
    "dei_AuditorFirmId": {
     "xbrltype": "nonemptySequenceNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "AuditorFirmId",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor Firm ID",
        "documentation": "PCAOB issued Audit Firm Identifier"
       }
      }
     },
     "auth_ref": [
      "r529",
      "r530",
      "r553"
     ]
    },
    "dei_AuditorLocation": {
     "xbrltype": "internationalNameItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "AuditorLocation",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor Location"
       }
      }
     },
     "auth_ref": [
      "r529",
      "r530",
      "r553"
     ]
    },
    "dei_AuditorName": {
     "xbrltype": "internationalNameItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "AuditorName",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Auditor Name"
       }
      }
     },
     "auth_ref": [
      "r529",
      "r530",
      "r553"
     ]
    },
    "ypf_Aus105Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "Aus105Member",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "AUS 105 [Member]",
        "terseLabel": "AUS 105 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_Aus106Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "Aus106Member",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "AUS 106 [Member]",
        "terseLabel": "AUS 106 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_AverageForeignExchangeRate": {
     "xbrltype": "decimalItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "AverageForeignExchangeRate",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Average foreign exchange rate",
        "verboseLabel": "Average exchange rates"
       }
      },
      "en": {
       "role": {
        "documentation": "The average exchange rate used by the entity. Exchange rate is the ratio of exchange for two currencies."
       }
      }
     },
     "auth_ref": [
      "r675"
     ]
    },
    "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": [
      "r611"
     ]
    },
    "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": [
      "r612"
     ]
    },
    "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": [
      "r607"
     ]
    },
    "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": [
      "r607"
     ]
    },
    "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": [
      "r607"
     ]
    },
    "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": [
      "r607"
     ]
    },
    "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": [
      "r607"
     ]
    },
    "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": [
      "r607"
     ]
    },
    "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": [
      "r610"
     ]
    },
    "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": [
      "r609"
     ]
    },
    "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": [
      "r608"
     ]
    },
    "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": [
      "r608"
     ]
    },
    "ypf_BajadaAeloMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "BajadaAeloMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Bajada Aelo [Member]",
        "terseLabel": "Bajada A\u00f1elo [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_BajoDelToroMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "BajoDelToroMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail",
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Bajo del Toro [member]",
        "terseLabel": "Bajo del Toro [member]",
        "documentation": "Bajo del Toro."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_BajoDelToroNorteMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "BajoDelToroNorteMember",
     "presentation": [
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Bajo Del Toro Norte [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_BalanceOfReserveAndPaymentAccountForHoldersOfClassXXVIIINO": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "BalanceOfReserveAndPaymentAccountForHoldersOfClassXXVIIINO",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsGrantedGuaranteesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Balance Of Reserve And Payment Account For Holders Of Class X X V I I I N O",
        "terseLabel": "Balance of reserve and payment account for holders of class XXVIII NO",
        "documentation": "Balance of reserve and payment account for holders of Class XXVIII NO."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_BancoCentralDeLaRepublicaArgentinaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "BancoCentralDeLaRepublicaArgentinaMember",
     "presentation": [
      "http://www.ypf.com/role/CashAndCashEquivalentsSummaryOfCashAndCashEquivalentsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banco Central de la Republica Argentina [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_BancoNacionArgentinaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "BancoNacionArgentinaMember",
     "presentation": [
      "http://www.ypf.com/role/CashAndCashEquivalentsSummaryOfCashAndCashEquivalentsParentheticalDetail",
      "http://www.ypf.com/role/LoansScheduleOfLoansParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Banco Nacion Argentina [member]",
        "terseLabel": "Banco Nacion Argentina [member]",
        "documentation": "Banco Nacion Argentina."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_BandurriaSurBlockMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "BandurriaSurBlockMember",
     "presentation": [
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Bandurria Sur Block [Member]",
        "documentation": "Bandurria Sur Block."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_BandurriaSurMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "BandurriaSurMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail",
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Bandurria Sur [member]",
        "terseLabel": "Bandurria Sur [member]",
        "documentation": "Bandurria Sur."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_BankGuaranteesIssued": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "BankGuaranteesIssued",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsGrantedGuaranteesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Bank Guarantees Issued",
        "terseLabel": "Bank guarantees issued",
        "documentation": "Bank guarantees issued."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_BarrancasVizcacherasLaVentanaCeferinoMesaVerdeAndRoTunuynMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "BarrancasVizcacherasLaVentanaCeferinoMesaVerdeAndRoTunuynMember",
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Barrancas, Vizcacheras, La Ventana, Ceferino, Mesa Verde and Ro Tunuyn [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_BasicEarningsLossPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "BasicEarningsLossPerShare",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome",
      "http://www.ypf.com/role/EarningsPerShareSummaryOfEarningsPerShareDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Basic earnings (loss) per share",
        "terseLabel": "Basic",
        "verboseLabel": "Basic earnings per share"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of profit (loss) attributable to ordinary equity holders of the parent entity (the numerator) divided by the weighted average number of ordinary shares outstanding during the period (the denominator)."
       }
      }
     },
     "auth_ref": [
      "r59",
      "r60"
     ]
    },
    "ypf_BetweenThreeAndSixMonthsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "BetweenThreeAndSixMonthsMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementSummaryOfBreakdownOfTheFinancialAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Between Three and Six Months [member]",
        "terseLabel": "Between three and six months past due [member]",
        "documentation": "Between three and six months past due."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_BlockAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "BlockAxis",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Block [Axis]",
        "documentation": "Block."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_BlockMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "BlockMember",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Block [Member]",
        "documentation": "Block."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_BonusesAndIncentivesProvisionCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "BonusesAndIncentivesProvisionCurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/SalariesAndSocialSecuritySummaryOfDetailedInformationAboutSalariesAndSocialSecurityDetail": {
       "parentTag": "ifrs-full_ShorttermEmployeeBenefitsAccruals",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/SalariesAndSocialSecuritySummaryOfDetailedInformationAboutSalariesAndSocialSecurityDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Bonuses And Incentives Provision Current",
        "terseLabel": "Bonuses and incentives provision current",
        "documentation": "Bonuses and incentives provision, current."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_BorrowingCostsCapitalised": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "BorrowingCostsCapitalised",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Borrowing costs capitalised",
        "terseLabel": "Amount capitalized"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of interest and other costs that an entity incurs in connection with the borrowing of funds that are directly attributable to the acquisition, construction or production of a qualifying asset and which form part of the cost of that asset."
       }
      }
     },
     "auth_ref": [
      "r33",
      "r326"
     ]
    },
    "ifrs-full_Borrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "Borrowings",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/LoansEvolutionOfTheLoansDetail",
      "http://www.ypf.com/role/LoansScheduleOfLoansParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Borrowings",
        "terseLabel": "Loans accrued",
        "periodStartLabel": "Balance at beginning of the year",
        "periodEndLabel": "Balance at the end of the year"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of outstanding funds that the entity is obligated to repay."
       }
      }
     },
     "auth_ref": [
      "r678"
     ]
    },
    "ifrs-full_BorrowingsAdjustmentToInterestRateBasis": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "BorrowingsAdjustmentToInterestRateBasis",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Borrowings, adjustment to interest rate basis",
        "verboseLabel": "Variable interest rate"
       }
      },
      "en": {
       "role": {
        "documentation": "The adjustment to the basis (reference rate) used for calculation of the interest rate on borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r662"
     ]
    },
    "ifrs-full_BorrowingsByNameAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "BorrowingsByNameAxis",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail",
      "http://www.ypf.com/role/LoansScheduleOfLoansDetail",
      "http://www.ypf.com/role/LoansScheduleOfLoansParentheticalDetail",
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Borrowings by name [axis]",
        "terseLabel": "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": [
      "r662"
     ]
    },
    "ifrs-full_BorrowingsByNameDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "BorrowingsByNameDomain",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail",
      "http://www.ypf.com/role/LoansScheduleOfLoansDetail",
      "http://www.ypf.com/role/LoansScheduleOfLoansParentheticalDetail",
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Borrowings by name [domain]",
        "terseLabel": "Borrowings by name [member]"
       }
      },
      "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": [
      "r662"
     ]
    },
    "ifrs-full_BorrowingsInterestRate": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "BorrowingsInterestRate",
     "presentation": [
      "http://www.ypf.com/role/LoansScheduleOfLoansDetail",
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Borrowings, interest rate",
        "terseLabel": "Interest rate",
        "verboseLabel": "Borrowings interest rate"
       }
      },
      "en": {
       "role": {
        "documentation": "The interest rate on borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r662"
     ]
    },
    "ypf_BorrowingsInterestYieldRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "BorrowingsInterestYieldRate",
     "presentation": [
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Borrowings Interest Yield Rate",
        "documentation": "Borrowings interest yield rate."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_BorrowingsMaturity": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "BorrowingsMaturity",
     "presentation": [
      "http://www.ypf.com/role/LoansScheduleOfLoansDetail",
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Borrowings, maturity",
        "terseLabel": "Maturity Year",
        "verboseLabel": "Borrowings maturity"
       }
      },
      "en": {
       "role": {
        "documentation": "The maturity of borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r662"
     ]
    },
    "ypf_BorrowingsReclassifications": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "BorrowingsReclassifications",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/LoansEvolutionOfTheLoansDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Borrowings Reclassifications",
        "terseLabel": "Reclassifications",
        "documentation": "Borrowings reclassifications."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_BorrowingsRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "BorrowingsRecognisedAsOfAcquisitionDate",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsSummaryOfFairValuesOfTheIdentifiableAssetsAcquiredAndTheLiabilitiesAssumedDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Borrowings recognised as of acquisition date",
        "negatedLabel": "Loans"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount recognised as of the acquisition date for borrowings assumed in a business combination. [Refer: Borrowings; Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r660"
     ]
    },
    "ifrs-full_BottomOfRangeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "BottomOfRangeMember",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsDetailedInformationAboutPropertyPlantAndEquipmentDetail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsAdditionalInformationDetail",
      "http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail",
      "http://www.ypf.com/role/LoansScheduleOfLoansDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail",
      "http://www.ypf.com/role/ProvisionsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Bottom of range [member]",
        "terseLabel": "Bottom of range [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the bottom of a range."
       }
      }
     },
     "auth_ref": [
      "r94",
      "r144",
      "r171",
      "r187",
      "r297",
      "r475",
      "r476",
      "r662"
     ]
    },
    "ypf_BreakDownOfIncomeTaxLiabilityLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "BreakDownOfIncomeTaxLiabilityLineItems",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfIncomeTaxLiabilityParentheticalsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Break down of income tax liability [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_BreakdownOfDeferredTaxLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "BreakdownOfDeferredTaxLineItems",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxDetail",
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Breakdown of Deferred Tax [Line Items]",
        "terseLabel": "Breakdown of deferred tax [line Items]",
        "documentation": "Breakdown of deferred tax."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_BreakdownOfIncomeTaxLiabilityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "BreakdownOfIncomeTaxLiabilityAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Breakdown of Income Tax Liability [Abstract]",
        "documentation": "Breakdown of income tax liability."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_BreakdownofincometaxliabilityTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "BreakdownofincometaxliabilityTable",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfIncomeTaxLiabilityParentheticalsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "BreakdownOfIncomeTaxLiability [Table]",
        "documentation": "Breakdown of income tax liability."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_BrentCrudePrice": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "BrentCrudePrice",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Brent Crude Price",
        "terseLabel": "Brent crude price",
        "documentation": "Brent crude price."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_BuildingsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "BuildingsMember",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsDetailedInformationAboutPropertyPlantAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Buildings [member]",
        "terseLabel": "Buildings and other constructions [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": [
      "r640"
     ]
    },
    "ypf_BusinessCombinationAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "BusinessCombinationAxis",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsSummaryOfFairValuesOfTheIdentifiableAssetsAcquiredAndTheLiabilitiesAssumedDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combinations [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_BusinessCombinationConsiderationTransferredByCompensationWithCredits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "BusinessCombinationConsiderationTransferredByCompensationWithCredits",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business combination consideration transferred by compensation with credits",
        "documentation": "Business combination consideration transferred by compensation with credits."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_BusinessCombinationDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "BusinessCombinationDomain",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsSummaryOfFairValuesOfTheIdentifiableAssetsAcquiredAndTheLiabilitiesAssumedDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Combinations [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_BusinessCombinationsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "BusinessCombinationsAxis",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/AcquisitionsAndDisposalsTables",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail",
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business combinations [axis]",
        "terseLabel": "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": [
      "r193",
      "r366"
     ]
    },
    "ypf_BusinessCombinationsConsiderationTransferredByOffsettingPaymentObligations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "BusinessCombinationsConsiderationTransferredByOffsettingPaymentObligations",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business combinations consideration transferred by offsetting payment obligations",
        "documentation": "Business combinations consideration transferred by offsetting payment obligations."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_BusinessCombinationsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "BusinessCombinationsDomain",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/AcquisitionsAndDisposalsTables",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail",
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business combinations [domain]",
        "terseLabel": "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": [
      "r193",
      "r196",
      "r366"
     ]
    },
    "dei_BusinessContactMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "BusinessContactMember",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Business Contact [Member]",
        "documentation": "Business contact for the entity"
       }
      }
     },
     "auth_ref": [
      "r530",
      "r553"
     ]
    },
    "ypf_CDSMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CDSMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfTheInvestmentsInAssociatesAndJointVenturesOnADisaggregatedBasisDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "CDS [member]",
        "terseLabel": "CDS [member]",
        "documentation": "CDS [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_CTBarraganMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CTBarraganMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesAdditionalInformationDetail",
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfTheInvestmentsInAssociatesAndJointVenturesOnADisaggregatedBasisDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "CT Barragan [Member]",
        "terseLabel": "CT Barrag\u00e1n [member]",
        "documentation": "CT Barragan."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_CalculationOfTheIncomeTaxExpenseAccruedAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CalculationOfTheIncomeTaxExpenseAccruedAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Calculation of the Income Tax Expense Accrued [Abstract]",
        "documentation": "Calculation of the income tax expense accrued."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_Cam2aSurMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "Cam2aSurMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "CAM2A SUR [Member]",
        "terseLabel": "CAM-2A SUR [Member]",
        "documentation": "CAM-2A SUR."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_CammesaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CammesaMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationAboutRelatedPartyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "CAMMESA [member] [Member]",
        "terseLabel": "CAMMESA [Member]",
        "documentation": "Sales of fuel oil, diesel, natural gas and transportation and distribution service."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_CammesaOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CammesaOneMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationAboutRelatedPartyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "CAMMESA One [member] [Member]",
        "terseLabel": "CAMMESA [Member]",
        "documentation": "Purchases of electrical energy."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_CampamentoCentralCanadonPerdidoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CampamentoCentralCanadonPerdidoMember",
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Campamento Central Canadon Perdido [Member]",
        "documentation": "Campamento Central Canadon Perdido."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_Can100Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "Can100Member",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "CAN 100 [Member]",
        "verboseLabel": "CAN-100 [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_Can102Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "Can102Member",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "CAN 102 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_Can114Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "Can114Member",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "CAN 114 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CancellationOfTreasuryShares": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CancellationOfTreasuryShares",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cancellation of treasury shares",
        "negatedLabel": "Repurchase of treasury shares"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of treasury stock cancelled during the period. [Refer: Treasury shares]"
       }
      }
     },
     "auth_ref": [
      "r673"
     ]
    },
    "ypf_CapitalExpenditureIncurredButNotPaidOnPropertyPlantAndEquipmentAndIntangibleAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CapitalExpenditureIncurredButNotPaidOnPropertyPlantAndEquipmentAndIntangibleAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlowsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capital Expenditure Incurred But Not Paid On Property Plant And Equipment And Intangible Assets",
        "terseLabel": "Unpaid acquisitions of property, plant and equipment and intangible assets",
        "documentation": "Capital expenditure incurred but not paid on property plant and equipment and intangible assets."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_CapitalStockMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CapitalStockMember",
     "presentation": [
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capital Stock [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CapitalisationRateOfBorrowingCostsEligibleForCapitalisation": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CapitalisationRateOfBorrowingCostsEligibleForCapitalisation",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capitalisation rate of borrowing costs eligible for capitalisation",
        "terseLabel": "Rate of capitalization"
       }
      },
      "en": {
       "role": {
        "documentation": "The weighted average of interest and other costs that an entity incurs in connection with the borrowing of funds applicable to the borrowings of the entity that are outstanding during the period, other than borrowings made specifically for the purpose of obtaining a qualifying asset. [Refer: Weighted average [member]; Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r34",
      "r327"
     ]
    },
    "ypf_CapitalizationInJointVentures": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CapitalizationInJointVentures",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfMovementsWhichAffectedTheValueOfTheInvestmentsInAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capitalization In Joint Ventures",
        "terseLabel": "Capitalization in associates and joint ventures",
        "documentation": "Capitalization in\u00a0joint ventures."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_CapitalizationOfAmortizationOfRightofuseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CapitalizationOfAmortizationOfRightofuseAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail",
      "http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capitalization Of Amortization Of RightOfUse Assets",
        "verboseLabel": "Capitalization of depreciation of right-of-use assets",
        "definitionGuidance": "Capitalization of amortization of right-of-use assets in property, plant and equipment",
        "documentation": "Capitalization of amortization of right-of-use assets."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_CapitalizationOfDepreciationOfRightOfUseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CapitalizationOfDepreciationOfRightOfUseAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlowsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capitalization Of Depreciation Of Right Of Use Assets",
        "terseLabel": "Capitalization of depreciation of\u00a0right-of-use\u00a0assets",
        "documentation": "Capitalization Of Depreciation Of Right Of Use Assets"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_CapitalizationOfFinancialAccretionForLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CapitalizationOfFinancialAccretionForLeaseLiabilities",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlowsParenthetical",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Capitalization Of Financial Accretion For Lease Liabilities",
        "terseLabel": "Capitalization of financial accretion for lease liabilities",
        "verboseLabel": "Capitalization of financial accretion for lease liabilities",
        "documentation": "Capitalization of financial accretion for lease liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CarryingAmountAccumulatedDepreciationAmortisationAndImpairmentAndGrossCarryingAmountAxis",
     "presentation": [
      "http://www.ypf.com/role/IntangibleAssetsSummaryOfChangesInIntangibleAssetsDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionForObsolescenceOfMaterialsAndEquipmentDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionsForImpairmentOfPropertyPlantAndEquipmentDetail",
      "http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsDetail",
      "http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsParentheticalDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Carrying amount, accumulated depreciation, amortisation and impairment and gross carrying amount [axis]",
        "terseLabel": "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": [
      "r11",
      "r19",
      "r77",
      "r79",
      "r84",
      "r85",
      "r86",
      "r87",
      "r88",
      "r195",
      "r209",
      "r210",
      "r313",
      "r320",
      "r342",
      "r344",
      "r347",
      "r348",
      "r349",
      "r350",
      "r351",
      "r367",
      "r377",
      "r378"
     ]
    },
    "ifrs-full_CarryingAmountMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CarryingAmountMember",
     "presentation": [
      "http://www.ypf.com/role/IntangibleAssetsSummaryOfChangesInIntangibleAssetsDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionForObsolescenceOfMaterialsAndEquipmentDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionsForImpairmentOfPropertyPlantAndEquipmentDetail",
      "http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsDetail",
      "http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsParentheticalDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Carrying amount [member]",
        "terseLabel": "Carrying amount [member]"
       }
      }
     },
     "auth_ref": [
      "r19",
      "r79",
      "r84",
      "r86",
      "r87",
      "r195",
      "r209",
      "r210",
      "r320",
      "r344",
      "r347",
      "r349",
      "r350",
      "r367",
      "r377",
      "r378"
     ]
    },
    "ypf_CaseDetailsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CaseDetailsAxis",
     "presentation": [
      "http://www.ypf.com/role/ContingentAssetsAndLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Case Details [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_CaseDetailsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CaseDetailsMember",
     "presentation": [
      "http://www.ypf.com/role/ContingentAssetsAndLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Case Details [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_Cash": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "Cash",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash",
        "terseLabel": "Cash"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of cash on hand and demand deposits. [Refer: Cash on hand]"
       }
      }
     },
     "auth_ref": [
      "r659"
     ]
    },
    "ifrs-full_CashAndBankBalancesAtCentralBanks": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashAndBankBalancesAtCentralBanks",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/CashAndCashEquivalentsSummaryOfCashAndCashEquivalentsDetail": {
       "parentTag": "ifrs-full_CashAndCashEquivalents",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/CashAndCashEquivalentsSummaryOfCashAndCashEquivalentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and bank balances at central banks",
        "terseLabel": "Cash and banks"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of cash and bank balances held at central banks."
       }
      }
     },
     "auth_ref": [
      "r678"
     ]
    },
    "ypf_CashAndCashEquivalentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CashAndCashEquivalentMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfCompanysFinancialAssetsMeasuredAtFairValueDetail",
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail",
      "http://www.ypf.com/role/FinancialRiskManagementSummaryOfMaximumExposureToCreditRiskDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and Cash Equivalent [member]",
        "terseLabel": "Cash and cash equivalents [member]",
        "documentation": "Cash and cash equivalent."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CashAndCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashAndCashEquivalents",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssets",
       "weight": 1.0,
       "order": 8.0
      },
      "http://www.ypf.com/role/CashAndCashEquivalentsSummaryOfCashAndCashEquivalentsDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ypf.com/role/CashAndCashEquivalentsSummaryOfCashAndCashEquivalentsDetail",
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow",
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and cash equivalents",
        "terseLabel": "Cash and cash equivalents",
        "periodStartLabel": "Cash and cash equivalents at the beginning of the fiscal year",
        "periodEndLabel": "Cash and cash equivalents at the end of the fiscal year",
        "verboseLabel": "Cash and cash equivalents",
        "totalLabel": "Total"
       }
      },
      "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": [
      "r95",
      "r127",
      "r298",
      "r413"
     ]
    },
    "ifrs-full_CashAndCashEquivalentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashAndCashEquivalentsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and cash equivalents [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_CashAndCashEquivalentsAtFairValueThroughProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CashAndCashEquivalentsAtFairValueThroughProfitOrLoss",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/CashAndCashEquivalentsSummaryOfCashAndCashEquivalentsDetail": {
       "parentTag": "ifrs-full_CashAndCashEquivalents",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/CashAndCashEquivalentsSummaryOfCashAndCashEquivalentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and cash equivalents at fair value through profit or loss",
        "verboseLabel": "Financial assets at fair value through profit or loss",
        "documentation": "Cash and cash equivalents at fair value through profit or loss."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CashAndCashEquivalentsRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashAndCashEquivalentsRecognisedAsOfAcquisitionDate",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsSummaryOfFairValuesOfTheIdentifiableAssetsAcquiredAndTheLiabilitiesAssumedDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash and cash equivalents recognised as of acquisition date",
        "verboseLabel": "Cash and cash equivalents"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount recognised as of the acquisition date for cash and cash equivalents acquired in a business combination. [Refer: Cash and cash equivalents; Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r660"
     ]
    },
    "ypf_CashAndCashEquivalentsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CashAndCashEquivalentsTable",
     "presentation": [
      "http://www.ypf.com/role/CashAndCashEquivalentsSummaryOfCashAndCashEquivalentsDetail",
      "http://www.ypf.com/role/CashAndCashEquivalentsSummaryOfCashAndCashEquivalentsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash And Cash Equivalents [table]",
        "terseLabel": "Cash And Cash Equivalents [table]",
        "documentation": "Cash and cash equivalents."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_CashFlowsFromAcquisitionsFromBusinessCombinationsNetOfCashAndCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CashFlowsFromAcquisitionsFromBusinessCombinationsNetOfCashAndCashEquivalents",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": -1.0,
       "order": 18.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "CashFlowsFromAcquisitionsFromBusinessCombinationsNetOfCashAndCashEquivalents",
        "negatedLabel": "Acquisitions from business combinations net of cash and cash equivalents",
        "documentation": "Cash Flows From Acquisitions From Business Combinations Net Of Cash And Cash Equivalents"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CashFlowsFromUsedInFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashFlowsFromUsedInFinancingActivities",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_IncreaseDecreaseInCashAndCashEquivalents",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash flows from (used in) financing activities",
        "totalLabel": "Net 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": [
      "r89",
      "r96"
     ]
    },
    "ifrs-full_CashFlowsFromUsedInFinancingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashFlowsFromUsedInFinancingActivitiesAbstract",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash flows from (used in) financing activities [abstract]",
        "terseLabel": "Financing activities:"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CashFlowsFromUsedInInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashFlowsFromUsedInInvestingActivities",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_IncreaseDecreaseInCashAndCashEquivalents",
       "weight": 1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash flows from (used in) investing activities",
        "totalLabel": "Net cash flows 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": [
      "r89",
      "r96"
     ]
    },
    "ifrs-full_CashFlowsFromUsedInInvestingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashFlowsFromUsedInInvestingActivitiesAbstract",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash flows from (used in) investing activities [abstract]",
        "terseLabel": "Investing activities:"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CashFlowsFromUsedInOperatingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashFlowsFromUsedInOperatingActivities",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_IncreaseDecreaseInCashAndCashEquivalents",
       "weight": 1.0,
       "order": 19.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash flows from (used in) operating activities",
        "totalLabel": "Net cash flows from operating activities"
       }
      }
     },
     "auth_ref": [
      "r89",
      "r96"
     ]
    },
    "ifrs-full_CashFlowsFromUsedInOperatingActivitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashFlowsFromUsedInOperatingActivitiesAbstract",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash flows from (used in) operating activities [abstract]",
        "terseLabel": "Cash flows from operating activities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CashOutflowForLeases": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashOutflowForLeases",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/LeaseLiabilitiesSummaryOfLeaseLiabilitiesActivityDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash outflow for leases",
        "negatedLabel": "Payments"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for leases."
       }
      }
     },
     "auth_ref": [
      "r158",
      "r277"
     ]
    },
    "ifrs-full_CashTransferred": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CashTransferred",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash transferred"
       }
      },
      "en": {
       "role": {
        "documentation": "The fair value, at acquisition date, of cash transferred as consideration in a business combination. [Refer: Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r191",
      "r364"
     ]
    },
    "ypf_Cashflowsfromhydrocarbonwellsabandonmentcosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "Cashflowsfromhydrocarbonwellsabandonmentcosts",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlowsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "CashFlowsFromHydrocarbonWellsAbandonmentCosts",
        "terseLabel": "(Reversal) / Costs of hydrocarbon wells abandonment",
        "documentation": "Cash Flows From Hydro carbon Wells Abandonment Costs"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CategoriesOfFinancialAssetsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CategoriesOfFinancialAssetsAxis",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/InvestmentsInFinancialAssetsSummaryOfInvestmentsInFinancialAssetsDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Categories of financial assets [axis]",
        "terseLabel": "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": [
      "r227",
      "r373"
     ]
    },
    "ifrs-full_CategoriesOfFinancialAssetsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CategoriesOfFinancialAssetsDomain",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/InvestmentsInFinancialAssetsSummaryOfInvestmentsInFinancialAssetsDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Categories of financial assets [domain]",
        "terseLabel": "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": [
      "r227",
      "r373"
     ]
    },
    "ifrs-full_CategoriesOfRelatedPartiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CategoriesOfRelatedPartiesAxis",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationAboutRelatedPartyDetail",
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/CashAndCashEquivalentsSummaryOfCashAndCashEquivalentsDetail",
      "http://www.ypf.com/role/CashAndCashEquivalentsSummaryOfCashAndCashEquivalentsParentheticalDetail",
      "http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquityParenthetical",
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureParentheticalDetail",
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail",
      "http://www.ypf.com/role/IncomeTaxAdditionalInformationDetail",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail",
      "http://www.ypf.com/role/LoansScheduleOfLoansParentheticalDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail",
      "http://www.ypf.com/role/ProvisionsAdditionalInformationDetail",
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail",
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Categories of related parties [axis]",
        "terseLabel": "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": [
      "r43",
      "r332"
     ]
    },
    "ifrs-full_CategoriesOfRelatedPartiesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CategoriesOfRelatedPartiesDomain",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationAboutRelatedPartyDetail",
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/CashAndCashEquivalentsSummaryOfCashAndCashEquivalentsDetail",
      "http://www.ypf.com/role/CashAndCashEquivalentsSummaryOfCashAndCashEquivalentsParentheticalDetail",
      "http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquityParenthetical",
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureParentheticalDetail",
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail",
      "http://www.ypf.com/role/IncomeTaxAdditionalInformationDetail",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail",
      "http://www.ypf.com/role/LoansScheduleOfLoansParentheticalDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail",
      "http://www.ypf.com/role/ProvisionsAdditionalInformationDetail",
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail",
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Categories of related parties [domain]",
        "terseLabel": "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": [
      "r43",
      "r332"
     ]
    },
    "ypf_CentralAdministrationAndOthersMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CentralAdministrationAndOthersMember",
     "presentation": [
      "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail",
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail",
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesBySalesChannelsDetail",
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Central Administration And Others [member]",
        "terseLabel": "Central Administration and Others [member]",
        "documentation": "Central administration and others."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_CerroPiedraCerroGuadalNorteBarrancaYankowskyLosMonosElGuadalLomasdelCuyCaadnVascoCaadnYatelPicoTruncadoElCordnLosPeralesLasMesetasCaadnLenMesetaEspinosaandCaadndelaEscondidaLasHerasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CerroPiedraCerroGuadalNorteBarrancaYankowskyLosMonosElGuadalLomasdelCuyCaadnVascoCaadnYatelPicoTruncadoElCordnLosPeralesLasMesetasCaadnLenMesetaEspinosaandCaadndelaEscondidaLasHerasMember",
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cerro Piedra Cerro Guadal Norte Barranca Yankowsky Los Monos El Guadal Lomas del Cuy Caadn Vasco Caadn Yatel Pico Truncado El Cordn Los Perales Las Mesetas Caadn Len Meseta Espinosa and Caadn de la Escondida Las Heras [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_CguGasAustralBasinMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CguGasAustralBasinMember",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "CGU Gas Austral Basin [member]",
        "documentation": "CGU Gas Austral Basin [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_CguGasCuencaNeuquinaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CguGasCuencaNeuquinaMember",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "CGU Gas Cuenca Neuquina [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_CguGasCuencaNoroesteMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CguGasCuencaNoroesteMember",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "CGU Gas Cuenca Noroeste [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_CguGasNeuquinaBasinMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CguGasNeuquinaBasinMember",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "CGU Gas Neuquina Basin [member]",
        "documentation": "CGU Gas Neuquina Basin [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_CguGasNorthwestBasinMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CguGasNorthwestBasinMember",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "CGU Gas Northwest Basin [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_CguOilCguGasAustralBasinAndCguGasNeuquinaBasinMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CguOilCguGasAustralBasinAndCguGasNeuquinaBasinMember",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "CGU Oil CGU Gas Austral Basin And CGU Gas Neuquina Basin [Member]",
        "documentation": "CGU oil cgu gas austral basin and cgu gas neuquina basin."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ChachahuenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ChachahuenMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Chachahuen [Member]",
        "terseLabel": "Chachahuen [member]"
       }
      }
     },
     "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": [
      "r586"
     ]
    },
    "ypf_ChangesInOperatingAssetsAndLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ChangesInOperatingAssetsAndLiabilitiesAbstract",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Changes in Operating Assets and Liabilities [abstract]",
        "terseLabel": "Changes in assets and liabilities:",
        "documentation": "Changes in operating assets and liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ChangesInOurEstimatedProvedReservesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ChangesInOurEstimatedProvedReservesLineItems",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Changes In Our Estimated Proved Reserves [Line Items]",
        "verboseLabel": "Changes in our estimated proved reserves [line items]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ChangesInPropertyPlantAndEquipmentAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ChangesInPropertyPlantAndEquipmentAbstract",
     "lang": {
      "en-us": {
       "role": {
        "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://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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": [
      "r451",
      "r509"
     ]
    },
    "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": [
      "r583"
     ]
    },
    "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": [
      "r581"
     ]
    },
    "dei_CityAreaCode": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "CityAreaCode",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "City Area Code",
        "documentation": "Area code of city"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClaimsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClaimsAxis",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Claims [Axis]",
        "documentation": "Claims."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClaimsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClaimsMember",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Claims [Member]",
        "documentation": "Claims."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassASharesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassASharesMember",
     "presentation": [
      "http://www.ypf.com/role/CoverPage",
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class a shares [Member]",
        "verboseLabel": "Class A shares [member]",
        "terseLabel": "Class A shares [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassBSharesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassBSharesMember",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class B Shares [Member]",
        "terseLabel": "Class B shares [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassCSharesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassCSharesMember",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class C Shares [Member]",
        "terseLabel": "Class C shares [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassDSharesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassDSharesMember",
     "presentation": [
      "http://www.ypf.com/role/CoverPage",
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class D Shares [Member]",
        "terseLabel": "Class D shares [Member]",
        "documentation": "Class D shares."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassEighteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassEighteenMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class Eighteen [Member]",
        "terseLabel": "Class XVIII [member]",
        "documentation": "Class eighteen member."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassFiftyFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassFiftyFourMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class fifty four [member]",
        "terseLabel": "Class LIV [member]",
        "documentation": "Class fifty four [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassFiftyThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassFiftyThreeMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class fifty three [member]",
        "terseLabel": "Class LIII [member]",
        "documentation": "Class fifty three [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassFortyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassFortyMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class Forty [member]",
        "terseLabel": "Class XL [member]",
        "documentation": "Class forty."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassFortyOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassFortyOneMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class Forty One [member]",
        "terseLabel": "Class XLI [member]",
        "documentation": "Class forty one."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassFortyTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassFortyTwoMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class Forty Two [member]",
        "terseLabel": "Class XLII [member]",
        "documentation": "Class forty two."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassNineteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassNineteenMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class Nineteen [member]",
        "terseLabel": "Class XIX [member]",
        "documentation": "Class nineteen."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassOfBorrowingsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassOfBorrowingsAxis",
     "presentation": [
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class of Borrowings [Axis]",
        "documentation": "Class of borrowings."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassOfBorrowingsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassOfBorrowingsMember",
     "presentation": [
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class of Borrowings [Member]",
        "documentation": "Class of borrowings."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassOfProvisionAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassOfProvisionAxis",
     "presentation": [
      "http://www.ypf.com/role/TradeReceivablesSummaryOfEvolutionOfTheProvisionForDoubtfulTradeReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class Of Provision [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassOfProvisionDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassOfProvisionDomain",
     "presentation": [
      "http://www.ypf.com/role/TradeReceivablesSummaryOfEvolutionOfTheProvisionForDoubtfulTradeReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class Of Provision [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassOneMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class One [Member]",
        "terseLabel": "Class I [member]",
        "documentation": "Class One."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassSeventeenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassSeventeenMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class Seventeen [member]",
        "terseLabel": "Class XVII [member]",
        "documentation": "Class seventeen."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassSixteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassSixteenMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class Sixteen [Member]",
        "terseLabel": "Class XVI [member]",
        "documentation": "Class sixteen member."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassThirteenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassThirteenMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class Thirteen [member]",
        "terseLabel": "Class XIII [member]",
        "documentation": "Class thirteen."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassThirtyEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassThirtyEightMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class Thirty Eight [member]",
        "terseLabel": "Class XXXVIII [member]",
        "documentation": "Class thirty eight."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassThirtyFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassThirtyFiveMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class Thirty Five [member]",
        "terseLabel": "Class XXXV [member]",
        "documentation": "Class thirty five."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassThirtyFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassThirtyFourMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class Thirty Four [member]",
        "terseLabel": "Class XXXIV [member]",
        "documentation": "Class thirty four."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassThirtyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassThirtyMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class Thirty [Member]",
        "terseLabel": "Class XXX [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassThirtyNineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassThirtyNineMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class Thirty Nine [member]",
        "terseLabel": "Class XXXIX [member]",
        "documentation": "Class thirty nine."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassThirtyOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassThirtyOneMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class Thirty One [Member]",
        "terseLabel": "Class\u00a0XXXI [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassThirtySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassThirtySevenMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class Thirty Seven [member]",
        "terseLabel": "Class XXXVII [member]",
        "documentation": "Class thirty seven."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassThirtySixMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassThirtySixMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class Thirty Six [member]",
        "terseLabel": "Class XXXVI [member]",
        "documentation": "Class thirty six."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassThirtyThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassThirtyThreeMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class Thirty Three [member]",
        "terseLabel": "Class XXXIII [member]",
        "documentation": "Class thirty three."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassThirtyTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassThirtyTwoMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class Thirty Two [Member]",
        "terseLabel": "Class XXXII [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassTwentyEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassTwentyEightMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class Twenty Eight [member]",
        "terseLabel": "Class XXVIII [Member]",
        "documentation": "Class twenty eight."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassTwentyFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassTwentyFiveMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class Twenty Five [Member]",
        "terseLabel": "Class XXV [member]",
        "documentation": "Class twenty five."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassTwentyFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassTwentyFourMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class Twenty Four [member]",
        "terseLabel": "Class XXIV [member]",
        "documentation": "Class twenty four."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassTwentyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassTwentyMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class Twenty [member]",
        "terseLabel": "Class XX [member]",
        "documentation": "Class twenty."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassTwentyNineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassTwentyNineMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class Twenty Nine [member]",
        "terseLabel": "Class XXIX [member]",
        "documentation": "Class twenty nine."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassTwentyOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassTwentyOneMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class Twenty One [Member]",
        "terseLabel": "Class XXI [member]",
        "documentation": "Class twenty one."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassTwentySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassTwentySevenMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class Twenty Seven [Member]",
        "verboseLabel": "Class XXVII [member]",
        "documentation": "Class twenty seven."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassTwentySixMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassTwentySixMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class Twenty Six[member]",
        "terseLabel": "Class XXVI [Member]",
        "documentation": "Class twenty six."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassTwentyThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassTwentyThreeMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class Twenty Three [Member]",
        "terseLabel": "Class XXIII [member]",
        "documentation": "Class twenty three."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassTwentyTwoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassTwentyTwoMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class Twenty Two [member]",
        "terseLabel": "Class XXII [member]",
        "documentation": "Class twenty two."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassXXVIIINOMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassXXVIIINOMember",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsGrantedGuaranteesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Class X X V I I I N O [Member]",
        "terseLabel": "Class XXVIII NO [Member]",
        "documentation": "Class XXVIII NO."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassXXXIVMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassXXXIVMember",
     "presentation": [
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ClassXXXIV [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ClassesOfAssetsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfAssetsAxis",
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesSummaryOfTheMainAssetsHeldForSaleAndAssociatedLiabilitiesDetail",
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfCompanysFinancialAssetsMeasuredAtFairValueDetail",
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxDetail",
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsParentheticalDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionsForImpairmentOfPropertyPlantAndEquipmentParentheticalDetail",
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail",
      "http://www.ypf.com/role/RightOfUseAssetsAdditionalInformationDetail",
      "http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsDetail",
      "http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsParentheticalDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail",
      "http://www.ypf.com/role/TradeReceivablesSummaryOfEvolutionOfTheProvisionForDoubtfulTradeReceivablesDetail",
      "http://www.ypf.com/role/TradeReceivablesSummaryOfTradeReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of assets [axis]",
        "terseLabel": "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": [
      "r64",
      "r66",
      "r142",
      "r161",
      "r280",
      "r336",
      "r389"
     ]
    },
    "ifrs-full_ClassesOfAssetsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfAssetsDomain",
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesSummaryOfTheMainAssetsHeldForSaleAndAssociatedLiabilitiesDetail",
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfCompanysFinancialAssetsMeasuredAtFairValueDetail",
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxDetail",
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsParentheticalDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionsForImpairmentOfPropertyPlantAndEquipmentParentheticalDetail",
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail",
      "http://www.ypf.com/role/RightOfUseAssetsAdditionalInformationDetail",
      "http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsDetail",
      "http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsParentheticalDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail",
      "http://www.ypf.com/role/TradeReceivablesSummaryOfEvolutionOfTheProvisionForDoubtfulTradeReceivablesDetail",
      "http://www.ypf.com/role/TradeReceivablesSummaryOfTradeReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of assets [domain]",
        "terseLabel": "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": [
      "r64",
      "r142",
      "r161",
      "r280",
      "r336",
      "r389"
     ]
    },
    "ifrs-full_ClassesOfContingentLiabilitiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfContingentLiabilitiesAxis",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsDetail",
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of contingent liabilities [axis]",
        "terseLabel": "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": [
      "r75",
      "r194",
      "r341"
     ]
    },
    "ifrs-full_ClassesOfContingentLiabilitiesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfContingentLiabilitiesDomain",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsDetail",
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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": [
      "r76",
      "r194"
     ]
    },
    "ifrs-full_ClassesOfFinancialAssetsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfFinancialAssetsAxis",
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfCompanysFinancialAssetsMeasuredAtFairValueDetail",
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail",
      "http://www.ypf.com/role/FinancialRiskManagementSummaryOfBreakdownOfTheFinancialAssetsDetail",
      "http://www.ypf.com/role/InvestmentsInFinancialAssetsSummaryOfInvestmentsInFinancialAssetsDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of financial assets [axis]",
        "terseLabel": "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": [
      "r178",
      "r220",
      "r221",
      "r251",
      "r252",
      "r399"
     ]
    },
    "ifrs-full_ClassesOfFinancialAssetsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfFinancialAssetsDomain",
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfCompanysFinancialAssetsMeasuredAtFairValueDetail",
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail",
      "http://www.ypf.com/role/FinancialRiskManagementSummaryOfBreakdownOfTheFinancialAssetsDetail",
      "http://www.ypf.com/role/InvestmentsInFinancialAssetsSummaryOfInvestmentsInFinancialAssetsDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of financial assets [domain]",
        "terseLabel": "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": [
      "r178",
      "r220",
      "r221",
      "r251",
      "r252",
      "r399"
     ]
    },
    "ifrs-full_ClassesOfFinancialInstrumentsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfFinancialInstrumentsAxis",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail",
      "http://www.ypf.com/role/FinancialInstrumentsByCategoryAdditionalInformationDetail",
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfGainsAndLossesOnFinancialInstrumentsDetail",
      "http://www.ypf.com/role/FinancialRiskManagementSummaryOfMaximumExposureToCreditRiskDetail",
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail",
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of financial instruments [axis]",
        "terseLabel": "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": [
      "r209",
      "r212",
      "r214",
      "r215",
      "r377",
      "r380"
     ]
    },
    "ifrs-full_ClassesOfFinancialInstrumentsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfFinancialInstrumentsDomain",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail",
      "http://www.ypf.com/role/FinancialInstrumentsByCategoryAdditionalInformationDetail",
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfGainsAndLossesOnFinancialInstrumentsDetail",
      "http://www.ypf.com/role/FinancialRiskManagementSummaryOfMaximumExposureToCreditRiskDetail",
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail",
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of financial instruments [domain]",
        "terseLabel": "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": [
      "r209",
      "r212",
      "r214",
      "r215",
      "r377",
      "r380"
     ]
    },
    "ifrs-full_ClassesOfIntangibleAssetsAndGoodwillAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfIntangibleAssetsAndGoodwillAxis",
     "presentation": [
      "http://www.ypf.com/role/IntangibleAssetsSummaryOfChangesInIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of intangible assets and goodwill [axis]",
        "terseLabel": "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": [
      "r649"
     ]
    },
    "ifrs-full_ClassesOfIntangibleAssetsAndGoodwillDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfIntangibleAssetsAndGoodwillDomain",
     "presentation": [
      "http://www.ypf.com/role/IntangibleAssetsSummaryOfChangesInIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of intangible assets and goodwill [domain]",
        "terseLabel": "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": [
      "r649"
     ]
    },
    "ifrs-full_ClassesOfLiabilitiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfLiabilitiesAxis",
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesSummaryOfTheMainAssetsHeldForSaleAndAssociatedLiabilitiesDetail",
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail",
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxDetail",
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of liabilities [axis]",
        "terseLabel": "Classes of 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": [
      "r142",
      "r389"
     ]
    },
    "ifrs-full_ClassesOfLiabilitiesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfLiabilitiesDomain",
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesSummaryOfTheMainAssetsHeldForSaleAndAssociatedLiabilitiesDetail",
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail",
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxDetail",
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of liabilities [domain]",
        "terseLabel": "Classes of liabilities [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for 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. It also represents the standard value for the 'Classes of liabilities' axis if no other member is used. [Refer: Liabilities]"
       }
      }
     },
     "auth_ref": [
      "r142",
      "r389"
     ]
    },
    "ifrs-full_ClassesOfOrdinarySharesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfOrdinarySharesAxis",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of ordinary shares [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": [
      "r59"
     ]
    },
    "ifrs-full_ClassesOfOrdinarySharesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfOrdinarySharesDomain",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of ordinary shares [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Classes of ordinary shares' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r59"
     ]
    },
    "ifrs-full_ClassesOfOtherProvisionsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfOtherProvisionsDomain",
     "presentation": [
      "http://www.ypf.com/role/ContingentAssetsAndLiabilitiesAdditionalInformationDetail",
      "http://www.ypf.com/role/ProvisionsAdditionalInformationDetail",
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail",
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of other provisions [domain]",
        "terseLabel": "Classes of other provisions [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for provisions other than provisions for employee benefits. It also represents the standard value for the 'Classes of other provisions' axis if no other member is used. [Refer: Provisions]"
       }
      }
     },
     "auth_ref": [
      "r74",
      "r340"
     ]
    },
    "ifrs-full_ClassesOfPropertyPlantAndEquipmentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfPropertyPlantAndEquipmentAxis",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesAdditionalInformationDetail",
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsDetailedInformationAboutPropertyPlantAndEquipmentDetail",
      "http://www.ypf.com/role/InventoriesSummaryOfInventoriesDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesParentheticalDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of property, plant and equipment [axis]",
        "terseLabel": "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": [
      "r20",
      "r321"
     ]
    },
    "ifrs-full_ClassesOfPropertyPlantAndEquipmentDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfPropertyPlantAndEquipmentDomain",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesAdditionalInformationDetail",
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsDetailedInformationAboutPropertyPlantAndEquipmentDetail",
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxDetail",
      "http://www.ypf.com/role/InventoriesSummaryOfInventoriesDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesParentheticalDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of property, plant and equipment [domain]",
        "terseLabel": "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": [
      "r20",
      "r321"
     ]
    },
    "ifrs-full_ClassesOfProvisionsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfProvisionsAxis",
     "presentation": [
      "http://www.ypf.com/role/ContingentAssetsAndLiabilitiesAdditionalInformationDetail",
      "http://www.ypf.com/role/ProvisionsAdditionalInformationDetail",
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail",
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of other provisions [axis]",
        "terseLabel": "Classes of other provisions [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": [
      "r74",
      "r340"
     ]
    },
    "ifrs-full_ClassesOfShareCapitalAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfShareCapitalAxis",
     "presentation": [
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of share capital [axis]",
        "terseLabel": "Classes of share capital [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": [
      "r293",
      "r393",
      "r432"
     ]
    },
    "ifrs-full_ClassesOfShareCapitalDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassesOfShareCapitalDomain",
     "presentation": [
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classes of share capital [domain]",
        "terseLabel": "Classes of share capital [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for share capital of the entity. It also represents the standard value for the 'Classes of share capital' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r293",
      "r393",
      "r432"
     ]
    },
    "ifrs-full_ClassificationOfAssetsAsHeldForSaleMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClassificationOfAssetsAsHeldForSaleMember",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classification of assets as held for sale [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for classification of assets as held for sale. [Refer: Non-current assets held for sale [member]]"
       }
      }
     },
     "auth_ref": [
      "r450",
      "r508"
     ]
    },
    "ypf_ClassifiedAsHeldForSaleAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassifiedAsHeldForSaleAxis",
     "presentation": [
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classified As Held For Sale [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassifiedAsHeldForSaleMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassifiedAsHeldForSaleMember",
     "presentation": [
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Classified As Held For Sale [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ClassxliiMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ClassxliiMember",
     "presentation": [
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ClassXLII [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ClosingForeignExchangeRate": {
     "xbrltype": "decimalItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ClosingForeignExchangeRate",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Closing foreign exchange rate",
        "verboseLabel": "Closing exchange rates"
       }
      },
      "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": [
      "r675"
     ]
    },
    "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": [
      "r587"
     ]
    },
    "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": [
      "r587"
     ]
    },
    "ypf_ComisionNacionalDeLaDefensaLaCompetenciaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ComisionNacionalDeLaDefensaLaCompetenciaMember",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Comision Nacional De La Defensa La Competencia [member]",
        "terseLabel": "CNDC [member]",
        "documentation": "CNDC."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_CommercializationOfLiquefiedPetroleumGasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CommercializationOfLiquefiedPetroleumGasMember",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesBySalesChannelsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commercialization of liquefied petroleum gas [member]",
        "terseLabel": "Commercialization of LPG [member]",
        "documentation": "Commercialization of liquefied petroleum gas."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CommitmentsMadeByEntityRelatedPartyTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CommitmentsMadeByEntityRelatedPartyTransactions",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsGrantedGuaranteesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Commitments made by entity, related party transactions",
        "terseLabel": "Assumed other commitments"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of related-party commitments made by the entity to do something if a particular event occurs or does not occur in the future, including executory contracts (recognised and unrecognised). [Refer: Total for all related parties [member]]"
       }
      }
     },
     "auth_ref": [
      "r461"
     ]
    },
    "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": [
      "r592"
     ]
    },
    "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": [
      "r591"
     ]
    },
    "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": [
      "r593"
     ]
    },
    "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": [
      "r590"
     ]
    },
    "ypf_CompaniaDeDesarrolloMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CompaniaDeDesarrolloMember",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compania De Desarrollo [Member]",
        "terseLabel": "Compania De Desarrollo [Member]",
        "documentation": "Compania de desarrollo."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_CompaniaDeDesarrolloNoConvencionalSRLandCompaniaDeHidrocarburoNoConvencionalSRLMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CompaniaDeDesarrolloNoConvencionalSRLandCompaniaDeHidrocarburoNoConvencionalSRLMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compania De Desarrollo No Convencional SRL and Compania De Hidrocarburo No Convencional SRL [Member]",
        "terseLabel": "CDNC and CHNC [member]",
        "documentation": "CDNC and CHNC."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_CompaniaDeHidrocarburoNoConvencionaLsrlChncMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CompaniaDeHidrocarburoNoConvencionaLsrlChncMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compania De Hidrocarburo No Convenciona lSRL CHNC [Member]",
        "terseLabel": "CHNC [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_CompensationToDecreeNo10532018Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CompensationToDecreeNo10532018Member",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationAboutRelatedPartyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compensation to Decree No 1 0532018 [Member]",
        "terseLabel": "Compensation to Decree No.1,053/2018 [member]",
        "documentation": "Compensation to Decree No. 1,053/2018."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_CompensationsfromtheNationalGovernmentforthePlanGasAr20202024": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CompensationsfromtheNationalGovernmentforthePlanGasAr20202024",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Compensations from the National Government for the Plan GasAr 20202024",
        "terseLabel": "Compensations from the National Government for the Plan GasAr 2020-2024",
        "documentation": "Compensations from the National Government for the Plan GasAr 2020-2024."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ComponentsOfEquityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ComponentsOfEquityAxis",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity",
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Components of equity [axis]",
        "terseLabel": "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": [
      "r407"
     ]
    },
    "ifrs-full_ComponentsOfEquityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ComponentsOfEquityDomain",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity",
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Components of equity [domain]",
        "terseLabel": "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": [
      "r407"
     ]
    },
    "ifrs-full_ComponentsOfOtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTaxAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ComponentsOfOtherComprehensiveIncomeThatWillBeReclassifiedToProfitOrLossNetOfTaxAbstract",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Components of other comprehensive income that will be reclassified to profit or loss, net of tax [abstract]",
        "terseLabel": "Items that may be reclassified subsequently to profit or loss:"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ComprehensiveIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate1": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate2": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate3": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate4": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate5": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate6": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate7": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate8": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate9": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Comprehensive income",
        "totalLabel": "Total comprehensive income for the year",
        "verboseLabel": "Total 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": [
      "r103",
      "r105",
      "r124",
      "r334",
      "r353",
      "r402",
      "r436",
      "r474"
     ]
    },
    "ifrs-full_ComprehensiveIncomeAttributableToAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ComprehensiveIncomeAttributableToAbstract",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Comprehensive income attributable to [abstract]",
        "terseLabel": "Total comprehensive income for the year attributable to:"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ComprehensiveIncomeAttributableToNoncontrollingInterests",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Comprehensive income, attributable to non-controlling interests",
        "totalLabel": "Non-controlling interest"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of comprehensive income attributable to non-controlling interests. [Refer: Comprehensive income; Non-controlling interests]"
       }
      }
     },
     "auth_ref": [
      "r402",
      "r439"
     ]
    },
    "ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ComprehensiveIncomeAttributableToOwnersOfParent",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Comprehensive income, attributable to owners of parent",
        "totalLabel": "Shareholders of the parent company"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of comprehensive income attributable to owners of the parent. [Refer: Comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r402",
      "r440"
     ]
    },
    "ypf_ComprehensiveIncomeLocationAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ComprehensiveIncomeLocationAxis",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Comprehensive Income Location [Axis]",
        "documentation": "Comprehensive income location."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ComprehensiveIncomeLocationDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ComprehensiveIncomeLocationDomain",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Comprehensive Income Location [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ConsentExpressionTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ConsentExpressionTerm",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consent expression term",
        "terseLabel": "Consent expression term",
        "documentation": "Consent expression term."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ConsolidatedAndEquityaccountedEntitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ConsolidatedAndEquityaccountedEntitiesMember",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidated and equity-accounted entities [member]",
        "terseLabel": "Consolidated and equity-accounted entities [Member]",
        "documentation": "Consolidated and equity-accounted entities."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ConsolidatedStructuredEntitiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ConsolidatedStructuredEntitiesAxis",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidated structured entities [axis]",
        "terseLabel": "Consolidated structured entities [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": [
      "r137"
     ]
    },
    "ifrs-full_ConsolidatedStructuredEntitiesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ConsolidatedStructuredEntitiesDomain",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidated structured entities [domain]",
        "terseLabel": "Consolidated structured entities [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Consolidated structured entities' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r137"
     ]
    },
    "ifrs-full_ConsolidatedStructuredEntitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ConsolidatedStructuredEntitiesMember",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consolidated structured entities [member]",
        "terseLabel": "Consolidated entities [Member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for consolidated structured entities. A structured entity is an entity that has been designed so that voting or similar rights are not the dominant factor in deciding who controls the entity, such as when any voting rights relate to administrative tasks only and the relevant activities are directed by means of contractual arrangements. [Refer: Consolidated [member]]"
       }
      }
     },
     "auth_ref": [
      "r137"
     ]
    },
    "ypf_ConsorcioCnq7aMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ConsorcioCnq7aMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Consorcio CNQ7A [Member]",
        "terseLabel": "Consorcio CNQ 7A [Member]",
        "documentation": "Consorcio CNQ7A."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ConstitutionOfReservesEquity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ConstitutionOfReservesEquity",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Constitution of Reserves Equity",
        "terseLabel": "Appropriation to reserves",
        "documentation": "Constitution of reserves equity."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ConstructionInProgressMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ConstructionInProgressMember",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Construction in progress [member]",
        "terseLabel": "Drilling and work 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": [
      "r640"
     ]
    },
    "dei_ContactPersonnelName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "ContactPersonnelName",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contact Personnel Name",
        "documentation": "Name of contact personnel"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ContinentalShelfAndTerritorialWaterConcessionTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ContinentalShelfAndTerritorialWaterConcessionTerm",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Continental Shelf and Territorial Water Concession Term",
        "terseLabel": "Continental shelf and territorial water concession term",
        "documentation": "Continental shelf and territorial water concession term."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentAxis",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsGrantedGuaranteesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Continuing involvement in derecognised financial assets by type of instrument [axis]",
        "terseLabel": "Continuing involvement in derecognised financial assets by type of instrument [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": [
      "r493"
     ]
    },
    "ifrs-full_ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ContinuingInvolvementInDerecognisedFinancialAssetsByTypeOfInstrumentDomain",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsGrantedGuaranteesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Continuing involvement in derecognised financial assets by type of instrument [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for all types of financial instruments. It also represents the standard value for the 'Continuing involvement in derecognised financial assets by type of instrument' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r493"
     ]
    },
    "ypf_ContractLiabilitiesArisingFromCompanyAcquisitions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ContractLiabilitiesArisingFromCompanyAcquisitions",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlowsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ContractLiabilitiesArisingFromCompanyAcquisitions",
        "terseLabel": "Contract liabilities arising from company acquisitions",
        "documentation": "Contract Liabilities Arising From Company Acquisitions"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ContractualLiabilityPayableValue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ContractualLiabilityPayableValue",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/ContingentAssetsAndLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contractual Liability Payable Value",
        "terseLabel": "Contractual liability payable value",
        "documentation": "Contractual liability payable value."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ContributionsAndAcquisitionsOfInterestsInAssociatesAndJointVentures": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ContributionsAndAcquisitionsOfInterestsInAssociatesAndJointVentures",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": -1.0,
       "order": 12.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Contributions and acquisitions of interests in associates and joint ventures",
        "negatedLabel": "Contributions and acquisitions of interests in associates and joint ventures",
        "documentation": "Contributions and acquisitions of interests in associates and joint ventures."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ConventionalExploitationConcessionTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ConventionalExploitationConcessionTerm",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Conventional Exploitation Concession Term",
        "terseLabel": "Conventional exploitation concession term",
        "documentation": "Conventional exploitation concession term."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_CornAndSorghumMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CornAndSorghumMember",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Corn And Sorghum [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CostOfSales": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CostOfSales",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_GrossProfit",
       "weight": -1.0,
       "order": 14.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome",
      "http://www.ypf.com/role/CostsDetailedInformationOfInventoryCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cost of sales",
        "negatedLabel": "Costs",
        "verboseLabel": "Total",
        "terseLabel": "Costs and expenses"
       }
      }
     },
     "auth_ref": [
      "r400",
      "r449"
     ]
    },
    "ypf_CostsIncurredInOilAndGasProductivity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CostsIncurredInOilAndGasProductivity",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Costs Incurred In Oil And Gas Productivity",
        "totalLabel": "Total costs incurred",
        "documentation": "Costs Incurred in oil and gas productivity."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_CostsIncurredOfAssetsHeldForSale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CostsIncurredOfAssetsHeldForSale",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Costs Incurred Of Assets Held For Sale",
        "terseLabel": "Costs incurred of assets held for sale",
        "documentation": "Costs incurred of assets held for sale."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CounterpartiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CounterpartiesAxis",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesAdditionalInformationDetail",
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail",
      "http://www.ypf.com/role/ProvisionsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Counterparties [axis]",
        "terseLabel": "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": [
      "r228"
     ]
    },
    "ifrs-full_CounterpartiesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CounterpartiesDomain",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesAdditionalInformationDetail",
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail",
      "http://www.ypf.com/role/ProvisionsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Counterparties [domain]",
        "terseLabel": "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": [
      "r228"
     ]
    },
    "ifrs-full_CountryOfIncorporationOfJointOperation": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CountryOfIncorporationOfJointOperation",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Country of incorporation of joint operation",
        "terseLabel": "Location"
       }
      },
      "en": {
       "role": {
        "documentation": "The country in which a joint operation of the entity is incorporated. [Refer: Total for all joint operations [member]]"
       }
      }
     },
     "auth_ref": [
      "r116"
     ]
    },
    "ifrs-full_CountryOfIncorporationOfJointVenture": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CountryOfIncorporationOfJointVenture",
     "presentation": [
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Country of incorporation of joint venture",
        "verboseLabel": "Country of joint venture"
       }
      },
      "en": {
       "role": {
        "documentation": "The country in which a joint venture of the entity is incorporated. [Refer: Total for all joint ventures [member]]"
       }
      }
     },
     "auth_ref": [
      "r49",
      "r53",
      "r116"
     ]
    },
    "ifrs-full_CountryOfIncorporationOrResidenceOfAssociate": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CountryOfIncorporationOrResidenceOfAssociate",
     "presentation": [
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Country of incorporation of associate",
        "verboseLabel": "Country of associate"
       }
      },
      "en": {
       "role": {
        "documentation": "The country in which an associate of the entity is incorporated. [Refer: Total for all associates [member]]"
       }
      }
     },
     "auth_ref": [
      "r49",
      "r53",
      "r116"
     ]
    },
    "ifrs-full_CountryOfIncorporationOrResidenceOfSubsidiary": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CountryOfIncorporationOrResidenceOfSubsidiary",
     "presentation": [
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Country of incorporation of subsidiary",
        "verboseLabel": "Country of subsidiary"
       }
      },
      "en": {
       "role": {
        "documentation": "The country in which a subsidiary of the entity is incorporated. [Refer: Total for all subsidiaries [member]]"
       }
      }
     },
     "auth_ref": [
      "r49",
      "r53",
      "r108",
      "r112"
     ]
    },
    "dei_CoverAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "CoverAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Cover [Abstract]",
        "documentation": "Cover page."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_CrudeOil1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CrudeOil1Member",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Crude Oil 1 [member]",
        "terseLabel": "Crude oil [Member]",
        "documentation": "Crude oil."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_CrudeOilAndCommercializedNaturalGasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CrudeOilAndCommercializedNaturalGasMember",
     "presentation": [
      "http://www.ypf.com/role/InventoriesSummaryOfInventoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Crude oil and commercialized natural gas [member]",
        "terseLabel": "Crude oil and natural gas [member]",
        "documentation": "Crude oil and commercialized natural gas."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_CrudeOilAndNaturalGasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CrudeOilAndNaturalGasMember",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Crude Oil And Natural Gas [Member]",
        "terseLabel": "Crude Oil And Natural Gas [Member]",
        "documentation": "Crude oil and natural gas."
       }
      }
     },
     "auth_ref": []
    },
    "srt_CrudeOilMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "CrudeOilMember",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Crude Oil [Member]",
        "terseLabel": "Crude oil [member]",
        "documentation": "Unrefined, unprocessed oil, which may be used in a variety of applications, and from which, petroleum-based products are produced."
       }
      }
     },
     "auth_ref": [
      "r638",
      "r663",
      "r664"
     ]
    },
    "ypf_CsjnMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CsjnMember",
     "presentation": [
      "http://www.ypf.com/role/ContingentAssetsAndLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "CSJN [member]",
        "terseLabel": "CSJN [member]",
        "documentation": "CSJN."
       }
      }
     },
     "auth_ref": []
    },
    "srt_CurrencyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "CurrencyAxis",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail",
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfBreakdownOfEffectAVariationOf10InPrevailingExchangeRatesOnNetIncomeDetail",
      "http://www.ypf.com/role/LoansScheduleOfLoansDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Currency [Axis]",
        "terseLabel": "Currency [Axis]",
        "documentation": "Information by currency."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrencyRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrencyRiskMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfBreakdownOfEffectAVariationOf10InPrevailingExchangeRatesOnNetIncomeDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Currency risk [member]",
        "verboseLabel": "Exchange Rate 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": [
      "r172",
      "r173",
      "r174",
      "r175",
      "r230"
     ]
    },
    "ypf_CurrentAdvancesAndLoansToEmployees": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CurrentAdvancesAndLoansToEmployees",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail": {
       "parentTag": "ypf_TradeAndOtherCurrentReceivablesOtherThanProvision",
       "weight": 1.0,
       "order": 15.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Advances And Loans To Employees",
        "terseLabel": "Advances and loans to employees",
        "documentation": "Current advances and loans to employees."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrentAdvancesToSuppliers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentAdvancesToSuppliers",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail": {
       "parentTag": "ypf_TradeAndOtherCurrentReceivablesOtherThanProvision",
       "weight": 1.0,
       "order": 14.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current advances to suppliers",
        "terseLabel": "Advances to suppliers and custom agents"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current advances made to suppliers before goods or services are received."
       }
      }
     },
     "auth_ref": [
      "r675"
     ]
    },
    "ifrs-full_CurrentAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_Assets",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationOfAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current assets",
        "totalLabel": "Total current assets",
        "terseLabel": "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": [
      "r120",
      "r426",
      "r474"
     ]
    },
    "ifrs-full_CurrentAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentAssetsAbstract",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current assets [abstract]",
        "verboseLabel": "Current assets"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_CurrentAssetsOrDisposalGroupsClassifiedAsHeldForSale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CurrentAssetsOrDisposalGroupsClassifiedAsHeldForSale",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssets",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current assets or disposal groups classified as held for sale",
        "terseLabel": "Assets held for sale",
        "documentation": "Current assets or disposal groups classified as held for sale"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_CurrentCollateralDeposits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CurrentCollateralDeposits",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail": {
       "parentTag": "ypf_TradeAndOtherCurrentReceivablesOtherThanProvision",
       "weight": 1.0,
       "order": 17.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Collateral Deposits",
        "terseLabel": "Collateral deposits",
        "documentation": "Current collateral deposits."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrentContractAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentContractAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssets",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/RevenuesSummaryOfCreditsContractAssetsAndContractLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current contract assets",
        "terseLabel": "Contract assets",
        "definitionGuidance": "Current contract assets",
        "verboseLabel": "Current contract Assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current contract assets. [Refer: Contract assets]"
       }
      }
     },
     "auth_ref": [
      "r147"
     ]
    },
    "ifrs-full_CurrentContractLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentContractLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilities",
       "weight": 1.0,
       "order": 37.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/RevenuesSummaryOfCreditsContractAssetsAndContractLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current contract liabilities",
        "terseLabel": "Contract liabilities",
        "definitionGuidance": "Current contract liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current contract liabilities. [Refer: Contract liabilities]"
       }
      }
     },
     "auth_ref": [
      "r147"
     ]
    },
    "ifrs-full_CurrentDepositsFromCustomers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentDepositsFromCustomers",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/AccountsPayableDetailedInformationAboutAccountsPayableDetail": {
       "parentTag": "ifrs-full_TradeAndOtherCurrentPayables",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/AccountsPayableDetailedInformationAboutAccountsPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current deposits from customers",
        "terseLabel": "Guarantee deposits"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current deposits from customers. [Refer: Deposits from customers]"
       }
      }
     },
     "auth_ref": [
      "r678"
     ]
    },
    "ifrs-full_CurrentFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentFinancialAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssets",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/InvestmentsInFinancialAssetsSummaryOfInvestmentsInFinancialAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current financial assets",
        "verboseLabel": "Investments in financial assets",
        "definitionGuidance": "Current",
        "presentationGuidance": "Investment in financial assets Current"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current financial assets. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r204"
     ]
    },
    "ifrs-full_CurrentFinancialLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentFinancialLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current financial liabilities",
        "verboseLabel": "Financial liabilities (excluding \"Accounts payable\", \"Provisions\" and \"Other liabilities \"items)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current financial liabilities. [Refer: Financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r204"
     ]
    },
    "dei_CurrentFiscalYearEndDate": {
     "xbrltype": "gMonthDayItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "CurrentFiscalYearEndDate",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Fiscal Year End Date",
        "documentation": "End date of current fiscal year in the format --MM-DD."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_CurrentInsuranceReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CurrentInsuranceReceivables",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail": {
       "parentTag": "ypf_TradeAndOtherCurrentReceivablesOtherThanProvision",
       "weight": 1.0,
       "order": 12.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Insurance Receivables",
        "terseLabel": "Insurance receivables",
        "documentation": "Current insurance receivables."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrentLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentLeaseLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilities",
       "weight": 1.0,
       "order": 43.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/LeaseLiabilitiesSummaryOfLeaseLibilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current lease liabilities",
        "terseLabel": "Lease liabilities",
        "verboseLabel": "Current lease liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current lease liabilities. [Refer: Lease liabilities]"
       }
      }
     },
     "auth_ref": [
      "r153"
     ]
    },
    "ifrs-full_CurrentLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_Liabilities",
       "weight": 1.0,
       "order": 34.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationOfAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current liabilities",
        "totalLabel": "Total current liabilities",
        "terseLabel": "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": [
      "r122",
      "r427",
      "r474"
     ]
    },
    "ifrs-full_CurrentLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentLiabilitiesAbstract",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current liabilities [abstract]",
        "verboseLabel": "Current liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_CurrentLoans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CurrentLoans",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current loans",
        "terseLabel": "Current",
        "documentation": "The amount of current loans."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentMember",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsDetail",
      "http://www.ypf.com/role/TradeReceivablesSummaryOfEvolutionOfTheProvisionForDoubtfulTradeReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current [member]",
        "terseLabel": "Current [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a current time band."
       }
      }
     },
     "auth_ref": [
      "r490",
      "r497"
     ]
    },
    "ifrs-full_CurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilities",
       "weight": 1.0,
       "order": 38.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/TaxesPayableSummaryOfTaxesPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current payables on social security and taxes other than income tax",
        "verboseLabel": "Taxes payable",
        "terseLabel": "Current"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current payables on social security and taxes other than incomes tax. [Refer: Payables on social security and taxes other than income tax]"
       }
      }
     },
     "auth_ref": [
      "r681"
     ]
    },
    "ifrs-full_CurrentPrepaidExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentPrepaidExpenses",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail": {
       "parentTag": "ypf_TradeAndOtherCurrentReceivablesOtherThanProvision",
       "weight": 1.0,
       "order": 16.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current prepaid expenses",
        "terseLabel": "Prepaid expenses"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount recognised as a current asset for expenditures made prior to the period when the economic benefit will be realised."
       }
      }
     },
     "auth_ref": [
      "r675"
     ]
    },
    "ypf_CurrentProvisionForDoubtfulTradeReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CurrentProvisionForDoubtfulTradeReceivable",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/TradeReceivablesSummaryOfTradeReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Provision for Doubtful Trade Receivable",
        "negatedLabel": "Current provision for doubtful trade receivable",
        "documentation": "Current provision for doubtful trade receivable."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrentReceivablesFromContractsWithCustomers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentReceivablesFromContractsWithCustomers",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfCreditsContractAssetsAndContractLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current receivables from contracts with customers",
        "terseLabel": "Current Credits for contracts included in the item \"Trade receivables\""
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current receivables from contracts with customers. [Refer: Receivables from contracts with customers]"
       }
      }
     },
     "auth_ref": [
      "r147"
     ]
    },
    "ifrs-full_CurrentReceivablesFromTaxesOtherThanIncomeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentReceivablesFromTaxesOtherThanIncomeTax",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail": {
       "parentTag": "ypf_TradeAndOtherCurrentReceivablesOtherThanProvision",
       "weight": 1.0,
       "order": 19.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current receivables from taxes other than income tax",
        "terseLabel": "Tax credit and export rebates"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current receivables from taxes other than income tax. [Refer: Receivables from taxes other than income tax]"
       }
      }
     },
     "auth_ref": [
      "r679"
     ]
    },
    "ypf_CurrentReceivablesWithPartnersInJaAndOtherAgreements": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CurrentReceivablesWithPartnersInJaAndOtherAgreements",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail": {
       "parentTag": "ypf_TradeAndOtherCurrentReceivablesOtherThanProvision",
       "weight": 1.0,
       "order": 13.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current receivables with partners in JA and other agreements",
        "verboseLabel": "Receivables with partners in JO and Consortiums",
        "documentation": "Current receivables with partners in JA and other agreements."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrentTaxExpenseIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentTaxExpenseIncome",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfCalculationOfIncomeTaxExpenseAccruedDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current tax expense (income)",
        "negatedLabel": "Current income tax"
       }
      }
     },
     "auth_ref": [
      "r452",
      "r510"
     ]
    },
    "ifrs-full_CurrentTaxLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentTaxLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfIncomeTaxLiabilityDetail",
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfIncomeTaxLiabilityParentheticalsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current tax liabilities",
        "verboseLabel": "Income tax liability, current",
        "terseLabel": "Tax liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current tax for current and prior periods to the extent unpaid. Current tax is the amount of income taxes payable (recoverable) in respect of the taxable profit (tax loss) for a period."
       }
      }
     },
     "auth_ref": [
      "r417"
     ]
    },
    "ifrs-full_CurrentTaxLiabilitiesCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentTaxLiabilitiesCurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilities",
       "weight": 1.0,
       "order": 36.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current tax liabilities, current",
        "verboseLabel": "Income tax liability"
       }
      },
      "en": {
       "role": {
        "documentation": "The current amount of current tax liabilities. [Refer: Current tax liabilities]"
       }
      }
     },
     "auth_ref": [
      "r417"
     ]
    },
    "ifrs-full_CurrentTaxLiabilitiesNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentTaxLiabilitiesNoncurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 53.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfIncomeTaxLiabilityDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current tax liabilities, non-current",
        "verboseLabel": "Income tax liability",
        "presentationGuidance": "Income tax liability, non-current"
       }
      },
      "en": {
       "role": {
        "documentation": "The non-current amount of current tax liabilities. [Refer: Current tax liabilities]"
       }
      }
     },
     "auth_ref": [
      "r417"
     ]
    },
    "ypf_CurrentTradeReceivableMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "CurrentTradeReceivableMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementSummaryOfBreakdownOfTheFinancialAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current Trade Receivable [member]",
        "terseLabel": "Current Trade Receivable [member]",
        "documentation": "Current trade receivable."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_CurrentTradeReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "CurrentTradeReceivables",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssets",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/TradeReceivablesSummaryOfTradeReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current trade receivables",
        "positiveLabel": "Trade receivables",
        "terseLabel": "Accounts receivable and related parties, current gross",
        "positiveTerseLabel": "Trade receivables Current"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current trade receivables. [Refer: Trade receivables]"
       }
      }
     },
     "auth_ref": [
      "r514",
      "r519",
      "r521"
     ]
    },
    "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": [
      "r538",
      "r627"
     ]
    },
    "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": [
      "r538",
      "r627"
     ]
    },
    "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": [
      "r540",
      "r629"
     ]
    },
    "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": [
      "r540",
      "r629"
     ]
    },
    "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": [
      "r542",
      "r631"
     ]
    },
    "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": [
      "r540",
      "r629"
     ]
    },
    "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": [
      "r533",
      "r622"
     ]
    },
    "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": [
      "r534",
      "r623"
     ]
    },
    "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": [
      "r534",
      "r623"
     ]
    },
    "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": [
      "r532",
      "r621"
     ]
    },
    "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": [
      "r532",
      "r621"
     ]
    },
    "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": [
      "r532",
      "r621"
     ]
    },
    "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": [
      "r535",
      "r624"
     ]
    },
    "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": [
      "r537",
      "r626"
     ]
    },
    "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": [
      "r537",
      "r626"
     ]
    },
    "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": [
      "r538",
      "r627"
     ]
    },
    "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": [
      "r541",
      "r630"
     ]
    },
    "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": [
      "r539",
      "r628"
     ]
    },
    "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": [
      "r536",
      "r625"
     ]
    },
    "ypf_DebtCapitalizationOfJointVentures": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DebtCapitalizationOfJointVentures",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlowsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt Capitalization Of Joint Ventures",
        "verboseLabel": "Capitalization in associates and joint ventures",
        "documentation": "Debt capitalization of joint ventures."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DebtInstrumentsHeld": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DebtInstrumentsHeld",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsGrantedGuaranteesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Debt instruments held",
        "terseLabel": "Debt instruments held"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of instruments representing indebtedness, including instruments called debt securities, held by the entity."
       }
      }
     },
     "auth_ref": [
      "r678"
     ]
    },
    "ypf_DecreaseAndReclassificationIntoAvailableforsaleFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DecreaseAndReclassificationIntoAvailableforsaleFinancialAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/IntangibleAssetsSummaryOfChangesInIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Decrease And Reclassification Into Availableforsale Financial Assets",
        "terseLabel": "Decreases, reclassifications and other movements",
        "documentation": "The amount of financial assets reclassified or (decrease) into the available-for-sale category."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DecreaseFromSaleOfCompanies": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DecreaseFromSaleOfCompanies",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfMovementsWhichAffectedTheValueOfTheInvestmentsInAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Decrease from sale of companies",
        "documentation": "Decrease from sale of companies."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DecreaseInPropertyPlantAndEquipmentChargedToProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DecreaseInPropertyPlantAndEquipmentChargedToProfitOrLoss",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionForObsolescenceOfMaterialsAndEquipmentDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionsForImpairmentOfPropertyPlantAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Decrease in Property Plant and Equipment Charged to Profit or Loss",
        "terseLabel": "Decreases charged to profit or loss",
        "documentation": "Decrease in property plant and equipment charged to profit or loss."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DecreaseThroughAmountsIncurredDueToUtilizationPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DecreaseThroughAmountsIncurredDueToUtilizationPropertyPlantAndEquipment",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionForObsolescenceOfMaterialsAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Decrease through Amounts incurred due to utilization property, plant and equipment",
        "verboseLabel": "Applications\u00a0due to utilization",
        "documentation": "Decrease through amounts incurred due to utilization property plant and equipment."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DecreaseThroughReversalOfReservesAndAbsorptionOfAccumulatedLossesEquity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DecreaseThroughReversalOfReservesAndAbsorptionOfAccumulatedLossesEquity",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Decrease Through Reversal of Reserves and Absorption of Accumulated Losses Equity",
        "terseLabel": "Release of reserves and absorption of accumulated losses",
        "documentation": "Decrease through reversal of reserves and absorption of accumulated losses equity."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DecreasesAndReclassifications": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DecreasesAndReclassifications",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Decreases and reclassifications",
        "terseLabel": "Decreases, reclassifications and other movements",
        "documentation": "(Decreases) and reclassifications."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DecreasesChargedToProvisionIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DecreasesChargedToProvisionIncome",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Decreases Charged To Provision Income",
        "negatedLabel": "Decreases charged to income",
        "documentation": "Decreases charged to provision expenses"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DecreeOfNecessityAndUrgencyDNUByItsAcronyminSpanishNo702023Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DecreeOfNecessityAndUrgencyDNUByItsAcronyminSpanishNo702023Member",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Decree Of Necessity And Urgency DNU By Its Acronym in Spanish No 702023 [Member]",
        "documentation": "Decree of Necessity and Urgency (\"DNU\" by its acronym in Spanish) No. 70/2023."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DecreeTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DecreeTypeAxis",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Decree Type [Axis]",
        "terseLabel": "Decree type [axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DecreeTypeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DecreeTypeMember",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Decree Type [Member]",
        "terseLabel": "Decree type [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DeferredTaxAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DeferredTaxAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 13.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/IncomeTaxAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred tax assets",
        "terseLabel": "Deferred income tax assets, net"
       }
      },
      "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": [
      "r6",
      "r309",
      "r418",
      "r423"
     ]
    },
    "ifrs-full_DeferredTaxAssetsAndLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DeferredTaxAssetsAndLiabilitiesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred tax assets and liabilities [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DeferredTaxExpenseIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DeferredTaxExpenseIncome",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfCalculationOfIncomeTaxExpenseAccruedDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred tax expense (income)",
        "negatedLabel": "Deferred income tax"
       }
      },
      "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": [
      "r7",
      "r310"
     ]
    },
    "ifrs-full_DeferredTaxLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DeferredTaxLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 47.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/IncomeTaxAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred tax liabilities",
        "terseLabel": "Deferred income tax liabilities, net"
       }
      },
      "en": {
       "role": {
        "documentation": "The amounts of income taxes payable in future periods in respect of taxable temporary differences. [Refer: Temporary differences [member]]"
       }
      }
     },
     "auth_ref": [
      "r6",
      "r309",
      "r418",
      "r423"
     ]
    },
    "ifrs-full_DeferredTaxLiabilitiesRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DeferredTaxLiabilitiesRecognisedAsOfAcquisitionDate",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsSummaryOfFairValuesOfTheIdentifiableAssetsAcquiredAndTheLiabilitiesAssumedDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred tax liabilities recognised as of acquisition date",
        "negatedLabel": "Deferred income tax liabilities, net"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount recognised as of the acquisition date for deferred tax liabilities assumed in a business combination. [Refer: Deferred tax liabilities; Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r660"
     ]
    },
    "ifrs-full_DeferredTaxLiabilityAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DeferredTaxLiabilityAsset",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deferred tax liability (asset)",
        "negatedTotalLabel": "Total Net deferred tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of deferred tax liabilities or assets. [Refer: Deferred tax liabilities; Deferred tax assets]"
       }
      }
     },
     "auth_ref": [
      "r6",
      "r309"
     ]
    },
    "ifrs-full_DefinedBenefitPlansAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DefinedBenefitPlansAxis",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined benefit plans [axis]",
        "terseLabel": "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": [
      "r25",
      "r323"
     ]
    },
    "ifrs-full_DefinedBenefitPlansDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DefinedBenefitPlansDomain",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Defined benefit plans [domain]",
        "terseLabel": "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": [
      "r25",
      "r323"
     ]
    },
    "ypf_DeletionsToLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DeletionsToLeaseLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/LeaseLiabilitiesSummaryOfLeaseLiabilitiesActivityDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Deletions To Lease Liabilities",
        "negatedLabel": "Decreases of leases",
        "documentation": "Deletions to lease liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DepreciationAndAmortisationExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DepreciationAndAmortisationExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Depreciation and amortisation expense",
        "negatedLabel": "Depreciation and Amortization"
       }
      },
      "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": [
      "r128",
      "r235",
      "r243",
      "r401",
      "r449",
      "r516"
     ]
    },
    "ypf_DepreciationOfPropertyPlantAndEquipmentIntangibleAndRightofuseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DepreciationOfPropertyPlantAndEquipmentIntangibleAndRightofuseAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsFromOilAndGasProducingActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Depreciation of property plant and equipment intangible and rightofuse assets",
        "negatedLabel": "Depreciation of property, plant and equipment; intangible and right-of-use assets",
        "documentation": "Depreciation of property, plant and equipment; intangible and right-of-use assets."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DepreciationPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DepreciationPropertyPlantAndEquipment",
     "calculation": {
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail": {
       "parentTag": "ifrs-full_ExpenseByNature",
       "weight": 1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail",
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionsForImpairmentOfPropertyPlantAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Depreciation, property, plant and equipment",
        "verboseLabel": "Depreciation of property, plant and equipment",
        "terseLabel": "Depreciation of property plant and equipment",
        "negatedLabel": "Depreciation"
       }
      }
     },
     "auth_ref": [
      "r17",
      "r21",
      "r318"
     ]
    },
    "ifrs-full_DepreciationRightofuseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DepreciationRightofuseAssets",
     "calculation": {
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail": {
       "parentTag": "ifrs-full_ExpenseByNature",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 40.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail",
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow",
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail",
      "http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Depreciation, right-of-use assets",
        "terseLabel": "Depreciation of right-of-use assets"
       }
      }
     },
     "auth_ref": [
      "r154",
      "r273"
     ]
    },
    "ypf_DescriptionOfAccountingPolicyApplicableAccountingFrameworkExplanatoryTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DescriptionOfAccountingPolicyApplicableAccountingFrameworkExplanatoryTextBlock",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description Of Accounting Policy Applicable Accounting Framework Explanatory [Text Block]",
        "terseLabel": "Applicable accounting framework",
        "documentation": "Description of accounting policy applicable accounting framework."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DescriptionOfAccountingPolicyBasisOfPreparationAndPresentationExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DescriptionOfAccountingPolicyBasisOfPreparationAndPresentationExplanatory",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description Of Accounting Policy Basis of Preparation and Presentation Explanatory",
        "terseLabel": "Basis of preparation and presentation",
        "documentation": "Description of accounting policy basis of preparation and presentation."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DescriptionOfAccountingPolicyForAssetsOrDisposalGroupsAndRelatedLiabilitiesClassifiedAsHeldForSaleAndDiscontinuedOperationsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DescriptionOfAccountingPolicyForAssetsOrDisposalGroupsAndRelatedLiabilitiesClassifiedAsHeldForSaleAndDiscontinuedOperationsExplanatory",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description Of Accounting Policy For Assets Or Disposal Groups And Related Liabilities Classified As Held For Sale And Discontinued Operations Explanatory [text block]",
        "terseLabel": "Non-current assets held for sale",
        "documentation": "Description of accounting policy for assets or disposal groups and related liabilities classified as held for sale and discontinued operations explanatory."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DescriptionOfAccountingPolicyForCashAndCashEquivalentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DescriptionOfAccountingPolicyForCashAndCashEquivalentsExplanatory",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for cash and cash equivalents explanatory [text block]",
        "terseLabel": "Cash and cash equivalents",
        "documentation": "The description of the entity's accounting policy for cash and cash equivalents."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DescriptionOfAccountingPolicyForComparativeInformationExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DescriptionOfAccountingPolicyForComparativeInformationExplanatory",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for Comparative Information [text block]",
        "terseLabel": "Comparative Information",
        "documentation": "Description of accounting policy for Comparative Information [text block]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DescriptionOfAccountingPolicyForFinancialInstrumentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForFinancialInstrumentsExplanatory",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for financial instruments [text block]",
        "terseLabel": "Financial instruments"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for financial instruments. [Refer: Classes of financial instruments [domain]]"
       }
      }
     },
     "auth_ref": [
      "r676"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForImpairmentOfNonfinancialAssetsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForImpairmentOfNonfinancialAssetsExplanatory",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for impairment of non-financial assets [text block]",
        "terseLabel": "Impairment of property, plant and equipment, intangible assets and right-of-use assets"
       }
      },
      "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": [
      "r676"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForIntangibleAssetsOtherThanGoodwillExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForIntangibleAssetsOtherThanGoodwillExplanatory",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for intangible assets other than goodwill [text block]",
        "terseLabel": "Intangible assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for intangible assets other than goodwill. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r676"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForInvestmentInAssociatesAndJointVenturesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForInvestmentInAssociatesAndJointVenturesExplanatory",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for investment in associates and joint ventures [text block]",
        "terseLabel": "Investments in associates and joint ventures"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for investment in associates and joint ventures. [Refer: Total for all associates [member]; Total for all joint ventures [member]]"
       }
      }
     },
     "auth_ref": [
      "r676"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForIssuedCapitalExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForIssuedCapitalExplanatory",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for issued capital [text block]",
        "terseLabel": "Shareholder's equity"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for issued capital. [Refer: Issued capital]"
       }
      }
     },
     "auth_ref": [
      "r676"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForLeasesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForLeasesExplanatory",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for leases [text block]",
        "terseLabel": "Leases"
       }
      },
      "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": [
      "r676"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForMeasuringInventories": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForMeasuringInventories",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for measuring inventories [text block]",
        "terseLabel": "Inventories"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's accounting policy for measuring inventories. [Refer: Inventories]"
       }
      }
     },
     "auth_ref": [
      "r27",
      "r295"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForPropertyPlantAndEquipmentExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForPropertyPlantAndEquipmentExplanatory",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for property, plant and equipment [text block]",
        "terseLabel": "Property, plant and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for property, plant and equipment. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r676"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForRecognitionOfRevenue": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForRecognitionOfRevenue",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for recognition of revenue [text block]",
        "terseLabel": "Revenues"
       }
      }
     },
     "auth_ref": [
      "r676"
     ]
    },
    "ifrs-full_DescriptionOfAccountingPolicyForSharebasedPaymentTransactionsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfAccountingPolicyForSharebasedPaymentTransactionsExplanatory",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of accounting policy for share-based payment transactions [text block]",
        "verboseLabel": "Share-based benefit plans"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the entity's material accounting policy information for transactions in which the entity: (a) receives goods or services from the supplier of those goods or services (including an employee) in a share-based payment arrangement; or (b) incurs an obligation to settle the transaction with the supplier in a share-based payment arrangement when another group entity receives those goods or services. [Refer: Types of share-based payment arrangements [domain]]"
       }
      }
     },
     "auth_ref": [
      "r676"
     ]
    },
    "ypf_DescriptionOfClassesOfShares": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DescriptionOfClassesOfShares",
     "presentation": [
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description Of Classes Of Shares",
        "terseLabel": "Description in classes of shares",
        "documentation": "Description of classes of shares."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DescriptionOfDetailedInformationLeaseLiabilitiesExplanatoryTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DescriptionOfDetailedInformationLeaseLiabilitiesExplanatoryTableTextBlock",
     "presentation": [
      "http://www.ypf.com/role/LeaseLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description Of Detailed Information Lease Liabilities Explanatory [Table Text Block]",
        "terseLabel": "Summary of lease liabilities",
        "documentation": "Description Of Detailed Information Lease Liabilities Explanatory [Text Block]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DescriptionOfDiscountRatesUsedInCurrentEstimateOfValueInUse": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfDiscountRatesUsedInCurrentEstimateOfValueInUse",
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesAdditionalInformationDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Discount rate used in current estimate of value in use",
        "verboseLabel": "Discount rate after taxes of the CGU Gas - Neuquina",
        "terseLabel": "Discount rate used in current estimate of value in use"
       }
      },
      "en": {
       "role": {
        "documentation": "The discount rate used in the current estimate of the present value of the future cash flows expected to be derived from an asset or cash-generating unit."
       }
      }
     },
     "auth_ref": [
      "r69"
     ]
    },
    "ypf_DescriptionOfGrantBasedOnSharesOutstanding": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DescriptionOfGrantBasedOnSharesOutstanding",
     "presentation": [
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description Of Grant Based On Shares Outstanding",
        "terseLabel": "Description of shares based on grants outstanding",
        "documentation": "Description of grant based on shares outstanding."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DescriptionOfMaximumTermOfOptionsGrantedForSharebasedPaymentArrangement": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfMaximumTermOfOptionsGrantedForSharebasedPaymentArrangement",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of maximum term of options granted for share-based payment arrangement"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the maximum term of options granted for a type of share-based payment arrangement that existed at any time during the period. An entity with substantially similar types of share-based payment arrangements may aggregate this information. [Refer: Types of share-based payment arrangements [domain]]"
       }
      }
     },
     "auth_ref": [
      "r179",
      "r354"
     ]
    },
    "ifrs-full_DescriptionOfNatureOfEntitysRelationshipWithAssociate": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfNatureOfEntitysRelationshipWithAssociate",
     "presentation": [
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of nature of entity's relationship with associate",
        "verboseLabel": "Main business of associate"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the nature of the entity's relationship with an associate (for example, describing the nature of the activities of the associate and whether they are strategic to the entity's activities). [Refer: Total for all associates [member]]"
       }
      }
     },
     "auth_ref": [
      "r115"
     ]
    },
    "ifrs-full_DescriptionOfNatureOfEntitysRelationshipWithJointVenture": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfNatureOfEntitysRelationshipWithJointVenture",
     "presentation": [
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of nature of entity's relationship with joint venture",
        "verboseLabel": "Main business of joint venture"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the nature of the entity's relationship with a joint venture (for example, describing the nature of the activities of the joint venture and whether they are strategic to the entity's activities). [Refer: Total for all joint ventures [member]]"
       }
      }
     },
     "auth_ref": [
      "r115"
     ]
    },
    "ypf_DescriptionOfNatureOfEntitysRelationshipWithSubsidiary": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DescriptionOfNatureOfEntitysRelationshipWithSubsidiary",
     "presentation": [
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description Of Nature Of Entitys Relationship With Subsidiary",
        "verboseLabel": "Main business of subsidiary",
        "documentation": "The description of the nature of the entity's relationship with an subsidiary."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DescriptionOfNatureOfObligationContingentLiabilities": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DescriptionOfNatureOfObligationContingentLiabilities",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description of nature of obligation, contingent liabilities",
        "terseLabel": "Description of provision for lawsuits and contingencies"
       }
      },
      "en": {
       "role": {
        "documentation": "The description of the nature of the obligation for contingent liabilities. [Refer: Classes of contingent liabilities [domain]]"
       }
      }
     },
     "auth_ref": [
      "r75",
      "r341"
     ]
    },
    "ypf_DescriptionOfRiskInEnvironmentalClaims": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DescriptionOfRiskInEnvironmentalClaims",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description Of Risk In Environmental Claims",
        "terseLabel": "Description of risk in environmental claims",
        "documentation": "Description of risk in environmental claims."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DescriptionOfVotingRights": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DescriptionOfVotingRights",
     "presentation": [
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Description Of Voting Rights",
        "terseLabel": "Description of voting rights",
        "documentation": "Description of voting rights."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DetailsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DetailsAxis",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfIncomeTaxLiabilityParentheticalsDetail",
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Details [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DetailsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DetailsDomain",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfIncomeTaxLiabilityParentheticalsDetail",
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Details [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DetailsOneAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DetailsOneAxis",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfIncomeTaxLiabilityParentheticalsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Details One [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DetailsOneDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DetailsOneDomain",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfIncomeTaxLiabilityParentheticalsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Details One [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DevelopmentCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DevelopmentCost",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesDetail": {
       "parentTag": "ypf_CostsIncurredInOilAndGasProductivity",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Development Cost",
        "terseLabel": "Development costs",
        "documentation": "Development cost."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DevelopmentCostRelatedToUpstreamContractsComprisedInRightOfUseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DevelopmentCostRelatedToUpstreamContractsComprisedInRightOfUseAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Development Cost Related To Upstream Contracts Comprised In Right Of Use Assets",
        "terseLabel": "Development cost related to Upstream contracts comprised in right-of-use assets",
        "documentation": "Development cost related to Upstream contracts comprised in right-of-use assets."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DevelopmentCostsIncurredDuringYearThatReducedFutureDevelopmentCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DevelopmentCostsIncurredDuringYearThatReducedFutureDevelopmentCosts",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInTheStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Development Costs Incurred During Year That Reduced Future Development Costs",
        "terseLabel": "Development costs incurred during the year that reduced future development costs",
        "documentation": "Development costs incurred during year that reduced future development costs."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DieselMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DieselMember",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Diesel [Member]",
        "terseLabel": "Diesel [member]",
        "documentation": "Diesel."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DilutedEarningsLossPerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DilutedEarningsLossPerShare",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome",
      "http://www.ypf.com/role/EarningsPerShareSummaryOfEarningsPerShareDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Diluted earnings (loss) per share",
        "terseLabel": "Diluted",
        "verboseLabel": "Diluted earnings per share"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of profit (loss) attributable to ordinary equity holders of the parent entity (the numerator), divided by the weighted average number of ordinary shares outstanding during the period (the denominator), both adjusted for the effects of all dilutive potential ordinary shares. [Refer: Ordinary shares [member]; Weighted average [member]]"
       }
      }
     },
     "auth_ref": [
      "r59",
      "r60"
     ]
    },
    "ypf_DirectDamagesPayableForBreachOfContract": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DirectDamagesPayableForBreachOfContract",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/ContingentAssetsAndLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Direct Damages Payable For Breach Of Contract",
        "terseLabel": "Direct damages payable for breach of contract",
        "documentation": "Direct damages payable for breach of contract."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DirectInvestmentInForeignCurrency": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DirectInvestmentInForeignCurrency",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Direct investment in foreign currency",
        "terseLabel": "Direct investment in foreign currency",
        "documentation": "Direct investment in foreign currency."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DirectInvestmentInForeignCurrencyAfterAmendment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DirectInvestmentInForeignCurrencyAfterAmendment",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Direct investment in foreign currency, after amendment",
        "terseLabel": "Direct investment in foreign currency amended by law",
        "documentation": "Direct investment in foreign currency, after amendment."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureDetailedInformationOfAssetsHeldForSaleAndAssociatedLiabilitiesTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureDetailedInformationOfAssetsHeldForSaleAndAssociatedLiabilitiesTextBlock",
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilities"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Detailed Information Of Assets Held For Sale And Associated Liabilities [Text Block]",
        "terseLabel": "Assets Held For Sale and Associated Liabilities",
        "documentation": "Disclosure detailed information of assets held for sale and associated liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesLineItems",
     "presentation": [
      "http://www.ypf.com/role/TradeReceivablesSummaryOfEvolutionOfTheProvisionForDoubtfulTradeReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Evolution Of The Provision For Doubtful Trade Receivables [Line Items]",
        "terseLabel": "Disclosure Evolution Of the Provision For Doubtful Trade Receivables [line items]",
        "documentation": "Disclosure evolution of the provision for doubtful trade receivables line item."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureEvolutionOfTheProvisionForDoubtfulTradeReceivablesTable",
     "presentation": [
      "http://www.ypf.com/role/TradeReceivablesSummaryOfEvolutionOfTheProvisionForDoubtfulTradeReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Evolution Of The Provision For Doubtful Trade Receivables [Table]",
        "terseLabel": "Disclosure Evolution of the Provision For Doubtful Trade Receivables [table]",
        "documentation": "Disclosure evolution of the provision for doubtful trade receivables."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureFinancialRiskManagementExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureFinancialRiskManagementExplanatory",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagement"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Financial Risk Management",
        "terseLabel": "Financial Risk Management",
        "documentation": "The details of disclosure of employee share schemes."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureInTabularFormOfDistributionOfPropertyPlantAndEquipmentByGeographicAreaExplanatoryTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureInTabularFormOfDistributionOfPropertyPlantAndEquipmentByGeographicAreaExplanatoryTextBlock",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure In Tabular Form Of Distribution Of Property Plant And Equipment By Geographic Area Explanatory [Text Block]",
        "terseLabel": "Summary of Property, Plant and Equipment by Geographic Area",
        "documentation": "Disclosure in tabular form of distribution of property plant and equipment by geographic area."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureInTabularFormOfDistributionOfRevenuesOnAGeographicalBasisTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureInTabularFormOfDistributionOfRevenuesOnAGeographicalBasisTextBlock",
     "presentation": [
      "http://www.ypf.com/role/RevenuesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure In Tabular Form Of Distribution Of Revenues On A Geographical Basis [Text Block]",
        "terseLabel": "Summary of Revenue by Geographic Area",
        "documentation": "Disclosure in tabular form of distribution of revenues on a geographical basis."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfAccountingJudgementsAndEstimatesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfAccountingJudgementsAndEstimatesExplanatory",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of accounting judgements and estimates [text block]",
        "terseLabel": "Significant estimates and key sources of estimation uncertainty"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of judgements that management has made in the process of applying the entity's accounting policies that have the most significant effect on amounts recognised in the financial statements along with information about the assumptions that the entity makes about the future, and other major sources of estimation uncertainty at the end of the reporting period, that have a significant risk of resulting in a material adjustment to the carrying amounts of assets and liabilities within the next year. [Refer: Carrying amount [member]]"
       }
      }
     },
     "auth_ref": [
      "r669"
     ]
    },
    "ypf_DisclosureOfAccountsPayableAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfAccountsPayableAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Accounts Payable [abstract]",
        "documentation": "Disclosure of accounts payable Abstract."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfAccountsPayableExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfAccountsPayableExplanatory",
     "presentation": [
      "http://www.ypf.com/role/AccountsPayable"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Accounts Payable [text block]",
        "terseLabel": "Accounts payable",
        "documentation": "Disclosure of accounts payable."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesExplanatory",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Analysis Of Assets And Liabilities Of Significant Associates And Joint Ventures Explanatory",
        "terseLabel": "Summary of analysis of assets and liabilities of significant associates and joint ventures",
        "documentation": "Disclosure of analysis of assets and liabilities of significant associates and joint ventures."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of assets and liabilities with significant risk of material adjustment [abstract]",
        "definitionGuidance": "Disclosure of estimated useful life of the Property, plant and equipment [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentLineItems",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of assets and liabilities with significant risk of material adjustment [line items]",
        "terseLabel": "Disclosure of estimated useful life of the 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_DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfAssetsAndLiabilitiesWithSignificantRiskOfMaterialAdjustmentTable",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsDetailedInformationAboutPropertyPlantAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of assets and liabilities with significant risk of material adjustment [table]",
        "terseLabel": "Disclosure of estimated useful life of the Property, plant and equipment [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to assets and liabilities with a significant risk of material adjustment."
       }
      }
     },
     "auth_ref": [
      "r302",
      "r395",
      "r408"
     ]
    },
    "ypf_DisclosureOfAssetsHeldForSaleAndAssociatedLiabilitiesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfAssetsHeldForSaleAndAssociatedLiabilitiesTableTextBlock",
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Assets Held For Sale And Associated Liabilities [Table Text Block]",
        "terseLabel": "Summary of the Main Assets Held For Sale and Associated Liabilities",
        "documentation": "Disclosure of assets held for sale and associated liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfAssociatesAndJointVenturesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfAssociatesAndJointVenturesLineItems",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Associates and Joint Ventures [Line Items]",
        "documentation": "Disclosure of Associates and Joint Ventures [Line Item]."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfBalanceAndTransactionsWithRelatedPartiesLineItems",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of balance and Transactions with Related Parties [Line Items]",
        "terseLabel": "Disclosure of balance and transactions with related parties [line items]",
        "documentation": "Disclosure Of balance and Transactions with Related Parties"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfBalanceAndTransactionsWithRelatedPartiesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfBalanceAndTransactionsWithRelatedPartiesTable",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of balance and Transactions with Related Parties [Table]",
        "terseLabel": "Disclosure of transactions between related parties [table]",
        "documentation": "Disclosure Of balance and Transactions with Related Parties."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfBalancesAndTransactionsWithRelatedPartiesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfBalancesAndTransactionsWithRelatedPartiesExplanatory",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedParties"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Balances And Transactions With Related Parties [text block]",
        "terseLabel": "Balances and Transactions with Related Parties",
        "documentation": "Disclosure of balances and transactions with related parties."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfBasisOfPreparationOfFinancialStatementsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfBasisOfPreparationOfFinancialStatementsExplanatory",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatements"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of basis of preparation of financial statements [text block]",
        "terseLabel": "Basis of Preparation of the Consolidated Financial Statements"
       }
      }
     },
     "auth_ref": [
      "r669"
     ]
    },
    "ypf_DisclosureOfBreakdownOfRevenuesBySalesChannelsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfBreakdownOfRevenuesBySalesChannelsExplanatory",
     "presentation": [
      "http://www.ypf.com/role/RevenuesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Breakdown of revenues by Sales Channels explanatory",
        "terseLabel": "Summary of Breakdown of Revenues by Sales Channels",
        "documentation": "Disclosure of Breakdown of revenues by Sales Channels explanatory"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfBreakdownOfRevenuesByTypeOfGoodOrServiceExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfBreakdownOfRevenuesByTypeOfGoodOrServiceExplanatory",
     "presentation": [
      "http://www.ypf.com/role/RevenuesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Breakdown of revenues by Type of good or service explanatory",
        "terseLabel": "Summary of Breakdown of Revenues by Type of Good or Service",
        "documentation": "Disclosure of Breakdown of revenues by Type of good or service."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfBusinessCombinationsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfBusinessCombinationsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about business combination [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfBusinessCombinationsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfBusinessCombinationsExplanatory",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposals"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of business combinations [text block]",
        "terseLabel": "Acquisitions and Disposals"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for business combinations."
       }
      }
     },
     "auth_ref": [
      "r197"
     ]
    },
    "ifrs-full_DisclosureOfBusinessCombinationsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfBusinessCombinationsLineItems",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/AcquisitionsAndDisposalsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about business combination [line items]",
        "terseLabel": "Disclosure of detailed information about Acquisitions and Disposals [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_DisclosureOfBusinessCombinationsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfBusinessCombinationsTable",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/AcquisitionsAndDisposalsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about business combination [table]",
        "terseLabel": "Disposal percentage of assignment."
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to details of business combinations."
       }
      }
     },
     "auth_ref": [
      "r193",
      "r366"
     ]
    },
    "ypf_DisclosureOfCapitalizedCostsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfCapitalizedCostsExplanatory",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Capitalized Costs [text block]",
        "terseLabel": "Summary of Capitalized Costs, Along with the related Accumulated Depreciation and Allowances",
        "documentation": "The disclosure of capitalized costs."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfCashAndCashEquivalentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfCashAndCashEquivalentsExplanatory",
     "presentation": [
      "http://www.ypf.com/role/CashAndCashEquivalents"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of cash and cash equivalents [text block]",
        "terseLabel": "Cash and Cash Equivalents"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of cash and cash equivalents. [Refer: Cash and cash equivalents]"
       }
      }
     },
     "auth_ref": [
      "r669"
     ]
    },
    "ypf_DisclosureOfCashAndCashEquivalentsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfCashAndCashEquivalentsLineItems",
     "presentation": [
      "http://www.ypf.com/role/CashAndCashEquivalentsSummaryOfCashAndCashEquivalentsDetail",
      "http://www.ypf.com/role/CashAndCashEquivalentsSummaryOfCashAndCashEquivalentsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of cash and cash equivalents [line items]",
        "terseLabel": "Disclosure of cash and cash equivalents [line items]",
        "documentation": "Line items represents cash and cash equivalents."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfChangeInPropertyPlantAndEquipmentExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfChangeInPropertyPlantAndEquipmentExplanatory",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of change in property plant and equipment [table text block]",
        "terseLabel": "Summary of Changes in Property, Plant and Equipment",
        "documentation": "The disclosure of change in property plant and equipment."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfChangesInAccountingPoliciesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfChangesInAccountingPoliciesExplanatory",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsPolicies"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of changes in accounting policies [text block]",
        "terseLabel": "New standards issued"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of changes made to accounting policies by the entity."
       }
      }
     },
     "auth_ref": [
      "r669"
     ]
    },
    "ifrs-full_DisclosureOfCommitmentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfCommitmentsExplanatory",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitments"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of commitments [text block]",
        "terseLabel": "Contractual Commitments"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of commitments."
       }
      }
     },
     "auth_ref": [
      "r669"
     ]
    },
    "ypf_DisclosureOfCompensationOfKeyManagementPersonnelExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfCompensationOfKeyManagementPersonnelExplanatory",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Compensation of Key Management Personnel [Text block]",
        "terseLabel": "Summary of Compensation of Key Management Personnel",
        "documentation": "Disclosure of compensation of key management personnel explanatory."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfConsolidatedAndSeparateFinancialStatementsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfConsolidatedAndSeparateFinancialStatementsExplanatory",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnaudited"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of separate financial statements [text block]",
        "terseLabel": "Supplemental Information on Oil and Gas Producing Activities (Unaudited)"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of information about separate financial statements."
       }
      }
     },
     "auth_ref": [
      "r56",
      "r138"
     ]
    },
    "ypf_DisclosureOfContingentAssetsAndLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfContingentAssetsAndLiabilitiesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Contingent Assets And Liabilities [abstract]",
        "documentation": "Disclosure Of Contingent Assets And Liabilities [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfContingentAssetsAndLiabilitiesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfContingentAssetsAndLiabilitiesExplanatory",
     "presentation": [
      "http://www.ypf.com/role/ContingentAssetsAndLiabilities"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Contingent Assets And Liabilities [text block]",
        "terseLabel": "Contingent Assets and Liabilities",
        "documentation": "Disclosure of contingent assets and liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfContingentAssetsAndLiabilitiesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfContingentAssetsAndLiabilitiesLineItems",
     "presentation": [
      "http://www.ypf.com/role/ContingentAssetsAndLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Contingent Assets And Liabilities [line items]",
        "terseLabel": "Disclosure Of Contingent Assets And Liabilities [line items]",
        "documentation": "Disclosure of contingent assets and liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfContingentAssetsAndLiabilitiesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfContingentAssetsAndLiabilitiesTable",
     "presentation": [
      "http://www.ypf.com/role/ContingentAssetsAndLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Contingent Assets And Liabilities [table]",
        "terseLabel": "Disclosure Of Contingent Assets And Liabilities [table]",
        "documentation": "Disclosure Of Contingent Assets And Liabilities [table]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfContractualCommitmentsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfContractualCommitmentsLineItems",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Contractual Commitments [Line Items]",
        "documentation": "Disclosure of contractual commitments."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfContractualCommitmentsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfContractualCommitmentsTable",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Contractual Commitments [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfCostIncurredInOilAndGasProducingActivityExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfCostIncurredInOilAndGasProducingActivityExplanatory",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Cost Incurred In Oil And Gas Producing Activity [text block]",
        "terseLabel": "Costs Incurred for Oil and Gas Producing Activities",
        "documentation": "The disclosure of cost incurred in oil and gas producing activity."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfCreditRiskExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfCreditRiskExplanatory",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of credit risk [text block]",
        "terseLabel": "Summary of Maximum Exposure to Credit Risk"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of credit risk. [Refer: Credit risk [member]]"
       }
      }
     },
     "auth_ref": [
      "r229",
      "r669"
     ]
    },
    "ifrs-full_DisclosureOfCreditRiskExposureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfCreditRiskExposureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of credit risk exposure [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfCreditRiskExposureLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfCreditRiskExposureLineItems",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementSummaryOfMaximumExposureToCreditRiskDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of credit risk exposure [line items]",
        "terseLabel": "Disclosure of credit risk exposure [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_DisclosureOfCreditRiskExposureTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfCreditRiskExposureTable",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementSummaryOfMaximumExposureToCreditRiskDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of credit risk exposure [table]",
        "terseLabel": "Disclosure of credit risk exposure [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to the credit risk exposure."
       }
      }
     },
     "auth_ref": [
      "r214",
      "r380"
     ]
    },
    "ifrs-full_DisclosureOfDeferredTaxesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDeferredTaxesExplanatory",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of deferred taxes [text block]",
        "terseLabel": "Summary of Breakdown of Deferred Tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of deferred taxes. [Refer: Deferred tax liabilities; Deferred tax assets]"
       }
      }
     },
     "auth_ref": [
      "r669"
     ]
    },
    "ifrs-full_DisclosureOfDefinedBenefitPlansLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDefinedBenefitPlansLineItems",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of defined benefit plans [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to defined benefit plans."
       }
      }
     },
     "auth_ref": [
      "r25",
      "r323"
     ]
    },
    "ypf_DisclosureOfDetailInformationFinancialResultsNetExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfDetailInformationFinancialResultsNetExplanatory",
     "presentation": [
      "http://www.ypf.com/role/NetFinancialResultsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Detail Information Financial Results Net [text block]",
        "terseLabel": "Detailed Information about Financial Results",
        "documentation": "Disclosure of detail information financial results net."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfDetailedCashAndCashEquivalentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfDetailedCashAndCashEquivalentsExplanatory",
     "presentation": [
      "http://www.ypf.com/role/CashAndCashEquivalentsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Detailed Cash and Cash Equivalents [text block]",
        "terseLabel": "Summary of Cash and Cash Equivalents",
        "documentation": "Disclosure of detailed cash and cash equivalents."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDetailedInformationAboutBorrowingsExplanatory",
     "presentation": [
      "http://www.ypf.com/role/LoansTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about borrowings [text block]",
        "terseLabel": "Schedule of Loans"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of detailed information about borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r662"
     ]
    },
    "ifrs-full_DisclosureOfDetailedInformationAboutBorrowingsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDetailedInformationAboutBorrowingsLineItems",
     "presentation": [
      "http://www.ypf.com/role/LoansScheduleOfLoansDetail",
      "http://www.ypf.com/role/LoansScheduleOfLoansParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about borrowings [line items]",
        "terseLabel": "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://www.ypf.com/role/LoansScheduleOfLoansDetail",
      "http://www.ypf.com/role/LoansScheduleOfLoansParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about borrowings [table]",
        "terseLabel": "Disclosure of detailed information about borrowings [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to details of borrowings."
       }
      }
     },
     "auth_ref": [
      "r662"
     ]
    },
    "ifrs-full_DisclosureOfDetailedInformationAboutFinancialInstrumentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDetailedInformationAboutFinancialInstrumentsExplanatory",
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategoryTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about financial instruments [text block]",
        "terseLabel": "Financial Assets and Liabilities by Category of Financial Instruments"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of detailed information about financial instruments. [Refer: Classes of financial instruments [domain]]"
       }
      }
     },
     "auth_ref": [
      "r205",
      "r212",
      "r222",
      "r368"
     ]
    },
    "ypf_DisclosureOfDetailedInformationAboutIncomeTaxExpenseExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfDetailedInformationAboutIncomeTaxExpenseExplanatory",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about income tax expense [text block]",
        "terseLabel": "Summary of Calculation of Income Tax Expense Accrued",
        "documentation": "The disclosure of detailed information about income tax expense."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfDetailedInformationAboutIntangibleAssetsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDetailedInformationAboutIntangibleAssetsExplanatory",
     "presentation": [
      "http://www.ypf.com/role/IntangibleAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about intangible assets [text block]",
        "terseLabel": "Schedule of Intangible Assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of detailed information about intangible assets. [Refer: Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r80",
      "r345"
     ]
    },
    "ypf_DisclosureOfDetailedInformationAboutLoansAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfDetailedInformationAboutLoansAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about loans [abstract]",
        "documentation": "Disclosure of detailed information about loans."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfDetailedInformationAboutLoansLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfDetailedInformationAboutLoansLineItems",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail",
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about loans [Line Items]",
        "verboseLabel": "Disclosure of detailed information about loans [line items]",
        "terseLabel": "Disclosure of detailed information about loans [line items]",
        "documentation": "Disclosure of detailed information about loans."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfDetailedInformationAboutLoansTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfDetailedInformationAboutLoansTable",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail",
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about loans [Table]",
        "terseLabel": "Disclosure of detailed information about loans [table]",
        "documentation": "Disclosure of detailed information about loans."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfDetailedInformationAboutPropertyPlantAndEquipmentExplanatory",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about property, plant and equipment [text block]",
        "terseLabel": "Summary of Property, Plant and Equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of detailed information about property, plant and equipment. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r20",
      "r321"
     ]
    },
    "ypf_DisclosureOfDetailedInformationAboutSalariesAndSocialSecurityTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfDetailedInformationAboutSalariesAndSocialSecurityTableTextBlock",
     "presentation": [
      "http://www.ypf.com/role/SalariesAndSocialSecurityTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Detailed Information About Salaries And Social Security [Table Text Block]",
        "terseLabel": "Summary of detailed information about salaries and social security",
        "documentation": "Disclosure of detailed information about salaries and social security."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfDetailedInformationAboutTaxesPayable": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfDetailedInformationAboutTaxesPayable",
     "presentation": [
      "http://www.ypf.com/role/TaxesPayableTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Detailed Information About Taxes Payable",
        "terseLabel": "Summary of taxes payable",
        "documentation": "Disclosure Of Detailed Information About Taxes Payable."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfDetailedInformationAccountsPayableExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfDetailedInformationAccountsPayableExplanatory",
     "presentation": [
      "http://www.ypf.com/role/AccountsPayableTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Detailed Information Accounts Payable [text block]",
        "terseLabel": "Detailed Information about Accounts Payable",
        "documentation": "Disclosure of detailed information accounts payable."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfDetailedInformationOfFinancialAssetsThatAreEitherPastDueOrImpairedExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfDetailedInformationOfFinancialAssetsThatAreEitherPastDueOrImpairedExplanatory",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Detailed Information Of Financial Assets That Are Either Past Due Or Impaired Explanatory",
        "terseLabel": "Summary of Breakdown of the Financial Assets",
        "documentation": "Disclosure of detailed information of financial assets that are either past due or impaired."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfDetailedInformationOfInventoriesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfDetailedInformationOfInventoriesExplanatory",
     "presentation": [
      "http://www.ypf.com/role/InventoriesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Detailed Information Of Inventories [Text block]",
        "terseLabel": "Summary of Inventories",
        "documentation": "Disclosure of detailed information of inventories."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfDetailedInformationOfShareCapitalLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfDetailedInformationOfShareCapitalLineItems",
     "presentation": [
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Detailed information Of Share Capital [line items]",
        "terseLabel": "Disclosure Of Detailed information Of Share Capital [line items]",
        "documentation": "Disclosure Of Detailed information Of Share Capital [line items]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfDetailedInformationOfShareCapitalTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfDetailedInformationOfShareCapitalTable",
     "presentation": [
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Detailed information Of Share Capital [table]",
        "terseLabel": "Disclosure Of Detailed information Of Share Capital [table]",
        "documentation": "Disclosure of detailed information of share capital."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfDetailedInformationOfTradeAccountsReceivablesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfDetailedInformationOfTradeAccountsReceivablesExplanatory",
     "presentation": [
      "http://www.ypf.com/role/TradeReceivablesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information of trade accounts receivables [text block]",
        "terseLabel": "Summary of Trade Receivables",
        "documentation": "Disclosure of detailed information of trade accounts receivables, net."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfDetailsOfExpensesByNatureExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfDetailsOfExpensesByNatureExplanatory",
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNatureTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of details of expenses by nature [text block]",
        "terseLabel": "Detailed Information about Expenses by Nature",
        "documentation": "The disclosure of details of expenses by nature."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfDetailsOfInventoryCostsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfDetailsOfInventoryCostsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of details of inventory costs [abstract]",
        "documentation": "Disclosure of details of inventory costs."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfDetailsOfInventoryCostsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfDetailsOfInventoryCostsExplanatory",
     "presentation": [
      "http://www.ypf.com/role/CostsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of details of inventory costs [Text block]",
        "terseLabel": "Detailed Information of Inventory Costs",
        "documentation": "The disclosure of details of inventory costs."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfDiscountedFutureNetCashFlowAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfDiscountedFutureNetCashFlowAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Discounted Future Net Cash Flow [abstract]",
        "documentation": "Disclosure of discounted future net cash flow."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfDiscountedFutureNetCashFlowFromOilAndGasExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfDiscountedFutureNetCashFlowFromOilAndGasExplanatory",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Discounted Future Net Cash Flow From Oil And Gas Explanatory",
        "terseLabel": "Summary of Standardized Measure of Discounted Future Net Cash Flows",
        "documentation": "Disclosure of discounted future net cash flow from oil and gas explanatory."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfDiscountedFutureNetCashFlowLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfDiscountedFutureNetCashFlowLineItems",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of discounted future net cash flow [line items]",
        "terseLabel": "Disclosure of discounted future net cash flow [line items]",
        "documentation": "Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes of the table. Disclosure of discounted future net cash flow."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfDiscountedFutureNetCashFlowTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfDiscountedFutureNetCashFlowTable",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of discounted future net cash flow [table]",
        "terseLabel": "Disclosure of discounted future net cash flow [table]",
        "documentation": "Schedule disclosing information about discounted future net cash flow."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfEarningsPerShareExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfEarningsPerShareExplanatory",
     "presentation": [
      "http://www.ypf.com/role/EarningsPerShare"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of earnings per share [text block]",
        "terseLabel": "Earnings Per Share"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for earnings per share."
       }
      }
     },
     "auth_ref": [
      "r62"
     ]
    },
    "ypf_DisclosureOfEffectOfChangesInBasisPointsInterestRatesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfEffectOfChangesInBasisPointsInterestRatesExplanatory",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Effect Of Changes In Basis Points Interest rates [table text block]",
        "terseLabel": "Schedule of Estimated Impact on Consolidated Comprehensive Income that an Increase or Decrease of 100 Basis Points in Interest Rate",
        "documentation": "Disclosure of effect of changes in basis points interest rates"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfEffectOfVariationInPricesOfInvestmentsInFinancialInstrumentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfEffectOfVariationInPricesOfInvestmentsInFinancialInstrumentsExplanatory",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Effect Of Variation In Prices Of Investments In Financial Instruments [table text block]",
        "terseLabel": "Schedule of Effect of a 10% Variation in the Prices of Investments in Financial Instruments",
        "documentation": "Disclosure of effect of variation in prices of investments in financial instruments."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfEmployeeBenefitPlanLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfEmployeeBenefitPlanLineItems",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Employee Benefit Plan [line items]",
        "terseLabel": "Disclosure Of Employee Benefit Plans And Similar Obligations [Line Items]",
        "documentation": "Disclosure Of Employee Benefit Plan [line items]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfEmployeeBenefitPlanTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfEmployeeBenefitPlanTable",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Employee Benefit Plan [table]",
        "terseLabel": "Disclosure Of Employee Benefit Plan [table]",
        "documentation": "Disclosure Of Employee Benefit Plan [table]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfEmployeeBenefitPlansAndShareBasedPaymentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfEmployeeBenefitPlansAndShareBasedPaymentsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Employee Benefit Plans And Share Based Payments [abstract]",
        "documentation": "Disclosure Of Employee Benefit Plans And Share Based Payments [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfEmployeeBenefitPlansAndShareBasedPaymentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfEmployeeBenefitPlansAndShareBasedPaymentsExplanatory",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of employee benefit plans and share based payments [table text block]",
        "terseLabel": "Employee Benefit Plans and Similar Obligations",
        "documentation": "Tabular disclosure of employee benefit plans and share based payments"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfEntitysReportableSegmentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfEntitysReportableSegmentsExplanatory",
     "presentation": [
      "http://www.ypf.com/role/BusinessSegmentInformation"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of entity's operating segments [text block]",
        "terseLabel": "Business Segment Information"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for operating segments."
       }
      }
     },
     "auth_ref": [
      "r250"
     ]
    },
    "ifrs-full_DisclosureOfEventsAfterReportingPeriodExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfEventsAfterReportingPeriodExplanatory",
     "presentation": [
      "http://www.ypf.com/role/SubsequentEvents"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of events after reporting period [text block]",
        "terseLabel": "Subsequent Events"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for events after the reporting period."
       }
      }
     },
     "auth_ref": [
      "r2"
     ]
    },
    "ypf_DisclosureOfEvolutionLoansExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfEvolutionLoansExplanatory",
     "presentation": [
      "http://www.ypf.com/role/LoansTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Evolution Loans Explanatory",
        "terseLabel": "Evolution of the Loans",
        "documentation": "Disclosure of evolution loans."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfExpensesByNatureExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfExpensesByNatureExplanatory",
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNature"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of expenses by nature [text block]",
        "terseLabel": "Expenses by Nature"
       }
      }
     },
     "auth_ref": [
      "r669"
     ]
    },
    "ifrs-full_DisclosureOfExpensesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfExpensesExplanatory",
     "presentation": [
      "http://www.ypf.com/role/Costs"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of expenses [text block]",
        "terseLabel": "Costs"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of expenses."
       }
      }
     },
     "auth_ref": [
      "r669"
     ]
    },
    "ypf_DisclosureOfExpensesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfExpensesLineItems",
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of expenses [line items]",
        "terseLabel": "Disclosure of expenses [line items]",
        "documentation": "Line item represents disclosure of expenses."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfExpensesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfExpensesTable",
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of expenses [table]",
        "terseLabel": "Disclosure of expenses [table]",
        "documentation": "Schedule of disclosure of expenses."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfFairValueOfFinancialInstrumentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfFairValueOfFinancialInstrumentsExplanatory",
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategoryTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of fair value of financial instruments [text block]",
        "terseLabel": "Summary of Company's Financial Assets Measured at Fair Value"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of the fair value of financial instruments. [Refer: Classes of financial instruments [domain]; At fair value [member]]"
       }
      }
     },
     "auth_ref": [
      "r669"
     ]
    },
    "ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of fair values of the identifiableassets acquired andtheliabilities assumed [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedLineItems",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsSummaryOfFairValuesOfTheIdentifiableAssetsAcquiredAndTheLiabilitiesAssumedDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of fair values of the identifiableassets acquired andtheliabilities assumed [Line Items]",
        "documentation": "Disclosure of fair values of the identifiable\u00a0assets acquired and\u00a0the\u00a0liabilities assumed."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTable",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsSummaryOfFairValuesOfTheIdentifiableAssetsAcquiredAndTheLiabilitiesAssumedDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of fair values of the identifiableassets acquired andtheliabilities assumed [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfFairValuesOfTheIdentifiableassetsAcquiredAndtheliabilitiesAssumedTableTextBlock",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of fair values of the identifiableassets acquired andtheliabilities assumed [Table Text Block]",
        "documentation": "Disclosure of fair values of the identifiable\u00a0assets acquired and\u00a0the\u00a0liabilities assumed."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfFinancialAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfFinancialAssetsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of financial assets [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfFinancialAssetsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfFinancialAssetsExplanatory",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInFinancialAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of financial assets [text block]",
        "verboseLabel": "Summary of Investments in Financial Assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of financial assets. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r222",
      "r368"
     ]
    },
    "ifrs-full_DisclosureOfFinancialAssetsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfFinancialAssetsLineItems",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementSummaryOfBreakdownOfTheFinancialAssetsDetail",
      "http://www.ypf.com/role/InvestmentsInFinancialAssetsSummaryOfInvestmentsInFinancialAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of financial 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_DisclosureOfFinancialAssetsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfFinancialAssetsTable",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInFinancialAssetsSummaryOfInvestmentsInFinancialAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of financial assets [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to financial assets."
       }
      }
     },
     "auth_ref": [
      "r222",
      "r368"
     ]
    },
    "ifrs-full_DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of financial assets that are either past due or impaired [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfFinancialAssetsThatAreEitherPastDueOrImpairedTable",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementSummaryOfBreakdownOfTheFinancialAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of financial assets that are either past due or impaired [table]",
        "terseLabel": "Disclosure of financial assets that are either past due or impaired [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to financial assets that are either past due or impaired."
       }
      }
     },
     "auth_ref": [
      "r398"
     ]
    },
    "ifrs-full_DisclosureOfFinancialInstrumentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfFinancialInstrumentsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about financial instruments [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfFinancialInstrumentsByTypeOfInterestRateAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of financial instruments by type of interest rate [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfFinancialInstrumentsByTypeOfInterestRateExplanatory",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of financial instruments by type of interest rate [text block]",
        "terseLabel": "Information About Financial Assets and Liabilities That Accrues Interest Considering Applicable Rate"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of financial instruments by type of interest rate. [Refer: Classes of financial instruments [domain]]"
       }
      }
     },
     "auth_ref": [
      "r661"
     ]
    },
    "ifrs-full_DisclosureOfFinancialInstrumentsByTypeOfInterestRateLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfFinancialInstrumentsByTypeOfInterestRateLineItems",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementInformationAboutFinancialAssetsAndLiabilitiesThatAccruesInterestConsideringApplicableRateDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of financial instruments by type of interest rate [line items]",
        "terseLabel": "Disclosure of financial instruments by type of interest rate [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_DisclosureOfFinancialInstrumentsByTypeOfInterestRateTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfFinancialInstrumentsByTypeOfInterestRateTable",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementInformationAboutFinancialAssetsAndLiabilitiesThatAccruesInterestConsideringApplicableRateDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of financial instruments by type of interest rate [table]",
        "terseLabel": "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": [
      "r661"
     ]
    },
    "ifrs-full_DisclosureOfFinancialInstrumentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfFinancialInstrumentsExplanatory",
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategory"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of financial instruments [text block]",
        "terseLabel": "Financial Instruments by Category"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for financial instruments."
       }
      }
     },
     "auth_ref": [
      "r231"
     ]
    },
    "ifrs-full_DisclosureOfFinancialInstrumentsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfFinancialInstrumentsLineItems",
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategoryAdditionalInformationDetail",
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfCompanysFinancialAssetsMeasuredAtFairValueDetail",
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail",
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfGainsAndLossesOnFinancialInstrumentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about financial instruments [line items]",
        "terseLabel": "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://www.ypf.com/role/FinancialInstrumentsByCategoryAdditionalInformationDetail",
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfCompanysFinancialAssetsMeasuredAtFairValueDetail",
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail",
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfGainsAndLossesOnFinancialInstrumentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about financial instruments [table]",
        "terseLabel": "Disclosure of detailed information about financial instruments [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to details of financial instruments."
       }
      }
     },
     "auth_ref": [
      "r205",
      "r212",
      "r222",
      "r368"
     ]
    },
    "ypf_DisclosureOfFinancialResultsNetAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfFinancialResultsNetAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Financial Results Net [abstract]",
        "documentation": "Disclosure of financial results net."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfFinancialResultsNetExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfFinancialResultsNetExplanatory",
     "presentation": [
      "http://www.ypf.com/role/NetFinancialResults"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Financial Results Net [text block]",
        "terseLabel": "Net Financial Results",
        "documentation": "The entire disclosure of financial results net"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfFutureNetCashFlowAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfFutureNetCashFlowAbstract",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInTheStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Future Net Cash Flow [abstract]",
        "terseLabel": "Disclosure Of Future Net Cash Flow [Abstract]",
        "documentation": "Disclosure of future net cash flow."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfGainLossOnFinancialInstrumentsExplanatoryTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfGainLossOnFinancialInstrumentsExplanatoryTextBlock",
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategoryTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of gain loss on financial instruments [text block] [Text Block]",
        "terseLabel": "Summary of Gains and Losses on Financial and non-financial Instruments",
        "documentation": "The disclosure of gain loss on financial and non-financial instruments."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfGeneralInformationExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfGeneralInformationExplanatory",
     "presentation": [
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheGroupSBusiness"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of General Information Explanatory",
        "terseLabel": "General Information, Structure and Organization of the Group's Business",
        "documentation": "Disclosure of General Information Explanatory"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfGeographicalAreasAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfGeographicalAreasAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of geographical areas [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfGeographicalAreasLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfGeographicalAreasLineItems",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfPropertyPlantAndEquipmentByGeographicAreaDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfPropertyPlantAndEquipmentByGeographicAreaDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of geographical areas [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to geographical areas."
       }
      }
     },
     "auth_ref": [
      "r248"
     ]
    },
    "ifrs-full_DisclosureOfIncomeTaxExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfIncomeTaxExplanatory",
     "presentation": [
      "http://www.ypf.com/role/IncomeTax"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of income tax [text block]",
        "terseLabel": "Income Tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for income taxes."
       }
      }
     },
     "auth_ref": [
      "r9"
     ]
    },
    "ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfInformationAboutActivitiesSubjectToRateRegulationAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of information about activities subject to rate regulation [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfInformationAboutActivitiesSubjectToRateRegulationLineItems",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of information about activities subject to rate regulation [line items]",
        "terseLabel": "Main regulations [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_DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfInformationAboutActivitiesSubjectToRateRegulationTable",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of information about activities subject to rate regulation [table]",
        "terseLabel": "Disclosure of information about activities subject to rate regulation [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to activities subject to rate regulation."
       }
      }
     },
     "auth_ref": [
      "r146"
     ]
    },
    "ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfInformationAboutConsolidatedStructuredEntitiesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of information about consolidated structured entities [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfInformationAboutConsolidatedStructuredEntitiesExplanatory",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of information about consolidated structured entities [text block]",
        "terseLabel": "Summary of Changes in YPF's Net Proved Reserves"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of information about consolidated structured entities. [Refer: Total for all consolidated structured entities [member]]"
       }
      }
     },
     "auth_ref": [
      "r137"
     ]
    },
    "ifrs-full_DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfInformationAboutConsolidatedStructuredEntitiesLineItems",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesParentheticalDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesParentheticalDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesParentheticalDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of information about consolidated structured entities [line items]",
        "terseLabel": "Disclosure of information about consolidated structured entities [Line Items]",
        "verboseLabel": "Disclosure of information about consolidated entities [line items]",
        "definitionGuidance": "Disclosure of information about consolidated entities [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_DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfInformationAboutConsolidatedStructuredEntitiesTable",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesParentheticalDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesParentheticalDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesParentheticalDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of information about consolidated structured entities [table]",
        "terseLabel": "Disclosure of information about consolidated structured entities [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to consolidated structured entities."
       }
      }
     },
     "auth_ref": [
      "r137"
     ]
    },
    "ypf_DisclosureOfInformationAboutEvolutionOfTheProvisionForDoubtfulTradeReceivablesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfInformationAboutEvolutionOfTheProvisionForDoubtfulTradeReceivablesExplanatory",
     "presentation": [
      "http://www.ypf.com/role/TradeReceivablesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Information About Evolution Of The Provision For Doubtful Trade Receivables Explanatory",
        "terseLabel": "Summary of Evolution of the Provision for Doubtful Trade Receivables",
        "documentation": "Disclosure of information about changes in provision for doubtful trade receivables."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfInformationAboutEvolutionOfTheProvsionForDoubtfulTradeReceivablesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfInformationAboutEvolutionOfTheProvsionForDoubtfulTradeReceivablesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of information about evolution of the provsion for doubtful trade receivables [Abstract]",
        "documentation": "Disclosure of information about evolution of the provision for doubtful trade receivables."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsExplanatory",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Information About Exploration And Exploitation Of Joint Ventures And Other Agreements Explanatory",
        "terseLabel": "Information about Exploration and Exploitation of Joint Ventures and Other Agreements",
        "documentation": "Disclosure of information about exploration and exploitation of Joint ventures and other agreements."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfInformationInAssetsLiabilitiesAndExpensesInJointOperationsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfInformationInAssetsLiabilitiesAndExpensesInJointOperationsExplanatory",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Information in Assets, Liabilities and expenses in Joint Operations [text block]",
        "terseLabel": "Information of Assets, Liabilities and Expenses",
        "documentation": "Disclosure of information in assets, liabilities and expenses in joint operations."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfIntangibleAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfIntangibleAssetsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about intangible assets [abstract]",
        "terseLabel": "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://www.ypf.com/role/IntangibleAssets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of intangible assets [text block]",
        "terseLabel": "Intangible Assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for intangible assets."
       }
      }
     },
     "auth_ref": [
      "r82"
     ]
    },
    "ypf_DisclosureOfInventoriesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfInventoriesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "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://www.ypf.com/role/Inventories"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of inventories [text block]",
        "terseLabel": "Inventories"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for inventories."
       }
      }
     },
     "auth_ref": [
      "r29"
     ]
    },
    "ypf_DisclosureOfInventoriesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfInventoriesLineItems",
     "presentation": [
      "http://www.ypf.com/role/InventoriesSummaryOfInventoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of inventories [line items]",
        "terseLabel": "Disclosure of inventories [line items]",
        "documentation": "Disclosure of inventories [line items]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfInventoriesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfInventoriesTable",
     "presentation": [
      "http://www.ypf.com/role/InventoriesSummaryOfInventoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of inventories [table]",
        "terseLabel": "Disclosure of inventories [table]",
        "documentation": "Disclosure of inventories."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfInvestmentAssociatesAndJointVenturesExplanatoryTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfInvestmentAssociatesAndJointVenturesExplanatoryTableTextBlock",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Investment Associates And Joint Ventures Explanatory [Table Text Block]",
        "terseLabel": "Summary of the investments in associates and joint ventures on a disaggregated basis",
        "documentation": "Disclosure of investment associates and joint ventures explanatory."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfInvestmentInFinancialAssetExplanatoryTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfInvestmentInFinancialAssetExplanatoryTextBlock",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInFinancialAssets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Investment In Financial Asset Explanatory [Text Block]",
        "terseLabel": "Investments in Financial Assets",
        "documentation": "Disclosure of investment in financial asset explanatory."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfInvestmentsInAssociatesAndJointVentureProportionalEquityValueExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfInvestmentsInAssociatesAndJointVentureProportionalEquityValueExplanatory",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Investments in Associates and Joint Venture Proportional Equity Value [text block]",
        "terseLabel": "Summary of the principal amounts of the results of the investments in associates and joint ventures",
        "documentation": "The disclosure of investments in associates and joint venture proportional equity value."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesAggregateLevelExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfInvestmentsInAssociatesAndJointVenturesAggregateLevelExplanatory",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Investments in Associates and Joint Ventures Aggregate Level [text block]",
        "terseLabel": "Summary of Investments in Associates and Joint Ventures at an Aggregate Level",
        "documentation": "The disclosure of investments in associates and joint ventures aggregate level"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfInvestmentsInAssociatesAndJointVenturesExplanatory",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVentures"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of investments in associates and joint ventures [text block]",
        "terseLabel": "Investments in Associates and Joint Ventures",
        "documentation": "The entire disclosure of investments in associates and joint ventures."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfInvestmentsInAssociatesAndJointVenturesLineItems",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfTheInvestmentsInAssociatesAndJointVenturesOnADisaggregatedBasisDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Investments in Associates and Joint Ventures [line items]",
        "documentation": "Disclosure of investments in associates and joint ventures."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesMainMovementsDuringThePeriodAggregateLevelExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfInvestmentsInAssociatesAndJointVenturesMainMovementsDuringThePeriodAggregateLevelExplanatory",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Investments in Associates and Joint Ventures Main Movements During the Period Aggregate Level [text block]",
        "terseLabel": "Summary of Movements which Affected the Value of the Investments in Associates and Joint Ventures",
        "documentation": "The disclosure of investments in associates and joint ventures main movements during the period aggregate level."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfInvestmentsInAssociatesAndJointVenturesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfInvestmentsInAssociatesAndJointVenturesTable",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfTheInvestmentsInAssociatesAndJointVenturesOnADisaggregatedBasisDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Investments in Associates and Joint Ventures [table]",
        "terseLabel": "Disclosure of Investments in Associates and Joint Ventures [table]",
        "documentation": "Disclosure of Investments in Associates and Joint Ventures [table]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfJointOperationsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfJointOperationsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of joint operations [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfJointOperationsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfJointOperationsExplanatory",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiums"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of joint operations [text block]",
        "terseLabel": "Investments in Joint Operations and Consortiums"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of joint operations. [Refer: Total for all joint operations [member]]"
       }
      }
     },
     "auth_ref": [
      "r135"
     ]
    },
    "ifrs-full_DisclosureOfJointOperationsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfJointOperationsLineItems",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail",
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationOfAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of joint operations [line items]",
        "terseLabel": "Disclosure of joint operations [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_DisclosureOfJointOperationsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfJointOperationsTable",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail",
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationOfAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of joint operations [table]",
        "terseLabel": "Disclosure of joint operations [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to joint operations."
       }
      }
     },
     "auth_ref": [
      "r135"
     ]
    },
    "ypf_DisclosureOfKeyManagementPersonnelCompensationAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfKeyManagementPersonnelCompensationAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of key management personnel compensation [abstract]",
        "documentation": "Disclosure of key management personnel compensation."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfKeyManagementPersonnelCompensationExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfKeyManagementPersonnelCompensationExplanatory",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of key management personnel compensation [text block]",
        "terseLabel": "Information about Public Sector Related Entities",
        "documentation": "The disclosure of key management personnel compensation."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfLeaseLiabilitiesActivityTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfLeaseLiabilitiesActivityTableTextBlock",
     "presentation": [
      "http://www.ypf.com/role/LeaseLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Lease Liabilities Activity [Table Text Block]",
        "terseLabel": "Summary of lease liabilities activity",
        "documentation": "Disclosure of lease liabilities activity."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfLeaseLiabilitiesAndDiscountRatesTableTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfLeaseLiabilitiesAndDiscountRatesTableTextBlock",
     "presentation": [
      "http://www.ypf.com/role/LeaseLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Lease Liabilities And Discount Rates [Table Text Block]",
        "terseLabel": "Summary of lease liabilities and discount rates",
        "documentation": "Disclosure of lease liabilities and discount rates."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfLeasesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfLeasesExplanatory",
     "presentation": [
      "http://www.ypf.com/role/LeaseLiabilities"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of leases [text block]",
        "terseLabel": "Lease liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for leases."
       }
      }
     },
     "auth_ref": [
      "r166",
      "r167"
     ]
    },
    "ifrs-full_DisclosureOfLoansAndAdvancesToBanksExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfLoansAndAdvancesToBanksExplanatory",
     "presentation": [
      "http://www.ypf.com/role/Loans"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of loans and advances to banks [text block]",
        "terseLabel": "Loans"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of loans and advances to banks. [Refer: Loans and advances to banks]"
       }
      }
     },
     "auth_ref": [
      "r669"
     ]
    },
    "ypf_DisclosureOfMainRegulationsAndOtherRegulationsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfMainRegulationsAndOtherRegulationsExplanatory",
     "presentation": [
      "http://www.ypf.com/role/MainRegulations"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of main regulations and other regulations [text block]",
        "terseLabel": "Main Regulations",
        "documentation": "The entire disclosure of main regulations and other regulations."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of maturity analysis for non-derivative financial liabilities [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesLineItems",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfMaturityDatesOfFinancialLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of maturity analysis for non-derivative financial liabilities [line items]",
        "terseLabel": "Disclosure of maturity analysis for non-derivative financial 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_DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfMaturityAnalysisForNonderivativeFinancialLiabilitiesTable",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfMaturityDatesOfFinancialLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of maturity analysis for non-derivative financial liabilities [table]",
        "terseLabel": "Disclosure of maturity analysis for non-derivative financial liabilities [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to the maturity analysis for non-derivative financial liabilities."
       }
      }
     },
     "auth_ref": [
      "r216",
      "r381"
     ]
    },
    "ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of nature and extent of risks arising from financial instruments [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsExplanatory",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of nature and extent of risks arising from financial instruments [text block]",
        "terseLabel": "Schedule of Breakdown of Effect a Variation of 10% in Prevailing Exchange Rates on Net Income"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of information that enables users of financial statements to evaluate the nature and extent of risks arising from financial instruments to which the entity is exposed. [Refer: Classes of financial instruments [domain]]"
       }
      }
     },
     "auth_ref": [
      "r205"
     ]
    },
    "ifrs-full_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsLineItems",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail",
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfBreakdownOfEffectAVariationOf10InPrevailingExchangeRatesOnNetIncomeDetail",
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfEffectOfA10VariationInThePricesOfInvestmentsInFinancialInstrumentsDetail",
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfEstimatedImpactOnConsolidatedComprehensiveIncomeThatAnIncreaseOrDecreaseOf100BasisPointsInInterestRateDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of nature and extent of risks arising from financial instruments [line items]",
        "terseLabel": "Disclosure of nature and extent of risks arising from 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_DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfNatureAndExtentOfRisksArisingFromFinancialInstrumentsTable",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail",
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfBreakdownOfEffectAVariationOf10InPrevailingExchangeRatesOnNetIncomeDetail",
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfEffectOfA10VariationInThePricesOfInvestmentsInFinancialInstrumentsDetail",
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfEstimatedImpactOnConsolidatedComprehensiveIncomeThatAnIncreaseOrDecreaseOf100BasisPointsInInterestRateDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of nature and extent of risks arising from financial instruments [table]",
        "terseLabel": "Disclosure of nature and extent of risks arising from financial instruments [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to the nature and extent of risks arising from financial instruments."
       }
      }
     },
     "auth_ref": [
      "r206",
      "r207"
     ]
    },
    "ypf_DisclosureOfNegotiableObligationsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfNegotiableObligationsExplanatory",
     "presentation": [
      "http://www.ypf.com/role/LoansTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Negotiable Obligations [text block]",
        "terseLabel": "Detailed Information of Negotiable Obligations",
        "documentation": "Disclosure of negotiable obligations"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfNetRevenueExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfNetRevenueExplanatory",
     "presentation": [
      "http://www.ypf.com/role/RevenuesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Net Revenue [text block]",
        "terseLabel": "Detailed Information about Revenue",
        "documentation": "The disclosure of net revenue."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfNonadjustingEventsAfterReportingPeriodAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of non-adjusting events after reporting period [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfNonadjustingEventsAfterReportingPeriodLineItems",
     "presentation": [
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of non-adjusting events after reporting period [line items]",
        "terseLabel": "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://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of non-adjusting events after reporting period [table]",
        "terseLabel": "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",
      "r305"
     ]
    },
    "ifrs-full_DisclosureOfNumberAndWeightedAverageExercisePricesOfShareOptionsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfNumberAndWeightedAverageExercisePricesOfShareOptionsExplanatory",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of number and weighted average exercise prices of share options [text block]",
        "terseLabel": "Summary of Share Based Benefit Plan"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of the number and weighted average exercise prices of share options. [Refer: Weighted average [member]]"
       }
      }
     },
     "auth_ref": [
      "r185",
      "r360"
     ]
    },
    "ypf_DisclosureOfOilAndGasProducingActivitiesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfOilAndGasProducingActivitiesExplanatory",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Oil And Gas Producing Activities [text block]",
        "terseLabel": "Results of Operations from Oil and Gas Producing Activities",
        "documentation": "The disclosure of oil and gas producing activities."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfOperatingSegmentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfOperatingSegmentsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "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://www.ypf.com/role/BusinessSegmentInformationTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of operating segments [text block]",
        "terseLabel": "Summary of Business Segment Information"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of operating segments. [Refer: Operating segments [member]]"
       }
      }
     },
     "auth_ref": [
      "r238"
     ]
    },
    "ifrs-full_DisclosureOfOperatingSegmentsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfOperatingSegmentsLineItems",
     "presentation": [
      "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of operating segments [line items]",
        "terseLabel": "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://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of operating segments [table]",
        "terseLabel": "Disclosure of operating segments [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to operating segments."
       }
      }
     },
     "auth_ref": [
      "r238"
     ]
    },
    "ypf_DisclosureOfOtherAccountsReceivableExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfOtherAccountsReceivableExplanatory",
     "presentation": [
      "http://www.ypf.com/role/OtherReceivablesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Other Accounts Receivable Explanatory",
        "terseLabel": "Summary of Other Receivables",
        "documentation": "Disclosure of other accounts receivable."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfOtherLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfOtherLiabilitiesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Other Liabilities [abstract]",
        "documentation": "Disclosure Of Other Liabilities [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfOtherLiabilitiesDetailsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfOtherLiabilitiesDetailsExplanatory",
     "presentation": [
      "http://www.ypf.com/role/OtherLiabilitiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of other liabilities details [text block]",
        "terseLabel": "Details of Other Liabilities",
        "documentation": "The disclosure of other liabilities details."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfOtherLiabilitiesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfOtherLiabilitiesExplanatory",
     "presentation": [
      "http://www.ypf.com/role/OtherLiabilities"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of other liabilities [text block]",
        "terseLabel": "Other Liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of other liabilities. [Refer: Other liabilities]"
       }
      }
     },
     "auth_ref": [
      "r669"
     ]
    },
    "ifrs-full_DisclosureOfOtherOperatingIncomeExpenseExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfOtherOperatingIncomeExpenseExplanatory",
     "presentation": [
      "http://www.ypf.com/role/OtherNetOperatingResults"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of other operating income (expense) [text block]",
        "terseLabel": "Other Net Operating Results"
       }
      }
     },
     "auth_ref": [
      "r669"
     ]
    },
    "ypf_DisclosureOfOtherOperatingResultsNetAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfOtherOperatingResultsNetAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Other Operating Results Net [abstract]",
        "documentation": "Disclosure of Other Operating Results Net [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfOtherOperatingResultsNetExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfOtherOperatingResultsNetExplanatory",
     "presentation": [
      "http://www.ypf.com/role/OtherNetOperatingResultsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Other Operating Results Net [text block]",
        "terseLabel": "Summary of Other Operating Results Net",
        "documentation": "Disclosure of other operating results net."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfOtherProvisionsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfOtherProvisionsTable",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of other provisions [table]",
        "terseLabel": "Disclosure of Provisions [Table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to other provisions."
       }
      }
     },
     "auth_ref": [
      "r74",
      "r340"
     ]
    },
    "ifrs-full_DisclosureOfPropertyPlantAndEquipmentAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfPropertyPlantAndEquipmentAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about property, plant and equipment [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfPropertyPlantAndEquipmentEstimatedUsefulLifeExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfPropertyPlantAndEquipmentEstimatedUsefulLifeExplanatory",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of property plant and equipment estimated useful life [Text block]",
        "terseLabel": "Detailed Information About Property, Plant and Equipment",
        "documentation": "The tabular disclosure of property plant and equipment estimated useful life."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfPropertyPlantAndEquipmentExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfPropertyPlantAndEquipmentExplanatory",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipment"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of property, plant and equipment [text block]",
        "terseLabel": "Property, Plant and Equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for property, plant and equipment."
       }
      }
     },
     "auth_ref": [
      "r24"
     ]
    },
    "ifrs-full_DisclosureOfPropertyPlantAndEquipmentLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfPropertyPlantAndEquipmentLineItems",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsDetailedInformationAboutPropertyPlantAndEquipmentDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentAdditionalInformationDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionForObsolescenceOfMaterialsAndEquipmentDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionsForImpairmentOfPropertyPlantAndEquipmentDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionsForImpairmentOfPropertyPlantAndEquipmentParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about property, plant and equipment [line items]",
        "terseLabel": "Disclosure of estimated useful life of the Property, plant and equipment [line items]",
        "verboseLabel": "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://www.ypf.com/role/PropertyPlantAndEquipmentAdditionalInformationDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionForObsolescenceOfMaterialsAndEquipmentDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionsForImpairmentOfPropertyPlantAndEquipmentDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionsForImpairmentOfPropertyPlantAndEquipmentParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of detailed information about property, plant and equipment [table]",
        "terseLabel": "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": [
      "r20",
      "r321"
     ]
    },
    "ypf_DisclosureOfProvisionForImpairmentOfPropertyPlantAndEquipmentExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfProvisionForImpairmentOfPropertyPlantAndEquipmentExplanatory",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Provision For Impairment of Property, Plant and Equipment [ Text Block]",
        "terseLabel": "Summary of Provision for Impairment of Property, Plant and Equipment",
        "documentation": "Disclosure of provision for impairment of property, plant and equipment."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfProvisionForObsolescenceOfMaterialsAndEquipmentExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfProvisionForObsolescenceOfMaterialsAndEquipmentExplanatory",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of provision for obsolescence of materials and equipment [table text block]",
        "terseLabel": "Summary of Provision for Obsolescence of Materials and Equipment",
        "documentation": "The disclosure of provision for obsolescence of materials and equipment."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfProvisionMatrixAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfProvisionMatrixAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of provision matrix [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfProvisionMatrixExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfProvisionMatrixExplanatory",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of provision matrix [text block]",
        "terseLabel": "Summary of Changes in Group's Provisions"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of the provision matrix."
       }
      }
     },
     "auth_ref": [
      "r490"
     ]
    },
    "ifrs-full_DisclosureOfProvisionMatrixLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfProvisionMatrixLineItems",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of provision matrix [line items]",
        "verboseLabel": "Disclosure of 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": []
    },
    "ifrs-full_DisclosureOfProvisionsExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfProvisionsExplanatory",
     "presentation": [
      "http://www.ypf.com/role/Provisions"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of provisions [text block]",
        "terseLabel": "Provisions"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of provisions. [Refer: Provisions]"
       }
      }
     },
     "auth_ref": [
      "r669"
     ]
    },
    "ypf_DisclosureOfProvisionsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfProvisionsLineItems",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsDetail",
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Provisions [line items]",
        "terseLabel": "Disclosure of provisions [line items]",
        "documentation": "Disclosure of provisions."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfProvisionsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfProvisionsTable",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsDetail",
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Provisions [table]",
        "terseLabel": "Disclosure of Provisions [table]",
        "documentation": "Disclosure of provisions."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesLineItems",
     "presentation": [
      "http://www.ypf.com/role/LeaseLiabilitiesSummaryOfLeaseLiabilitiesAndDiscountRatesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Quantitative Information About Lease Liabilities [Line Items]",
        "terseLabel": "Disclosure of quantitative information about lease liabilities [line Items]",
        "documentation": "Disclosure of quantitative information about lease liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfQuantitativeInformationAboutLeaseLiabilitiesTable",
     "presentation": [
      "http://www.ypf.com/role/LeaseLiabilitiesSummaryOfLeaseLiabilitiesAndDiscountRatesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Quantitative Information About Lease Liabilities [Table]",
        "terseLabel": "Disclosure of quantitative information about lease liabilities [table]",
        "documentation": "Disclosure of quantitative information about lease liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfQuantitativeInformationAboutRightofuseAssetsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "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://www.ypf.com/role/RightOfUseAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of quantitative information about right-of-use assets [text block]",
        "terseLabel": "Summary of Evolution of the Group's Right-of-use Assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of quantitative information about right-of-use assets. [Refer: Right-of-use assets]"
       }
      }
     },
     "auth_ref": [
      "r161",
      "r280"
     ]
    },
    "ifrs-full_DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfQuantitativeInformationAboutRightofuseAssetsLineItems",
     "presentation": [
      "http://www.ypf.com/role/RightOfUseAssetsAdditionalInformationDetail",
      "http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsDetail",
      "http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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://www.ypf.com/role/RightOfUseAssetsAdditionalInformationDetail",
      "http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsDetail",
      "http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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": [
      "r161",
      "r280"
     ]
    },
    "ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of reconciliation of changes in intangible assets and goodwill [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillExplanatory",
     "presentation": [
      "http://www.ypf.com/role/IntangibleAssetsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of reconciliation of changes in intangible assets and goodwill [text block]",
        "terseLabel": "Summary of Evolution of the Group's Intangible Assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of the reconciliation of changes in intangible assets and goodwill. [Refer: Intangible assets and goodwill]"
       }
      }
     },
     "auth_ref": [
      "r649"
     ]
    },
    "ifrs-full_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillLineItems",
     "presentation": [
      "http://www.ypf.com/role/IntangibleAssetsSummaryOfChangesInIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of reconciliation of changes in intangible assets and goodwill [line items]",
        "terseLabel": "Disclosure of reconciliation of changes in intangible assets and goodwill [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_DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfReconciliationOfChangesInIntangibleAssetsAndGoodwillTable",
     "presentation": [
      "http://www.ypf.com/role/IntangibleAssetsSummaryOfChangesInIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of reconciliation of changes in intangible assets and goodwill [table]",
        "terseLabel": "Disclosure of reconciliation of changes in intangible assets and goodwill [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to the reconciliation of changes in intangible assets and goodwill."
       }
      }
     },
     "auth_ref": [
      "r649"
     ]
    },
    "ypf_DisclosureOfReconciliationOfTaxExpenseExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfReconciliationOfTaxExpenseExplanatory",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Reconciliation Of Tax Expense [text block]",
        "terseLabel": "Summary of Reconciliation between the Charge to Net Income for Income Tax and the One that would Result from Applying the Prevailing Tax Rate on Net Income Before Income Tax Arising from the Consolidated Statements of Comprehensive Income",
        "documentation": "Disclosure of reconciliation of tax expense."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfReditsContractAssetsAndContractLiabilitiesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfReditsContractAssetsAndContractLiabilitiesExplanatory",
     "presentation": [
      "http://www.ypf.com/role/RevenuesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of redits, contract assets and contract liabilities explanatory [text block]",
        "terseLabel": "Summary of Credits, Contract Assets and Contract Liabilities",
        "documentation": "Disclosure of redits, contract assets and contract liabilities explanatory [text block]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfRelatedPartyTransactionsWithAssociatesAndJointVenturesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfRelatedPartyTransactionsWithAssociatesAndJointVenturesExplanatory",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of related party transactions with associates and joint ventures [text block]",
        "terseLabel": "Balances and Transactions with Associates and Joint Ventures",
        "documentation": "Disclosure of related party transactions with associates and joint ventures."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesLineItems",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsFromOilAndGasProducingActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Results Of Operations From Oil And Gas Producing Activities [Line Items]",
        "terseLabel": "Disclosure of results of operations from oil and gas producing activities [line items]",
        "documentation": "Disclosure of results of operations from oil and gas producing activities."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfResultsOfOperationsFromOilAndGasProducingActivitiesTable",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsFromOilAndGasProducingActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Results Of Operations From Oil And Gas Producing Activities [Table]",
        "terseLabel": "Disclosure of results of operations from oil and gas producing activities [table]",
        "documentation": "Disclosure of results of operations from oil and gas producing activities."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfRevenueAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfRevenueAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of revenue [abstract]",
        "documentation": "Disclosure of revenue [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfRevenueExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfRevenueExplanatory",
     "presentation": [
      "http://www.ypf.com/role/Revenues"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of revenue [text block]",
        "terseLabel": "Revenues"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for revenue."
       }
      }
     },
     "auth_ref": [
      "r669"
     ]
    },
    "ypf_DisclosureOfRevenueLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfRevenueLineItems",
     "presentation": [
      "http://www.ypf.com/role/RevenuesAdditionalInformationDetail",
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesBySalesChannelsDetail",
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of revenue [line items]",
        "terseLabel": "Disclosure of revenue [line items]",
        "documentation": "Disclosure of revenue [line items]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfRevenueTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfRevenueTable",
     "presentation": [
      "http://www.ypf.com/role/RevenuesAdditionalInformationDetail",
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesBySalesChannelsDetail",
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Revenue [table]",
        "terseLabel": "Disclosure of Revenue [table]",
        "documentation": "Disclosure of revenue."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfRevenuesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfRevenuesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Revenues [abstract]",
        "documentation": "Disclosure Of Revenues."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfRightOfUseAssets": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfRightOfUseAssets",
     "presentation": [
      "http://www.ypf.com/role/RightOfUseAssets"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Right Of Use Assets",
        "terseLabel": "Right-of-use Assets",
        "documentation": "Disclosure of right of use assets."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfSalariesAndSocialSecurityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfSalariesAndSocialSecurityAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Salaries And Social Security [Abstract]",
        "terseLabel": "Disclosure of salaries and social security [abstract]",
        "documentation": "Disclosure of salaries and social security."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfSalariesAndSocialSecurityTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfSalariesAndSocialSecurityTextBlock",
     "presentation": [
      "http://www.ypf.com/role/SalariesAndSocialSecurity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Salaries And Social Security [Text Block]",
        "terseLabel": "Salaries and social security",
        "documentation": "Disclosure of salaries and social security."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfShareCapitalAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfShareCapitalAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Share Capital [abstract]",
        "documentation": "Disclosure of share capital"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfShareCapitalReservesAndOtherEquityInterestExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfShareCapitalReservesAndOtherEquityInterestExplanatory",
     "presentation": [
      "http://www.ypf.com/role/ShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of share capital, reserves and other equity interest [text block]",
        "terseLabel": "Shareholders' Equity"
       }
      },
      "en": {
       "role": {
        "documentation": "The entire disclosure for share capital, reserves and other equity interest."
       }
      }
     },
     "auth_ref": [
      "r294",
      "r394",
      "r433"
     ]
    },
    "ypf_DisclosureOfSignificantInvestmentsInSubsidiariesAndJointVenturesAndAssociatesExplanatoryTextBlock": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfSignificantInvestmentsInSubsidiariesAndJointVenturesAndAssociatesExplanatoryTextBlock",
     "presentation": [
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Significant Investments In Subsidiaries And Joint Ventures And Associates Explanatory [Text Block]",
        "terseLabel": "Summary of Main Companies of the Group",
        "documentation": "Disclosure of significant investments in subsidiaries and joint ventures and associates explanatory."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfStandardizedMeasureOfFutureNetCashFlowFromOilAndGasExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfStandardizedMeasureOfFutureNetCashFlowFromOilAndGasExplanatory",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure Of Standardized Measure Of Future Net Cash Flow From Oil And Gas Explanatory",
        "terseLabel": "Summary of Changes in the Standardized Measure of Discounted Future Net Cash Flows",
        "documentation": "Disclosure Of standardized measure of future net cash flow from oil and gas explanatory."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfSummaryOfAnalysisOfAssetsAndLiabilitiesOnDateControlWasLostAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfSummaryOfAnalysisOfAssetsAndLiabilitiesOnDateControlWasLostAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of summary of analysis of assets and liabilities on date control was lost [abstract]",
        "documentation": "Disclosure of summary of analysis of assets and liabilities on date control was lost [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfSummaryOfAnalysisOfAssetsAndLiabilitiesOnDateControlWasLostTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfSummaryOfAnalysisOfAssetsAndLiabilitiesOnDateControlWasLostTable",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of summary of analysis of assets and liabilities on date control was lost [table]",
        "terseLabel": "Disclosure of summary of analysis of assets and liabilities on date control was lost [table]",
        "documentation": "Disclosure of summary of analysis of assets and liabilities on date control was lost [table]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfTaxesPayable": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfTaxesPayable",
     "presentation": [
      "http://www.ypf.com/role/TaxesPayable"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Taxes Payable",
        "terseLabel": "Taxes payable",
        "documentation": "Disclosure of taxes payable."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfTaxesPayableAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfTaxesPayableAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Taxes Payable [Abstract]",
        "documentation": "Disclosure of taxes payable [Abstract]."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfTaxesPayableLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfTaxesPayableLineItems",
     "presentation": [
      "http://www.ypf.com/role/TaxesPayableSummaryOfTaxesPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Taxes Payable [Line Items]",
        "documentation": "Disclosure of taxes payable [Line Items]."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfTaxesPayableTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfTaxesPayableTable",
     "presentation": [
      "http://www.ypf.com/role/TaxesPayableSummaryOfTaxesPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Taxes Payable [Table]",
        "documentation": "Disclosure of taxes Payable [Table]."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsLineItems",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of temporary difference, unused tax losses and unused tax credits [line items]",
        "terseLabel": "Disclosure of temporary difference, unused tax losses and unused tax credits [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_DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsTable",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxAdditionalInformationDetail",
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxDetail",
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of temporary difference, unused tax losses and unused tax credits [table]",
        "terseLabel": "Disclosure of temporary difference, unused tax losses and unused tax credits [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to temporary differences, unused tax losses and unused tax credits."
       }
      }
     },
     "auth_ref": [
      "r8",
      "r311"
     ]
    },
    "ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of terms and conditions of share-based payment arrangement [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementLineItems",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20202023Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20212024Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20222025Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20232026Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20242027Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20252028Detail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of terms and conditions of share-based payment arrangement [line items]",
        "terseLabel": "Disclosure of terms and conditions of share-based payment arrangement [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_DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfTermsAndConditionsOfSharebasedPaymentArrangementTable",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20202023Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20212024Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20222025Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20232026Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20242027Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20252028Detail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of terms and conditions of share-based payment arrangement [table]",
        "terseLabel": "Disclosure of terms and conditions of share-based payment arrangement [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to terms and conditions of share-based payment arrangements."
       }
      }
     },
     "auth_ref": [
      "r188",
      "r361"
     ]
    },
    "ypf_DisclosureOfTradeAndOtherReceivablesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfTradeAndOtherReceivablesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of trade and other receivables [abstract]",
        "documentation": "Disclosure of trade and other receivables abstract ."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfTradeAndOtherReceivablesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfTradeAndOtherReceivablesExplanatory",
     "presentation": [
      "http://www.ypf.com/role/OtherReceivables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of trade and other receivables [text block]",
        "terseLabel": "Other Receivables"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of trade and other receivables. [Refer: Trade and other receivables]"
       }
      }
     },
     "auth_ref": [
      "r669"
     ]
    },
    "ypf_DisclosureOfTradeReceivablesExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfTradeReceivablesExplanatory",
     "presentation": [
      "http://www.ypf.com/role/TradeReceivables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Trade Receivables [text block]",
        "terseLabel": "Trade Receivables",
        "documentation": "The disclosure of trade receivables."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfTradeReceivablesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfTradeReceivablesLineItems",
     "presentation": [
      "http://www.ypf.com/role/TradeReceivablesSummaryOfTradeReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Trade receivables [line items]",
        "terseLabel": "Disclosure of Trade receivables [line items]",
        "documentation": "Disclosure of Trade receivables [line items]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisclosureOfTradeReceivablesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureOfTradeReceivablesTable",
     "presentation": [
      "http://www.ypf.com/role/TradeReceivablesSummaryOfTradeReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of Trade Receivables [table]",
        "terseLabel": "Disclosure of Trade Receivables [table]",
        "documentation": "Disclosure of Trade Receivables [table]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DisclosureOfTransactionsBetweenRelatedPartiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DisclosureOfTransactionsBetweenRelatedPartiesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "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://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesAdditionalInformationDetail",
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationAboutRelatedPartyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of transactions between related parties [line items]",
        "terseLabel": "Disclosure of balance and transactions with 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://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesAdditionalInformationDetail",
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationAboutRelatedPartyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of transactions between related parties [table]",
        "terseLabel": "Disclosure of transactions between related parties [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to transactions between related parties."
       }
      }
     },
     "auth_ref": [
      "r43",
      "r332"
     ]
    },
    "ypf_DisclosureofYPFEELineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisclosureofYPFEELineItems",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of YPF EE [Line Items]",
        "documentation": "Disclosure of YPF EE [Line Item]."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DisposalOfSubsidiariesSalePrice": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DisposalOfSubsidiariesSalePrice",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disposal of subsidiaries sale price",
        "documentation": "Disposal of subsidiaries sale price."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DistributionCompaniesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DistributionCompaniesMember",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesBySalesChannelsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Distribution Companies [member]",
        "terseLabel": "Distribution companies [member]",
        "documentation": "Distribution companies."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_DistributionCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DistributionCosts",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_ProfitLossFromOperatingActivities",
       "weight": -1.0,
       "order": 15.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Distribution costs",
        "negatedLabel": "Selling expenses"
       }
      }
     },
     "auth_ref": [
      "r449",
      "r517"
     ]
    },
    "ifrs-full_DividendsReceived": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DividendsReceived",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfMovementsWhichAffectedTheValueOfTheInvestmentsInAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends received",
        "negatedLabel": "Distributed dividends"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of dividends received."
       }
      }
     },
     "auth_ref": [
      "r119"
     ]
    },
    "ifrs-full_DividendsReceivedClassifiedAsOperatingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "DividendsReceivedClassifiedAsOperatingActivities",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 37.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Dividends received, classified as operating activities",
        "terseLabel": "Dividends received",
        "verboseLabel": "Dividends received"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash inflow from dividends received, classified as operating activities. [Refer: Dividends received]"
       }
      }
     },
     "auth_ref": [
      "r92"
     ]
    },
    "dei_DocumentAccountingStandard": {
     "xbrltype": "accountingStandardItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentAccountingStandard",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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": [
      "r530"
     ]
    },
    "dei_DocumentAnnualReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentAnnualReport",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Annual Report",
        "documentation": "Boolean flag that is true only for a form used as an annual report."
       }
      }
     },
     "auth_ref": [
      "r529",
      "r530",
      "r553"
     ]
    },
    "dei_DocumentFinStmtErrorCorrectionFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentFinStmtErrorCorrectionFlag",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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": [
      "r529",
      "r530",
      "r553",
      "r596"
     ]
    },
    "dei_DocumentFiscalPeriodFocus": {
     "xbrltype": "fiscalPeriodItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentFiscalPeriodFocus",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Registration Statement",
        "documentation": "Boolean flag that is true only for a form used as a registration statement."
       }
      }
     },
     "auth_ref": [
      "r524"
     ]
    },
    "dei_DocumentShellCompanyReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentShellCompanyReport",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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": [
      "r530"
     ]
    },
    "dei_DocumentTransitionReport": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentTransitionReport",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Document Transition Report",
        "documentation": "Boolean flag that is true only for a form used as a transition report."
       }
      }
     },
     "auth_ref": [
      "r574"
     ]
    },
    "dei_DocumentType": {
     "xbrltype": "submissionTypeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "DocumentType",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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": []
    },
    "ypf_DomesticMarketMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DomesticMarketMember",
     "presentation": [
      "http://www.ypf.com/role/RevenuesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Domestic Market [member]",
        "terseLabel": "Domestic market [member]",
        "documentation": "Domestic Market [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DrillingAndWorkInProgress": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DrillingAndWorkInProgress",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesDetail": {
       "parentTag": "ypf_GrossCapitalizedCost",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Drilling and work in progress",
        "terseLabel": "Drilling and work in progress",
        "documentation": "Drilling Contracts"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_DrillingPropertyInProgress": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "DrillingPropertyInProgress",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Drilling property in progress",
        "terseLabel": "Drilled wells",
        "documentation": "Exploratory drilling in progress."
       }
      }
     },
     "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": [
      "r585"
     ]
    },
    "ypf_ENARSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ENARSAMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationAboutRelatedPartyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ENARSA [Member]",
        "documentation": "Sales of natural gas and provision of regasification service of LNG and construction inspection service."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ENARSAOneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ENARSAOneMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationAboutRelatedPartyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ENARSA One [Member]",
        "terseLabel": "ENARSA [Member]",
        "documentation": "Purchases of natural gas and crude oil."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_EarningsPerShareAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "EarningsPerShareAbstract",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings per share [abstract]",
        "terseLabel": "Earnings per share attributable to shareholders of the parent company:"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_EarningsPerShareExplanatory": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "EarningsPerShareExplanatory",
     "presentation": [
      "http://www.ypf.com/role/EarningsPerShareTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Earnings per share [text block]",
        "terseLabel": "Summary of Earnings Per Share"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of earnings per share."
       }
      }
     },
     "auth_ref": [
      "r59"
     ]
    },
    "ypf_EffectOfChangeInPricesOfInvestmentOnGainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "EffectOfChangeInPricesOfInvestmentOnGainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfEffectOfA10VariationInThePricesOfInvestmentsInFinancialInstrumentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effect of change in prices of investment on gains (losses) on financial assets at fair value through profit or loss",
        "verboseLabel": "Profit or loss before income tax for fiscal year ended December 31, 2025",
        "documentation": "Effect of change in prices of investment on gains (losses) on financial assets at fair value through profit or loss."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_EffectOfExchangeRateChangesOnCashAndCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "EffectOfExchangeRateChangesOnCashAndCashEquivalents",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_IncreaseDecreaseInCashAndCashEquivalents",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effect of exchange rate changes on cash and cash equivalents",
        "terseLabel": "Effect of changes in exchange rates 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": [
      "r90",
      "r91"
     ]
    },
    "ypf_EffectOfTheValuationOfInventories": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "EffectOfTheValuationOfInventories",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/IncomeTaxSummaryOfReconciliationBetweenTheChargeToNetIncomeForIncomeTaxAndTheOneThatWouldResultFromApplyingThePrevailingTaxRateOnNetIncomeBeforeIncomeTaxArisingFromTheConsolidatedStatementsOfComprehensiveIncoe8f94": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfReconciliationBetweenTheChargeToNetIncomeForIncomeTaxAndTheOneThatWouldResultFromApplyingThePrevailingTaxRateOnNetIncomeBeforeIncomeTaxArisingFromTheConsolidatedStatementsOfComprehensiveIncoe8f94"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effect Of The Valuation Of Inventories",
        "negatedLabel": "Effect of the valuation of inventories",
        "documentation": "Effect of the valuation of inventories."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_EffectOfTheValuationOfPropertyPlantAndEquipmentAndIntangibleAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "EffectOfTheValuationOfPropertyPlantAndEquipmentAndIntangibleAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/IncomeTaxSummaryOfReconciliationBetweenTheChargeToNetIncomeForIncomeTaxAndTheOneThatWouldResultFromApplyingThePrevailingTaxRateOnNetIncomeBeforeIncomeTaxArisingFromTheConsolidatedStatementsOfComprehensiveIncoe8f94": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfReconciliationBetweenTheChargeToNetIncomeForIncomeTaxAndTheOneThatWouldResultFromApplyingThePrevailingTaxRateOnNetIncomeBeforeIncomeTaxArisingFromTheConsolidatedStatementsOfComprehensiveIncoe8f94"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effect Of The Valuation Of Property Plant And Equipment And Intangible Assets",
        "negatedLabel": "Effect of the valuation of property, plant and equipment, intangible assets and assets held for sale, net",
        "documentation": "Effect of the valuation of property plant And equipment and Intangible assets."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_EffectOfTranslation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "EffectOfTranslation",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Effect of Translation",
        "documentation": "Effect of translation."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ElOrejanoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ElOrejanoMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "El Orejano [Member]",
        "terseLabel": "El Orejano [Member]",
        "documentation": "El Orejano."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ElPortnMendozaNeuqunChihuidodelaSalinaAltiplaniciedelPaynCaadnAmarilloChihuidodelaSalinaSurandConfluenciaSurMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ElPortnMendozaNeuqunChihuidodelaSalinaAltiplaniciedelPaynCaadnAmarilloChihuidodelaSalinaSurandConfluenciaSurMember",
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "El Portn Mendoza Neuqun Chihuido de la Salina Altiplanicie del Payn Caadn Amarillo Chihuido de la Salina Sur and Confluencia Sur [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ElTordilloPuestoQuirogaandLaTaperaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ElTordilloPuestoQuirogaandLaTaperaMember",
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "El Tordillo Puesto Quiroga and La Tapera [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_EleranMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "EleranMember",
     "presentation": [
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Eleran [Member]",
        "terseLabel": "Eleran [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_EliminationOfIntersegmentAmountsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "EliminationOfIntersegmentAmountsMember",
     "presentation": [
      "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Elimination of intersegment amounts [member]",
        "terseLabel": "Consolidation Adjustments [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": [
      "r501",
      "r502"
     ]
    },
    "ifrs-full_EmployeeBenefitsExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "EmployeeBenefitsExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Employee benefits expense",
        "terseLabel": "Total charges"
       }
      }
     },
     "auth_ref": [
      "r288",
      "r401",
      "r449",
      "r516"
     ]
    },
    "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": []
    },
    "ypf_EnapSipetrolArgentinaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "EnapSipetrolArgentinaMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Enap Sipetrol Argentina [member]",
        "terseLabel": "Enap Sipetrol Argentina [member]",
        "documentation": "Enap Sipetrol Argentina [member]"
       }
      }
     },
     "auth_ref": []
    },
    "srt_EnergyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "EnergyAxis",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Energy [Axis]",
        "documentation": "Information by type of energy source."
       }
      }
     },
     "auth_ref": []
    },
    "srt_EnergyDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "EnergyDomain",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Energy [Domain]",
        "documentation": "Combustible material used to power engines, power plants or reactors. Examples include, but are not limited to, fuel and oil."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressAddressLine1": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityAddressAddressLine1",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Address, Address Line One",
        "documentation": "Address Line 1 such as Attn, Building Name, Street Name"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityAddressCityOrTown": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityAddressCityOrTown",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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": [
      "r526"
     ]
    },
    "dei_EntityCommonStockSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityCommonStockSharesOutstanding",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Common Stock, Shares Outstanding",
        "documentation": "Indicate number of shares or other units outstanding of each of registrant's classes of capital or common stock or other ownership interests, if and as stated on cover of related periodic report. Where multiple classes or units exist define each class/interest by adding class of stock items such as Common Class A [Member], Common Class B [Member] or Partnership Interest [Member] onto the Instrument [Domain] of the Entity Listings, Instrument."
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityCurrentReportingStatus": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityCurrentReportingStatus",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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_EntityEmergingGrowthCompany": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityEmergingGrowthCompany",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Emerging Growth Company",
        "documentation": "Indicate if registrant meets the emerging growth company criteria."
       }
      }
     },
     "auth_ref": [
      "r526"
     ]
    },
    "dei_EntityFileNumber": {
     "xbrltype": "fileNumberItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityFileNumber",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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": [
      "r526"
     ]
    },
    "ypf_EntityGroupAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "EntityGroupAxis",
     "presentation": [
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Group [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_EntityGroupDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "EntityGroupDomain",
     "presentation": [
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Entity Group [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "dei_EntityIncorporationStateCountryCode": {
     "xbrltype": "edgarStateCountryItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityIncorporationStateCountryCode",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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": [
      "r636"
     ]
    },
    "dei_EntityRegistrantName": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityRegistrantName",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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": [
      "r526"
     ]
    },
    "dei_EntityShellCompany": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityShellCompany",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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": [
      "r526"
     ]
    },
    "dei_EntityVoluntaryFilers": {
     "xbrltype": "yesNoItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "EntityVoluntaryFilers",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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": [
      "r637"
     ]
    },
    "ypf_EnvironmentalClaimsLaPlataMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "EnvironmentalClaimsLaPlataMember",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Environmental Claims La Plata [Member]",
        "terseLabel": "Environmental Claims La Plata [Member]",
        "documentation": "Environmental Claims La Plata."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_EnvironmentalLiabilitiesMatureFieldsProjectMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "EnvironmentalLiabilitiesMatureFieldsProjectMember",
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesSummaryOfTheMainAssetsHeldForSaleAndAssociatedLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Environmental Liabilities Mature Fields Project [Member]",
        "terseLabel": "Environmental Liabilities - Mature Fields Project [Member]",
        "documentation": "Environmental liabilities - mature fields project."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_EnvironmentalLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "EnvironmentalLiabilitiesMember",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Environmental liabilities [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "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": [
      "r579"
     ]
    },
    "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": [
      "r632"
     ]
    },
    "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": [
      "r632"
     ]
    },
    "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": [
      "r632"
     ]
    },
    "ypf_EquinorArgentinaAsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "EquinorArgentinaAsMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equinor Argentina AS [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_EquinorArgentinaBvMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "EquinorArgentinaBvMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equinor Argentina BV [Member]",
        "documentation": "Equinor Argentina BV"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_EquinorArgentinaSauMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "EquinorArgentinaSauMember",
     "presentation": [
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equinor Argentina SAU [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_EquinorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "EquinorMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equinor [Member]",
        "documentation": "Equinor."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_EquipmentForNaturalGasCompressionAndPowerGenerationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "EquipmentForNaturalGasCompressionAndPowerGenerationMember",
     "presentation": [
      "http://www.ypf.com/role/RightOfUseAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equipment for Natural Gas Compression and Power Generation [Member]",
        "terseLabel": "Equipment for natural gas compression and power generation [Member]",
        "documentation": "Equipment for natural gas compression and power generation."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_Equity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "Equity",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAndLiabilities",
       "weight": 1.0,
       "order": 18.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity",
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity",
        "totalLabel": "TOTAL SHAREHOLDERS' EQUITY",
        "periodStartLabel": "Balance at the beginning of the fiscal year",
        "periodEndLabel": "Balance at the end of the fiscal year",
        "positiveLabel": "Total shareholders' equity"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of residual interest in the assets of the entity after deducting all its liabilities."
       }
      }
     },
     "auth_ref": [
      "r102",
      "r104",
      "r139",
      "r140",
      "r141",
      "r333",
      "r352",
      "r387",
      "r388",
      "r397",
      "r422",
      "r429"
     ]
    },
    "ifrs-full_EquityAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "EquityAbstract",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity [abstract]",
        "terseLabel": "SHAREHOLDERS' EQUITY"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_EquityAndLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "EquityAndLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity and liabilities",
        "totalLabel": "TOTAL LIABILITIES AND SHAREHOLDERS' EQUITY"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of the entity's equity and liabilities. [Refer: Equity; Liabilities]"
       }
      }
     },
     "auth_ref": [
      "r422"
     ]
    },
    "ifrs-full_EquityAttributableToOwnersOfParent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "EquityAttributableToOwnersOfParent",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_Equity",
       "weight": 1.0,
       "order": 19.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity attributable to owners of parent",
        "totalLabel": "Shareholders' equity attributable to shareholders of the parent company"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of equity attributable to the owners of the parent. This specifically excludes non-controlling interest."
       }
      }
     },
     "auth_ref": [
      "r421"
     ]
    },
    "ifrs-full_EquityAttributableToOwnersOfParentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "EquityAttributableToOwnersOfParentMember",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Equity attributable to owners of parent [member]",
        "terseLabel": "Equity attributable to Shareholders of the parent company [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for equity attributable to the owners of the parent."
       }
      }
     },
     "auth_ref": [
      "r407"
     ]
    },
    "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": [
      "r589"
     ]
    },
    "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": [
      "r546",
      "r557",
      "r567",
      "r600"
     ]
    },
    "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": [
      "r543",
      "r554",
      "r564",
      "r597"
     ]
    },
    "ypf_EscalanteElTrebolMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "EscalanteElTrebolMember",
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Escalante El Trebol [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_EstacionFernandezOroMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "EstacionFernandezOroMember",
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Estacion Fernandez Oro [member]",
        "documentation": "Estacion Fernandez Oro."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_EstimatedBarrelOfOilEquivalentProduction": {
     "xbrltype": "energyItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "EstimatedBarrelOfOilEquivalentProduction",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Estimated Barrel of Oil Equivalent Production",
        "terseLabel": "Estimated barrel of oil equivalent production",
        "documentation": "Estimated Barrel of Oil Equivalent Production"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_EstimatedCrudeOilProductionDuringPeriod": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "EstimatedCrudeOilProductionDuringPeriod",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Estimated crude oil production during period",
        "terseLabel": "Estimated crude oil production",
        "documentation": "Estimated crude oil production during period."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_EstimatedFairValueOfLoans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "EstimatedFairValueOfLoans",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategoryAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Estimated Fair Value Of Loans",
        "terseLabel": "Estimated fair value of loans",
        "documentation": "Estimated fair value of loans."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_EstimatedFairValueOfLoansMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "EstimatedFairValueOfLoansMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategoryAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Estimated Fair Value Of Loans [member]",
        "terseLabel": "Estimated Fair Value of Loans [member]",
        "documentation": "Estimated Fair Value Of Loans [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_EstimatedNaturalGasLiquidsProduction": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "EstimatedNaturalGasLiquidsProduction",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Estimated natural gas liquids production",
        "terseLabel": "Estimated natural gas liquids production",
        "documentation": "Estimated natural gas liquids production."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_EstimatedNaturalGasProduction": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "EstimatedNaturalGasProduction",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Estimated Natural Gas Production",
        "terseLabel": "Estimated natural gas production",
        "documentation": "Estimated natural gas production."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_EstimatedProvedCrudeOilReserves": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "EstimatedProvedCrudeOilReserves",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Estimated proved crude oil reserves",
        "terseLabel": "Estimated proved crude oil reserves",
        "documentation": "Estimated proved crude oil reserves."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_EstimatedProvedNaturalGasLiquidsReserves": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "EstimatedProvedNaturalGasLiquidsReserves",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Estimated proved natural gas liquids reserves",
        "terseLabel": "Estimated proved natural gas liquids reserves",
        "documentation": "Estimated proved natural gas liquids reserves."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_EstimatedProvedNaturalGasReservesConsumedAsFuel": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "EstimatedProvedNaturalGasReservesConsumedAsFuel",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Estimated proved natural gas reserves consumed as fuel",
        "terseLabel": "Estimated proved natural gas reserves consumed as fuel",
        "documentation": "Estimated proved natural gas reserves consumed as fuel."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_EstimatedProvedOilEquivalentReserves": {
     "xbrltype": "energyItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "EstimatedProvedOilEquivalentReserves",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Estimated Proved Oil Equivalent Reserves",
        "terseLabel": "Estimated Proved oil equivalent reserves",
        "documentation": "Estimated Proved Oil Equivalent Reserves"
       }
      }
     },
     "auth_ref": []
    },
    "srt_EuropeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "EuropeMember",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfRevenueByGeographicAreaDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Europe [Member]",
        "terseLabel": "Europe [member]",
        "documentation": "Continent of Europe."
       }
      }
     },
     "auth_ref": [
      "r665",
      "r666",
      "r667",
      "r668"
     ]
    },
    "ypf_EventAfterReportingAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "EventAfterReportingAxis",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Event After Reporting [Axis]",
        "terseLabel": "Statement scenario [axis]",
        "documentation": "Event after reporting."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_EventAfterReportingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "EventAfterReportingMember",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Event After Reporting [Member]",
        "terseLabel": "Statement scenario [member]",
        "documentation": "Event after reporting."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ExchangeDifferences": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ExchangeDifferences",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/IncomeTaxSummaryOfReconciliationBetweenTheChargeToNetIncomeForIncomeTaxAndTheOneThatWouldResultFromApplyingThePrevailingTaxRateOnNetIncomeBeforeIncomeTaxArisingFromTheConsolidatedStatementsOfComprehensiveIncoe8f94": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": -1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfReconciliationBetweenTheChargeToNetIncomeForIncomeTaxAndTheOneThatWouldResultFromApplyingThePrevailingTaxRateOnNetIncomeBeforeIncomeTaxArisingFromTheConsolidatedStatementsOfComprehensiveIncoe8f94"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exchange differences",
        "terseLabel": "Effect of exchange differences and other results relating to the valuation of the currency, net",
        "documentation": "Exchange differences"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ExchangeDifferencesAndTranslationOnGroupLoansNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ExchangeDifferencesAndTranslationOnGroupLoansNetOfTax",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/LoansEvolutionOfTheLoansDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exchange Differences And Translation On Group Loans Net Of Tax",
        "negatedLabel": "Net exchange and translation differences",
        "documentation": "Exchange differences and translation on group loans net of tax."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ExchangeDifferencesGeneratedByCashAndCashEquivalentsAndInvestmentsInFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ExchangeDifferencesGeneratedByCashAndCashEquivalentsAndInvestmentsInFinancialAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail": {
       "parentTag": "ifrs-full_OtherFinanceIncome",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exchange Differences Generated By Cash And Cash Equivalents And Investments In Financial Assets",
        "terseLabel": "Exchange differences generated by cash and cash equivalents and investments in financial assets",
        "documentation": "Exchange differences generated by cash and cash equivalents and investments in financial assets."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ExchangeDifferencesGeneratedByLoans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ExchangeDifferencesGeneratedByLoans",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail": {
       "parentTag": "ifrs-full_OtherFinanceIncome",
       "weight": -1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exchange Differences Generated By Loans",
        "terseLabel": "Exchange differences generated by loans",
        "documentation": "Exchange differences generated by loans."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ExchangeRateAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ExchangeRateAxis",
     "presentation": [
      "http://www.ypf.com/role/ContingentAssetsAndLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exchange Rate [Axis]",
        "documentation": "Exchange rate."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ExchangeRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ExchangeRateMember",
     "presentation": [
      "http://www.ypf.com/role/ContingentAssetsAndLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exchange Rate [Member]",
        "documentation": "Exchange rate."
       }
      }
     },
     "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": [
      "r595"
     ]
    },
    "ifrs-full_ExpenseArisingFromExplorationForAndEvaluationOfMineralResources": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ExpenseArisingFromExplorationForAndEvaluationOfMineralResources",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_ProfitLossFromOperatingActivities",
       "weight": -1.0,
       "order": 17.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome",
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationOfAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense arising from exploration for and evaluation of mineral resources",
        "negatedLabel": "Exploration expenses",
        "terseLabel": "Exploration expenses"
       }
      }
     },
     "auth_ref": [
      "r200"
     ]
    },
    "ifrs-full_ExpenseByNature": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ExpenseByNature",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expenses, by nature",
        "totalLabel": "Total"
       }
      }
     },
     "auth_ref": [
      "r449"
     ]
    },
    "ifrs-full_ExpenseByNatureAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ExpenseByNatureAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Expenses by nature [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ExpenseByNatureLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ExpenseByNatureLineItems",
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense By Nature [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ExpenseByNatureTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ExpenseByNatureTable",
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense By Nature [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ExpenseFromCashsettledSharebasedPaymentTransactionsInWhichGoodsOrServicesReceivedDidNotQualifyForRecognitionAsAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ExpenseFromCashsettledSharebasedPaymentTransactionsInWhichGoodsOrServicesReceivedDidNotQualifyForRecognitionAsAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense from cash-settled share-based payment transactions",
        "terseLabel": "Expense from cash-settled share-based payment transactions"
       }
      }
     },
     "auth_ref": [
      "r675"
     ]
    },
    "ifrs-full_ExpenseFromSharebasedPaymentTransactionsInWhichGoodsOrServicesReceivedDidNotQualifyForRecognitionAsAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ExpenseFromSharebasedPaymentTransactionsInWhichGoodsOrServicesReceivedDidNotQualifyForRecognitionAsAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense from share-based payment transactions"
       }
      }
     },
     "auth_ref": [
      "r189",
      "r362"
     ]
    },
    "ifrs-full_ExpenseFromSharebasedPaymentTransactionsWithEmployees": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ExpenseFromSharebasedPaymentTransactionsWithEmployees",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20212024Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20222025Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20232026Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20242027Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20252028Detail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense from share-based payment transactions with employees",
        "verboseLabel": "Expense recognized during the fiscal year",
        "terseLabel": "Expense recognized during the fiscal year"
       }
      }
     },
     "auth_ref": [
      "r675"
     ]
    },
    "ypf_ExpenseRelatingToLeaseUnderlyingAsset": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ExpenseRelatingToLeaseUnderlyingAsset",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense relating to lease underlying asset",
        "terseLabel": "Expense relating to lease underlying asset",
        "documentation": "Expense relating to lease underlying asset."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ExpenseRelatingToShortTermLease": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ExpenseRelatingToShortTermLease",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense Relating To Short Term Lease",
        "verboseLabel": "Expense relating to short term lease",
        "documentation": "Expense relating to short term lease."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ExpenseRelatingToShorttermLeasesForWhichRecognitionExemptionHasBeenUsed": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ExpenseRelatingToShorttermLeasesForWhichRecognitionExemptionHasBeenUsed",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense relating to short-term leases for which recognition exemption has been used",
        "terseLabel": "Cost increases of short-term leases"
       }
      }
     },
     "auth_ref": [
      "r156",
      "r275"
     ]
    },
    "ifrs-full_ExpenseRelatingToVariableLeasePaymentsNotIncludedInMeasurementOfLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ExpenseRelatingToVariableLeasePaymentsNotIncludedInMeasurementOfLeaseLiabilities",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Expense relating to variable lease payments not included in measurement of lease liabilities",
        "terseLabel": "Cost increases of variable charge of leases related to the underlying asset return/use"
       }
      }
     },
     "auth_ref": [
      "r157",
      "r276"
     ]
    },
    "ypf_ExploitationEquipmentAndFacilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ExploitationEquipmentAndFacilitiesMember",
     "presentation": [
      "http://www.ypf.com/role/RightOfUseAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exploitation Equipment and Facilities [Member]",
        "terseLabel": "Exploitation equipment and facilities [Member]",
        "documentation": "Exploitation equipment and facilities."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ExploitationFacilitiesAndEquipmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ExploitationFacilitiesAndEquipmentMember",
     "presentation": [
      "http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exploitation Facilities and Equipment [Member]",
        "terseLabel": "Exploitation Facilities and Equipment [member]",
        "documentation": "Exploitation facilities and equipment [Member]."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ExplorationCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ExplorationCost",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesDetail": {
       "parentTag": "ypf_CostsIncurredInOilAndGasProductivity",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exploration Cost",
        "terseLabel": "Exploration costs",
        "documentation": "Exploration cost."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ExplorationExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ExplorationExpenses",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsFromOilAndGasProducingActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exploration Expenses",
        "negatedLabel": "Exploration expenses",
        "documentation": "Exploration expenses ."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ExplorationExpensesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ExplorationExpensesMember",
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exploration Expenses [member]",
        "terseLabel": "Exploration expenses [Member]",
        "documentation": "Exploration expenses."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ExploratoryDrillingInProgress": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ExploratoryDrillingInProgress",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exploratory Drilling in Progress",
        "terseLabel": "Exploratory wells in progress",
        "documentation": "Exploratory drilling in progress."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ExploratoryDrillingInProgressMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ExploratoryDrillingInProgressMember",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exploratory Drilling in Progress [member]",
        "terseLabel": "Exploratory Drilling in Progress [member]",
        "documentation": "Exploratory drilling in progress."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ExploratoryDrillingWells": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ExploratoryDrillingWells",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Exploratory Drilling Wells",
        "terseLabel": "Charged to exploratory expense",
        "documentation": "Exploratory drilling wells."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ExportDutyForLiquidAndGaseousHydrocarbonsPercent": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ExportDutyForLiquidAndGaseousHydrocarbonsPercent",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Export duty for liquid and gaseous hydrocarbons percent",
        "terseLabel": "Percentage of export duty for liquid and gaseous hydrocarbons",
        "documentation": "Export duty for liquid and gaseous hydrocarbons percent."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ExportDutyPercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ExportDutyPercentage",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Export duty percentage",
        "terseLabel": "Export duty percentage",
        "documentation": "Export duty percentage."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ExportDutyRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ExportDutyRateMember",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Export Duty Rate [Member]",
        "terseLabel": "Export Duty Rate [member]",
        "documentation": "Export duty rate."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ExportIncreaseProgramOtherOperatingIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ExportIncreaseProgramOtherOperatingIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/OtherNetOperatingResultsDetail": {
       "parentTag": "ifrs-full_OtherOperatingIncomeExpense",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/OtherNetOperatingResultsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Export Increase Program Other Operating Income",
        "terseLabel": "Export Increase Program",
        "documentation": "Export increase program other operating income."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ExportIncreaseProgrammeOtherIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ExportIncreaseProgrammeOtherIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfGainsAndLossesOnFinancialInstrumentsDetail": {
       "parentTag": "ifrs-full_FinanceIncomeCost",
       "weight": 1.0,
       "order": 3.0
      },
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail": {
       "parentTag": "ifrs-full_OtherFinanceIncome",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfGainsAndLossesOnFinancialInstrumentsDetail",
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Export Increase Programme Other Income",
        "terseLabel": "Export Increase Program",
        "documentation": "Export increase programme other income."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ExportPermitTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ExportPermitTerm",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Export Permit Term",
        "terseLabel": "Export permit term",
        "documentation": "Export permit term."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ExportPreFinancingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ExportPreFinancingMember",
     "presentation": [
      "http://www.ypf.com/role/LoansScheduleOfLoansDetail",
      "http://www.ypf.com/role/LoansScheduleOfLoansParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Export Pre financing [member]",
        "verboseLabel": "Export pre-financing [member]",
        "terseLabel": "Export Pre financing [member]",
        "documentation": "Export pre-financing."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ExportTaxRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ExportTaxRate",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Export Tax Rate",
        "terseLabel": "Export tax rate",
        "documentation": "Export tax rate."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ExportWithholdings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ExportWithholdings",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Export Withholdings",
        "terseLabel": "Export withholdings",
        "documentation": "Export withholdings."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ExtendedPeriodCoveredByFinancialStatements": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ExtendedPeriodCoveredByFinancialStatements",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Extended Period Covered By Financial Statements",
        "verboseLabel": "Agreement Extended Period",
        "documentation": "Extended Period Covered By Financial Statements."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ExtensionsAndDiscoveriesOfProvedDevelopedReserves": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ExtensionsAndDiscoveriesOfProvedDevelopedReserves",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Extensions and discoveries of proved developed reserves",
        "terseLabel": "Extension and discoveries of proved development reserves",
        "documentation": "Extensions and discoveries of proved developed reserves."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ExtensionsAndDiscoveriesOfProvedUndevelopedReserves": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ExtensionsAndDiscoveriesOfProvedUndevelopedReserves",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Extensions and discoveries of proved undeveloped reserves",
        "terseLabel": "Extension and discoveries of proved undevelopment reserves",
        "documentation": "Extensions and discoveries of proved undeveloped reserves."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FairValueOfTransferredFinancialAssetsAssociatedFinancialLiabilitiesThatAreNotDerecognisedInTheirEntiretyAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FairValueOfTransferredFinancialAssetsAssociatedFinancialLiabilitiesThatAreNotDerecognisedInTheirEntiretyAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Fair value of transferred financial assets (associated financial liabilities) that are not derecognised in their entirety [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_FederalGovernmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "FederalGovernmentMember",
     "presentation": [
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Federal Government [member]",
        "terseLabel": "Federal Government [member]",
        "documentation": "Federal Government of a Country."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_FertilizersAndCropProtectionProductsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "FertilizersAndCropProtectionProductsMember",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fertilizers and Crop Protection Products [Member]",
        "terseLabel": "Fertilizers and crop protection products [member]",
        "documentation": "Fertilizers and crop protection products."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinanceCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinanceCosts",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfGainsAndLossesOnFinancialInstrumentsDetail": {
       "parentTag": "ifrs-full_FinanceIncomeCost",
       "weight": -1.0,
       "order": 1.0
      },
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail": {
       "parentTag": "ifrs-full_FinanceIncomeCost",
       "weight": -1.0,
       "order": 10.0
      },
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_FinanceIncomeCost",
       "weight": -1.0,
       "order": 22.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome",
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfGainsAndLossesOnFinancialInstrumentsDetail",
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance costs",
        "negatedLabel": "Financial costs",
        "negatedTotalLabel": "Total financial costs"
       }
      }
     },
     "auth_ref": [
      "r442"
     ]
    },
    "ifrs-full_FinanceIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinanceIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfGainsAndLossesOnFinancialInstrumentsDetail": {
       "parentTag": "ifrs-full_FinanceIncomeCost",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail": {
       "parentTag": "ifrs-full_FinanceIncomeCost",
       "weight": 1.0,
       "order": 13.0
      },
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_FinanceIncomeCost",
       "weight": 1.0,
       "order": 21.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome",
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfGainsAndLossesOnFinancialInstrumentsDetail",
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance income",
        "terseLabel": "Financial income",
        "totalLabel": "Total financial income"
       }
      }
     },
     "auth_ref": [
      "r683"
     ]
    },
    "ifrs-full_FinanceIncomeCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinanceIncomeCost",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_ProfitLossBeforeTax",
       "weight": 1.0,
       "order": 20.0
      },
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfGainsAndLossesOnFinancialInstrumentsDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail",
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome",
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfGainsAndLossesOnFinancialInstrumentsDetail",
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finance income (cost)",
        "totalLabel": "Net financial results",
        "terseLabel": "Net financial results"
       }
      }
     },
     "auth_ref": [
      "r683"
     ]
    },
    "ypf_FinancialAndNonFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "FinancialAndNonFinancialAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial And Non Financial Assets",
        "totalLabel": "Total",
        "documentation": "Financial and non-financial assets"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_FinancialAndNonFinancialAssetsLiabilitiesAtAmortizedCostMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "FinancialAndNonFinancialAssetsLiabilitiesAtAmortizedCostMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfGainsAndLossesOnFinancialInstrumentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial And Non Financial Assets Liabilities At Amortized Cost[member]",
        "terseLabel": "Financial and non-financial assets / liabilities at amortized cost [member]",
        "documentation": "Financial and non-financial assets / liabilities at amortized cost."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_FinancialAndNonFinancialLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "FinancialAndNonFinancialLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial And Non Financial Liabilities",
        "totalLabel": "Total",
        "documentation": "Financial and Non Financial Liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinancialAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail": {
       "parentTag": "ypf_FinancialAndNonFinancialAssets",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail",
      "http://www.ypf.com/role/FinancialRiskManagementInformationAboutFinancialAssetsAndLiabilitiesThatAccruesInterestConsideringApplicableRateDetail",
      "http://www.ypf.com/role/FinancialRiskManagementSummaryOfBreakdownOfTheFinancialAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial assets",
        "terseLabel": "Financial assets",
        "totalLabel": "Subtotal 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": [
      "r204",
      "r209",
      "r210",
      "r214",
      "r377",
      "r378",
      "r380",
      "r490"
     ]
    },
    "ifrs-full_FinancialAssetsAtAmortisedCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinancialAssetsAtAmortisedCost",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail": {
       "parentTag": "ifrs-full_FinancialAssets",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial assets at amortised cost",
        "terseLabel": "Financial Assets at amortized 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": [
      "r225",
      "r371"
     ]
    },
    "ifrs-full_FinancialAssetsAtAmortisedCostCategoryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinancialAssetsAtAmortisedCostCategoryMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInFinancialAssetsSummaryOfInvestmentsInFinancialAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial assets at amortised cost, category [member]",
        "verboseLabel": "Investments in financial assets at amortized 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": [
      "r225",
      "r371"
     ]
    },
    "ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinancialAssetsAtFairValueThroughProfitOrLoss",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail": {
       "parentTag": "ifrs-full_FinancialAssets",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfCompanysFinancialAssetsMeasuredAtFairValueDetail",
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial assets at fair value through profit or loss",
        "positiveLabel": "Financial Assets at fair value through profit or loss",
        "verboseLabel": "Financial Assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of financial assets that are measured at fair value and for which gains (losses) are recognised in profit or loss. A financial asset shall be measured at fair value through profit or loss unless it is measured at amortised cost or at fair value through other comprehensive income. A gain (loss) on a financial asset measured at fair value shall be recognised in profit or loss unless it is part of a hedging relationship, it is an investment in an equity instrument for which the entity has elected to present gains and losses in other comprehensive income or it is a financial asset measured at fair value through other comprehensive income. [Refer: At fair value [member]; Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r223",
      "r369"
     ]
    },
    "ifrs-full_FinancialAssetsAtFairValueThroughProfitOrLossCategoryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinancialAssetsAtFairValueThroughProfitOrLossCategoryMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInFinancialAssetsSummaryOfInvestmentsInFinancialAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial assets at fair value through profit or loss, category [member]",
        "terseLabel": "Investments in 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": [
      "r223",
      "r369"
     ]
    },
    "ypf_FinancialAssetsLiabilitiesAtFairValueThroughProfitOrLossMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "FinancialAssetsLiabilitiesAtFairValueThroughProfitOrLossMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfGainsAndLossesOnFinancialInstrumentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Assets Liabilities At Fair Value Through Profit Or Loss [member]",
        "terseLabel": "Financial assets / liabilities at fair value through profit or loss [member]",
        "documentation": "Financial Assets / Liabilities at fair value through profit or loss."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinancialAssetsRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinancialAssetsRecognisedAsOfAcquisitionDate",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsSummaryOfFairValuesOfTheIdentifiableAssetsAcquiredAndTheLiabilitiesAssumedDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial assets recognised as of acquisition date",
        "verboseLabel": "Investments in financial assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount recognised as of the acquisition date for financial assets acquired in a business combination. [Refer: Financial assets; Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r486",
      "r487",
      "r512"
     ]
    },
    "ypf_FinancialCostsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "FinancialCostsAbstract",
     "presentation": [
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Costs [Abstract]",
        "terseLabel": "Financial costs",
        "documentation": "Financial costs."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_FinancialIncomeAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "FinancialIncomeAbstract",
     "presentation": [
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Income [abstract]",
        "terseLabel": "Financial income",
        "documentation": "Financial income."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FinancialLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinancialLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail": {
       "parentTag": "ypf_FinancialAndNonFinancialLiabilities",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfMaturityDatesOfFinancialLiabilitiesDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail",
      "http://www.ypf.com/role/FinancialRiskManagementInformationAboutFinancialAssetsAndLiabilitiesThatAccruesInterestConsideringApplicableRateDetail",
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfMaturityDatesOfFinancialLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial liabilities",
        "terseLabel": "Financial liabilities",
        "totalLabel": "Financial liabilities",
        "verboseLabel": "Subtotal 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": [
      "r204"
     ]
    },
    "ifrs-full_FinancialLiabilitiesAtAmortisedCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinancialLiabilitiesAtAmortisedCost",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial liabilities at amortised cost",
        "terseLabel": "Financial liabilities at amortized cost"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of financial liabilities at amortised cost. The amortised cost is the amount at which financial liabilities 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. [Refer: Financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r226",
      "r372"
     ]
    },
    "ifrs-full_FinancialLiabilitiesAtFairValueThroughProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FinancialLiabilitiesAtFairValueThroughProfitOrLoss",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial liabilities at fair value through profit or loss",
        "terseLabel": "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": [
      "r224",
      "r370"
     ]
    },
    "ypf_FinancialLiabilitiesOtherMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "FinancialLiabilitiesOtherMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Liabilities Other [Member]",
        "terseLabel": "Other Liabilities [member]",
        "documentation": "Financial liiabilities, other."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_FinancialLoansMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "FinancialLoansMember",
     "presentation": [
      "http://www.ypf.com/role/LoansScheduleOfLoansDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Financial Loans [Member]",
        "terseLabel": "Financial loans [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_FinishedGoodsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "FinishedGoodsMember",
     "presentation": [
      "http://www.ypf.com/role/InventoriesSummaryOfInventoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Finished Goods [Member]",
        "terseLabel": "Finished goods [Member]",
        "documentation": "Finished goods."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FixedInterestRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FixedInterestRateMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementInformationAboutFinancialAssetsAndLiabilitiesThatAccruesInterestConsideringApplicableRateDetail",
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fixed interest rate [member]",
        "terseLabel": "Fixed interest rate [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a fixed interest rate. [Refer: Interest rate risk [member]]"
       }
      }
     },
     "auth_ref": [
      "r661"
     ]
    },
    "ifrs-full_FixturesAndFittingsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FixturesAndFittingsMember",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsDetailedInformationAboutPropertyPlantAndEquipmentDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fixtures and fittings [member]",
        "terseLabel": "Furniture, fixtures and installations [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of property, plant and equipment representing fixtures and fittings that are not permanently attached to real property. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r455"
     ]
    },
    "ifrs-full_FloatingInterestRateMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FloatingInterestRateMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementInformationAboutFinancialAssetsAndLiabilitiesThatAccruesInterestConsideringApplicableRateDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Floating interest rate [member]",
        "terseLabel": "Variable interest rate [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a non-fixed interest rate. [Refer: Interest rate risk [member]]"
       }
      }
     },
     "auth_ref": [
      "r661"
     ]
    },
    "ypf_FloatingRateForHydrocarbonExportDuties": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "FloatingRateForHydrocarbonExportDuties",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Floating Rate For Hydrocarbon Export Duties",
        "terseLabel": "Floating rate for hydrocarbon export duties",
        "documentation": "Floating rate for hydrocarbon export duties."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_FloursOilsAndGrainsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "FloursOilsAndGrainsMember",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Flours, oils and grains [member]",
        "terseLabel": "Flours, oils and grains [member]",
        "documentation": "Flours, oils and grains."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ForeignCountriesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ForeignCountriesMember",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfRevenueByGeographicAreaDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Foreign countries [member]",
        "terseLabel": "Rest of the world [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for countries outside the entity's country of domicile. [Refer: Country of domicile [member]]"
       }
      }
     },
     "auth_ref": [
      "r246",
      "r247"
     ]
    },
    "ypf_ForeignCurrencyRiskAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ForeignCurrencyRiskAxis",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfBreakdownOfEffectAVariationOf10InPrevailingExchangeRatesOnNetIncomeDetail",
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfEffectOfA10VariationInThePricesOfInvestmentsInFinancialInstrumentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Foreign Currency Risk [axis]",
        "terseLabel": "Exchange Rate Risk [Axis]",
        "documentation": "Foreign currency risk."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ForeignCurrencyRiskDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ForeignCurrencyRiskDomain",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfBreakdownOfEffectAVariationOf10InPrevailingExchangeRatesOnNetIncomeDetail",
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfEffectOfA10VariationInThePricesOfInvestmentsInFinancialInstrumentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Foreign Currency Risk [domain]",
        "terseLabel": "Foreign Currency Risk [domain]",
        "documentation": "Foreign currency risk domain."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ForeignExchangeRatePercentage": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ForeignExchangeRatePercentage",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Foreign Exchange Rate Percentage",
        "terseLabel": "Exchange rate to convert pesos to U.S. dollars variation",
        "documentation": "Foreign exchange rate percentage."
       }
      }
     },
     "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": [
      "r550",
      "r561",
      "r571",
      "r604"
     ]
    },
    "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": [
      "r550",
      "r561",
      "r571",
      "r604"
     ]
    },
    "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": [
      "r550",
      "r561",
      "r571",
      "r604"
     ]
    },
    "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": [
      "r550",
      "r561",
      "r571",
      "r604"
     ]
    },
    "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": [
      "r550",
      "r561",
      "r571",
      "r604"
     ]
    },
    "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": [
      "r584"
     ]
    },
    "ypf_FreeLngExportAuthorizationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "FreeLngExportAuthorizationMember",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "free LNG export authorization [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_FuelAndEnergyExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "FuelAndEnergyExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail": {
       "parentTag": "ifrs-full_ExpenseByNature",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fuel and energy expense",
        "terseLabel": "Fuel, gas, energy and miscellaneous"
       }
      }
     },
     "auth_ref": [
      "r675"
     ]
    },
    "ypf_FuelOilMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "FuelOilMember",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fuel oil [member]",
        "terseLabel": "Fuel oil [member]",
        "documentation": "Fuel oil."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_FuelsTaxMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "FuelsTaxMember",
     "presentation": [
      "http://www.ypf.com/role/TaxesPayableSummaryOfTaxesPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Fuels Tax [Member]",
        "verboseLabel": "Fuels tax [member]",
        "documentation": "Fuels tax [Member]."
       }
      }
     },
     "auth_ref": []
    },
    "srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesCashInflows": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "FutureNetCashFlowsRelatingToProvedOilAndGasReservesCashInflows",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail": {
       "parentTag": "ypf_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserve",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Future Net Cash Flows Relating to Proved Oil and Gas Reserves, Cash Inflows",
        "terseLabel": "Future cash inflows",
        "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",
     "calculation": {
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail": {
       "parentTag": "ypf_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserve",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Future Net Cash Flows Relating to Proved Oil and Gas Reserves, Development Costs",
        "negatedLabel": "Future development costs",
        "documentation": "Amount of estimated future accumulated cash outflow for costs to be incurred in developing proved oil and gas reserves."
       }
      }
     },
     "auth_ref": [
      "r0"
     ]
    },
    "srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesIncomeTaxExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "FutureNetCashFlowsRelatingToProvedOilAndGasReservesIncomeTaxExpense",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail": {
       "parentTag": "ypf_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserve",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Future Net Cash Flows Relating to Proved Oil and Gas Reserves, Income Tax Expense",
        "negatedLabel": "Future income tax expenses",
        "documentation": "Amount of estimated future accumulated cash outflow for income tax expense for proved oil and gas reserves."
       }
      }
     },
     "auth_ref": [
      "r0"
     ]
    },
    "srt_FutureNetCashFlowsRelatingToProvedOilAndGasReservesProductionCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "FutureNetCashFlowsRelatingToProvedOilAndGasReservesProductionCosts",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail": {
       "parentTag": "ypf_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserve",
       "weight": -1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Future Net Cash Flows Relating to Proved Oil and Gas Reserves, Production Costs",
        "negatedLabel": "Future production costs",
        "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://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail": {
       "parentTag": "ypf_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserve",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Future Net Cash Flows Relating to Proved Oil and Gas Reserves, Ten Percent Annual Discount for Estimated Timing of Cash Flows",
        "negatedLabel": "10% annual discount for estimated timing of cash flows",
        "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_GainLossOfDerecognisedFinancialAssetsAtDateOfTransfer": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GainLossOfDerecognisedFinancialAssetsAtDateOfTransfer",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfGainsAndLossesOnFinancialInstrumentsDetail": {
       "parentTag": "ifrs-full_FinanceIncomeCost",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfGainsAndLossesOnFinancialInstrumentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gain (loss) of derecognised financial assets at date of transfer",
        "terseLabel": "Result from transactions with financial assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The gain (loss) recognised on derecognised financial assets as of the date of the transfer of the assets. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r218"
     ]
    },
    "ypf_GainLossOnChangeInFairValueOfAssetHeldForSale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "GainLossOnChangeInFairValueOfAssetHeldForSale",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/OtherNetOperatingResultsDetail": {
       "parentTag": "ifrs-full_OtherOperatingIncomeExpense",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/OtherNetOperatingResultsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gain Loss On Change In Fair Value Of Asset Held For Sale",
        "verboseLabel": "Result from changes in fair value of assets held for sale",
        "documentation": "Gain loss on change in fair value of asset held for sale."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_GainLossOnDerivativeFinancialInstruments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "GainLossOnDerivativeFinancialInstruments",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfGainsAndLossesOnFinancialInstrumentsDetail": {
       "parentTag": "ifrs-full_FinanceIncomeCost",
       "weight": 1.0,
       "order": 6.0
      },
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail": {
       "parentTag": "ifrs-full_OtherFinanceIncome",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfGainsAndLossesOnFinancialInstrumentsDetail",
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gain (Loss) On Derivative Financial Instruments",
        "verboseLabel": "Result from derivative financial instruments",
        "terseLabel": "Result from derivative financial instruments",
        "documentation": "Gain (loss) on derivative financial instruments."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GainsLossesOnExchangeDifferencesOnTranslationRecognisedInProfitOrLoss",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfBreakdownOfEffectAVariationOf10InPrevailingExchangeRatesOnNetIncomeDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Foreign exchange gain (loss)",
        "terseLabel": "Profit or loss before income tax for fiscal year ended December 31, 2025"
       }
      },
      "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": [
      "r31",
      "r324",
      "r409"
     ]
    },
    "ifrs-full_GainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GainsLossesOnFinancialAssetsAtFairValueThroughProfitOrLoss",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfGainsAndLossesOnFinancialInstrumentsDetail": {
       "parentTag": "ifrs-full_FinanceIncomeCost",
       "weight": 1.0,
       "order": 7.0
      },
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail": {
       "parentTag": "ifrs-full_OtherFinanceIncome",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfGainsAndLossesOnFinancialInstrumentsDetail",
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gains (losses) on financial assets at fair value through profit or loss",
        "definitionGuidance": "Results on financial assets at fair value with changes in profit or loss",
        "verboseLabel": "Result on financial assets at fair value through profit or loss"
       }
      },
      "en": {
       "role": {
        "documentation": "The gains (losses) on financial assets at fair value through profit or loss. [Refer: Financial assets at fair value through profit or loss]"
       }
      }
     },
     "auth_ref": [
      "r201",
      "r374"
     ]
    },
    "ifrs-full_GainsLossesOnNetMonetaryPosition": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GainsLossesOnNetMonetaryPosition",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/LoansEvolutionOfTheLoansDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gains (losses) on net monetary position",
        "terseLabel": "Result from net monetary position"
       }
      },
      "en": {
       "role": {
        "documentation": "The gains (losses) representing the difference resulting from the restatement of non-monetary assets, owners' equity and items in the statement of comprehensive income and the adjustment of index linked assets and liabilities in hyperinflationary reporting."
       }
      }
     },
     "auth_ref": [
      "r57"
     ]
    },
    "ypf_GasAustralSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "GasAustralSAMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gas Austral SA [member]",
        "terseLabel": "Gas Austral [member]",
        "documentation": "Gas Austral SA."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_GasStationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "GasStationsMember",
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesSummaryOfTheMainAssetsHeldForSaleAndAssociatedLiabilitiesDetail",
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesBySalesChannelsDetail",
      "http://www.ypf.com/role/RightOfUseAssetsAdditionalInformationDetail",
      "http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gas Stations [member]",
        "terseLabel": "Gas stations [member]",
        "verboseLabel": "Gas Stations [member]",
        "documentation": "Gas Stations [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_GasarPlanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "GasarPlanMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationAboutRelatedPartyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "GasAr Plan [Member]",
        "documentation": "GasAr Plan"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_GasolinesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "GasolinesMember",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gasolines [member]",
        "terseLabel": "Gasolines [member]",
        "documentation": "Gasolines."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_GeographicalAreasAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GeographicalAreasAxis",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail",
      "http://www.ypf.com/role/IncomeTaxAdditionalInformationDetail",
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfPropertyPlantAndEquipmentByGeographicAreaDetail",
      "http://www.ypf.com/role/RevenuesAdditionalInformationDetail",
      "http://www.ypf.com/role/RevenuesSummaryOfRevenueByGeographicAreaDetail",
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsFromOilAndGasProducingActivitiesDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Geographical areas [axis]",
        "terseLabel": "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": [
      "r248",
      "r457",
      "r478",
      "r484",
      "r504"
     ]
    },
    "ifrs-full_GeographicalAreasDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GeographicalAreasDomain",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail",
      "http://www.ypf.com/role/IncomeTaxAdditionalInformationDetail",
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfPropertyPlantAndEquipmentByGeographicAreaDetail",
      "http://www.ypf.com/role/RevenuesAdditionalInformationDetail",
      "http://www.ypf.com/role/RevenuesSummaryOfRevenueByGeographicAreaDetail",
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsFromOilAndGasProducingActivitiesDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Geographical areas [domain]",
        "terseLabel": "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": [
      "r248",
      "r457",
      "r478",
      "r484",
      "r504"
     ]
    },
    "ypf_GolarHilliCorporationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "GolarHilliCorporationMember",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail",
      "http://www.ypf.com/role/ContractualCommitmentsGrantedGuaranteesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Golar Hilli Corporation [Member]",
        "documentation": "Golar hilli corporation."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_GolarMkiiCorporationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "GolarMkiiCorporationMember",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail",
      "http://www.ypf.com/role/ContractualCommitmentsGrantedGuaranteesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Golar MKII Corporation [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_GolarSubholdingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "GolarSubholdingMember",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Golar Subholding [Member]",
        "terseLabel": "Golar Subholding [Member]",
        "documentation": "Golar subholding."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_GolfoSanJorgeBasinMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "GolfoSanJorgeBasinMember",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Golfo San Jorge Basin [member]",
        "terseLabel": "Golfo San Jorge basin [Member]",
        "documentation": "Golfo san jorge basin."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_GoodsForResaleAtGasStationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "GoodsForResaleAtGasStationsMember",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Goods for resale at gas stations [member]",
        "terseLabel": "Goods for resale at gas stations [member]",
        "documentation": "Goods for resale at gas stations."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_GpaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "GpaMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "GPA [Member]",
        "terseLabel": "GPA [member]",
        "documentation": "GPA."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_GrainsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "GrainsMember",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Grains [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_GrossCapitalizedCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "GrossCapitalizedCost",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesDetail": {
       "parentTag": "ypf_NetCapitalizedCost",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gross Capitalized Cost",
        "totalLabel": "Total capitalized costs",
        "documentation": "Gross capitalized cost."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_GrossCarryingAmountMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GrossCarryingAmountMember",
     "presentation": [
      "http://www.ypf.com/role/IntangibleAssetsSummaryOfChangesInIntangibleAssetsDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail",
      "http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gross carrying amount [member]",
        "terseLabel": "Cost [member]"
       }
      }
     },
     "auth_ref": [
      "r11",
      "r77",
      "r85",
      "r88",
      "r195",
      "r210",
      "r214",
      "r313",
      "r342",
      "r348",
      "r351",
      "r378",
      "r380",
      "r490"
     ]
    },
    "ifrs-full_GrossLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GrossLeaseLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfMaturityDatesOfFinancialLiabilitiesDetail": {
       "parentTag": "ifrs-full_FinancialLiabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfMaturityDatesOfFinancialLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gross lease liabilities",
        "terseLabel": "Lease liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of contractual undiscounted cash flows in relation to lease liabilities before deducting finance charges. [Refer: Lease liabilities]"
       }
      }
     },
     "auth_ref": [
      "r162",
      "r281",
      "r492"
     ]
    },
    "ifrs-full_GrossProfit": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GrossProfit",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_ProfitLossFromOperatingActivities",
       "weight": 1.0,
       "order": 12.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Gross profit",
        "totalLabel": "Gross profit"
       }
      }
     },
     "auth_ref": [
      "r517"
     ]
    },
    "ypf_GuaranteedSecurityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "GuaranteedSecurityAxis",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail",
      "http://www.ypf.com/role/ContractualCommitmentsGrantedGuaranteesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Guaranteed Security [Axis]",
        "documentation": "Guaranteed Security."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_GuaranteedSecurityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "GuaranteedSecurityMember",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail",
      "http://www.ypf.com/role/ContractualCommitmentsGrantedGuaranteesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Guaranteed Security [Member]",
        "documentation": "Guaranteed Security."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_GuaranteesGrantedByThirdParties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "GuaranteesGrantedByThirdParties",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Guarantees Granted by Third Parties",
        "terseLabel": "Guarantees granted by third parties",
        "documentation": "Guarantees Granted by Third Parties"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_GuaranteesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "GuaranteesMember",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsGrantedGuaranteesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Guarantees [member]",
        "terseLabel": "Granted Guarantees [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for formal promises, often in writing, in which one party assumes responsibility for another's debts or responsibilities, or in which the party provides assurance that certain conditions will be fulfilled."
       }
      }
     },
     "auth_ref": [
      "r493"
     ]
    },
    "ypf_HydrocarbonDistributionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "HydrocarbonDistributionMember",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Hydrocarbon Distribution [member]",
        "verboseLabel": "Hydrocarbon Distribution [member]",
        "documentation": "Hydrocarbon distribution."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_HydrocarbonWellAbandonmentProvisionFinancialAccretion": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "HydrocarbonWellAbandonmentProvisionFinancialAccretion",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail": {
       "parentTag": "ifrs-full_FinanceCosts",
       "weight": 1.0,
       "order": 12.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Hydrocarbon Well Abandonment Provision Financial Accretion",
        "negatedLabel": "Hydrocarbon well abandonment provision financial accretion",
        "documentation": "Hydrocarbon well abandonment provision financial accretion."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_HydrocarbonWellsAbandonmentCostsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "HydrocarbonWellsAbandonmentCostsMember",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfIncomeTaxLiabilityParentheticalsDetail",
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Hydrocarbon Wells Abandonment Costs [member]",
        "terseLabel": "Hydrocarbon Wells Abandonmnet Cost [member]",
        "documentation": "Hydrocarbon Wells Abandonment Costs [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_HydrocarbonWellsAbandonmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "HydrocarbonWellsAbandonmentMember",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Hydrocarbon Wells Abandonment [Member]",
        "terseLabel": "Hydrocarbon Wells Abandonmnet [member]",
        "documentation": "Hydrocarbon wells abandonment."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_HydrocarbonWellsAbandonmentObligationsMatureFieldsProjectMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "HydrocarbonWellsAbandonmentObligationsMatureFieldsProjectMember",
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesSummaryOfTheMainAssetsHeldForSaleAndAssociatedLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Hydrocarbon Wells Abandonment Obligations Mature Fields Project [Member]",
        "terseLabel": "Hydrocarbon Wells Abandonment Obligations - Mature Fields Project [Member]",
        "documentation": "Hydrocarbon wells abandonment obligations - mature fields project."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_HydrocarbonWellsAbandonmentObligationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "HydrocarbonWellsAbandonmentObligationsMember",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Hydrocarbon wells abandonment obligations [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_IFRS16Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "IFRS16Member",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "IFRS 16 [Member]",
        "terseLabel": "IFRS 16 [member]",
        "documentation": "IFRS 16"
       }
      }
     },
     "auth_ref": []
    },
    "dei_IcfrAuditorAttestationFlag": {
     "xbrltype": "booleanItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "IcfrAuditorAttestationFlag",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ICFR Auditor Attestation Flag"
       }
      }
     },
     "auth_ref": [
      "r529",
      "r530",
      "r553"
     ]
    },
    "ifrs-full_IdentifiableAssetsAcquiredLiabilitiesAssumed": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IdentifiableAssetsAcquiredLiabilitiesAssumed",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsSummaryOfFairValuesOfTheIdentifiableAssetsAcquiredAndTheLiabilitiesAssumedDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Identifiable assets acquired (liabilities assumed)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount recognised as of the acquisition date for net identifiable assets acquired or liabilities assumed in a business combination. [Refer: Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r486",
      "r487",
      "r512"
     ]
    },
    "ifrs-full_IdentifiableIntangibleAssetsRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IdentifiableIntangibleAssetsRecognisedAsOfAcquisitionDate",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsSummaryOfFairValuesOfTheIdentifiableAssetsAcquiredAndTheLiabilitiesAssumedDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Identifiable intangible assets recognised as of acquisition date",
        "verboseLabel": "Intangible assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount recognised as of the acquisition date for identifiable intangible assets acquired in a business combination. [Refer: Intangible assets other than goodwill; Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r486",
      "r487",
      "r512"
     ]
    },
    "ypf_ImpairmentLossOnPropertyPlantAndEquipmentBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ImpairmentLossOnPropertyPlantAndEquipmentBeforeTax",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsFromOilAndGasProducingActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Impairment loss on property plant and equipment before tax",
        "negatedLabel": "Impairment of property, plant and equipment and inventories write-down",
        "documentation": "Impairment loss on property plant and equipment before tax."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ImpairmentLossRecognisedInProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ImpairmentLossRecognisedInProfitOrLoss",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Impairment loss recognised in profit or loss",
        "verboseLabel": "Impairment of property, plant and equipment and inventories write-down"
       }
      }
     },
     "auth_ref": [
      "r63",
      "r65",
      "r335"
     ]
    },
    "ifrs-full_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipment",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Impairment loss recognised in profit or loss, property, plant and equipment",
        "verboseLabel": "Impairment loss"
       }
      }
     },
     "auth_ref": [
      "r16",
      "r317",
      "r448"
     ]
    },
    "ypf_ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipmentNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ImpairmentLossRecognisedInProfitOrLossPropertyPlantAndEquipmentNetOfTax",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Impairment Loss Recognised In Profit Or Loss Property Plant And Equipment Net of tax",
        "terseLabel": "Impairment Loss Recognised In Profit Or Loss Property Plant And Equipment,Net of tax",
        "documentation": "Impairment Loss Recognised In Profit Or Loss Property Plant And Equipment, Net of tax."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ImpairmentLossReversalOfImpairmentLossRecognisedInProfitOrLoss",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_ProfitLossFromOperatingActivities",
       "weight": -1.0,
       "order": 18.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail",
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Impairment loss (reversal of impairment loss) recognised in profit or loss",
        "negatedLabel": "Reversal / (Impairment) of property, plant and equipment and inventories write-down",
        "verboseLabel": "Net reversal of impairment losses of property, plant and equipment and inventories write-down"
       }
      }
     },
     "auth_ref": [
      "r289",
      "r449"
     ]
    },
    "ifrs-full_ImpairmentOfFinancialAssetsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ImpairmentOfFinancialAssetsAxis",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Impairment of financial assets [axis]",
        "terseLabel": "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": [
      "r398"
     ]
    },
    "ifrs-full_ImpairmentOfFinancialAssetsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ImpairmentOfFinancialAssetsDomain",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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": [
      "r398"
     ]
    },
    "ypf_ImportedDieselMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ImportedDieselMember",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Imported Diesel [Member]",
        "terseLabel": "Imported Diesel [member]",
        "documentation": "Imported diesel."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ImportedGasolineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ImportedGasolineMember",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Imported Gasoline [Member]",
        "terseLabel": "Imported Gasoline [member]",
        "documentation": "Imported gasoline."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ImportsFinancingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ImportsFinancingMember",
     "presentation": [
      "http://www.ypf.com/role/LoansScheduleOfLoansDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Imports Financing [member]",
        "terseLabel": "Imports Financing [member]",
        "documentation": "Imports financing."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_IncomeExpenseForRelatedPartyTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "IncomeExpenseForRelatedPartyTransactions",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationAboutRelatedPartyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income expense for related party transactions",
        "terseLabel": "Income / (Costs)",
        "documentation": "Income expense for related party transactions."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncomeExpenseGainsOrLossesOfFinancialInstrumentsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncomeExpenseGainsOrLossesOfFinancialInstrumentsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Income, expense, gains or losses of financial instruments [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_IncomeFromConstructionContractsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "IncomeFromConstructionContractsMember",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income from construction contracts [member]",
        "terseLabel": "Income from construction contracts [member]",
        "documentation": "Income from construction contracts."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_IncomeFromEquityInterestsInAssociatesAndJointVenturesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "IncomeFromEquityInterestsInAssociatesAndJointVenturesMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income from equity interests in associates and joint ventures [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_IncomeFromServicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "IncomeFromServicesMember",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income from services [member]",
        "terseLabel": "Income from services [member]",
        "documentation": "Income from services."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_IncomeLossOnChangeInValueOfInterestRateBasisSpreadsNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "IncomeLossOnChangeInValueOfInterestRateBasisSpreadsNetOfTax",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfEstimatedImpactOnConsolidatedComprehensiveIncomeThatAnIncreaseOrDecreaseOf100BasisPointsInInterestRateDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income Loss On Change In Value Of Interest Rate Basis Spreads Net Of Tax",
        "verboseLabel": "Profit or loss for the fiscal year December 31, 2025",
        "documentation": "Income loss on change in value of interest rate basis spreads net of tax."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncomeStatementAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncomeStatementAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Profit or loss [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncomeTaxExpenseContinuingOperations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncomeTaxExpenseContinuingOperations",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsFromOilAndGasProducingActivitiesDetail": {
       "parentTag": "ypf_ResultsOfOilAndGasProducingActivities",
       "weight": -1.0,
       "order": 1.0
      },
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_ProfitLoss",
       "weight": -1.0,
       "order": 25.0
      },
      "http://www.ypf.com/role/IncomeTaxSummaryOfReconciliationBetweenTheChargeToNetIncomeForIncomeTaxAndTheOneThatWouldResultFromApplyingThePrevailingTaxRateOnNetIncomeBeforeIncomeTaxArisingFromTheConsolidatedStatementsOfComprehensiveIncoe8f94": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail",
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome",
      "http://www.ypf.com/role/IncomeTaxSummaryOfReconciliationBetweenTheChargeToNetIncomeForIncomeTaxAndTheOneThatWouldResultFromApplyingThePrevailingTaxRateOnNetIncomeBeforeIncomeTaxArisingFromTheConsolidatedStatementsOfComprehensiveIncoe8f94",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsFromOilAndGasProducingActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax expense (income)",
        "negatedLabel": "Income tax",
        "negatedTotalLabel": "Income tax (expense)/ benefit",
        "negatedTerseLabel": "Income tax expense / benefit"
       }
      }
     },
     "auth_ref": [
      "r3",
      "r4",
      "r5",
      "r46",
      "r131",
      "r237",
      "r306",
      "r307",
      "r308",
      "r444"
     ]
    },
    "ypf_IncomeTaxLiabilityRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "IncomeTaxLiabilityRecognisedAsOfAcquisitionDate",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsSummaryOfFairValuesOfTheIdentifiableAssetsAcquiredAndTheLiabilitiesAssumedDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income tax liability recognised as of acquisition date",
        "verboseLabel": "Income tax liability",
        "documentation": "Income tax liability recognised as of acquisition date."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncomeTaxesPaidClassifiedAsOperatingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncomeTaxesPaidClassifiedAsOperatingActivities",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": -1.0,
       "order": 39.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income taxes paid, classified as operating activities",
        "negatedLabel": "Income tax payments"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for income taxes paid, classified as operating activities."
       }
      }
     },
     "auth_ref": [
      "r658"
     ]
    },
    "ifrs-full_IncomeTaxesPaidRefundClassifiedAsOperatingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncomeTaxesPaidRefundClassifiedAsOperatingActivities",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": -1.0,
       "order": 33.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Income taxes paid (refund), classified as operating activities",
        "negatedLabel": "Taxes payable"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash flows from income taxes paid or refunded, classified as operating activities. [Refer: Income taxes paid (refund)]"
       }
      }
     },
     "auth_ref": [
      "r93",
      "r464"
     ]
    },
    "ypf_IncreaseDecreaseChargedToExpensesInTradeReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "IncreaseDecreaseChargedToExpensesInTradeReceivables",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/TradeReceivablesSummaryOfEvolutionOfTheProvisionForDoubtfulTradeReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase Decrease Charged To Expenses In Trade Receivables",
        "terseLabel": "Increases charged to expenses",
        "documentation": "Increase decrease charged to expenses in trade receivables."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_IncreaseDecreaseChargedToIncomeInTradeReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "IncreaseDecreaseChargedToIncomeInTradeReceivables",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/TradeReceivablesSummaryOfEvolutionOfTheProvisionForDoubtfulTradeReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase Decrease Charged To Income In Trade Receivables",
        "negatedLabel": "Decreases charged to income",
        "documentation": "Increase decrease charged to income in trade receivables."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncreaseDecreaseInCashAndCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseInCashAndCashEquivalents",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (decrease) in cash and cash equivalents",
        "totalLabel": "(Decrease) / Increase in cash and cash equivalents"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in cash and cash equivalents after 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": [
      "r95",
      "r298"
     ]
    },
    "ypf_IncreaseDecreaseInEstimatedFutureDevelopmentAndAbandonmentCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "IncreaseDecreaseInEstimatedFutureDevelopmentAndAbandonmentCosts",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInTheStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase Decrease In Estimated Future Development And Abandonment Costs",
        "terseLabel": "Changes in estimated future development and abandonment costs",
        "documentation": "Increase decrease in estimated future development and abandonment costs."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_IncreaseDecreaseInEstimatedReserve": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "IncreaseDecreaseInEstimatedReserve",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase Decrease In Estimated Reserve",
        "terseLabel": "Increase Decrease in estimated reserve",
        "documentation": "Increase Decrease in estimated reserve."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_IncreaseDecreaseInExtensionsDiscoveriesAndImprovedRecovery": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "IncreaseDecreaseInExtensionsDiscoveriesAndImprovedRecovery",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInTheStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase Decrease In Extensions Discoveries And Improved Recovery",
        "terseLabel": "Net changes for extensions, discoveries and improved recovery",
        "documentation": "Increase decrease in extensions discoveries and improved recovery."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_IncreaseDecreaseInIncomeTaxExpenseEstimatesOnFutureCashFlowRelatedToProvedOilAndGasReserves": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "IncreaseDecreaseInIncomeTaxExpenseEstimatesOnFutureCashFlowRelatedToProvedOilAndGasReserves",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInTheStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase decrease in income tax expense estimates on future cash flow related to proved oil and gas reserves",
        "terseLabel": "Net change in income taxes",
        "documentation": "Increase decrease in income tax expense estimates on future cash flow related to proved oil and gas reserves."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_IncreaseDecreaseInReservesAndProductionRates": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "IncreaseDecreaseInReservesAndProductionRates",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInTheStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase Decrease In Reserves And Production Rates",
        "terseLabel": "Changes in reserves and production rates (timing)",
        "documentation": "Increase decrease in reserves and production rates."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_IncreaseDecreaseInRightOfUseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "IncreaseDecreaseInRightOfUseAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase Decrease In Right Of Use Assets",
        "terseLabel": "Right of use assets",
        "documentation": "Increase decrease in right of use assets."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_IncreaseDecreaseInTotalProvedReserve": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "IncreaseDecreaseInTotalProvedReserve",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase Decrease In Total Proved Reserve",
        "terseLabel": "Increase Decrease in total proved reserve",
        "documentation": "Increase Decrease in total proved reserve."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_IncreaseDecreaseOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "IncreaseDecreaseOtherThanThroughBusinessCombinationsPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (decrease) other than through business combinations, property, plant and equipment",
        "terseLabel": "Increases",
        "documentation": "Increase (decrease) other than through business combinations, property, plant and equipment"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_IncreaseDecreaseThroughDisposalsAndReclassificationsRightOfUseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "IncreaseDecreaseThroughDisposalsAndReclassificationsRightOfUseAssets",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase Decrease Through Disposals And Reclassifications Right of Use Assets",
        "terseLabel": "Decreases, reclassifications and other movements",
        "documentation": "Increase Decrease Through Disposals And Reclassifications Right Of Use Assets."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_IncreaseDecreaseThroughInflationAdjustmentIntangibleAssetsAndGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "IncreaseDecreaseThroughInflationAdjustmentIntangibleAssetsAndGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/IntangibleAssetsSummaryOfChangesInIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase decrease through inflation adjustment intangible assets and goodwill",
        "terseLabel": "Adjustment for inflation",
        "documentation": "Increase decrease through inflation adjustment intangible assets and goodwill."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_IncreaseDecreaseThroughInflationAdjustmentPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "IncreaseDecreaseThroughInflationAdjustmentPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionForObsolescenceOfMaterialsAndEquipmentDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionsForImpairmentOfPropertyPlantAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase decrease through inflation adjustment property plant and equipment",
        "terseLabel": "Adjustment for inflation",
        "documentation": "Increase decrease through inflation adjustment property plant and equipment."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_IncreaseDecreaseThroughInflationAdjustmentsRightOfUseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "IncreaseDecreaseThroughInflationAdjustmentsRightOfUseAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase Decrease Through Inflation Adjustments Right of Use Assets",
        "terseLabel": "Adjustment for inflation",
        "documentation": "Increase Decrease Through Inflation Adjustments Right Of Use Assets."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesIntangibleAssetsAndGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseThroughNetExchangeDifferencesIntangibleAssetsAndGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/IntangibleAssetsSummaryOfChangesInIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (decrease) through net exchange differences, intangible assets and goodwill",
        "terseLabel": "Translation effect"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in intangible assets and goodwill resulting from the net exchange differences arising when the financial statements are translated 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 and goodwill]"
       }
      }
     },
     "auth_ref": [
      "r647"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesOtherProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseThroughNetExchangeDifferencesOtherProvisions",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (decrease) through net exchange differences, other provisions",
        "verboseLabel": "Net exchange and translation differences"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in other provisions resulting from foreign currency exchange rate changes on provisions measured in a currency different from the entity's presentation currency. [Refer: Other provisions]"
       }
      }
     },
     "auth_ref": [
      "r644"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseThroughNetExchangeDifferencesPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionForObsolescenceOfMaterialsAndEquipmentDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionsForImpairmentOfPropertyPlantAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (decrease) through net exchange differences, property, plant and equipment",
        "positiveLabel": "Translation effect",
        "definitionGuidance": "Translation effect"
       }
      },
      "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": [
      "r18"
     ]
    },
    "ypf_IncreaseDecreaseThroughNetMonetaryPositionLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "IncreaseDecreaseThroughNetMonetaryPositionLeaseLiabilities",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/LeaseLiabilitiesSummaryOfLeaseLiabilitiesActivityDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase Decrease Through Net Monetary Position Lease Liabilities",
        "terseLabel": "Result from net monetary position",
        "documentation": "Increase decrease through net monetary position, lease liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncreaseDecreaseThroughOtherChangesPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseThroughOtherChangesPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (decrease) through other changes, property, plant and equipment",
        "terseLabel": "Net book value charged to Property, plant and equipment provisions"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in property, plant and equipment resulting from changes that the entity does not separately disclose in the same statement or note. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r15",
      "r319"
     ]
    },
    "ypf_IncreaseDecreaseThroughResultsFromNetMonetaryPositionOtherProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "IncreaseDecreaseThroughResultsFromNetMonetaryPositionOtherProvisions",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase decrease through results from net monetary position other provisions",
        "terseLabel": "Result from net monetary position",
        "documentation": "Increase decrease through results from net monetary position other provisions."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncreaseDecreaseThroughSharebasedPaymentTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseThroughSharebasedPaymentTransactions",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (decrease) through share-based payment transactions, equity",
        "terseLabel": "Settlement of share-based benefit plans"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in equity resulting from share-based payment transactions. [Refer: Equity]"
       }
      }
     },
     "auth_ref": [
      "r406"
     ]
    },
    "ypf_IncreaseDecreaseThroughSharebasedPaymentTransactionsAccrualOfSharebasedBenefitPlansEquity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "IncreaseDecreaseThroughSharebasedPaymentTransactionsAccrualOfSharebasedBenefitPlansEquity",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (decrease) through share-based payment transactions accrual of share-based benefit plans, equity",
        "terseLabel": "Accrual of share-based benefit plans",
        "documentation": "Increase (decrease) through share-based payment transactions accrual of share-based benefit plans, equity."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesIntangibleAssetsAndGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseThroughTransfersAndOtherChangesIntangibleAssetsAndGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/IntangibleAssetsSummaryOfChangesInIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (decrease) through transfers and other changes, intangible assets and goodwill",
        "terseLabel": "Increases"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in intangible assets and goodwill resulting from transfers and changes that the entity does not separately disclose in the same statement or note. [Refer: Intangible assets and goodwill]"
       }
      }
     },
     "auth_ref": [
      "r648"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesOtherProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseThroughTransfersAndOtherChangesOtherProvisions",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (decrease) through transfers and other changes, other provisions",
        "negatedLabel": "Reclassifications and other movements"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in other provisions resulting from transfers and changes that the entity does not separately disclose in the same statement or note. [Refer: Other provisions]"
       }
      }
     },
     "auth_ref": [
      "r644"
     ]
    },
    "ifrs-full_IncreaseDecreaseThroughTransfersAndOtherChangesPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IncreaseDecreaseThroughTransfersAndOtherChangesPropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail",
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase (decrease) through transfers and other changes, property, plant and equipment",
        "verboseLabel": "Increase/(Decrease) of cost of Property, plant and equipment",
        "terseLabel": "Abandonment of hydrocarbon wells cost"
       }
      },
      "en": {
       "role": {
        "documentation": "The increase (decrease) in property, plant and equipment resulting from transfers and changes that the entity does not separately disclose in the same statement or note. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r642"
     ]
    },
    "ypf_IncreaseDecreaseThroughTranslationDifferencesRightOfUseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "IncreaseDecreaseThroughTranslationDifferencesRightOfUseAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase Decrease Through Translation Differences Right of Use Assets",
        "terseLabel": "Translation effect",
        "documentation": "Increase Decrease Through Translation Differences Right Of Use Assets."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_IncreaseInOtherOperatingResults": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "IncreaseInOtherOperatingResults",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase in other operating results",
        "documentation": "Increase in other operating results."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_IncreaseInProvedReservesOnAccountOfProjectPerformance": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "IncreaseInProvedReservesOnAccountOfProjectPerformance",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase In Proved Reserves On Account Of Project Performance",
        "terseLabel": "Increase in proved reserves on account of project performance",
        "verboseLabel": "Increase In Proved Reserves On Account Of Project Performance",
        "documentation": "Increase in proved reserves on account of project performance."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_Increasedecreasethroughbusinesscombinations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "Increasedecreasethroughbusinesscombinations",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "IncreaseDecreaseThroughBusinessCombinations",
        "verboseLabel": "Increases from business combinations",
        "documentation": "Increase decrease through business combinations."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_Increasedecreasethroughrevaluationofcompanies": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "Increasedecreasethroughrevaluationofcompanies",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": -1.0,
       "order": 47.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase decrease through revaluation of companies",
        "negatedLabel": "Result from revaluation of companies",
        "documentation": "increase decrease through revaluation of companies"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_Increasedecreasethroughsaleofcompanies": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "Increasedecreasethroughsaleofcompanies",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": -1.0,
       "order": 48.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increase decrease through sale of companies",
        "negatedLabel": "Result from sale of companies",
        "documentation": "Increase decrease through sale of companies"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_IncreasesChargedToProvisionExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "IncreasesChargedToProvisionExpenses",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increases Charged to Provision Expenses",
        "terseLabel": "Increases charged to expenses",
        "documentation": "Increases charged to provision expenses."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_IncreasesOfBorrowingDueToBusinessCombination": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "IncreasesOfBorrowingDueToBusinessCombination",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/LoansEvolutionOfTheLoansDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increases Of Borrowing Due To Business Combination",
        "terseLabel": "Increases from business combinations",
        "documentation": "Increases of borrowing due to business combination"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_IncreasesOfInventoriesFromBusinessCombinations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "IncreasesOfInventoriesFromBusinessCombinations",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/CostsDetailedInformationOfInventoryCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Increases Of Inventories From Business Combinations",
        "documentation": "Increases of inventories from business combinations"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IndividualAssetsOrCashgeneratingUnitsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IndividualAssetsOrCashgeneratingUnitsAxis",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentAdditionalInformationDetail",
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Individual assets or cash-generating units [axis]",
        "terseLabel": "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": [
      "r70"
     ]
    },
    "ifrs-full_IndividualAssetsOrCashgeneratingUnitsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IndividualAssetsOrCashgeneratingUnitsDomain",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentAdditionalInformationDetail",
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Individual assets or cash-generating units [domain]",
        "terseLabel": "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": [
      "r70"
     ]
    },
    "ifrs-full_IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesAxis",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "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": [
      "r72",
      "r338"
     ]
    },
    "ifrs-full_IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IndividualAssetsOrCashgeneratingUnitsWithSignificantAmountOfGoodwillOrIntangibleAssetsWithIndefiniteUsefulLivesDomain",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Cash-generating units [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Cash-generating units' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r72",
      "r73",
      "r338",
      "r339"
     ]
    },
    "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": [
      "r550",
      "r561",
      "r571",
      "r595",
      "r604",
      "r608",
      "r616"
     ]
    },
    "ypf_IndustriesTransportAndAviationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "IndustriesTransportAndAviationMember",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesBySalesChannelsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Industries, transport and aviation [member]",
        "terseLabel": "Industries, transport and aviation [member]",
        "documentation": "Industries, transport and aviation."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_InflationAdjustment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "InflationAdjustment",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfMovementsWhichAffectedTheValueOfTheInvestmentsInAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Inflation Adjustment",
        "terseLabel": "Adjustment for inflation",
        "documentation": "Inflation adjustment."
       }
      }
     },
     "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": [
      "r614"
     ]
    },
    "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": [
      "r531",
      "r620"
     ]
    },
    "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": [
      "r531",
      "r620"
     ]
    },
    "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": [
      "r531",
      "r620"
     ]
    },
    "ypf_InstallmentTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "InstallmentTypeAxis",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Installment Type [Axis]",
        "terseLabel": "Installment type [axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_InstallmentTypeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "InstallmentTypeMember",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Installment type [Member]",
        "terseLabel": "Installment type [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_InstallmentsOfTheRegularizationRegimesAssociatedWithTheDisputeOverTheCostDeductionForHydrocarbonWellAbandonmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "InstallmentsOfTheRegularizationRegimesAssociatedWithTheDisputeOverTheCostDeductionForHydrocarbonWellAbandonmentMember",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfIncomeTaxLiabilityParentheticalsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Installments of the Regularization Regimes Associated with the Dispute Over the Cost Deduction for Hydrocarbon Well Abandonment [Member]",
        "documentation": "Installments of the regularization regimes associated with the dispute over the cost deduction for hydrocarbon well abandonment."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_InstalmentsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "InstalmentsAxis",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfIncomeTaxLiabilityParentheticalsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Instalments [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_InstalmentsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "InstalmentsDomain",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfIncomeTaxLiabilityParentheticalsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Instalments [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InsuranceExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InsuranceExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail": {
       "parentTag": "ifrs-full_ExpenseByNature",
       "weight": 1.0,
       "order": 14.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Insurance expense",
        "terseLabel": "Insurance"
       }
      }
     },
     "auth_ref": [
      "r675"
     ]
    },
    "ypf_InsuranceOtherOperatingIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "InsuranceOtherOperatingIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/OtherNetOperatingResultsDetail": {
       "parentTag": "ifrs-full_OtherOperatingIncomeExpense",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/OtherNetOperatingResultsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Insurance Other Operating Income",
        "terseLabel": "Insurance",
        "documentation": "Insurance other operating income."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IntangibleAssetsAndGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IntangibleAssetsAndGoodwill",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/IntangibleAssetsScheduleOfIntangibleAssetsDetail",
      "http://www.ypf.com/role/IntangibleAssetsSummaryOfChangesInIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Intangible assets and goodwill",
        "terseLabel": "Net book value of intangible assets",
        "periodStartLabel": "Beginning balance",
        "periodEndLabel": "Ending balance"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of intangible assets and goodwill held by the entity. [Refer: Goodwill; Intangible assets other than goodwill]"
       }
      }
     },
     "auth_ref": [
      "r678"
     ]
    },
    "ifrs-full_IntangibleAssetsOtherThanGoodwill": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IntangibleAssetsOtherThanGoodwill",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/IntangibleAssetsScheduleOfIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Intangible assets other than goodwill",
        "terseLabel": "Intangible assets",
        "verboseLabel": "Total"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of identifiable non-monetary assets without physical substance. This amount does not include goodwill. [Refer: Goodwill]"
       }
      }
     },
     "auth_ref": [
      "r79",
      "r344",
      "r411"
     ]
    },
    "ifrs-full_InterestCostsCapitalised": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InterestCostsCapitalised",
     "presentation": [
      "http://www.ypf.com/role/LeaseLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest costs capitalised",
        "terseLabel": "Financial expenses on leases capitalized in Property, plant and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of interest costs that an entity incurs in connection with the borrowing of funds that are directly attributable to the acquisition, construction or production of a qualifying asset and which form part of the cost of that asset."
       }
      }
     },
     "auth_ref": [
      "r675"
     ]
    },
    "ifrs-full_InterestExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InterestExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest expense",
        "negatedLabel": "Interest loss"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of expense arising from interest."
       }
      }
     },
     "auth_ref": [
      "r130",
      "r234",
      "r243"
     ]
    },
    "ifrs-full_InterestExpenseOnLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InterestExpenseOnLeaseLiabilities",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/LeaseLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest expense on lease liabilities",
        "terseLabel": "Financial expenses on leases included in Financial Accreation"
       }
      }
     },
     "auth_ref": [
      "r155",
      "r274"
     ]
    },
    "ypf_InterestExpensesOnLeaseLiabilitiesIncurred": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "InterestExpensesOnLeaseLiabilitiesIncurred",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/LeaseLiabilitiesAdditionalInformationDetail",
      "http://www.ypf.com/role/LeaseLiabilitiesSummaryOfLeaseLiabilitiesActivityDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Expenses On Lease Liabilities Incurred",
        "verboseLabel": "Financial expenses resulting from lease contracts",
        "terseLabel": "Financial accretions",
        "documentation": "Interest expenses on lease liabilities incurred."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InterestIncomeOnCashAndCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InterestIncomeOnCashAndCashEquivalents",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail": {
       "parentTag": "ifrs-full_FinanceIncome",
       "weight": 1.0,
       "order": 16.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest income on cash and cash equivalents",
        "terseLabel": "Interest on cash and cash equivalents and investments in financial assets"
       }
      }
     },
     "auth_ref": [
      "r675"
     ]
    },
    "ypf_InterestIncomeOnTradeReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "InterestIncomeOnTradeReceivables",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail": {
       "parentTag": "ifrs-full_FinanceIncome",
       "weight": 1.0,
       "order": 15.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest Income On Trade Receivables",
        "terseLabel": "Interest on trade receivables",
        "documentation": "Interest income on trade receivables."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InterestPaidClassifiedAsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InterestPaidClassifiedAsFinancingActivities",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow",
      "http://www.ypf.com/role/LoansEvolutionOfTheLoansDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest paid, classified as financing activities",
        "negatedLabel": "Payments of interests",
        "negatedTerseLabel": "Payments of interest"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for interest paid, classified as financing activities."
       }
      }
     },
     "auth_ref": [
      "r92"
     ]
    },
    "ifrs-full_InterestRateRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InterestRateRiskMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail",
      "http://www.ypf.com/role/FinancialRiskManagementInformationAboutFinancialAssetsAndLiabilitiesThatAccruesInterestConsideringApplicableRateDetail",
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfEstimatedImpactOnConsolidatedComprehensiveIncomeThatAnIncreaseOrDecreaseOf100BasisPointsInInterestRateDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest rate risk [member]",
        "terseLabel": "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": [
      "r172",
      "r173",
      "r174",
      "r175",
      "r230"
     ]
    },
    "ifrs-full_InterestReceivedClassifiedAsInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InterestReceivedClassifiedAsInvestingActivities",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": 1.0,
       "order": 14.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest received, classified as investing activities",
        "terseLabel": "Interests received from financial assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash inflow from interest received, classified as investing activities."
       }
      }
     },
     "auth_ref": [
      "r92"
     ]
    },
    "ifrs-full_InterestRevenueExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InterestRevenueExpense",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest income (expense)",
        "terseLabel": "Net interest income (loss)"
       }
      }
     },
     "auth_ref": [
      "r238",
      "r243",
      "r683"
     ]
    },
    "ifrs-full_InternalCreditGradesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InternalCreditGradesAxis",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Internal credit grades [axis]",
        "terseLabel": "Internal credit grades [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": [
      "r489",
      "r496",
      "r513"
     ]
    },
    "ifrs-full_InternalCreditGradesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InternalCreditGradesDomain",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Internal credit grades [domain]",
        "terseLabel": "Internal credit grades [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Internal credit grades' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r489",
      "r496",
      "r513"
     ]
    },
    "ypf_InternationalMarketMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "InternationalMarketMember",
     "presentation": [
      "http://www.ypf.com/role/RevenuesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "International market [member]",
        "terseLabel": "International market [member]",
        "documentation": "International market [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_Inventories": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "Inventories",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssets",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/CostsDetailedInformationOfInventoryCostsDetail",
      "http://www.ypf.com/role/InventoriesSummaryOfInventoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current inventories",
        "terseLabel": "Inventories",
        "periodStartLabel": "Inventories at the beginning of the fiscal year",
        "negatedPeriodEndLabel": "Inventories at the end of the fiscal year"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current inventories. [Refer: Inventories]"
       }
      }
     },
     "auth_ref": [
      "r28",
      "r296",
      "r412",
      "r519"
     ]
    },
    "ypf_InventoryInflationAdjustment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "InventoryInflationAdjustment",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/CostsDetailedInformationOfInventoryCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Inventory inflation adjustment",
        "terseLabel": "Adjustment for inflation",
        "documentation": "Inventory inflation adjustment."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_InventoryProductionCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "InventoryProductionCosts",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/CostsDetailedInformationOfInventoryCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Inventory Production Costs",
        "terseLabel": "Production costs",
        "documentation": "Inventory production costs."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_InventoryPurchases": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "InventoryPurchases",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/CostsDetailedInformationOfInventoryCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Inventory Purchases",
        "terseLabel": "Purchases",
        "documentation": "Inventory purchases."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InventoryRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InventoryRecognisedAsOfAcquisitionDate",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsSummaryOfFairValuesOfTheIdentifiableAssetsAcquiredAndTheLiabilitiesAssumedDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Inventory recognised as of acquisition date",
        "verboseLabel": "Inventories"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount recognised as of the acquisition date for inventory acquired in a business combination. [Refer: Inventories; Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r486",
      "r487",
      "r512"
     ]
    },
    "ypf_InventoryTranslationEffect": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "InventoryTranslationEffect",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/CostsDetailedInformationOfInventoryCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Inventory Translation Effect",
        "terseLabel": "Translation effect",
        "documentation": "Inventory translation effect."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_InvestmentInFinancialAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "InvestmentInFinancialAssetsMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementSummaryOfMaximumExposureToCreditRiskDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment in financial assets [Member]",
        "terseLabel": "Investments in financial assets [member]",
        "documentation": "Investment in financial assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InvestmentIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InvestmentIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/IncomeTaxSummaryOfReconciliationBetweenTheChargeToNetIncomeForIncomeTaxAndTheOneThatWouldResultFromApplyingThePrevailingTaxRateOnNetIncomeBeforeIncomeTaxArisingFromTheConsolidatedStatementsOfComprehensiveIncoe8f94": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": -1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfReconciliationBetweenTheChargeToNetIncomeForIncomeTaxAndTheOneThatWouldResultFromApplyingThePrevailingTaxRateOnNetIncomeBeforeIncomeTaxArisingFromTheConsolidatedStatementsOfComprehensiveIncoe8f94"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment income",
        "terseLabel": "Income on investments in associates and joint ventures"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of investment income, such as interest and dividends."
       }
      }
     },
     "auth_ref": [
      "r44",
      "r683"
     ]
    },
    "ypf_InvestmentPromotionRegimeForTheExploitationOfHydrocarbonsDecreeNo.9292013Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "InvestmentPromotionRegimeForTheExploitationOfHydrocarbonsDecreeNo.9292013Member",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investment Promotion Regime for the Exploitation of Hydrocarbons Decree No. 929 2013 [Member]",
        "terseLabel": "Investment Promotion Regime for the Exploitation of Hydrocarbons - Decree No. 929/2013 [member]",
        "documentation": "Investment promotion regime for the exploitation of hydrocarbons - Decree no. 929/2013."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InvestmentsAccountedForUsingEquityMethodAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InvestmentsAccountedForUsingEquityMethodAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments accounted for using equity method [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_InvestmentsAndFinancialAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "InvestmentsAndFinancialAssetsMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments and financial assets [member]",
        "verboseLabel": "Investments in financial assets [member]",
        "documentation": "Investments and financial assets."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InvestmentsInAssociates": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InvestmentsInAssociates",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfInvestmentsInAssociatesAndJointVenturesAtAnAggregateLevelDetail": {
       "parentTag": "ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfInvestmentsInAssociatesAndJointVenturesAtAnAggregateLevelDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments in associates",
        "terseLabel": "Amount of investments in associates"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of investments in associates in an entity's separate financial statements. [Refer: Total for all associates [member]]"
       }
      }
     },
     "auth_ref": [
      "r47"
     ]
    },
    "ypf_InvestmentsInAssociatesAndJointVenturesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "InvestmentsInAssociatesAndJointVenturesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments In Associates And Joint Ventures [abstract]",
        "documentation": "Investments In Associates And Joint Ventures [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_InvestmentsInFinancialAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "InvestmentsInFinancialAssetsMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfCompanysFinancialAssetsMeasuredAtFairValueDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments In Financial Assets [Member]",
        "verboseLabel": "Investments in financial assets [member]",
        "documentation": "Investments in financial assets."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_InvestmentsInJointVentures": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InvestmentsInJointVentures",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfInvestmentsInAssociatesAndJointVenturesAtAnAggregateLevelDetail": {
       "parentTag": "ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfInvestmentsInAssociatesAndJointVenturesAtAnAggregateLevelDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments in joint ventures",
        "terseLabel": "Amount of investments in joint ventures"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of investments in joint ventures in an entity's separate financial statements. [Refer: Total for all joint ventures [member]]"
       }
      }
     },
     "auth_ref": [
      "r47"
     ]
    },
    "ifrs-full_InvestmentsInJointVenturesAccountedForUsingEquityMethod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InvestmentsInJointVenturesAccountedForUsingEquityMethod",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 12.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments in joint ventures accounted for using equity method",
        "terseLabel": "Investments in associates and joint ventures"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of investments in joint ventures accounted for using the equity method. [Refer: Total for all joint ventures [member]; Investments accounted for using equity method]"
       }
      }
     },
     "auth_ref": [
      "r678"
     ]
    },
    "ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociates": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InvestmentsInSubsidiariesJointVenturesAndAssociates",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfInvestmentsInAssociatesAndJointVenturesAtAnAggregateLevelDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfInvestmentsInAssociatesAndJointVenturesAtAnAggregateLevelDetail",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfMovementsWhichAffectedTheValueOfTheInvestmentsInAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfTheInvestmentsInAssociatesAndJointVenturesOnADisaggregatedBasisDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments in subsidiaries, joint ventures and associates reported in separate financial statements",
        "totalLabel": "Total investments",
        "periodStartLabel": "Balance at the beginning of the year",
        "periodEndLabel": "Balance at the end of the year"
       }
      },
      "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": [
      "r47"
     ]
    },
    "ifrs-full_InvestmentsInSubsidiariesJointVenturesAndAssociatesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "InvestmentsInSubsidiariesJointVenturesAndAssociatesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Investments in subsidiaries, joint ventures and associates [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_InvestorsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "InvestorsAxis",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail",
      "http://www.ypf.com/role/ContractualCommitmentsGrantedGuaranteesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investors [Axis]",
        "documentation": "Investors."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_InvestorsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "InvestorsDomain",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail",
      "http://www.ypf.com/role/ContractualCommitmentsGrantedGuaranteesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Investors [Domain]",
        "documentation": "Investors."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_IssueOfDebtNotesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "IssueOfDebtNotesMember",
     "presentation": [
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Issue Of Debt Notes [Member]",
        "terseLabel": "Issue of Debt Notes [Member]",
        "documentation": "Issue of debt notes."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_IssuedCapital": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IssuedCapital",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": 1.0,
       "order": 20.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Issued capital",
        "verboseLabel": "Capital"
       }
      },
      "en": {
       "role": {
        "documentation": "The nominal value of capital issued."
       }
      }
     },
     "auth_ref": [
      "r515",
      "r522"
     ]
    },
    "ifrs-full_IssuedCapitalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "IssuedCapitalMember",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Issued capital [member]",
        "terseLabel": "Capital [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a component of equity representing issued capital."
       }
      }
     },
     "auth_ref": [
      "r407"
     ]
    },
    "ypf_IvaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "IvaMember",
     "presentation": [
      "http://www.ypf.com/role/TaxesPayableSummaryOfTaxesPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "IVA [Member]",
        "terseLabel": "VAT [member]",
        "documentation": "IVA [Member]."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_JOMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "JOMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "J O [Member]",
        "terseLabel": "JO [member]",
        "documentation": "JO."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_JanuaryTwentyThousandThirtyFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "JanuaryTwentyThousandThirtyFourMember",
     "presentation": [
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "January Twenty Thousand Thirty Four [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_JetFuelMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "JetFuelMember",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Jet Fuel [member]",
        "terseLabel": "Jet fuel [member]",
        "documentation": "Jet fuel."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_JointOperationsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "JointOperationsAxis",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail",
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationOfAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Joint operations [axis]",
        "terseLabel": "Joint operations [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": [
      "r135"
     ]
    },
    "ifrs-full_JointOperationsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "JointOperationsDomain",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail",
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationOfAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Joint operations [domain]",
        "terseLabel": "Joint operations [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Joint operations' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r135"
     ]
    },
    "ifrs-full_JointOperationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "JointOperationsMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationOfAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total for all joint operations [member]",
        "terseLabel": "Joint operations and consortiums [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for joint arrangements whereby the parties that have joint control of the arrangement have rights to the assets, and obligations for the liabilities, relating to the arrangement."
       }
      }
     },
     "auth_ref": [
      "r135"
     ]
    },
    "ypf_JointVenturesAndAssociatesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "JointVenturesAndAssociatesMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Joint ventures and associates [member]",
        "terseLabel": "Joint Ventures and Associates [Member]",
        "documentation": "Joint ventures and associates."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_JointVenturesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "JointVenturesAxis",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/AcquisitionsAndDisposalsSummaryOfFairValuesOfTheIdentifiableAssetsAcquiredAndTheLiabilitiesAssumedDetail",
      "http://www.ypf.com/role/AcquisitionsAndDisposalsTables",
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesAdditionalInformationDetail",
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfTheInvestmentsInAssociatesAndJointVenturesOnADisaggregatedBasisDetail",
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Joint ventures [axis]",
        "terseLabel": "Joint ventures [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": [
      "r51",
      "r55",
      "r134",
      "r383"
     ]
    },
    "ifrs-full_JointVenturesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "JointVenturesDomain",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/AcquisitionsAndDisposalsSummaryOfFairValuesOfTheIdentifiableAssetsAcquiredAndTheLiabilitiesAssumedDetail",
      "http://www.ypf.com/role/AcquisitionsAndDisposalsTables",
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesAdditionalInformationDetail",
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfTheInvestmentsInAssociatesAndJointVenturesOnADisaggregatedBasisDetail",
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Joint ventures [domain]",
        "terseLabel": "Joint ventures [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Joint ventures' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r51",
      "r55",
      "r134",
      "r383"
     ]
    },
    "ifrs-full_JointVenturesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "JointVenturesMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total for all joint ventures [member]",
        "terseLabel": "Joint Ventures [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for joint arrangements whereby the parties that have joint control of the arrangement have rights to the net assets of the arrangement."
       }
      }
     },
     "auth_ref": [
      "r51",
      "r55",
      "r134",
      "r383"
     ]
    },
    "ifrs-full_JointVenturesWhereEntityIsVenturerMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "JointVenturesWhereEntityIsVenturerMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Joint ventures where entity is venturer [member]",
        "terseLabel": "Joint ventures [Member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for joint ventures in which the entity is a joint venturer. A venturer is a party to a joint venture and has joint control over that joint venture. [Refer: Total for all joint ventures [member]]"
       }
      }
     },
     "auth_ref": [
      "r42",
      "r331"
     ]
    },
    "ifrs-full_KeyManagementPersonnelCompensation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "KeyManagementPersonnelCompensation",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesSummaryOfCompensationOfKeyManagementPersonnelDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesSummaryOfCompensationOfKeyManagementPersonnelDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Key management personnel compensation",
        "totalLabel": "Total"
       }
      }
     },
     "auth_ref": [
      "r39",
      "r328"
     ]
    },
    "ifrs-full_KeyManagementPersonnelCompensationPostemploymentBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "KeyManagementPersonnelCompensationPostemploymentBenefits",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesSummaryOfCompensationOfKeyManagementPersonnelDetail": {
       "parentTag": "ifrs-full_KeyManagementPersonnelCompensation",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesSummaryOfCompensationOfKeyManagementPersonnelDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Key management personnel compensation, post-employment benefits",
        "terseLabel": "Post-retirement benefits"
       }
      }
     },
     "auth_ref": [
      "r36"
     ]
    },
    "ifrs-full_KeyManagementPersonnelCompensationSharebasedPayment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "KeyManagementPersonnelCompensationSharebasedPayment",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesSummaryOfCompensationOfKeyManagementPersonnelDetail": {
       "parentTag": "ifrs-full_KeyManagementPersonnelCompensation",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesSummaryOfCompensationOfKeyManagementPersonnelDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Key management personnel compensation, share-based payment",
        "terseLabel": "Share-based benefits"
       }
      }
     },
     "auth_ref": [
      "r38"
     ]
    },
    "ifrs-full_KeyManagementPersonnelCompensationShorttermEmployeeBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "KeyManagementPersonnelCompensationShorttermEmployeeBenefits",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesSummaryOfCompensationOfKeyManagementPersonnelDetail": {
       "parentTag": "ifrs-full_KeyManagementPersonnelCompensation",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesSummaryOfCompensationOfKeyManagementPersonnelDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Key management personnel compensation, short-term employee benefits",
        "terseLabel": "Short-term employee benefits"
       }
      }
     },
     "auth_ref": [
      "r35"
     ]
    },
    "ifrs-full_KeyManagementPersonnelCompensationTerminationBenefits": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "KeyManagementPersonnelCompensationTerminationBenefits",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesSummaryOfCompensationOfKeyManagementPersonnelDetail": {
       "parentTag": "ifrs-full_KeyManagementPersonnelCompensation",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesSummaryOfCompensationOfKeyManagementPersonnelDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Key management personnel compensation, termination benefits",
        "terseLabel": "Termination benefits"
       }
      }
     },
     "auth_ref": [
      "r37"
     ]
    },
    "ypf_LNGandIntegratedGasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LNGandIntegratedGasMember",
     "presentation": [
      "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail",
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail",
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesBySalesChannelsDetail",
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "LNG and Integrated Gas [Member]",
        "terseLabel": "LNG and Integrated Gas [Member]",
        "verboseLabel": "Gas and power [member]",
        "documentation": "LNG\u00a0and Integrated gas."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_LaAmargaChicaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LaAmargaChicaMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "La Amarga Chica [Member]",
        "terseLabel": "La Amarga Chica [member]",
        "documentation": "La Amarga Chica."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_LaAngosturaSurIMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LaAngosturaSurIMember",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "La Angostura Sur I [Member]",
        "terseLabel": "La Angostura Sur I [Member]",
        "documentation": "La angostura sur I."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_LaAngosturaSurIiMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LaAngosturaSurIiMember",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "La Angostura Sur II [Member]",
        "terseLabel": "La Angostura Sur II [Member]",
        "documentation": "La angostura sur II."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_LaCaleraMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LaCaleraMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "La Calera [Member]",
        "terseLabel": "La Calera [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_LaEscalonadaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LaEscalonadaMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "La Escalonada [Member]",
        "terseLabel": "La Escalonada [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LandAndBuildingsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LandAndBuildingsMember",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentDetail",
      "http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Land and buildings [member]",
        "terseLabel": "Land and buildings [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of property, plant and equipment representing land and depreciable buildings and similar structures for use in operations. [Refer: Buildings; Land; Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r453"
     ]
    },
    "ypf_LargeInvestmentIncentiveRegimeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LargeInvestmentIncentiveRegimeMember",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Large Investment Incentive Regime [Member]",
        "documentation": "Large investment incentive regime."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_LasTacanasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LasTacanasMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Las Tacanas [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_LaterThanFiveYearsAndNotLaterThanNineYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LaterThanFiveYearsAndNotLaterThanNineYearsMember",
     "presentation": [
      "http://www.ypf.com/role/LeaseLiabilitiesSummaryOfLeaseLiabilitiesAndDiscountRatesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Later Than Five Years And Not Later Than Nine Years [Member]",
        "terseLabel": "5 to 9 years [member]",
        "documentation": "Later than five years and not Later than nine years."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LaterThanFiveYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LaterThanFiveYearsMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfMaturityDatesOfFinancialLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Later than five years [member]",
        "terseLabel": "More than 5 years [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than five years."
       }
      }
     },
     "auth_ref": [
      "r163",
      "r164",
      "r177",
      "r283",
      "r286",
      "r491",
      "r494",
      "r498"
     ]
    },
    "ifrs-full_LaterThanFourYearsAndNotLaterThanFiveYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LaterThanFourYearsAndNotLaterThanFiveYearsMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfMaturityDatesOfFinancialLiabilitiesDetail",
      "http://www.ypf.com/role/LeaseLiabilitiesSummaryOfLeaseLiabilitiesAndDiscountRatesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Later than four years and not later than five years [member]",
        "terseLabel": "4 - 5 years [member]",
        "verboseLabel": "4 to 5 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": [
      "r163",
      "r164",
      "r177",
      "r491",
      "r498",
      "r675"
     ]
    },
    "ypf_LaterThanNineYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LaterThanNineYearsMember",
     "presentation": [
      "http://www.ypf.com/role/LeaseLiabilitiesSummaryOfLeaseLiabilitiesAndDiscountRatesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Later Than Nine Years [Member]",
        "terseLabel": "More than 9 years [member]",
        "documentation": "Later than nine years."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LaterThanOneYearAndNotLaterThanTwoYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LaterThanOneYearAndNotLaterThanTwoYearsMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfMaturityDatesOfFinancialLiabilitiesDetail",
      "http://www.ypf.com/role/LeaseLiabilitiesSummaryOfLeaseLiabilitiesAndDiscountRatesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Later than one year and not later than two years [member]",
        "presentationGuidance": "1 - 2 years [member]",
        "verboseLabel": "1 to 2 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": [
      "r163",
      "r164",
      "r177",
      "r491",
      "r498",
      "r675"
     ]
    },
    "ifrs-full_LaterThanSixMonthsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LaterThanSixMonthsMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementSummaryOfBreakdownOfTheFinancialAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Later than six months [member]",
        "terseLabel": "More than six months past due [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of later than six months."
       }
      }
     },
     "auth_ref": [
      "r675"
     ]
    },
    "ifrs-full_LaterThanThreeYearsAndNotLaterThanFourYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LaterThanThreeYearsAndNotLaterThanFourYearsMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfMaturityDatesOfFinancialLiabilitiesDetail",
      "http://www.ypf.com/role/LeaseLiabilitiesSummaryOfLeaseLiabilitiesAndDiscountRatesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Later than three years and not later than four years [member]",
        "presentationGuidance": "3 - 4 years [member]",
        "verboseLabel": "3 to 4 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": [
      "r163",
      "r164",
      "r177",
      "r491",
      "r498",
      "r675"
     ]
    },
    "ifrs-full_LaterThanTwoYearsAndNotLaterThanThreeYearsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LaterThanTwoYearsAndNotLaterThanThreeYearsMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfMaturityDatesOfFinancialLiabilitiesDetail",
      "http://www.ypf.com/role/LeaseLiabilitiesSummaryOfLeaseLiabilitiesAndDiscountRatesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Later than two years and not later than three years [member]",
        "presentationGuidance": "2 - 3 years [member]",
        "verboseLabel": "2 to 3 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": [
      "r163",
      "r164",
      "r177",
      "r491",
      "r498",
      "r675"
     ]
    },
    "ypf_LawsuitsOtherOperatingExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LawsuitsOtherOperatingExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/OtherNetOperatingResultsDetail": {
       "parentTag": "ifrs-full_OtherOperatingIncomeExpense",
       "weight": -1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/OtherNetOperatingResultsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lawsuits Other Operating Expense",
        "negatedLabel": "Lawsuits",
        "documentation": "Lawsuits other operating expense."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LeaseLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/LeaseLiabilitiesSummaryOfLeaseLiabilitiesActivityDetail",
      "http://www.ypf.com/role/LeaseLiabilitiesSummaryOfLeaseLiabilitiesAndDiscountRatesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease liabilities",
        "terseLabel": "Lease liabilities",
        "periodStartLabel": "Balance at the beginning of the year",
        "periodEndLabel": "Balance at the end of year"
       }
      },
      "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": [
      "r153"
     ]
    },
    "ifrs-full_LeaseLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LeaseLiabilitiesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease liabilities [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LeaseLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LeaseLiabilitiesMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lease liabilities [member]",
        "terseLabel": "Lease liabilities [Member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for lease liabilities. [Refer: Lease liabilities]"
       }
      }
     },
     "auth_ref": [
      "r470",
      "r472"
     ]
    },
    "ypf_LegalEntitiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LegalEntitiesAxis",
     "presentation": [
      "http://www.ypf.com/role/ContingentAssetsAndLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Legal entities [Axis]",
        "documentation": "Legal entities"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_LegalEntitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LegalEntitiesMember",
     "presentation": [
      "http://www.ypf.com/role/ContingentAssetsAndLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Legal entities [Member]",
        "documentation": "Legal entities"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LegalProceedingsContingentLiabilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LegalProceedingsContingentLiabilityMember",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Legal proceedings contingent liability [member]",
        "terseLabel": "Provision for lawsuits and contingencies [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a contingent liability for legal proceedings. [Refer: Classes of contingent liabilities [domain]]"
       }
      }
     },
     "auth_ref": [
      "r463"
     ]
    },
    "ypf_LegalReservesAsAPercentageOfNetProfitPriorYearAdjustmentsAndTransferFromOtherComprehensiveIncomeMinimum": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LegalReservesAsAPercentageOfNetProfitPriorYearAdjustmentsAndTransferFromOtherComprehensiveIncomeMinimum",
     "presentation": [
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Legal Reserves As A Percentage Of Net Profit Prior Year Adjustments And Transfer From Other Comprehensive Income Minimum",
        "terseLabel": "Legal reserves as a percentage of net profit prior year adjustments and transfer from other comprehensive income minimum",
        "documentation": "Legal reserves as a percentage of net profit prior year adjustments and transfer from other comprehensive income minimum."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_LetterOfCreditFacilityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LetterOfCreditFacilityAxis",
     "presentation": [
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Letter of credit facility [Axis]",
        "documentation": "Letter of credit facility."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_LetterOfCreditFacilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LetterOfCreditFacilityMember",
     "presentation": [
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Letter of credit facility [Member]",
        "documentation": "Letter of credit facility."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_Level1OfFairValueHierarchyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "Level1OfFairValueHierarchyMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategoryAdditionalInformationDetail",
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfCompanysFinancialAssetsMeasuredAtFairValueDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Level 1 of fair value hierarchy [member]",
        "terseLabel": "Level 1 [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": [
      "r26",
      "r68",
      "r71",
      "r140",
      "r337",
      "r388"
     ]
    },
    "ifrs-full_Level2OfFairValueHierarchyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "Level2OfFairValueHierarchyMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfCompanysFinancialAssetsMeasuredAtFairValueDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Level 2 of fair value hierarchy [member]",
        "terseLabel": "Level 2 [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": [
      "r68",
      "r71",
      "r140",
      "r337",
      "r388"
     ]
    },
    "ifrs-full_Level3OfFairValueHierarchyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "Level3OfFairValueHierarchyMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfCompanysFinancialAssetsMeasuredAtFairValueDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Level 3 of fair value hierarchy [member]",
        "verboseLabel": "Level 3 [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": [
      "r68",
      "r71",
      "r140",
      "r337",
      "r388"
     ]
    },
    "ifrs-full_LevelsOfFairValueHierarchyAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LevelsOfFairValueHierarchyAxis",
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategoryAdditionalInformationDetail",
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfCompanysFinancialAssetsMeasuredAtFairValueDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Levels of fair value hierarchy [axis]",
        "terseLabel": "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": [
      "r26",
      "r140",
      "r388"
     ]
    },
    "ifrs-full_LevelsOfFairValueHierarchyDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LevelsOfFairValueHierarchyDomain",
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategoryAdditionalInformationDetail",
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfCompanysFinancialAssetsMeasuredAtFairValueDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Levels of fair value hierarchy [domain]",
        "terseLabel": "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": [
      "r26",
      "r140",
      "r388"
     ]
    },
    "ifrs-full_Liabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "Liabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAndLiabilities",
       "weight": 1.0,
       "order": 33.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesSummaryOfTheMainAssetsHeldForSaleAndAssociatedLiabilitiesDetail",
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationOfAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities",
        "totalLabel": "TOTAL LIABILITIES",
        "terseLabel": "Total liabilities",
        "definitionGuidance": "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": [
      "r139",
      "r140",
      "r141",
      "r238",
      "r242",
      "r387",
      "r388",
      "r422"
     ]
    },
    "ifrs-full_LiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LiabilitiesAbstract",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities [abstract]",
        "terseLabel": "LIABILITIES"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_LiabilitiesForAgreementsCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LiabilitiesForAgreementsCurrent",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/OtherLiabilitiesDetailsOfOtherLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities For Agreements Current",
        "documentation": "Liabilities for agreements current"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_LiabilitiesForAgreementsNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LiabilitiesForAgreementsNoncurrent",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/OtherLiabilitiesDetailsOfOtherLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities For Agreements Noncurrent",
        "documentation": "Liabilities for agreements noncurrent"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_LiabilitiesForConcessionsCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LiabilitiesForConcessionsCurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/OtherLiabilitiesDetailsOfOtherLiabilitiesDetail": {
       "parentTag": "ifrs-full_OtherCurrentLiabilities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/OtherLiabilitiesDetailsOfOtherLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities For Concessions Current",
        "terseLabel": "Liabilities for concessions",
        "documentation": "Liabilities for concessions, current."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_LiabilitiesForConcessionsNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LiabilitiesForConcessionsNoncurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/OtherLiabilitiesDetailsOfOtherLiabilitiesDetail": {
       "parentTag": "ifrs-full_OtherNoncurrentLiabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/OtherLiabilitiesDetailsOfOtherLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities For Concessions Noncurrent",
        "terseLabel": "Liabilities for concessions",
        "documentation": "Liabilities for concessions, non-current."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_LiabilitiesForContractualClaimsCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LiabilitiesForContractualClaimsCurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/OtherLiabilitiesDetailsOfOtherLiabilitiesDetail": {
       "parentTag": "ifrs-full_OtherCurrentLiabilities",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/OtherLiabilitiesDetailsOfOtherLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities for Contractual Claims, Current",
        "terseLabel": "Liabilities for contractual claims",
        "documentation": "Liabilities for contractual claims, current"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_LiabilitiesForContractualClaimsNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LiabilitiesForContractualClaimsNoncurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/OtherLiabilitiesDetailsOfOtherLiabilitiesDetail": {
       "parentTag": "ifrs-full_OtherNoncurrentLiabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/OtherLiabilitiesDetailsOfOtherLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities for Contractual Claims, Non-current",
        "terseLabel": "Liabilities for contractual claims",
        "documentation": "Liabilities for contractual claims, non-current"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LiabilitiesIncludedInDisposalGroupsClassifiedAsHeldForSale",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilities",
       "weight": 1.0,
       "order": 44.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liabilities included in disposal groups classified as held for sale",
        "presentationGuidance": "Liabilities directly associated with assets held for sale"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of liabilities included in disposal groups classified as held for sale. [Refer: Liabilities; Disposal groups classified as held for sale [member]]"
       }
      }
     },
     "auth_ref": [
      "r199",
      "r419"
     ]
    },
    "ypf_LicenseAgreementPeriod": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LicenseAgreementPeriod",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "License agreement period",
        "terseLabel": "Distribution license",
        "documentation": "License agreement period"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_LicenseRenewalTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LicenseRenewalTerm",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "License renewal term",
        "terseLabel": "License renewal term",
        "documentation": "License renewal term."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_LinderoAtravesadoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LinderoAtravesadoMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lindero Atravesado [Member]",
        "terseLabel": "Lindero Atravesado [member]",
        "documentation": "Lindero Atravesado."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_LiquefiedNaturalGasRegasificationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LiquefiedNaturalGasRegasificationMember",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liquefied Natural Gas Regasification [Member]",
        "terseLabel": "LNG regasification [member]",
        "documentation": "Liquefied natural gas regasification."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_LiquefiedPetroleumGasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LiquefiedPetroleumGasMember",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liquefied Petroleum Gas [member]",
        "terseLabel": "LPG [member]",
        "documentation": "Liquefied Petroleum Gas."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_LiquidHydrocarbonExportsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LiquidHydrocarbonExportsMember",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liquid Hydrocarbon Exports [Member]",
        "terseLabel": "Liquid Hydrocarbon Exports [member]",
        "documentation": "Liquid hydrocarbon exports."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LiquidityRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LiquidityRiskMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Liquidity risk [member]",
        "terseLabel": "Liquidity risk [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the risk that an entity will encounter difficulty in meeting obligations associated with financial liabilities that are settled by delivering cash or another financial asset. [Refer: Financial assets; Financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r172",
      "r173",
      "r174",
      "r488"
     ]
    },
    "ypf_LlancaneloAndLlancaneloRMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LlancaneloAndLlancaneloRMember",
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Llancanelo and Llancanelo R [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_LngExportProjectsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LngExportProjectsMember",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "LNG Export Projects [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_Loans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "Loans",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loans",
        "verboseLabel": "Principal value",
        "documentation": "The amount of outstanding funds that the entity is obligated to repay."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_Loans1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "Loans1Member",
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loans1 [member]",
        "terseLabel": "Loans [member]",
        "documentation": "Loans1 [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_LoansGranted": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LoansGranted",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/LoansScheduleOfLoansParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loans Granted",
        "terseLabel": "Loans granted",
        "documentation": "Loans granted."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_LoansInterestRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LoansInterestRate",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loans interest rate",
        "terseLabel": "Interest rate",
        "documentation": "The interest rate on loans."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_LoansMaturity": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LoansMaturity",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loans Maturity",
        "verboseLabel": "Principal Maturity",
        "documentation": "The maturity of loans."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LoansReceived": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LoansReceived",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfMaturityDatesOfFinancialLiabilitiesDetail": {
       "parentTag": "ifrs-full_FinancialLiabilities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfMaturityDatesOfFinancialLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loans received",
        "terseLabel": "Loans"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of loans received."
       }
      }
     },
     "auth_ref": [
      "r675"
     ]
    },
    "dei_LocalPhoneNumber": {
     "xbrltype": "normalizedStringItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "LocalPhoneNumber",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Local Phone Number",
        "documentation": "Local phone number for entity."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_LocationAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LocationAxis",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Location [Axis]",
        "documentation": "Location."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_LocationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LocationMember",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Location [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_LomaCampanaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LomaCampanaMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loma Campana [member]",
        "terseLabel": "Loma Campana [member]",
        "documentation": "Loma Campana."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_LomaDelMolleMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LomaDelMolleMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loma Del Molle [Member]",
        "terseLabel": "Loma del Molle [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_LongtermBorrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LongtermBorrowings",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 49.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/LoansScheduleOfLoansDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current portion of non-current borrowings",
        "terseLabel": "Loans",
        "verboseLabel": "Loans Noncurrent"
       }
      },
      "en": {
       "role": {
        "documentation": "The non-current portion of non-current borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r678"
     ]
    },
    "ifrs-full_LongtermMiscellaneousOtherProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "LongtermMiscellaneousOtherProvisions",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/AccountsPayableDetailedInformationAboutAccountsPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current miscellaneous other provisions",
        "terseLabel": "Miscellaneous"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of miscellaneous non-current other provisions. [Refer: Miscellaneous other provisions]"
       }
      }
     },
     "auth_ref": [
      "r680"
     ]
    },
    "ypf_LosChorrillosLagoFuegoTierradelFuegoFraccinATierradelFuegoFraccinBTierradelFuegoFraccinCTierradelFuegoFraccinDandTierradelFuegoFraccinEMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LosChorrillosLagoFuegoTierradelFuegoFraccinATierradelFuegoFraccinBTierradelFuegoFraccinCTierradelFuegoFraccinDandTierradelFuegoFraccinEMember",
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Los Chorrillos Lago Fuego Tierra del Fuego Fraccin A Tierra del Fuego Fraccin B Tierra del Fuego Fraccin C Tierra del Fuego Fraccin D and Tierra del Fuego Fraccin E [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_LossContingentDamagesSought": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LossContingentDamagesSought",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Loss Contingent Damages Sought",
        "terseLabel": "Loss contingency damages sought",
        "documentation": "Loss contingent damages sought."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_LubricantsAndByproductsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "LubricantsAndByproductsMember",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Lubricants and by-products [member]",
        "terseLabel": "Lubricants and by-products [member]",
        "documentation": "Lubricants and by-products."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_MEGAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "MEGAMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfTheInvestmentsInAssociatesAndJointVenturesOnADisaggregatedBasisDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "MEGA [Member]",
        "terseLabel": "MEGA [Member]",
        "documentation": "MEGA."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_MachineryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "MachineryMember",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsDetailedInformationAboutPropertyPlantAndEquipmentDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentDetail",
      "http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Machinery [member]",
        "verboseLabel": "Refinery equipment and petrochemical plants [member]",
        "terseLabel": "Machinery and equipment [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of property, plant and equipment representing long-lived, depreciable machinery used in operations. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r454"
     ]
    },
    "ypf_MagallanesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "MagallanesMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Magallanes [member]",
        "verboseLabel": "Magallanes [member]",
        "documentation": "Magallanes."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_MajorCustomersAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "MajorCustomersAxis",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationAboutRelatedPartyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Major customers [axis]",
        "terseLabel": "Major customers [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": [
      "r249"
     ]
    },
    "ifrs-full_MajorCustomersDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "MajorCustomersDomain",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationAboutRelatedPartyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Major customers [domain]",
        "terseLabel": "Customers [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for customers. It also represents the standard value for the 'Major customers' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r249"
     ]
    },
    "ypf_MarchTwentyThousandTwentyNineMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "MarchTwentyThousandTwentyNineMember",
     "presentation": [
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "March Twenty Thousand Twenty Nine [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_MarketsOfCustomersAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "MarketsOfCustomersAxis",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesBySalesChannelsDetail",
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Markets of customers [axis]",
        "terseLabel": "Markets of customers [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": [
      "r479",
      "r505"
     ]
    },
    "ifrs-full_MarketsOfCustomersDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "MarketsOfCustomersDomain",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesBySalesChannelsDetail",
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Markets of customers [domain]",
        "terseLabel": "Markets of customers [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for all markets of customers. It also represents the standard value for the 'Markets of customers' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r479",
      "r505"
     ]
    },
    "ypf_MaterialsAndEquipmentInWarehouseMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "MaterialsAndEquipmentInWarehouseMember",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Materials and Equipment In Warehouse [member]",
        "terseLabel": "Materials and equipment in warehouse [member]",
        "documentation": "Materials and equipment in warehouse."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_MatureFieldsProjectMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "MatureFieldsProjectMember",
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesSummaryOfTheMainAssetsHeldForSaleAndAssociatedLiabilitiesDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionsForImpairmentOfPropertyPlantAndEquipmentParentheticalDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Mature Fields Project [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_MaturityAnalysisForNonderivativeFinancialLiabilities": {
     "xbrltype": "textBlockItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "MaturityAnalysisForNonderivativeFinancialLiabilities",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Disclosure of maturity analysis for non-derivative financial liabilities [text block]",
        "terseLabel": "Schedule of Maturity Dates of Financial Liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The disclosure of a maturity analysis for non-derivative financial liabilities (including issued financial guarantee contracts) that shows the remaining contractual maturities. [Refer: Derivative financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r216",
      "r381"
     ]
    },
    "ifrs-full_MaturityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "MaturityAxis",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfMaturityDatesOfFinancialLiabilitiesDetail",
      "http://www.ypf.com/role/IncomeTaxAdditionalInformationDetail",
      "http://www.ypf.com/role/LeaseLiabilitiesSummaryOfLeaseLiabilitiesAndDiscountRatesDetail",
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail",
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsParentheticalDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentAdditionalInformationDetail",
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maturity [axis]",
        "terseLabel": "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": [
      "r151",
      "r163",
      "r164",
      "r168",
      "r169",
      "r171",
      "r177",
      "r203",
      "r217",
      "r269",
      "r272",
      "r284",
      "r287",
      "r375",
      "r425",
      "r459",
      "r491"
     ]
    },
    "ifrs-full_MaturityDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "MaturityDomain",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfMaturityDatesOfFinancialLiabilitiesDetail",
      "http://www.ypf.com/role/IncomeTaxAdditionalInformationDetail",
      "http://www.ypf.com/role/LeaseLiabilitiesSummaryOfLeaseLiabilitiesAndDiscountRatesDetail",
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail",
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsParentheticalDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentAdditionalInformationDetail",
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maturity [domain]",
        "terseLabel": "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": [
      "r151",
      "r163",
      "r164",
      "r168",
      "r169",
      "r171",
      "r177",
      "r203",
      "r269",
      "r272",
      "r284",
      "r287",
      "r375",
      "r425",
      "r459",
      "r491",
      "r495"
     ]
    },
    "ifrs-full_MaximumExposureToCreditRisk": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "MaximumExposureToCreditRisk",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail",
      "http://www.ypf.com/role/FinancialRiskManagementSummaryOfMaximumExposureToCreditRiskDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maximum exposure to credit risk",
        "verboseLabel": "Credit and investments with the National Government, direct agencies and companies with government participation",
        "terseLabel": "Maximum exposure to credit risk"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount that best represents the maximum exposure to credit risk without taking into account any collateral held or other credit enhancements (for example, netting agreements that do not qualify for offset in accordance with IAS 32). [Refer: Credit risk [member]]"
       }
      }
     },
     "auth_ref": [
      "r211"
     ]
    },
    "ypf_MaximumPercentageOfLegalReserve": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "MaximumPercentageOfLegalReserve",
     "presentation": [
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maximum Percentage Of Legal Reserve",
        "terseLabel": "Maximum percentage of legal reserve",
        "documentation": "Maximum percentage of legal reserve."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_MaximumPercentageOfPermissibleInterestsInGasStations": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "MaximumPercentageOfPermissibleInterestsInGasStations",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Maximum Percentage Of Permissible Interests In Gas Stations",
        "terseLabel": "Maximum percentage of permissible interest in gas stations",
        "documentation": "Maximum percentage of permissible interests in gas stations."
       }
      }
     },
     "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": [
      "r587"
     ]
    },
    "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": [
      "r587"
     ]
    },
    "ifrs-full_MeasurementAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "MeasurementAxis",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsSummaryOfFairValuesOfTheIdentifiableAssetsAcquiredAndTheLiabilitiesAssumedDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measurement [axis]",
        "terseLabel": "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": [
      "r83",
      "r87",
      "r139",
      "r350",
      "r387"
     ]
    },
    "ifrs-full_MeasurementDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "MeasurementDomain",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsSummaryOfFairValuesOfTheIdentifiableAssetsAcquiredAndTheLiabilitiesAssumedDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Measurement [domain]",
        "terseLabel": "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": [
      "r83",
      "r87",
      "r139",
      "r350",
      "r387"
     ]
    },
    "ypf_MediumTermNotes1Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "MediumTermNotes1Member",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Medium Term Notes 1 [member]",
        "terseLabel": "Medium Term Notes [member]",
        "documentation": "Medium Term Notes 1 [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_MercosurAndAssociatesCountriesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "MercosurAndAssociatesCountriesMember",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfPropertyPlantAndEquipmentByGeographicAreaDetail",
      "http://www.ypf.com/role/RevenuesSummaryOfRevenueByGeographicAreaDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Mercosur And Associates Countries [member]",
        "terseLabel": "Mercosur and Associates Countries [member]",
        "verboseLabel": "Mercosur and associates countries [member]",
        "documentation": "Mercosur and associates countries."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_MesetaNuevaEsperanzaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "MesetaNuevaEsperanzaMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Meseta Nueva Esperanza [Member]",
        "terseLabel": "Meseta Nueva Esperanza [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_MetroenergiaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "MetroenergiaMember",
     "presentation": [
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Metroenergia [Member]",
        "terseLabel": "Metroenerg\u00eda [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_MetrogasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "MetrogasMember",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Metrogas [member]",
        "terseLabel": "Metrogas [member]",
        "documentation": "Metrogas."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_MidstreamAndDownstreamMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "MidstreamAndDownstreamMember",
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesSummaryOfTheMainAssetsHeldForSaleAndAssociatedLiabilitiesDetail",
      "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail",
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail",
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesBySalesChannelsDetail",
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Midstream and Downstream [Member]",
        "terseLabel": "Midstream and Downstream [member]",
        "documentation": "Midstream and Downstream."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_MineralProperty": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "MineralProperty",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Mineral property",
        "terseLabel": "Mineral property",
        "documentation": "Mineral property."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_MineralPropertyWellsAndRelatedEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "MineralPropertyWellsAndRelatedEquipment",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesDetail": {
       "parentTag": "ypf_GrossCapitalizedCost",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Mineral property, wells and related equipment",
        "terseLabel": "Mineral property, wells and related equipment",
        "documentation": "All Upstream contracts excepted for Drilling Contracts"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_MinimumInvestmentForDeferralOfTaxAdjustmentForInflation": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "MinimumInvestmentForDeferralOfTaxAdjustmentForInflation",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Minimum Investment For Deferral Of Tax Adjustment For Inflation",
        "terseLabel": "Minimum investment for deferral of tax adjustment for inflation",
        "documentation": "Minimum investment for deferral of tax adjustment for inflation."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_MinimumTermForWhichTheExportVolumeShallBeAuthorized": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "MinimumTermForWhichTheExportVolumeShallBeAuthorized",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Minimum Term For Which The Export Volume Shall Be Authorized",
        "terseLabel": "Minimum period for which the export volume shall be authorized",
        "documentation": "Minimum term for which the export volume shall be authorized."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_MiningPropertyWellsAndRelatedEquipmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "MiningPropertyWellsAndRelatedEquipmentMember",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Mining Property, Wells and Related Equipment [member]",
        "terseLabel": "Mining Property, Wells and Related Equipment [member]",
        "documentation": "Mining property, wells and related equipment."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_MiningRightsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "MiningRightsMember",
     "presentation": [
      "http://www.ypf.com/role/IntangibleAssetsSummaryOfChangesInIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Mining rights [member]",
        "terseLabel": "Exploration rights [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for rights related to mining activities."
       }
      }
     },
     "auth_ref": [
      "r650"
     ]
    },
    "ypf_Miscellaneous": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "Miscellaneous",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail": {
       "parentTag": "ypf_TradeAndOtherCurrentReceivablesOtherThanProvision",
       "weight": 1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Miscellaneous",
        "terseLabel": "Miscellaneous",
        "documentation": "Miscellaneous."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_MiscellaneousDeferredTaxAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "MiscellaneousDeferredTaxAssetsMember",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Miscellaneous Deferred Tax Assets [member]",
        "verboseLabel": "Miscellaneous [member]",
        "documentation": "Miscellaneous deferred tax assets."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_MiscellaneousDeferredTaxLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "MiscellaneousDeferredTaxLiabilitiesMember",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Miscellaneous Deferred Tax Liabilities [member]",
        "terseLabel": "Miscellaneous Deferred Tax Liabilities [member]",
        "documentation": "Miscellaneous deferred tax liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_MiscellaneousMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "MiscellaneousMember",
     "presentation": [
      "http://www.ypf.com/role/TaxesPayableSummaryOfTaxesPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Miscellaneous [Member]",
        "terseLabel": "Miscellaneous [member]",
        "documentation": "Miscellaneous [Member]."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_MiscellaneousOtherOperatingIncomeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "MiscellaneousOtherOperatingIncomeExpense",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/IncomeTaxSummaryOfReconciliationBetweenTheChargeToNetIncomeForIncomeTaxAndTheOneThatWouldResultFromApplyingThePrevailingTaxRateOnNetIncomeBeforeIncomeTaxArisingFromTheConsolidatedStatementsOfComprehensiveIncoe8f94": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfReconciliationBetweenTheChargeToNetIncomeForIncomeTaxAndTheOneThatWouldResultFromApplyingThePrevailingTaxRateOnNetIncomeBeforeIncomeTaxArisingFromTheConsolidatedStatementsOfComprehensiveIncoe8f94"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Miscellaneous other operating income expense",
        "terseLabel": "Miscellaneous",
        "documentation": "Miscellaneous other operating income expense"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_MiscellaneousandOtherOperatingIncomeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "MiscellaneousandOtherOperatingIncomeExpense",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/OtherNetOperatingResultsDetail": {
       "parentTag": "ifrs-full_OtherOperatingIncomeExpense",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/OtherNetOperatingResultsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Miscellaneous and Other Operating IncomeExpense",
        "terseLabel": "Miscellaneous",
        "documentation": "Miscellaneous and other operating income/expense."
       }
      }
     },
     "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": [
      "r607"
     ]
    },
    "ypf_MobilArgentinaSaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "MobilArgentinaSaMember",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/AcquisitionsAndDisposalsSummaryOfFairValuesOfTheIdentifiableAssetsAcquiredAndTheLiabilitiesAssumedDetail",
      "http://www.ypf.com/role/AcquisitionsAndDisposalsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Mobil Argentina S.A. [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_MoratoriumAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "MoratoriumAxis",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Moratorium [Axis]",
        "terseLabel": "Moratorium [Axis]",
        "documentation": "Moratorium."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_MoratoriumMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "MoratoriumMember",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Moratorium [Member]",
        "terseLabel": "Moratorium [Member]",
        "documentation": "Moratorium."
       }
      }
     },
     "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": [
      "r615"
     ]
    },
    "ypf_MutualFundsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "MutualFundsMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfCompanysFinancialAssetsMeasuredAtFairValueDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Mutual funds [member]",
        "terseLabel": "Mutual funds [member]",
        "documentation": "Mutual funds."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NameOfAssociate": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NameOfAssociate",
     "presentation": [
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Name of associate",
        "terseLabel": "Name of associate"
       }
      },
      "en": {
       "role": {
        "documentation": "The name of an associate. [Refer: Total for all associates [member]]"
       }
      }
     },
     "auth_ref": [
      "r48",
      "r52",
      "r114"
     ]
    },
    "ifrs-full_NameOfJointVenture": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NameOfJointVenture",
     "presentation": [
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Name of joint venture"
       }
      },
      "en": {
       "role": {
        "documentation": "The name of a joint venture. [Refer: Total for all joint ventures [member]]"
       }
      }
     },
     "auth_ref": [
      "r48",
      "r52",
      "r114"
     ]
    },
    "ypf_NameOfPlanAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NameOfPlanAxis",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Name Of Plan [Axis]",
        "terseLabel": "Name of plan [axis]",
        "documentation": "Name of plan."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NameOfPlanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NameOfPlanMember",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Name Of Plan [Member]",
        "terseLabel": "Name of plan [member]",
        "documentation": "Name of plan."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NameOfSubsidiary": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NameOfSubsidiary",
     "presentation": [
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Name of subsidiary",
        "terseLabel": "Name of subsidiary"
       }
      },
      "en": {
       "role": {
        "documentation": "The name of a subsidiary. [Refer: Total for all subsidiaries [member]]"
       }
      }
     },
     "auth_ref": [
      "r48",
      "r52",
      "r107",
      "r111"
     ]
    },
    "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": [
      "r588"
     ]
    },
    "ypf_NarambuenaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NarambuenaMember",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail",
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Narambuena [Member]",
        "terseLabel": "Narambuena [member]",
        "documentation": "Narambuena."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NationalEnergySectorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NationalEnergySectorMember",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "National Energy Sector [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NationalGovernmentAndDirectAgenciesAccountsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NationalGovernmentAndDirectAgenciesAccountsMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "National Government And Direct Agencies Accounts [member]",
        "terseLabel": "Credit risk other financial assets national government and direct agencies accounts [member]",
        "documentation": "Credit risk other financial assets national government and direct agencies accounts."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NaturalGasLiquidsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NaturalGasLiquidsMember",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Natural gas liquids [member]",
        "terseLabel": "Natural Gas Liquids [Member]",
        "documentation": "Natural gas liquids."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NaturalGasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NaturalGasMember",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Natural Gas [member]",
        "terseLabel": "Natural gas [member]",
        "documentation": "Natural gas."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NaturalGasPipingDistributionServiceLicensedCompaniesBenefitOfMetrogasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NaturalGasPipingDistributionServiceLicensedCompaniesBenefitOfMetrogasMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationAboutRelatedPartyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Natural Gas Piping Distribution Service Licensed Companies benefit of Metrogas [Member]",
        "verboseLabel": "Natural Gas Piping Distribution Service Licensed Companies benefit of Metrogas [member]",
        "documentation": "Natural Gas Piping Distribution Service Licensed Companies benefit of Metrogas."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NegativeVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NegativeVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfBreakdownOfEffectAVariationOf10InPrevailingExchangeRatesOnNetIncomeDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Negative variation impact on net income corresponding to financial assets and liabilities [Member]",
        "verboseLabel": "Negative variation impact on net income corresponding to financial assets and liabilities [member]",
        "documentation": "Negative variation impact on net income corresponding to financial assets and liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NegativeVariationImpactOnNetIncomeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NegativeVariationImpactOnNetIncomeMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfEstimatedImpactOnConsolidatedComprehensiveIncomeThatAnIncreaseOrDecreaseOf100BasisPointsInInterestRateDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Negative Variation Impact on Net Income [Member]",
        "terseLabel": "Negative variation impact on net income [member]",
        "documentation": "Negative variation impact on net income."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NegativeVariationImpactOnProfitOrLossBeforeIncomeTaxMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NegativeVariationImpactOnProfitOrLossBeforeIncomeTaxMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfEffectOfA10VariationInThePricesOfInvestmentsInFinancialInstrumentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Negative Variation Impact on Profit or Loss Before Income Tax [Member]",
        "terseLabel": "Negative variation impact on profit or loss before income tax [member]",
        "documentation": "Negative variation impact on profit or loss before income tax."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NegotiableAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NegotiableAmount",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Negotiable Amount",
        "terseLabel": "Negotiable amount",
        "documentation": "Negotiable amount."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NegotiableObligationsCancelled": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NegotiableObligationsCancelled",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/LoansScheduleOfLoansParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Negotiable Obligations Cancelled",
        "terseLabel": "Cancellation of negotiable obligations in Argentine pesos",
        "documentation": "Negotiable obligations cancelled."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NegotiableObligationsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NegotiableObligationsMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail",
      "http://www.ypf.com/role/LoansScheduleOfLoansDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Negotiable Obligations [member]",
        "terseLabel": "Negotiable obligations [member]",
        "documentation": "Negotiable obligations."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NegotiableObligationsRepurchased": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NegotiableObligationsRepurchased",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/LoansScheduleOfLoansParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Negotiable Obligations Repurchased",
        "terseLabel": "Repurchase of negotiable obligations",
        "documentation": "Negotiable obligations repurchased."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NetAssetsLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NetAssetsLiabilities",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Assets (liabilities)",
        "verboseLabel": "Net assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of assets less the amount of liabilities."
       }
      }
     },
     "auth_ref": [
      "r473",
      "r675"
     ]
    },
    "ypf_NetBalancePayable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NetBalancePayable",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Balance Payable",
        "terseLabel": "Net balance payable",
        "documentation": "Net balance payable."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NetBookValueOfPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NetBookValueOfPropertyPlantAndEquipment",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfPropertyPlantAndEquipmentDetail": {
       "parentTag": "ifrs-full_PropertyPlantAndEquipment",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfPropertyPlantAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net book value of property, plant and equipment",
        "terseLabel": "Net carrying amount of property, plant and equipment",
        "documentation": "Net book value of property, plant and equipment."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NetBookValueOfPropertyPlantAndEquipmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NetBookValueOfPropertyPlantAndEquipmentMember",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net book value of property, plant and equipment [member]",
        "terseLabel": "Net book value of property, plant and equipment [member]",
        "documentation": "Net book value of property, plant and equipment [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NetCapitalizedCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NetCapitalizedCost",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Capitalized Cost",
        "totalLabel": "Net capitalized costs",
        "documentation": "Net capitalized cost."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NetDeferredTaxAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NetDeferredTaxAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxDetail": {
       "parentTag": "ifrs-full_DeferredTaxLiabilityAsset",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net deferred tax assets",
        "terseLabel": "Total 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": [
      "r639"
     ]
    },
    "ifrs-full_NetDeferredTaxLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NetDeferredTaxLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxDetail": {
       "parentTag": "ifrs-full_DeferredTaxLiabilityAsset",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net deferred tax liabilities",
        "negatedLabel": "Total deferred tax liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of deferred tax liabilities net of deferred tax assets, when the absolute amount of deferred tax liabilities is greater than the absolute amount of deferred tax assets. [Refer: Deferred tax assets; Deferred tax liabilities]"
       }
      }
     },
     "auth_ref": [
      "r639"
     ]
    },
    "ypf_NetForeignExchangeGainLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NetForeignExchangeGainLoss",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfGainsAndLossesOnFinancialInstrumentsDetail": {
       "parentTag": "ifrs-full_FinanceIncomeCost",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfGainsAndLossesOnFinancialInstrumentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Foreign Exchange Gain Loss",
        "terseLabel": "Net exchange differences",
        "documentation": "Net foreign exchange gain (loss)."
       }
      }
     },
     "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": []
    },
    "srt_NetIncreaseDecreaseInSalesAndTransferPricesAndProductionCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "NetIncreaseDecreaseInSalesAndTransferPricesAndProductionCosts",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInTheStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Increase (Decrease) in Sales and Transfer Prices and Production Costs",
        "terseLabel": "Net change in sales and transfer prices, net of future production costs",
        "documentation": "Amount of increase (decrease) in standardized measure of discounted future net cash flow as a result of change in sales and transfer prices and in production (lifting) costs related to future production."
       }
      }
     },
     "auth_ref": [
      "r0"
     ]
    },
    "ypf_NetIntersegmentSales": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NetIntersegmentSales",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsFromOilAndGasProducingActivitiesDetail": {
       "parentTag": "ifrs-full_RevenueFromSaleOfGoods",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsFromOilAndGasProducingActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net intersegment sales",
        "terseLabel": "Net intersegment sales",
        "documentation": "Net intersegment sales"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NetProvedReservesOfNaturalGas": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NetProvedReservesOfNaturalGas",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Proved Reserves Of Natural Gas",
        "periodStartLabel": "Beginning balance",
        "periodEndLabel": "Ending balance",
        "documentation": "Net proved reserves of natural gas."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NetProvedReservesOfNaturalGasExtensionsAndDiscoveries": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NetProvedReservesOfNaturalGasExtensionsAndDiscoveries",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Proved Reserves Of Natural Gas Extensions And Discoveries",
        "terseLabel": "Extensions and discoveries",
        "documentation": "Net Proved Reserves Of Natural Gas Extensions And Discoveries"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NetProvedReservesOfNaturalGasImprovedRecovery": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NetProvedReservesOfNaturalGasImprovedRecovery",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Proved Reserves Of Natural Gas Improved Recovery",
        "terseLabel": "Improved recovery",
        "documentation": "Net Proved Reserves Of Natural Gas Improved Recovery"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NetProvedReservesOfNaturalGasLiquids": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NetProvedReservesOfNaturalGasLiquids",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net proved reserves of natural gas liquids",
        "periodStartLabel": "Beginning balance",
        "periodEndLabel": "Ending balance",
        "documentation": "Net proved reserves of natural gas liquids."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NetProvedReservesOfNaturalGasLiquidsExtensionsAndDiscoveries": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NetProvedReservesOfNaturalGasLiquidsExtensionsAndDiscoveries",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net proved reserves of natural gas liquids extensions and discoveries",
        "terseLabel": "Extensions and discoveries",
        "documentation": "Net proved reserves of natural gas liquids extensions and discoveries."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NetProvedReservesOfNaturalGasLiquidsProductionForYear": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NetProvedReservesOfNaturalGasLiquidsProductionForYear",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net proved reserves of natural gas liquids production for year",
        "negatedLabel": "Production for the year",
        "documentation": "Net proved reserves of natural gas liquids production for year."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NetProvedReservesOfNaturalGasLiquidsRevisionsOfPreviousEstimates": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NetProvedReservesOfNaturalGasLiquidsRevisionsOfPreviousEstimates",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net proved reserves of natural gas liquids revisions of previous estimates",
        "terseLabel": "Revisions of previous estimates",
        "documentation": "Net proved reserves of natural gas liquids revisions of previous estimates."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NetProvedReservesOfNaturalGasLiquidsSaleOfMinerals": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NetProvedReservesOfNaturalGasLiquidsSaleOfMinerals",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net proved reserves of natural gas liquids sale of minerals",
        "negatedLabel": "Sale of minerals in place",
        "documentation": "Net proved reserves of natural gas liquids sale of minerals."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NetProvedReservesOfNaturalGasProductionForYear": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NetProvedReservesOfNaturalGasProductionForYear",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Proved Reserves Of Natural Gas Production For Year",
        "negatedLabel": "Production for the year",
        "documentation": "Net Proved Reserves Of Natural Gas Production For Year"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NetProvedReservesOfNaturalGasPurchaseOfMinerals": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NetProvedReservesOfNaturalGasPurchaseOfMinerals",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Proved Reserves Of Natural Gas Purchase Of Minerals",
        "terseLabel": "Purchase of minerals in place",
        "documentation": "Net Proved Reserves Of Natural Gas Purchase Of Minerals"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NetProvedReservesOfNaturalGasRevisionsOfPreviousEstimates": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NetProvedReservesOfNaturalGasRevisionsOfPreviousEstimates",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Proved Reserves Of Natural Gas Revisions Of Previous Estimates",
        "terseLabel": "Revisions of previous estimates",
        "documentation": "Net proved reserves of natural gas revisions of previous estimates."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NetProvedReservesOfNaturalGasSaleOfMinerals": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NetProvedReservesOfNaturalGasSaleOfMinerals",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Proved Reserves Of Natural Gas Sale Of Minerals",
        "negatedLabel": "Sale of minerals in place",
        "documentation": "Net Proved Reserves Of Natural Gas Sale Of Minerals"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NetProvedReservesOfOilAndCondensate": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NetProvedReservesOfOilAndCondensate",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net proved reserves of oil and condensate",
        "periodStartLabel": "Beginning balance",
        "periodEndLabel": "Ending balance",
        "documentation": "Net proved reserves of oil and condensate."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NetProvedReservesOfOilEquivalent": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NetProvedReservesOfOilEquivalent",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Proved Reserves Of Oil Equivalent",
        "periodStartLabel": "Beginning balance",
        "periodEndLabel": "Ending balance",
        "documentation": "Net proved reserves of oil equivalent."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NetProvedReservesOfOilEquivalentExtensionsAndDiscoveries": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NetProvedReservesOfOilEquivalentExtensionsAndDiscoveries",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Proved Reserves Of Oil Equivalent Extensions And Discoveries",
        "terseLabel": "Extensions and discoveries",
        "documentation": "Net proved reserves of oil equivalent extensions and discoveries."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NetProvedReservesOfOilEquivalentImprovedRecovery": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NetProvedReservesOfOilEquivalentImprovedRecovery",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Proved Reserves Of Oil Equivalent Improved Recovery",
        "terseLabel": "Improved recovery",
        "documentation": "Net proved reserves of oil equivalent improved recovery."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NetProvedReservesOfOilEquivalentProductionForYear": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NetProvedReservesOfOilEquivalentProductionForYear",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Proved Reserves Of Oil Equivalent Production For Year",
        "negatedLabel": "Production for the year",
        "documentation": "Net proved reserves of oil equivalent production for year."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NetProvedReservesOfOilEquivalentPurchaseOfMinerals": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NetProvedReservesOfOilEquivalentPurchaseOfMinerals",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Proved Reserves Of Oil Equivalent Purchase Of Minerals",
        "terseLabel": "Purchase of minerals in place",
        "documentation": "Net proved reserves of oil equivalent purchase of minerals."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NetProvedReservesOfOilEquivalentRevisionsOfPreviousEstimates": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NetProvedReservesOfOilEquivalentRevisionsOfPreviousEstimates",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Proved Reserves Of Oil Equivalent Revisions Of Previous Estimates",
        "terseLabel": "Revisions of previous estimates",
        "documentation": "Net proved reserves of oil equivalent revisions of previous estimates."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NetProvedReservesOfOilEquivalentSaleOfMinerals": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NetProvedReservesOfOilEquivalentSaleOfMinerals",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Proved Reserves Of Oil Equivalent Sale Of Minerals",
        "negatedLabel": "Sale of minerals in place",
        "documentation": "Net proved reserves of oil equivalent sale of minerals."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NetProvedReservesRevisionsOfPreviousEstimatesIncreaseDecrease": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NetProvedReservesRevisionsOfPreviousEstimatesIncreaseDecrease",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Proved Reserves Revisions Of Previous Estimates Increase Decrease",
        "terseLabel": "Revised proved reserves",
        "documentation": "Net proved reserves revisions of previous estimates increase decrease."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NetSalesToUnaffiliatedParties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NetSalesToUnaffiliatedParties",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsFromOilAndGasProducingActivitiesDetail": {
       "parentTag": "ifrs-full_RevenueFromSaleOfGoods",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsFromOilAndGasProducingActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Net Sales To Unaffiliated Parties",
        "terseLabel": "Net sales to unaffiliated parties",
        "documentation": "Net sales to unaffiliated parties."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NewEnergiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NewEnergiesMember",
     "presentation": [
      "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail",
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail",
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesBySalesChannelsDetail",
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "New Energies [Member]",
        "documentation": "New energies."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NewExploitationConcessionTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NewExploitationConcessionTerm",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "New Exploitation Concession Term",
        "terseLabel": "New exploitation concession term",
        "documentation": "New exploitation concession term."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NewIFRSsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NewIFRSsAxis",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesParentheticalDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "New IFRSs [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": [
      "r99",
      "r301"
     ]
    },
    "ifrs-full_NewIFRSsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NewIFRSsDomain",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesParentheticalDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "New IFRSs [domain]"
       }
      }
     },
     "auth_ref": [
      "r99",
      "r301"
     ]
    },
    "ypf_NineteenNinetyEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NineteenNinetyEightMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Nineteen Ninety Eight [member]",
        "terseLabel": "1998 [member]",
        "documentation": "Nineteen Ninety Eight [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NineteenNinetySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NineteenNinetySevenMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Nineteen Ninety Seven [member]",
        "terseLabel": "Nineteen Ninety Seven [member]",
        "documentation": "Nineteen ninety seven."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NoCertificatesOfArgentineDepositsRepresentingForeignSharesJointlyExceeding": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NoCertificatesOfArgentineDepositsRepresentingForeignSharesJointlyExceeding",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "No Certificates of Argentine Deposits Representing Foreign Shares Jointly Exceeding",
        "terseLabel": "No certificates of Argentine deposits representing foreign shares jointly exceeding",
        "documentation": "No certificates of Argentine deposits representing foreign shares jointly exceeding."
       }
      }
     },
     "auth_ref": []
    },
    "dei_NoTradingSymbolFlag": {
     "xbrltype": "trueItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "NoTradingSymbolFlag",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "No Trading Symbol Flag",
        "documentation": "Boolean flag that is true only for a security having no trading symbol."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NonCashTransactionsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NonCashTransactionsAbstract",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlowsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non Cash Transactions [abstract]",
        "terseLabel": "Non cash transactions",
        "documentation": "Non cash transactions."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NonCurrentCashSettledSharebasedPaymentsProvision": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NonCurrentCashSettledSharebasedPaymentsProvision",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/SalariesAndSocialSecuritySummaryOfDetailedInformationAboutSalariesAndSocialSecurityDetail": {
       "parentTag": "ypf_SalariesAndSocialSecurity",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/SalariesAndSocialSecuritySummaryOfDetailedInformationAboutSalariesAndSocialSecurityDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non Current Cash Settled ShareBased Payments Provision",
        "terseLabel": "Cash-settled share-based payments provision non current",
        "documentation": "non-current cash settled share-based payments provision."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NonCurrentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NonCurrentMember",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsDetail",
      "http://www.ypf.com/role/TradeReceivablesSummaryOfEvolutionOfTheProvisionForDoubtfulTradeReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non current [member]",
        "terseLabel": "Non current [member]",
        "documentation": "Non current."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NonCurrentProvisionForDoubtfulTradeReceivable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NonCurrentProvisionForDoubtfulTradeReceivable",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/TradeReceivablesSummaryOfTradeReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non Current Provision for Doubtful Trade Receivable",
        "negatedLabel": "Non-current provision for doubtful trade receivable",
        "documentation": "Noncurrent provision for doubtful trade receivable."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NonFinancialLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NonFinancialLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail": {
       "parentTag": "ypf_FinancialAndNonFinancialLiabilities",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non Financial Liabilities",
        "terseLabel": "Non-financial liabilities",
        "documentation": "Non-financial liabilities."
       }
      }
     },
     "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": [
      "r587"
     ]
    },
    "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": [
      "r550",
      "r561",
      "r571",
      "r595",
      "r604"
     ]
    },
    "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": [
      "r578"
     ]
    },
    "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": [
      "r577"
     ]
    },
    "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": [
      "r595"
     ]
    },
    "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": [
      "r615"
     ]
    },
    "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": [
      "r615"
     ]
    },
    "ifrs-full_NonadjustingEventsAfterReportingPeriodAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NonadjustingEventsAfterReportingPeriodAxis",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail",
      "http://www.ypf.com/role/ProvisionsAdditionalInformationDetail",
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-adjusting events after reporting period [axis]",
        "terseLabel": "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",
      "r305"
     ]
    },
    "ifrs-full_NonadjustingEventsAfterReportingPeriodDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NonadjustingEventsAfterReportingPeriodDomain",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail",
      "http://www.ypf.com/role/ProvisionsAdditionalInformationDetail",
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-adjusting events after reporting period [domain]",
        "terseLabel": "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",
      "r305"
     ]
    },
    "ifrs-full_NoncontrollingInterests": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncontrollingInterests",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_Equity",
       "weight": 1.0,
       "order": 32.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-controlling interests",
        "terseLabel": "Non-controlling interest"
       }
      },
      "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": [
      "r106",
      "r110",
      "r420"
     ]
    },
    "ifrs-full_NoncontrollingInterestsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncontrollingInterestsMember",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-controlling interests [member]",
        "terseLabel": "Equity attributable to 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": [
      "r407"
     ]
    },
    "ifrs-full_NoncurrentAdvances": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentAdvances",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail": {
       "parentTag": "ypf_NoncurrentReceivablesOtherthanProvision",
       "weight": -1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current advances received",
        "terseLabel": "Advances to suppliers and custom agents"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current advances received representing non-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": [
      "r678",
      "r681"
     ]
    },
    "ifrs-full_NoncurrentAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_Assets",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationOfAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current assets",
        "totalLabel": "Total non-current assets",
        "verboseLabel": "Total non-current assets",
        "terseLabel": "Non-current assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of assets that do not meet the definition of current assets. [Refer: Current assets]"
       }
      }
     },
     "auth_ref": [
      "r121",
      "r426",
      "r474"
     ]
    },
    "ifrs-full_NoncurrentAssetsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentAssetsAbstract",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current assets [abstract]",
        "verboseLabel": "Non-current assets"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentAssetsOrDisposalGroupsClassifiedAsHeldForSale",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current assets or disposal groups classified as held for sale",
        "verboseLabel": "Reclassification of assets held for disposal"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current assets or disposal groups classified as held for sale. [Refer: Disposal groups classified as held for sale [member]]"
       }
      }
     },
     "auth_ref": [
      "r199"
     ]
    },
    "ifrs-full_NoncurrentContractLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentContractLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 55.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/RevenuesSummaryOfCreditsContractAssetsAndContractLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current contract liabilities",
        "terseLabel": "Contract liabilities",
        "positiveLabel": "Noncurrent Contract liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current contract liabilities. [Refer: Contract liabilities]"
       }
      }
     },
     "auth_ref": [
      "r147"
     ]
    },
    "ifrs-full_NoncurrentDepositsFromCustomers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentDepositsFromCustomers",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/AccountsPayableDetailedInformationAboutAccountsPayableDetail": {
       "parentTag": "ifrs-full_NoncurrentPayables",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/AccountsPayableDetailedInformationAboutAccountsPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current deposits from customers",
        "terseLabel": "Guarantee deposits"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current deposits from customers. [Refer: Deposits from customers]"
       }
      }
     },
     "auth_ref": [
      "r678"
     ]
    },
    "ifrs-full_NoncurrentFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentFinancialAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 17.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/InvestmentsInFinancialAssetsSummaryOfInvestmentsInFinancialAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current financial assets",
        "verboseLabel": "Investments in financial assets",
        "definitionGuidance": "Non-current",
        "presentationGuidance": "Investment in financial assets Non Current"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current financial assets. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r204"
     ]
    },
    "ifrs-full_NoncurrentFinancialLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentFinancialLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current financial liabilities",
        "terseLabel": "Financial liabilities (excluding \"Accounts payable\", \"Provisions\" and \"Other liabilities\"items)"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current financial liabilities. [Refer: Financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r204"
     ]
    },
    "ifrs-full_NoncurrentLeaseLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentLeaseLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 52.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/LeaseLiabilitiesSummaryOfLeaseLibilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current lease liabilities",
        "terseLabel": "Lease liabilities",
        "verboseLabel": "Non-current lease liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current lease liabilities. [Refer: Lease liabilities]"
       }
      }
     },
     "auth_ref": [
      "r153"
     ]
    },
    "ifrs-full_NoncurrentLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_Liabilities",
       "weight": 1.0,
       "order": 45.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationOfAssetsAndLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current liabilities",
        "totalLabel": "Total non-current liabilities",
        "verboseLabel": "Total non-current liabilities",
        "terseLabel": "Non-current liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of liabilities that do not meet the definition of current liabilities. [Refer: Current liabilities]"
       }
      }
     },
     "auth_ref": [
      "r123",
      "r427",
      "r474"
     ]
    },
    "ifrs-full_NoncurrentLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentLiabilitiesAbstract",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current liabilities [abstract]",
        "verboseLabel": "Non-current liabilities"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NoncurrentLoans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NoncurrentLoans",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noncurrent loans",
        "positiveTerseLabel": "Non-current",
        "documentation": "The non-current portion of non-current loans."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NoncurrentMiscellaneous": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NoncurrentMiscellaneous",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail": {
       "parentTag": "ypf_NoncurrentReceivablesOtherthanProvision",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noncurrent Miscellaneous",
        "terseLabel": "Miscellaneous",
        "documentation": "Noncurrent miscellaneous."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NoncurrentPayables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentPayables",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 51.0
      },
      "http://www.ypf.com/role/AccountsPayableDetailedInformationAboutAccountsPayableDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ypf.com/role/AccountsPayableDetailedInformationAboutAccountsPayableDetail",
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade and other non-current payables",
        "terseLabel": "Accounts payable",
        "totalLabel": "Total, noncurrent account payable"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current trade payables and non-current other payables. [Refer: Other non-current payables; Non-current trade payables]"
       }
      }
     },
     "auth_ref": [
      "r414"
     ]
    },
    "ifrs-full_NoncurrentPayablesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentPayablesAbstract",
     "presentation": [
      "http://www.ypf.com/role/AccountsPayableDetailedInformationAboutAccountsPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade and other non-current payables [abstract]",
        "terseLabel": "Noncurrent"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NoncurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentPayablesOnSocialSecurityAndTaxesOtherThanIncomeTax",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 48.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/TaxesPayableSummaryOfTaxesPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current payables on social security and taxes other than income tax",
        "terseLabel": "Taxes payable",
        "definitionGuidance": "Non current"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current payables on social security and taxes other than incomes tax. [Refer: Payables on social security and taxes other than income tax]"
       }
      }
     },
     "auth_ref": [
      "r681"
     ]
    },
    "ifrs-full_NoncurrentPayablesToTradeSuppliers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentPayablesToTradeSuppliers",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/AccountsPayableDetailedInformationAboutAccountsPayableDetail": {
       "parentTag": "ifrs-full_NoncurrentPayables",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/AccountsPayableDetailedInformationAboutAccountsPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current trade payables",
        "terseLabel": "Trade payable and related parties"
       }
      },
      "en": {
       "role": {
        "documentation": "The non-current amount of payment due to suppliers for goods and services used in the entity's business. [Refer: Trade payables]"
       }
      }
     },
     "auth_ref": [
      "r681"
     ]
    },
    "ifrs-full_NoncurrentPrepayments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentPrepayments",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail": {
       "parentTag": "ypf_NoncurrentReceivablesOtherthanProvision",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current prepayments",
        "terseLabel": "Prepaid expenses"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current prepayments. [Refer: Prepayments]"
       }
      }
     },
     "auth_ref": [
      "r514",
      "r521"
     ]
    },
    "ifrs-full_NoncurrentProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentProvisions",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current provisions"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current provisions, including provisions for employee benefits. [Refer: Provisions]"
       }
      }
     },
     "auth_ref": [
      "r415"
     ]
    },
    "ifrs-full_NoncurrentReceivablesDueFromRelatedParties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentReceivablesDueFromRelatedParties",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail": {
       "parentTag": "ypf_NoncurrentReceivablesOtherthanProvision",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current receivables due from related parties",
        "verboseLabel": "Loans and balances with related parties"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current receivables due from related parties. [Refer: Total for all related parties [member]]"
       }
      }
     },
     "auth_ref": [
      "r514",
      "r521"
     ]
    },
    "ifrs-full_NoncurrentReceivablesFromContractsWithCustomers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentReceivablesFromContractsWithCustomers",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfCreditsContractAssetsAndContractLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current receivables from contracts with customers",
        "terseLabel": "Noncurrent Credits for contracts included in the item \"Trade receivables\""
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current receivables from contracts with customers. [Refer: Receivables from contracts with customers]"
       }
      }
     },
     "auth_ref": [
      "r147"
     ]
    },
    "ifrs-full_NoncurrentReceivablesFromTaxesOtherThanIncomeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentReceivablesFromTaxesOtherThanIncomeTax",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail": {
       "parentTag": "ypf_NoncurrentReceivablesOtherthanProvision",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current receivables from taxes other than income tax",
        "terseLabel": "Tax credit and export rebates"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current receivables from taxes other than income tax. [Refer: Receivables from taxes other than income tax]"
       }
      }
     },
     "auth_ref": [
      "r679"
     ]
    },
    "ypf_NoncurrentReceivablesOtherthanProvision": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NoncurrentReceivablesOtherthanProvision",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail": {
       "parentTag": "ifrs-full_OtherNoncurrentReceivables",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noncurrent Receivables OtherThan Provision",
        "totalLabel": "Other non current receivables before provision",
        "documentation": "Noncurrent receivables other than provision."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NoncurrentReceivablesWithPartnersInJaAndOtherAgreements": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NoncurrentReceivablesWithPartnersInJaAndOtherAgreements",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail": {
       "parentTag": "ypf_NoncurrentReceivablesOtherthanProvision",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Noncurrent receivables with partners in JA and other agreements",
        "verboseLabel": "Receivables with partners in JO and Consortiums",
        "documentation": "Noncurrent receivables with partners in JA and other agreements."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NoncurrentTradeReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NoncurrentTradeReceivables",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 15.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/TradeReceivablesSummaryOfTradeReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Non-current trade receivables",
        "verboseLabel": "Trade receivables",
        "definitionGuidance": "Accounts receivable and related parties, non- current gross"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current trade receivables. [Refer: Trade receivables]"
       }
      }
     },
     "auth_ref": [
      "r514",
      "r521"
     ]
    },
    "ypf_NormalCapacityOfTonExploitation": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NormalCapacityOfTonExploitation",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Normal Capacity Of Ton Exploitation",
        "terseLabel": "Normal capacity of ton exploitation",
        "documentation": "Normal capacity of ton exploitation."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NotLaterThanOneYearMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NotLaterThanOneYearMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfMaturityDatesOfFinancialLiabilitiesDetail",
      "http://www.ypf.com/role/LeaseLiabilitiesSummaryOfLeaseLiabilitiesAndDiscountRatesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Not later than one year [member]",
        "verboseLabel": "0 - 1 year [member]",
        "terseLabel": "0 to 1 year [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of not later than one year."
       }
      }
     },
     "auth_ref": [
      "r163",
      "r164",
      "r177",
      "r282",
      "r285",
      "r424",
      "r491",
      "r498"
     ]
    },
    "ifrs-full_NotLaterThanThreeMonthsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NotLaterThanThreeMonthsMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementSummaryOfBreakdownOfTheFinancialAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Not later than three months [member]",
        "terseLabel": "Less than three months past due [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a time band of not later than three months."
       }
      }
     },
     "auth_ref": [
      "r675"
     ]
    },
    "ypf_NotificationAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NotificationAxis",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Notification [Axis]",
        "documentation": "Notification."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NotificationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NotificationMember",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Notification [Member]",
        "documentation": "Notification."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NotionalAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NotionalAmount",
     "presentation": [
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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": [
      "r675"
     ]
    },
    "ypf_NumberOfConsecutiveAnnualInstalments": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NumberOfConsecutiveAnnualInstalments",
     "presentation": [
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Number Of Consecutive Annual Instalments",
        "documentation": "Number Of Consecutive Annual Instalments"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NumberOfExternalClientAccountedForTenPercentOrMoreOfRevenue": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NumberOfExternalClientAccountedForTenPercentOrMoreOfRevenue",
     "presentation": [
      "http://www.ypf.com/role/RevenuesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Number of external client accounted for ten percent or more of revenue",
        "verboseLabel": "Number of external client accounted for 10% or more of Group's revenue",
        "documentation": "Number of external client accounted for ten percent or more of revenue."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NumberOfInterlocutoryJudgments": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NumberOfInterlocutoryJudgments",
     "presentation": [
      "http://www.ypf.com/role/ContingentAssetsAndLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Number Of Interlocutory Judgments",
        "terseLabel": "Number of interlocutory judgments issued",
        "documentation": "Number of interlocutory judgments."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NumberOfLeaseTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NumberOfLeaseTerm",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Number Of Lease Term",
        "terseLabel": "Number of lease term",
        "documentation": "Number of lease term."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NumberOfNaturalGasSupplyAgreementsTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NumberOfNaturalGasSupplyAgreementsTerm",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Number Of Natural Gas Supply Agreements Term",
        "terseLabel": "Number of natural gas supply agreements term",
        "documentation": "Number of natural gas supply agreements term."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_NumberOfOutstandingShareOptions": {
     "xbrltype": "decimalItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NumberOfOutstandingShareOptions",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20202023Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20212024Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20222025Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20232026Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20242027Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20252028Detail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Number of share options outstanding in share-based payment arrangement",
        "periodStartLabel": "Amount at the beginning of the fiscal year",
        "periodEndLabel": "Amount at the end of the fiscal year",
        "verboseLabel": "Amount at the end of the fiscal year"
       }
      },
      "en": {
       "role": {
        "documentation": "The number of share options outstanding in a share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r180",
      "r184",
      "r187",
      "r355",
      "r359"
     ]
    },
    "ifrs-full_NumberOfShareOptionsExercisedInSharebasedPaymentArrangement": {
     "xbrltype": "decimalItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NumberOfShareOptionsExercisedInSharebasedPaymentArrangement",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20202023Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20212024Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20222025Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20232026Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20242027Detail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Number of share options exercised in share-based payment arrangement",
        "negatedLabel": "Settled"
       }
      },
      "en": {
       "role": {
        "documentation": "The number of share options exercised in a share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r182",
      "r357"
     ]
    },
    "ifrs-full_NumberOfShareOptionsExpiredInSharebasedPaymentArrangement": {
     "xbrltype": "decimalItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NumberOfShareOptionsExpiredInSharebasedPaymentArrangement",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20202023Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20212024Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20222025Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20232026Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20242027Detail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Number of share options expired in share-based payment arrangement",
        "negatedTerseLabel": "Expired"
       }
      },
      "en": {
       "role": {
        "documentation": "The number of share options expired in a share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r183",
      "r358"
     ]
    },
    "ifrs-full_NumberOfShareOptionsGrantedInSharebasedPaymentArrangement": {
     "xbrltype": "decimalItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NumberOfShareOptionsGrantedInSharebasedPaymentArrangement",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsAdditionalInformationDetail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20212024Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20222025Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20232026Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20242027Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20252028Detail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Number of share options granted in share-based payment arrangement",
        "verboseLabel": "Granted",
        "terseLabel": "Granted"
       }
      },
      "en": {
       "role": {
        "documentation": "The number of share options granted in a share-based payment arrangement."
       }
      }
     },
     "auth_ref": [
      "r181",
      "r356"
     ]
    },
    "ifrs-full_NumberOfSharesOutstanding": {
     "xbrltype": "sharesItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "NumberOfSharesOutstanding",
     "presentation": [
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Number of shares outstanding",
        "terseLabel": "Common shares outstanding"
       }
      },
      "en": {
       "role": {
        "documentation": "The number of shares that have been authorised and issued, reduced by treasury shares held. [Refer: Treasury shares]"
       }
      }
     },
     "auth_ref": [
      "r292",
      "r392",
      "r431"
     ]
    },
    "ypf_NumberOfSharesSubscribed": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NumberOfSharesSubscribed",
     "presentation": [
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Number Of Shares Subscribed",
        "terseLabel": "Number of shares of common stock",
        "documentation": "Number of shares subscribed."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NumberOfUnconventionalWells": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NumberOfUnconventionalWells",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Number Of Unconventional Wells",
        "terseLabel": "Number of unconventional wells",
        "documentation": "Number of unconventional wells."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_NumberOfYearsExploitationConcessionTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "NumberOfYearsExploitationConcessionTerm",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Number Of Years Exploitation Concession Term",
        "terseLabel": "Number of years exploitation concession term",
        "documentation": "Number of years exploitation concession term."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_OLCLPMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OLCLPMember",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/AcquisitionsAndDisposalsSummaryOfFairValuesOfTheIdentifiableAssetsAcquiredAndTheLiabilitiesAssumedDetail",
      "http://www.ypf.com/role/AcquisitionsAndDisposalsTables",
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfTheInvestmentsInAssociatesAndJointVenturesOnADisaggregatedBasisDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "OLCLP [Member]",
        "terseLabel": "OLCLP [member]",
        "documentation": "OLCLP."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_OPESSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OPESSAMember",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "OPESSA [member]",
        "terseLabel": "OPESSA [member]",
        "documentation": "OPESSA."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_OTAMERICAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OTAMERICAMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfTheInvestmentsInAssociatesAndJointVenturesOnADisaggregatedBasisDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "OTAMERICA [Member]",
        "documentation": "OTAMERICA."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_OTAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OTAMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "OTA [member]",
        "terseLabel": "OTA [member]",
        "documentation": "OTA [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_OTCMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OTCMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "OTC [member]",
        "terseLabel": "OTC [member]",
        "documentation": "OTC [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OfficeEquipmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OfficeEquipmentMember",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsDetailedInformationAboutPropertyPlantAndEquipmentDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Office equipment [member]",
        "terseLabel": "Selling equipment [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of property, plant and equipment representing equipment used to support office functions, not specifically used in the production process. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r456"
     ]
    },
    "ypf_OilAndCondensateReserveExtensionsAndDiscoveries": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OilAndCondensateReserveExtensionsAndDiscoveries",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Oil and condensate reserve extensions and discoveries",
        "terseLabel": "Extensions and discoveries",
        "documentation": "Oil and condensate reserve extensions and discoveries."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_OilAndCondensateReserveImprovedRecovery": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OilAndCondensateReserveImprovedRecovery",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Oil and condensate reserve improved recovery",
        "terseLabel": "Improved recovery",
        "documentation": "Oil and condensate reserve improved recovery."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_OilAndCondensateReserveProductionForYear": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OilAndCondensateReserveProductionForYear",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Oil and condensate reserve production for year",
        "negatedLabel": "Production for the year",
        "documentation": "Oil and condensate reserve production for year."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_OilAndCondensateReservePurchaseOfMinerals": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OilAndCondensateReservePurchaseOfMinerals",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Oil and condensate reserve purchase of minerals",
        "terseLabel": "Purchase of minerals in place",
        "documentation": "Oil and condensate reserve purchase of minerals."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_OilAndCondensateReserveRevisionsOfPreviousEstimates": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OilAndCondensateReserveRevisionsOfPreviousEstimates",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Oil and condensate reserve revisions of previous estimates",
        "terseLabel": "Revisions of previous estimates",
        "documentation": "Oil and condensate reserve revisions of previous estimates"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_OilAndCondensateReserveSaleOfMinerals": {
     "xbrltype": "volumeItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OilAndCondensateReserveSaleOfMinerals",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Oil and condensate reserve sale of minerals",
        "negatedLabel": "Sale of minerals in place",
        "documentation": "Oil and condensate reserve sale of minerals."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OilAndGasAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OilAndGasAssetsMember",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsDetailedInformationAboutPropertyPlantAndEquipmentDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Oil and gas assets [member]",
        "terseLabel": "Infrastructure for Natural Gas Distribution [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for oil and gas assets. [Refer: Oil and gas assets]"
       }
      }
     },
     "auth_ref": [
      "r640"
     ]
    },
    "ypf_OilCompaniesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OilCompaniesMember",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesBySalesChannelsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Oil Companies [member]",
        "terseLabel": "Oil companies [member]",
        "documentation": "Oil companies."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_OilEquivalentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OilEquivalentMember",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesParentheticalDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Oil Equivalent [member]",
        "terseLabel": "Oil equivalent [Member]",
        "documentation": "Oil equivalent."
       }
      }
     },
     "auth_ref": []
    },
    "srt_OilReservesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "OilReservesMember",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Oil [Member]",
        "terseLabel": "Oil and Condensate [Member]",
        "documentation": "Crude oil, which may also include condensate and natural gas liquids."
       }
      }
     },
     "auth_ref": [
      "r0",
      "r663",
      "r664"
     ]
    },
    "ypf_OldelvalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OldelvalMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfTheInvestmentsInAssociatesAndJointVenturesOnADisaggregatedBasisDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Oldelval [member]",
        "terseLabel": "Oldelval [member]",
        "documentation": "Oldelval [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OperatingSegmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OperatingSegmentsMember",
     "presentation": [
      "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operating segments [member]",
        "terseLabel": "Operating segments [member]"
       }
      }
     },
     "auth_ref": [
      "r244"
     ]
    },
    "ypf_OperationServicesAndOtherServiceContracts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OperationServicesAndOtherServiceContracts",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail": {
       "parentTag": "ifrs-full_ExpenseByNature",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Operation services and other service contracts",
        "terseLabel": "Operation services and other service contracts",
        "documentation": "Operation services and other service contracts."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_OptimizationPlanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OptimizationPlanMember",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail",
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Optimization plan [Member]",
        "documentation": "Optimization plan"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OrdinarySharesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OrdinarySharesMember",
     "presentation": [
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Ordinary shares [member]",
        "terseLabel": "Ordinary shares [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for equity instruments that are subordinate to all other classes of equity instruments."
       }
      }
     },
     "auth_ref": [
      "r682"
     ]
    },
    "ypf_OtherAccountsReceivableTradeCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OtherAccountsReceivableTradeCurrent",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail": {
       "parentTag": "ypf_TradeAndOtherCurrentReceivablesOtherThanProvision",
       "weight": 1.0,
       "order": 20.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Accounts Receivable Trade Current",
        "terseLabel": "Receivables from services, sales of other assets and other advance payments",
        "documentation": "Other accounts receivable trade current."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_OtherAccountsReceivableTradeNonCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OtherAccountsReceivableTradeNonCurrent",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail": {
       "parentTag": "ypf_NoncurrentReceivablesOtherthanProvision",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Accounts Receivable Trade Non Current",
        "terseLabel": "Receivables from services, sales of other assets and other advance payments",
        "documentation": "Other accounts receivable trade non current."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherCashAndCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherCashAndCashEquivalents",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other cash and cash equivalents",
        "terseLabel": "Other liquid financial assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of cash and cash equivalents that the entity does not separately disclose in the same statement or note. [Refer: Cash and cash equivalents]"
       }
      }
     },
     "auth_ref": [
      "r659"
     ]
    },
    "ypf_OtherCompaniesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OtherCompaniesMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfTheInvestmentsInAssociatesAndJointVenturesOnADisaggregatedBasisDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Companies [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherComprehensiveIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherComprehensiveIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetail": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 1.0
      },
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate1": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 3.0
      },
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate2": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 5.0
      },
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 5.0
      },
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate3": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 7.0
      },
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate4": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 9.0
      },
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate5": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 11.0
      },
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate6": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 13.0
      },
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate7": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 15.0
      },
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate8": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 17.0
      },
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate9": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 19.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity",
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other comprehensive income",
        "totalLabel": "Other comprehensive income for the year",
        "terseLabel": "Other comprehensive income",
        "verboseLabel": "Other comprehensive income"
       }
      }
     },
     "auth_ref": [
      "r126",
      "r405",
      "r435",
      "r446"
     ]
    },
    "ypf_OtherComprehensiveIncomeAttributableToAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OtherComprehensiveIncomeAttributableToAbstract",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income Attributable To (abstract )",
        "terseLabel": "Other comprehensive income for the year attributable to:",
        "documentation": "Other comprehensive income attributable to (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://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other comprehensive income, attributable to non-controlling interests",
        "terseLabel": "Non-controlling interest"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of other comprehensive income attributable to non-controlling interests. [Refer: Non-controlling interests; Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r683"
     ]
    },
    "ifrs-full_OtherComprehensiveIncomeAttributableToOwnersOfParent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherComprehensiveIncomeAttributableToOwnersOfParent",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other comprehensive income, attributable to owners of parent",
        "terseLabel": "Shareholders of the parent company"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of other comprehensive income attributable to owners of the parent."
       }
      }
     },
     "auth_ref": [
      "r683"
     ]
    },
    "ypf_OtherComprehensiveIncomeNetOfTaxResultsFromNetMonetaryPosition": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OtherComprehensiveIncomeNetOfTaxResultsFromNetMonetaryPosition",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_OtherComprehensiveIncome",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income Net Of Tax Results From Net Monetary Position",
        "terseLabel": "Result from net monetary position in subsidiaries, associates and joint ventures",
        "documentation": "Other comprehensive income net of tax results from net monetary position."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_OtherComprehensiveIncomeReclassificationAdjustmentsDueToAcquisitionOrDisposalOfSubsidiariesAssociatesJointVentures": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OtherComprehensiveIncomeReclassificationAdjustmentsDueToAcquisitionOrDisposalOfSubsidiariesAssociatesJointVentures",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_OtherComprehensiveIncome",
       "weight": 1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Comprehensive Income Reclassification Adjustments Due To Acquisition Or Disposal Of Subsidiaries Associates Joint Ventures",
        "terseLabel": "Gains / (losses) reclassified to profit or loss due to the acquisition and/or disposal of subsidiaries, associates and joint ventures",
        "documentation": "Other comprehensive income reclassification adjustments due to acquisition or disposal of subsidiaries associates joint ventures"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherContingentLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherContingentLiabilitiesMember",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other contingent liabilities [member]",
        "terseLabel": "Provision for Hydrocarbon Wells Abandonment Obligations [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for contingent liabilities that the entity does not separately disclose in the same statement or note. [Refer: Classes of contingent liabilities [domain]]"
       }
      }
     },
     "auth_ref": [
      "r463"
     ]
    },
    "srt_OtherCurrencyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "OtherCurrencyMember",
     "presentation": [
      "http://www.ypf.com/role/LoansScheduleOfLoansDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Currency [Member]",
        "terseLabel": "Currencies other than Argentine pesos [member]",
        "documentation": "Currency classified as other."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherCurrentAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherCurrentAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other current assets",
        "verboseLabel": "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": [
      "r678"
     ]
    },
    "ifrs-full_OtherCurrentLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherCurrentLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilities",
       "weight": 1.0,
       "order": 41.0
      },
      "http://www.ypf.com/role/OtherLiabilitiesDetailsOfOtherLiabilitiesDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/OtherLiabilitiesDetailsOfOtherLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other current liabilities",
        "verboseLabel": "Other liabilities",
        "totalLabel": "Total, 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": [
      "r678"
     ]
    },
    "ypf_OtherCurrentLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OtherCurrentLiabilitiesAbstract",
     "presentation": [
      "http://www.ypf.com/role/OtherLiabilitiesDetailsOfOtherLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other current liabilities [abstract]",
        "terseLabel": "Current",
        "documentation": "Other current liabilities abstract."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherCurrentNonfinancialLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherCurrentNonfinancialLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other current non-financial liabilities",
        "verboseLabel": "Other current liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current non-financial liabilities that the entity does not separately disclose in the same statement or note. [Refer: Other financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r678"
     ]
    },
    "ifrs-full_OtherCurrentReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherCurrentReceivables",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentAssets",
       "weight": 1.0,
       "order": 5.0
      },
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other current receivables",
        "verboseLabel": "Other receivables",
        "totalLabel": "Net Other current receivables",
        "positiveLabel": "Other receivables Current"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current other receivables. [Refer: Other receivables]"
       }
      }
     },
     "auth_ref": [
      "r514",
      "r521"
     ]
    },
    "ypf_OtherCurrentReceivablesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OtherCurrentReceivablesAbstract",
     "presentation": [
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Current Receivables [abstract]",
        "terseLabel": "Current",
        "documentation": "Other Current Receivables [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_OtherCurrentReceivablesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OtherCurrentReceivablesMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementSummaryOfBreakdownOfTheFinancialAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Current Receivables [member]",
        "terseLabel": "Other Current Receivables [member]",
        "documentation": "Other current receivables."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_OtherExchangeDifferencesNet": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OtherExchangeDifferencesNet",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail": {
       "parentTag": "ifrs-full_OtherFinanceIncome",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Exchange Differences, Net",
        "terseLabel": "Other exchange differences, net",
        "documentation": "Other exchange differences, net."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherExpenseByNature": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherExpenseByNature",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail": {
       "parentTag": "ifrs-full_ExpenseByNature",
       "weight": 1.0,
       "order": 17.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other expenses, by nature",
        "terseLabel": "Other personnel expenses"
       }
      }
     },
     "auth_ref": [
      "r449",
      "r516"
     ]
    },
    "ifrs-full_OtherFinanceIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherFinanceIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail": {
       "parentTag": "ifrs-full_FinanceIncomeCost",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other finance income",
        "totalLabel": "Total other financial results"
       }
      }
     },
     "auth_ref": [
      "r675"
     ]
    },
    "ifrs-full_OtherFinanceIncomeCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherFinanceIncomeCost",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_FinanceIncomeCost",
       "weight": 1.0,
       "order": 23.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other finance income (cost)",
        "terseLabel": "Other financial results"
       }
      }
     },
     "auth_ref": [
      "r683"
     ]
    },
    "ypf_OtherFinancialAssetMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OtherFinancialAssetMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementSummaryOfMaximumExposureToCreditRiskDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other financial asset [member]",
        "terseLabel": "Other financial assets [member]",
        "documentation": "Other financial asset."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_OtherFinancialCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OtherFinancialCosts",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail": {
       "parentTag": "ifrs-full_FinanceCosts",
       "weight": 1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Financial Costs",
        "negatedLabel": "Other financial costs",
        "documentation": "Other financial costs."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_OtherFinancialIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OtherFinancialIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail": {
       "parentTag": "ifrs-full_FinanceIncome",
       "weight": 1.0,
       "order": 14.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Financial Income",
        "terseLabel": "Other financial income",
        "documentation": "Other financial income."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherFinancialLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherFinancialLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfMaturityDatesOfFinancialLiabilitiesDetail": {
       "parentTag": "ifrs-full_FinancialLiabilities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfMaturityDatesOfFinancialLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other financial liabilities",
        "terseLabel": "Other liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of financial liabilities that the entity does not separately disclose in the same statement or note. [Refer: Financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r416"
     ]
    },
    "ypf_OtherFinancialResultsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OtherFinancialResultsAbstract",
     "presentation": [
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other financial results [abstract]",
        "terseLabel": "Other financial results",
        "documentation": "Other financial result."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_OtherForeignMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OtherForeignMember",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsFromOilAndGasProducingActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Foreign [member]",
        "terseLabel": "Other foreign [Member]",
        "documentation": "Other foreign."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherGainsLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherGainsLosses",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsFromOilAndGasProducingActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other gains (losses)",
        "negatedLabel": "Other"
       }
      }
     },
     "auth_ref": [
      "r670",
      "r671"
     ]
    },
    "ypf_OtherGoodsAndServicesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OtherGoodsAndServicesMember",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other goods and services [member]",
        "terseLabel": "Other goods and services [member]",
        "documentation": "Other goods and services."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherIntangibleAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherIntangibleAssetsMember",
     "presentation": [
      "http://www.ypf.com/role/IntangibleAssetsSummaryOfChangesInIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other intangible assets [member]",
        "terseLabel": "Other intangibles [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": [
      "r650"
     ]
    },
    "ypf_OtherInvestmentsFreelyAvailable": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OtherInvestmentsFreelyAvailable",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other investments freely available",
        "documentation": "Other investments freely available."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other liabilities",
        "terseLabel": "Other liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of liabilities that the entity does not separately disclose in the same statement or note."
       }
      }
     },
     "auth_ref": [
      "r678"
     ]
    },
    "ypf_OtherLiabilitiesCurrent1": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OtherLiabilitiesCurrent1",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/AccountsPayableDetailedInformationAboutAccountsPayableDetail": {
       "parentTag": "ifrs-full_TradeAndOtherCurrentPayables",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/AccountsPayableDetailedInformationAboutAccountsPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other liabilities current 1",
        "terseLabel": "Miscellaneous",
        "documentation": "Other liabilities current 1."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_OtherLiabilitiesRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OtherLiabilitiesRecognisedAsOfAcquisitionDate",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsSummaryOfFairValuesOfTheIdentifiableAssetsAcquiredAndTheLiabilitiesAssumedDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other liabilities recognised as of acquisition date",
        "verboseLabel": "Other liabilities",
        "documentation": "Other liabilities recognized as of acquisition date."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherLongtermProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherLongtermProvisions",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 46.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other non-current provisions",
        "verboseLabel": "Provisions"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current provisions other than provisions for employee benefits. [Refer: Non-current provisions]"
       }
      }
     },
     "auth_ref": [
      "r396",
      "r428"
     ]
    },
    "ypf_OtherMiscellaneousLiabilitiesNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OtherMiscellaneousLiabilitiesNoncurrent",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/OtherLiabilitiesDetailsOfOtherLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other miscellaneous liabilities Noncurrent",
        "terseLabel": "Miscellaneous",
        "documentation": "Other miscellaneous liabilities Noncurrent."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_OtherMiscellaneousSalariesAndSocialSecurityPayablesCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OtherMiscellaneousSalariesAndSocialSecurityPayablesCurrent",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/SalariesAndSocialSecuritySummaryOfDetailedInformationAboutSalariesAndSocialSecurityDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Miscellaneous Salaries And Social Security Payables Current",
        "documentation": "Other miscellaneous salaries and social security payables current"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_OtherMiscellaneousSalariesAndSocialSecurityPayablesNonCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OtherMiscellaneousSalariesAndSocialSecurityPayablesNonCurrent",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/SalariesAndSocialSecuritySummaryOfDetailedInformationAboutSalariesAndSocialSecurityDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Miscellaneous Salaries And Social Security Payables Non Current",
        "documentation": "Other miscellaneous salaries and social security payables non current"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_OtherMovements": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OtherMovements",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfMovementsWhichAffectedTheValueOfTheInvestmentsInAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Movements",
        "negatedLabel": "Other movements",
        "documentation": "Other movements."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherNoncurrentLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherNoncurrentLiabilities",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 50.0
      },
      "http://www.ypf.com/role/OtherLiabilitiesDetailsOfOtherLiabilitiesDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/OtherLiabilitiesDetailsOfOtherLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other non-current liabilities",
        "terseLabel": "Other liabilities",
        "totalLabel": "Total, other noncurrent liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current liabilities that the entity does not separately disclose in the same statement or note. [Refer: Non-current liabilities]"
       }
      }
     },
     "auth_ref": [
      "r678"
     ]
    },
    "ypf_OtherNoncurrentLiabilitiesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OtherNoncurrentLiabilitiesAbstract",
     "presentation": [
      "http://www.ypf.com/role/OtherLiabilitiesDetailsOfOtherLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other non-current liabilities [abstract]",
        "terseLabel": "Noncurrent",
        "documentation": "Other non-current liabilities [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherNoncurrentNonfinancialLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherNoncurrentNonfinancialLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other non-current non-financial liabilities",
        "terseLabel": "Other non-current liabilities"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current non-financial liabilities that the entity does not separately disclose in the same statement or note. [Refer: Other financial liabilities]"
       }
      }
     },
     "auth_ref": [
      "r678"
     ]
    },
    "ifrs-full_OtherNoncurrentReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherNoncurrentReceivables",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 14.0
      },
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other non-current receivables",
        "verboseLabel": "Other receivables",
        "totalLabel": "Net other non current receivables",
        "definitionGuidance": "Other receivables Non Current"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of non-current other receivables. [Refer: Other receivables]"
       }
      }
     },
     "auth_ref": [
      "r514",
      "r521"
     ]
    },
    "ypf_OtherNoncurrentReceivablesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OtherNoncurrentReceivablesAbstract",
     "presentation": [
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Noncurrent Receivables [abstract]",
        "terseLabel": "Noncurrent",
        "documentation": "Other Noncurrent Receivables [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherNonfinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherNonfinancialAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail": {
       "parentTag": "ypf_FinancialAndNonFinancialAssets",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other non-financial assets",
        "terseLabel": "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": [
      "r678"
     ]
    },
    "ifrs-full_OtherOperatingIncomeExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherOperatingIncomeExpense",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_ProfitLossFromOperatingActivities",
       "weight": 1.0,
       "order": 19.0
      },
      "http://www.ypf.com/role/OtherNetOperatingResultsDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome",
      "http://www.ypf.com/role/OtherNetOperatingResultsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other operating income (expense)",
        "terseLabel": "Other net operating results",
        "totalLabel": "Other operating results, net"
       }
      }
     },
     "auth_ref": [
      "r683"
     ]
    },
    "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": [
      "r587"
     ]
    },
    "ifrs-full_OtherPropertyPlantAndEquipmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherPropertyPlantAndEquipmentMember",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsDetailedInformationAboutPropertyPlantAndEquipmentDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other property, plant and equipment [member]",
        "terseLabel": "Other Property [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of property, plant and equipment representing property, plant and equipment that the entity does not separately disclose in the same statement or note. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r640"
     ]
    },
    "ypf_OtherReceivablesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OtherReceivablesMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other Receivables [member]",
        "terseLabel": "Other receivables [member]",
        "documentation": "Other receivables."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_OtherReceivablesRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OtherReceivablesRecognisedAsOfAcquisitionDate",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsSummaryOfFairValuesOfTheIdentifiableAssetsAcquiredAndTheLiabilitiesAssumedDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other receivables recognised as of acquisition date",
        "verboseLabel": "Other receivables",
        "documentation": "Other receivables recognised as of acquisition date."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_OtherSalesChannelsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "OtherSalesChannelsMember",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesBySalesChannelsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other sales channels [member]",
        "terseLabel": "Other sales channels [member]",
        "documentation": "Other sales channels."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_OtherShorttermProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherShorttermProvisions",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilities",
       "weight": 1.0,
       "order": 35.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other current provisions",
        "verboseLabel": "Provisions"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current provisions other than provisions for employee benefits. [Refer: Provisions]"
       }
      }
     },
     "auth_ref": [
      "r396",
      "r428"
     ]
    },
    "ifrs-full_OtherTaxEffectsForReconciliationBetweenAccountingProfitAndTaxExpenseIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "OtherTaxEffectsForReconciliationBetweenAccountingProfitAndTaxExpenseIncome",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfReconciliationBetweenTheChargeToNetIncomeForIncomeTaxAndTheOneThatWouldResultFromApplyingThePrevailingTaxRateOnNetIncomeBeforeIncomeTaxArisingFromTheConsolidatedStatementsOfComprehensiveIncoe8f94"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Other tax effects for reconciliation between accounting profit and tax expense (income)",
        "negatedLabel": "Effect of application of indexation mechanisms"
       }
      },
      "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": [
      "r4",
      "r307"
     ]
    },
    "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": [
      "r548",
      "r559",
      "r569",
      "r602"
     ]
    },
    "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": [
      "r551",
      "r562",
      "r572",
      "r605"
     ]
    },
    "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": [
      "r551",
      "r562",
      "r572",
      "r605"
     ]
    },
    "ypf_PAEMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PAEMember",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "PAE [Member]",
        "terseLabel": "PAE [Member]",
        "documentation": "PAE."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PampaEnergiaSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PampaEnergiaSAMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pampa Energia S.A. [member]",
        "documentation": "Pampa Energia S.A. [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PampaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PampaMember",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pampa [Member]",
        "terseLabel": "Pampa [Member]",
        "documentation": "Pampa."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PampaYeguasIMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PampaYeguasIMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pampa Yeguas I [Member]",
        "terseLabel": "Pampa Yeguas I [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PanAmericanEnergyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PanAmericanEnergyMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pan American Energy [Member]",
        "verboseLabel": "Pan American Energy [Member]",
        "documentation": "Pan American Energy."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ParValuePerShare": {
     "xbrltype": "perShareItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ParValuePerShare",
     "presentation": [
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Par value per share",
        "terseLabel": "Par value of share"
       }
      },
      "en": {
       "role": {
        "documentation": "The nominal value per share."
       }
      }
     },
     "auth_ref": [
      "r291",
      "r391",
      "r430"
     ]
    },
    "ifrs-full_ParentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ParentMember",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Parent [member]",
        "terseLabel": "YPF S.A. [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for an entity that controls one or more entities."
       }
      }
     },
     "auth_ref": [
      "r40",
      "r329"
     ]
    },
    "ifrs-full_PastDueStatusAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PastDueStatusAxis",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementSummaryOfBreakdownOfTheFinancialAssetsDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail",
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Past due status [axis]",
        "terseLabel": "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": [
      "r490"
     ]
    },
    "ifrs-full_PastDueStatusDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PastDueStatusDomain",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementSummaryOfBreakdownOfTheFinancialAssetsDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail",
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Past due status [domain]",
        "terseLabel": "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": [
      "r490"
     ]
    },
    "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": [
      "r576"
     ]
    },
    "ypf_PayablesWithPartnersCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PayablesWithPartnersCurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/AccountsPayableDetailedInformationAboutAccountsPayableDetail": {
       "parentTag": "ifrs-full_TradeAndOtherCurrentPayables",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/AccountsPayableDetailedInformationAboutAccountsPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payables with partners, Current",
        "terseLabel": "Payables with partners in JA and other agreements",
        "documentation": "Payables with partners, current."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PayablesWithPartnersNoncurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PayablesWithPartnersNoncurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/AccountsPayableDetailedInformationAboutAccountsPayableDetail": {
       "parentTag": "ifrs-full_NoncurrentPayables",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/AccountsPayableDetailedInformationAboutAccountsPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payables with partners, Non-current",
        "terseLabel": "Payables with partners in JA and other agreements",
        "documentation": "Payables with partners, non-current."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PaymentOfInterestsOnIncomeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PaymentOfInterestsOnIncomeTax",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payment Of Interests On Income Tax",
        "negatedLabel": "Payments of interests in relation to income tax",
        "documentation": "Payment of interests on income tax."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PaymentOfShortTermLeaseAndVariableCharge": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PaymentOfShortTermLeaseAndVariableCharge",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlowsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payment Of Short Term Lease And Variable Charge",
        "terseLabel": "Payment of short term lease and variable charges",
        "documentation": "Payment of short term lease and variable charge."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PaymentsOfLeaseLiabilitiesClassifiedAsFinancingActivities",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments of lease liabilities, classified as financing activities",
        "negatedLabel": "Payments of leases"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for payment of lease liabilities, classified as financing activities. [Refer: Lease liabilities]"
       }
      }
     },
     "auth_ref": [
      "r469"
     ]
    },
    "ifrs-full_PaymentsToAcquireOrRedeemEntitysShares": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PaymentsToAcquireOrRedeemEntitysShares",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Payments to acquire or redeem entity's shares",
        "negatedLabel": "Repurchase of treasury shares"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow to acquire or redeem entity's shares."
       }
      }
     },
     "auth_ref": [
      "r466"
     ]
    },
    "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": [
      "r586"
     ]
    },
    "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": [
      "r586"
     ]
    },
    "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": [
      "r578"
     ]
    },
    "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": [
      "r595"
     ]
    },
    "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": [
      "r588"
     ]
    },
    "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": [
      "r577"
     ]
    },
    "ypf_PercentageOfAdvanceFee": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PercentageOfAdvanceFee",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage of Advance Fee",
        "terseLabel": "Percentage of advance fee",
        "documentation": "Percentage of advance fee."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PercentageOfAppreciationOrDepreciationOnExchangeRateOfForeignCurrency": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PercentageOfAppreciationOrDepreciationOnExchangeRateOfForeignCurrency",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfBreakdownOfEffectAVariationOf10InPrevailingExchangeRatesOnNetIncomeDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage of appreciation or depreciation on exchange rate of foreign currency",
        "terseLabel": "Appreciation (+) / depreciation (-) of exchange rate of peso against dollar",
        "documentation": "Percentage of appreciation or depreciation exchange rate of peso against us dollar."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PercentageOfCreditAndInvestmentsWithTheNationalGovernmentDirectAgenciesAndCompaniesWithGovernmentParticipation": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PercentageOfCreditAndInvestmentsWithTheNationalGovernmentDirectAgenciesAndCompaniesWithGovernmentParticipation",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage of credit and investments with the National Government, direct agencies and companies with government participation",
        "documentation": "percentage of credit and investments with the National Government, direct agencies and companies with government participation"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PercentageOfDebtServices": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PercentageOfDebtServices",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsGrantedGuaranteesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage Of Debt Services",
        "definitionGuidance": "Percentage of debt services",
        "documentation": "Percentage of debt services."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PercentageOfDisposalOfInterests": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PercentageOfDisposalOfInterests",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage of Disposal Of Interests",
        "terseLabel": "Percentage of Disposal Of Interests",
        "documentation": "Percentage of disposal of interests."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PercentageOfExportDutyAfterReduction": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PercentageOfExportDutyAfterReduction",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage Of Export Duty After Reduction",
        "terseLabel": "Percentage of export duty after reduction",
        "documentation": "Percentage of export duty after reduction."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PercentageOfGeneralServiceCustomersRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PercentageOfGeneralServiceCustomersRate",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage Of General Service Customers Rate",
        "terseLabel": "Percentage of general service customers rate",
        "documentation": "Percentage of general service customers rate."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PercentageOfHydrocarbons": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PercentageOfHydrocarbons",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage of Hydrocarbons",
        "terseLabel": "Percentage of hydrocarbons",
        "documentation": "Percentage of hydrocarbons."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PercentageOfIncreaseDecreaseInPricesOfInvestments": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PercentageOfIncreaseDecreaseInPricesOfInvestments",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfEffectOfA10VariationInThePricesOfInvestmentsInFinancialInstrumentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage of increase (decrease) in prices of investments",
        "terseLabel": "Increase (+) / decrease (-) in the prices of investments in financial instruments",
        "documentation": "Percentage of increase (decrease) in prices of investments"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PercentageOfIncreaseOrDecreaseInInterestRatesBasisPoints": {
     "xbrltype": "pureItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PercentageOfIncreaseOrDecreaseInInterestRatesBasisPoints",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfEstimatedImpactOnConsolidatedComprehensiveIncomeThatAnIncreaseOrDecreaseOf100BasisPointsInInterestRateDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage Of Increase Or Decrease In Interest Rates Basis Points",
        "terseLabel": "Increase (+) / decrease (-) in the interest rates (basis points)",
        "documentation": "Percentage of increase or decrease in interest rates basis points."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PercentageOfInstallmentAmoritized": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PercentageOfInstallmentAmoritized",
     "presentation": [
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage Of Installment Amoritized",
        "documentation": "Percentage Of Installment Amoritized"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PercentageOfMaximumAuthorizedCapacityFromThirdParties": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PercentageOfMaximumAuthorizedCapacityFromThirdParties",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage Of Maximum Authorized Capacity From Third Parties",
        "terseLabel": "Percentage of maximum authorized capacity from third parties",
        "documentation": "Percentage of maximum authorized capacity from third parties."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PercentageOfOwnershipInterestDisposed": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PercentageOfOwnershipInterestDisposed",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage of ownership interest disposed",
        "documentation": "Percentage of ownership interest disposed."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PercentageOfOwnershipInterestInTheSubsidiaryToBeDisposedOff": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PercentageOfOwnershipInterestInTheSubsidiaryToBeDisposedOff",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage Of Ownership Interest In The Subsidiary To Be Disposed Off",
        "terseLabel": "Percentage of ownership in the subsidiary to be disposed off",
        "documentation": "Percentage of ownership interest in the subsidiary to be disposed off."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PercentageOfPrepaymentsOfTaxArrivedWithoutConsideringTheTaxLosses": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PercentageOfPrepaymentsOfTaxArrivedWithoutConsideringTheTaxLosses",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage Of Prepayments Of Tax Arrived Without Considering The Tax Losses",
        "terseLabel": "Percentage of prepayments of tax arrived without considering the tax losses",
        "documentation": "Percentage of prepayments of tax arrived without considering the tax losses."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PercentageOfRoyaltyAtBidderDiscretion": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PercentageOfRoyaltyAtBidderDiscretion",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage Of Royalty At Bidder Discretion",
        "terseLabel": "Percentage of royalty at bidder discretion",
        "documentation": "Percentage of royalty at bidder discretion."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PercentageOfSalaryContributionToMutualFundRetirementPlan": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PercentageOfSalaryContributionToMutualFundRetirementPlan",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage Of Salary Contribution To Mutual Fund Retirement Plan",
        "terseLabel": "Percentage contribution to mutual fund retirement plan",
        "documentation": "Percentage of salary contribution to mutual fund retirement plan."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PercentageOfSaleOnProductionOfLiquidAndGaseousHydrocarbons": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PercentageOfSaleOnProductionOfLiquidAndGaseousHydrocarbons",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage of sale on production of liquid and gaseous hydrocarbons",
        "terseLabel": "Percentage of sale on production of liquid and gaseous hydrocarbons",
        "documentation": "Percentage of sale on production of liquid and gaseous hydrocarbons."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PercentageOfSharesSubjectToExpropriation": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PercentageOfSharesSubjectToExpropriation",
     "presentation": [
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage Of Shares Subject To Expropriation",
        "terseLabel": "Percentage of shares subject to expropriation",
        "documentation": "Percentage of shares subject to expropriation."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PercentageOfTaxRateOnContractingServicesAndFreightServices": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PercentageOfTaxRateOnContractingServicesAndFreightServices",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage Of Tax Rate On Contracting Services And Freight Services",
        "terseLabel": "Percentage of tax rate on contracting services and freight services",
        "documentation": "Percentage of tax rate on contracting services and freight services."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PercentageOfTaxRateOnServicesAcquiredAbroad": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PercentageOfTaxRateOnServicesAcquiredAbroad",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage Of Tax Rate On Services Acquired Abroad",
        "terseLabel": "Percentage of tax rate on services acquired abroad",
        "documentation": "Percentage of tax rate on services acquired abroad."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PercentageOfTransportationConcession": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PercentageOfTransportationConcession",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage Of Transportation Concession",
        "terseLabel": "Transportation concession percentage",
        "documentation": "Percentage of transportation concession."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PercentageOfVariableRateFinancialLoansToTotalLiabilities": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PercentageOfVariableRateFinancialLoansToTotalLiabilities",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage of Variable Rate Financial Loans to Total Liabilities",
        "terseLabel": "Percentage of variable rate financial loans to total liabilities",
        "documentation": "Percentage of variable rate financial loans to total liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PercentageOfVotingEquityInterestsAcquired": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PercentageOfVotingEquityInterestsAcquired",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail",
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage of voting equity interests acquired",
        "positiveLabel": "Proportion of maximum shares acquired by related party"
       }
      },
      "en": {
       "role": {
        "documentation": "The percentage of voting equity interests acquired in a business combination. [Refer: Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r190",
      "r363"
     ]
    },
    "ypf_PercentageOfWeightedAverageCostOfCapitalEmployedRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PercentageOfWeightedAverageCostOfCapitalEmployedRate",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage Of Weighted Average Cost Of Capital Employed Rate",
        "terseLabel": "Percentage of weighted average cost of capital employed rate",
        "documentation": "Percentage of weighted average cost of capital employed rate."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PercentageRateVariationInTheCPI": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PercentageRateVariationInTheCPI",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage Rate Variation In The CPI",
        "terseLabel": "Percentage rate variation in the CPI",
        "documentation": "Percentage rate variation in the CPI."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PercentageReductionInTheConcessionFee": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PercentageReductionInTheConcessionFee",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage Reduction In The Concession Fee",
        "terseLabel": "Percentage reduction in the concession fee",
        "documentation": "Percentage reduction in the concession fee."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PercentageTaxRateForImportOfGoods": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PercentageTaxRateForImportOfGoods",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Percentage Tax Rate For Import Of Goods",
        "terseLabel": "Percentage tax rate for import of goods",
        "documentation": "Percentage tax rate for import of goods."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PerformanceBonusProgramsAndPerformanceEvaluationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PerformanceBonusProgramsAndPerformanceEvaluationMember",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Performance Bonus Programs And Performance Evaluation [member]",
        "terseLabel": "Performance Bonus Programs and Performance Evaluation [Member]",
        "documentation": "Performance bonus programs and performance evaluation."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PeriodAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PeriodAxis",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail",
      "http://www.ypf.com/role/ProvisionsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Period [Axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PeriodDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PeriodDomain",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail",
      "http://www.ypf.com/role/ProvisionsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Period [Domain]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PeriodOfApplicabilityAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PeriodOfApplicabilityAxis",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Period Of Applicability [Axis]",
        "documentation": "Period of applicability."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PeriodOfApplicabilityMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PeriodOfApplicabilityMember",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Period Of Applicability [Member]",
        "documentation": "Period of applicability."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PeriodWithinWhichTheAmountDepositedInTheReservesShallBePaid": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PeriodWithinWhichTheAmountDepositedInTheReservesShallBePaid",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsGrantedGuaranteesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Period Within Which The Amount Deposited In The Reserves Shall Be Paid",
        "terseLabel": "Period within which the amount deposited in the reserves shall be paid",
        "documentation": "Period within which the amount deposited in the reserves shall be paid."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PermitOfContinentalShelfAndTerritorialWatersExplorationTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PermitOfContinentalShelfAndTerritorialWatersExplorationTerm",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Permit Of Continental Shelf And Territorial Waters Exploration Term",
        "terseLabel": "Permit of continental shelf and territorial waters exploration term",
        "documentation": "Permit of continental shelf and territorial waters exploration term."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PermitOfConventionalExplorationTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PermitOfConventionalExplorationTerm",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Permit Of Conventional Exploration Term",
        "terseLabel": "Permit of conventional exploration term",
        "documentation": "Permit of conventional exploration term."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PermitOfExtensionOfContinentalShelfAndTerritorialWatersExplorationTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PermitOfExtensionOfContinentalShelfAndTerritorialWatersExplorationTerm",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Permit Of Extension Of Continental Shelf And Territorial Waters Exploration Term",
        "terseLabel": "Permit of extension of continental shelf and territorial waters exploration term",
        "documentation": "Permit of extension of continental shelf and territorial waters exploration term."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PermitOfExtensionOfConventionalExplorationTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PermitOfExtensionOfConventionalExplorationTerm",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Permit Of Extension Of Conventional Exploration Term",
        "terseLabel": "Permit of extension of conventional exploration term",
        "documentation": "Permit of extension of conventional exploration term."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PermitOfExtensionOfUnconventionalExplorationTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PermitOfExtensionOfUnconventionalExplorationTerm",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Permit Of Extension Of Unconventional Exploration Term",
        "terseLabel": "Permit of extension of unconventional exploration term",
        "documentation": "Permit of extension of unconventional exploration term."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PermitOfUnconventionalExplorationTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PermitOfUnconventionalExplorationTerm",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Permit Of Unconventional Exploration Term",
        "terseLabel": "Permit of unconventional exploration term",
        "documentation": "Permit of unconventional exploration term."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PermitsForTheUseOfPortsAndLandMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PermitsForTheUseOfPortsAndLandMember",
     "presentation": [
      "http://www.ypf.com/role/RightOfUseAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Permits for the use of ports and land [Member]",
        "documentation": "Permits for the use of ports and land."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PersonalAssetsTaxRate": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PersonalAssetsTaxRate",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Personal assets tax rate",
        "documentation": "Personal assets tax rate."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PetersenEnergiaSauAndAffiliatesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PetersenEnergiaSauAndAffiliatesMember",
     "presentation": [
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Petersen Energia SAU And Affiliates [member]",
        "terseLabel": "Petersen Energia SAU and Affiliates [Member]",
        "documentation": "Petersen Energia SAU and affiliates."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PetersonAndEtonParkAndYpfAndTheRepublicMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PetersonAndEtonParkAndYpfAndTheRepublicMember",
     "presentation": [
      "http://www.ypf.com/role/ContingentAssetsAndLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Peterson And Eton Park And YPF And The Republic [Member]",
        "terseLabel": "Peterson and eton park and ypf and the republic [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PetrochemicalIndustryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PetrochemicalIndustryMember",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesBySalesChannelsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Petrochemical industry [member]",
        "terseLabel": "Petrochemical industry [member]",
        "documentation": "Petrochemical industry."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PetrochemicalsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PetrochemicalsMember",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Petrochemicals [member]",
        "terseLabel": "Petrochemicals [member]",
        "documentation": "Petrochemicals."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PetroleumCokeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PetroleumCokeMember",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Petroleum coke [member]",
        "terseLabel": "Petroleum coke [member]",
        "documentation": "Petroleum coke."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_Plan20252028Member": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "Plan20252028Member",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20252028Detail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Plan 2025-2028 [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PlanName1Axis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PlanName1Axis",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Plan Name1 [axis]",
        "terseLabel": "Plan Name1 [axis]",
        "documentation": "Information by plan name1 pertaining to equity-based compensation arrangements."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PlanName1Domain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PlanName1Domain",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Plan Name 1 [domain]",
        "terseLabel": "Plan Name 1 [domain]",
        "documentation": "Name of the equity-based compensation arrangement plan."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PluspetrolSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PluspetrolSAMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Pluspetrol S A [Member]",
        "terseLabel": "Pluspetrol S.A. [member]",
        "documentation": "Pluspetrol S.A."
       }
      }
     },
     "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": [
      "r579"
     ]
    },
    "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": [
      "r635"
     ]
    },
    "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": [
      "r578"
     ]
    },
    "ypf_PositiveVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PositiveVariationImpactOnNetIncomeCorrespondingToFinancialAssetsAndLiabilitiesMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfBreakdownOfEffectAVariationOf10InPrevailingExchangeRatesOnNetIncomeDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Positive variation impact on net income corresponding to financial assets and liabilities [Member]",
        "verboseLabel": "Positive variation impact on net income corresponding to financial assets and liabilities [member]",
        "documentation": "Positive variation impact on net income corresponding to financial assets and liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PositiveVariationImpactOnNetIncomeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PositiveVariationImpactOnNetIncomeMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfEstimatedImpactOnConsolidatedComprehensiveIncomeThatAnIncreaseOrDecreaseOf100BasisPointsInInterestRateDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Positive Variation Impact on Net Income [Member]",
        "terseLabel": "Positive variation impact on net income [member]",
        "documentation": "Positive variation impact on net income."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PositiveVariationImpactOnProfitOrLossBeforeIncomeTaxMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PositiveVariationImpactOnProfitOrLossBeforeIncomeTaxMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfEffectOfA10VariationInThePricesOfInvestmentsInFinancialInstrumentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Positive Variation Impact on Profit or Loss Before Income Tax [Member]",
        "terseLabel": "Positive variation impact on profit or loss before income tax [member]",
        "documentation": "Positive variation impact on profit or loss before income tax."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PowerPlantsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PowerPlantsMember",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesBySalesChannelsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Power plants [member]",
        "terseLabel": "Power plants [member]",
        "documentation": "Power plants."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PriceRiskMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PriceRiskMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfEffectOfA10VariationInThePricesOfInvestmentsInFinancialInstrumentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Price Risk [member]",
        "terseLabel": "Price Risk [member]",
        "documentation": "Price Risk [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PrincipalPlaceOfBusinessOfJointOperation": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PrincipalPlaceOfBusinessOfJointOperation",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Principal place of business of joint operation",
        "terseLabel": "Name of the JO"
       }
      },
      "en": {
       "role": {
        "documentation": "The principal place of business of a joint operation. [Refer: Total for all joint operations [member]; Principal place of business]"
       }
      }
     },
     "auth_ref": [
      "r116"
     ]
    },
    "ypf_PrivateSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PrivateSecuritiesMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfCompanysFinancialAssetsMeasuredAtFairValueDetail",
      "http://www.ypf.com/role/InvestmentsInFinancialAssetsSummaryOfInvestmentsInFinancialAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Private Securities [Member]",
        "terseLabel": "Private securities - NO and stock market promissory notes [member]",
        "documentation": "Private securities."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ProceedsFromAccountOverdraftNetClassifiedAsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProceedsFromAccountOverdraftNetClassifiedAsFinancingActivities",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 8.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow",
      "http://www.ypf.com/role/LoansEvolutionOfTheLoansDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from Account Overdraft Net Classified as Financing Activities",
        "negatedLabel": "Account overdrafts, net",
        "negatedTerseLabel": "Account overdrafts, net",
        "documentation": "Proceeds from account overdraft net classified as financing activities."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ProceedsFromAssignmentOfAreasAndSaleOfAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProceedsFromAssignmentOfAreasAndSaleOfAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": 1.0,
       "order": 16.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds From Assignment Of Areas And Sale Of Assets",
        "terseLabel": "Proceeds from concessions, assignment agreements and sale of assets",
        "documentation": "Proceeds from assignment of areas and sale of assets."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProceedsFromBorrowingsClassifiedAsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProceedsFromBorrowingsClassifiedAsFinancingActivities",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow",
      "http://www.ypf.com/role/LoansEvolutionOfTheLoansDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from borrowings, classified as financing activities",
        "verboseLabel": "Proceeds from loans",
        "terseLabel": "Proceeds from loans"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash inflow from borrowings obtained. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r467"
     ]
    },
    "ypf_ProceedsFromPaymentsOfFinancialAssetsAvailableForSale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProceedsFromPaymentsOfFinancialAssetsAvailableForSale",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": -1.0,
       "order": 17.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds From Payments Of Financial Assets Available For Sale",
        "negatedLabel": "Additions of assets held for sale",
        "documentation": "Proceeds from (payments of) financial assets available for sale."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProceedsFromSalesOrMaturityOfFinancialAssetsMeasuredAtAmortisedCostClassifiedAsInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProceedsFromSalesOrMaturityOfFinancialAssetsMeasuredAtAmortisedCostClassifiedAsInvestingActivities",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": 1.0,
       "order": 13.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from sales or maturity of financial assets measured at amortised cost, classified as investing activities",
        "terseLabel": "Proceeds from sales of financial assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash inflow from sales or maturity of financial assets measured at amortised cost, classified as investing activities."
       }
      }
     },
     "auth_ref": [
      "r654"
     ]
    },
    "ifrs-full_ProceedsFromTransferActivity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProceedsFromTransferActivity",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proceeds from transfer activity during period representing greatest transfer activity",
        "terseLabel": "Transfer amount and interest"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of proceeds recognised from the transfer of financial assets during the part of the reporting period within which the greatest transfer activity took place when the total amount of proceeds from the transfer activity (that qualifies for derecognition) is not evenly distributed throughout the reporting period. [Refer: Financial assets]"
       }
      }
     },
     "auth_ref": [
      "r219"
     ]
    },
    "ypf_ProductionCost": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProductionCost",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationOfAssetsAndLiabilitiesDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsFromOilAndGasProducingActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Production Cost",
        "terseLabel": "Production cost",
        "negatedLabel": "Production costs",
        "documentation": "Production cost."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ProductionCostsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProductionCostsMember",
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Production Costs [member]",
        "terseLabel": "Production costs [Member]",
        "documentation": "Production costs."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProductsAndServicesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProductsAndServicesAxis",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail",
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail",
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Products and services [axis]",
        "terseLabel": "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": [
      "r245",
      "r477",
      "r503"
     ]
    },
    "ifrs-full_ProductsAndServicesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProductsAndServicesDomain",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail",
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail",
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Products and services [domain]",
        "terseLabel": "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": [
      "r245",
      "r477",
      "r503"
     ]
    },
    "ypf_ProductsInProcessMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProductsInProcessMember",
     "presentation": [
      "http://www.ypf.com/role/InventoriesSummaryOfInventoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Products in Process [member]",
        "terseLabel": "Products in process [member]",
        "documentation": "Products in process."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ProfertilMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProfertilMember",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfTheInvestmentsInAssociatesAndJointVenturesOnADisaggregatedBasisDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Profertil [member]",
        "terseLabel": "Profertil [member]",
        "documentation": "Profertil."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProfitLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProfitLoss",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetail": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate1": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 4.0
      },
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate2": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 6.0
      },
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate3": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 8.0
      },
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 9.0
      },
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate4": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 10.0
      },
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate5": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 12.0
      },
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate6": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 14.0
      },
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate7": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 16.0
      },
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate8": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 18.0
      },
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetailAlternate9": {
       "parentTag": "ifrs-full_ComprehensiveIncome",
       "weight": 1.0,
       "order": 20.0
      },
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 28.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail",
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow",
      "http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity",
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfIncomeFromEquityInterestsInAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Profit (loss)",
        "totalLabel": "Net (loss) / profit for the year",
        "presentationGuidance": "Net (loss) / profit",
        "verboseLabel": "Net (loss) / profit",
        "terseLabel": "Net income",
        "positiveLabel": "Net income"
       }
      },
      "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": [
      "r103",
      "r105",
      "r238",
      "r240",
      "r334",
      "r353",
      "r404",
      "r434",
      "r474",
      "r482"
     ]
    },
    "ifrs-full_ProfitLossAttributableToAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProfitLossAttributableToAbstract",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Profit (loss), attributable to [abstract]",
        "verboseLabel": "Net (loss) / profit for the year attributable to:"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProfitLossAttributableToNoncontrollingInterests": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProfitLossAttributableToNoncontrollingInterests",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_ComprehensiveIncomeAttributableToNoncontrollingInterests",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Profit (loss), attributable to non-controlling interests",
        "terseLabel": "Non-controlling interest"
       }
      },
      "en": {
       "role": {
        "documentation": "The profit (loss) from continuing and discontinued operations attributable to non-controlling interests. [Refer: Profit (loss); Non-controlling interests]"
       }
      }
     },
     "auth_ref": [
      "r109",
      "r437"
     ]
    },
    "ifrs-full_ProfitLossAttributableToOwnersOfParent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProfitLossAttributableToOwnersOfParent",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_ComprehensiveIncomeAttributableToOwnersOfParent",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome",
      "http://www.ypf.com/role/EarningsPerShareSummaryOfEarningsPerShareDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Profit (loss), attributable to owners of parent",
        "verboseLabel": "Shareholders of the parent company",
        "terseLabel": "Net (loss) / profit"
       }
      },
      "en": {
       "role": {
        "documentation": "The profit (loss) from continuing and discontinued operations attributable to owners of the parent. [Refer: Profit (loss)]"
       }
      }
     },
     "auth_ref": [
      "r438"
     ]
    },
    "ifrs-full_ProfitLossBeforeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProfitLossBeforeTax",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsFromOilAndGasProducingActivitiesDetail": {
       "parentTag": "ypf_ResultsOfOilAndGasProducingActivities",
       "weight": 1.0,
       "order": 2.0
      },
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_ProfitLoss",
       "weight": 1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail",
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome",
      "http://www.ypf.com/role/IncomeTaxSummaryOfReconciliationBetweenTheChargeToNetIncomeForIncomeTaxAndTheOneThatWouldResultFromApplyingThePrevailingTaxRateOnNetIncomeBeforeIncomeTaxArisingFromTheConsolidatedStatementsOfComprehensiveIncoe8f94",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsFromOilAndGasProducingActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Profit (loss) before tax",
        "totalLabel": "Net profit / (loss) before income tax",
        "terseLabel": "Net profit / (loss) before income tax",
        "presentationGuidance": "Net profit / (loss) before income tax",
        "definitionGuidance": "Pre-tax income (loss) from producing activities"
       }
      }
     },
     "auth_ref": [
      "r198",
      "r499",
      "r500",
      "r516",
      "r517"
     ]
    },
    "ifrs-full_ProfitLossFromOperatingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProfitLossFromOperatingActivities",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_ProfitLossBeforeTax",
       "weight": 1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail",
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Profit (loss) from operating activities",
        "totalLabel": "Operating profit / (loss)",
        "terseLabel": "Operating profit or loss",
        "verboseLabel": "Operating profit"
       }
      }
     },
     "auth_ref": [
      "r462",
      "r683"
     ]
    },
    "ypf_ProgramOfShipmentsOrDeliveriesTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProgramOfShipmentsOrDeliveriesTerm",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Program of Shipments or Deliveries Term",
        "terseLabel": "Program of shipments or deliveries term",
        "documentation": "Program of shipments or deliveries term."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PropaneGasSupplyAgreementMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PropaneGasSupplyAgreementMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationAboutRelatedPartyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Propane Gas Supply Agreement [member]",
        "terseLabel": "Propane gas supply agreement [member]",
        "documentation": "Propane gas supply agreement."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PropertyPlantAndEquipment",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 11.0
      },
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfPropertyPlantAndEquipmentDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesSummaryOfTheMainAssetsHeldForSaleAndAssociatedLiabilitiesDetail",
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfPropertyPlantAndEquipmentByGeographicAreaDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfPropertyPlantAndEquipmentDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionForObsolescenceOfMaterialsAndEquipmentDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionsForImpairmentOfPropertyPlantAndEquipmentDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, plant and equipment",
        "terseLabel": "Property, plant and equipment",
        "totalLabel": "Property, plant and equipment net",
        "periodStartLabel": "Amount at beginning of year",
        "periodEndLabel": "Amount at end of year"
       }
      },
      "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": [
      "r19",
      "r320",
      "r410"
     ]
    },
    "ypf_PropertyPlantAndEquipmentAndAssetsHeldForSaleMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PropertyPlantAndEquipmentAndAssetsHeldForSaleMember",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property plant and equipment and Assets held for sale [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PropertyPlantAndEquipmentIntangibleAssetsAndInventoriesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PropertyPlantAndEquipmentIntangibleAssetsAndInventoriesMember",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, plant and equipment, Intangible assets and Inventories [Member]",
        "terseLabel": "Property, plant and equipment, Assets held for sale, Intangible assets and Inventories [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PropertyPlantAndEquipmentRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PropertyPlantAndEquipmentRecognisedAsOfAcquisitionDate",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsSummaryOfFairValuesOfTheIdentifiableAssetsAcquiredAndTheLiabilitiesAssumedDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Property, plant and equipment recognised as of acquisition date",
        "verboseLabel": "Property, plant and equipment"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount recognised as of the acquisition date for plant, property and equipment acquired in a business combination. [Refer: Property, plant and equipment; Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r486",
      "r487",
      "r512"
     ]
    },
    "ifrs-full_ProportionOfOwnershipInterestInAssociate": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProportionOfOwnershipInterestInAssociate",
     "presentation": [
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proportion of ownership interest in associate",
        "verboseLabel": "Percentage of ownership of capital stock in associate"
       }
      },
      "en": {
       "role": {
        "documentation": "The proportion of ownership interest in an associate attributable to the entity. [Refer: Total for all associates [member]]"
       }
      }
     },
     "auth_ref": [
      "r50",
      "r54",
      "r117"
     ]
    },
    "ypf_ProportionOfOwnershipInterestInEquity": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProportionOfOwnershipInterestInEquity",
     "presentation": [
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proportion Of Ownership Interest In Equity",
        "terseLabel": "Proportion of ownership interests in equity",
        "documentation": "Proportion of ownership interest in equity."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProportionOfOwnershipInterestInJointOperation": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProportionOfOwnershipInterestInJointOperation",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesAdditionalInformationDetail",
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail",
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proportion of ownership interest in joint operation",
        "verboseLabel": "Participation",
        "terseLabel": "Equity interest in joint operation",
        "presentationGuidance": "Proportion of explotation concession of Loma Campana"
       }
      },
      "en": {
       "role": {
        "documentation": "The proportion of ownership interest in a joint operation attributable to the entity. [Refer: Total for all joint operations [member]]"
       }
      }
     },
     "auth_ref": [
      "r117"
     ]
    },
    "ifrs-full_ProportionOfOwnershipInterestInJointVenture": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProportionOfOwnershipInterestInJointVenture",
     "presentation": [
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proportion of ownership interest in joint venture",
        "verboseLabel": "Percentage of ownership of capital stock in joint venture"
       }
      },
      "en": {
       "role": {
        "documentation": "The proportion of ownership interest in a joint venture attributable to the entity. [Refer: Total for all joint ventures [member]]"
       }
      }
     },
     "auth_ref": [
      "r50",
      "r54",
      "r117"
     ]
    },
    "ypf_ProportionOfOwnershipInterestInSharesByRelatedParty": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProportionOfOwnershipInterestInSharesByRelatedParty",
     "presentation": [
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proportion Of OwnerShip Interest In Shares By Related Party",
        "verboseLabel": "Participation in the capital stock",
        "documentation": "Proportion of ownership interest in shares by related party."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProportionOfOwnershipInterestInSubsidiary": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProportionOfOwnershipInterestInSubsidiary",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesAdditionalInformationDetail",
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesAdditionalInformationDetail",
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/ContractualCommitmentsGrantedGuaranteesAdditionalInformationDetail",
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail",
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proportion of ownership interest in subsidiary",
        "disclosureGuidance": "Percentage of ownership of capital stock in subsidiary",
        "definitionGuidance": "Proportion of ownership interest in subsidiary",
        "presentationGuidance": "Proportion of ownership interest"
       }
      },
      "en": {
       "role": {
        "documentation": "The proportion of ownership interest in a subsidiary attributable to the entity. [Refer: Total for all subsidiaries [member]]"
       }
      }
     },
     "auth_ref": [
      "r50",
      "r54",
      "r113"
     ]
    },
    "ypf_ProportionOfOwnershipInterestInSubsidiaryPriorToAforeMentioned": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProportionOfOwnershipInterestInSubsidiaryPriorToAforeMentioned",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proportion of ownership interest in subsidiary prior to afore mentioned",
        "documentation": "Proportion of ownership interest in subsidiary prior to afore mentioned"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ProportionOfTransferOfShares": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProportionOfTransferOfShares",
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proportion Of Transfer of Shares",
        "terseLabel": "Proportion of transfer of shares",
        "documentation": "Proportion of transfer of shares."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ProportionOfVotingRightsHeldInJointOperation": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ProportionOfVotingRightsHeldInJointOperation",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proportion of voting rights held in joint operation"
       }
      },
      "en": {
       "role": {
        "documentation": "The proportion of the voting rights in a joint operation held by the entity. [Refer: Total for all joint operations [member]]"
       }
      }
     },
     "auth_ref": [
      "r117"
     ]
    },
    "ypf_ProportionOfWorkingInterestInSubsidiary": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProportionOfWorkingInterestInSubsidiary",
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proportion Of Working Interest In Subsidiary",
        "terseLabel": "Proportion of working interest in subsidiary",
        "documentation": "Proportion of working interest in subsidiary."
       }
      }
     },
     "auth_ref": []
    },
    "srt_ProvedDevelopedAndUndevelopedReserveImprovedRecoveryEnergy": {
     "xbrltype": "energyItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "ProvedDevelopedAndUndevelopedReserveImprovedRecoveryEnergy",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proved Developed and Undeveloped Reserve, Improved Recovery (Energy)",
        "terseLabel": "Proved developed and undeveloped reserves improved recovery energy",
        "documentation": "Energy measure of increase in quantity of proved reserve of oil and gas resulting from application of improved recovery techniques, stated in a unit of energy. For example, but not limited to, barrel of oil equivalents (BOE) or one thousand cubic feet of natural gas equivalent (Mcfe)."
       }
      }
     },
     "auth_ref": [
      "r638"
     ]
    },
    "ypf_ProvedDevelopedReservesRevisionsOfPreviousEstimatesDueToHigherAverageOilPriceIncrease": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProvedDevelopedReservesRevisionsOfPreviousEstimatesDueToHigherAverageOilPriceIncrease",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proved Developed Reserves Revisions Of Previous Estimates Due To Higher Average Oil Price Increase",
        "terseLabel": "Proved developed reserves added due to higher average oil price",
        "documentation": "Proved Developed Reserves Revisions Of Previous Estimates Due To Higher Average Oil Price Increase"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ProvedReservesDevelopedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProvedReservesDevelopedMember",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proved reserves, developed [member]",
        "terseLabel": "Proved reserves, developed [member]",
        "documentation": "Proved reserves, developed."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ProvedReservesRevisionsOfPreviousEstimateOfChangeDueToWorkingInterestNewProjectsAdditionAndProductionForecastsAdjustments": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProvedReservesRevisionsOfPreviousEstimateOfChangeDueToWorkingInterestNewProjectsAdditionAndProductionForecastsAdjustments",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proved Reserves Revisions Of Previous Estimate Of Change Due To Working Interest New Projects Addition And Production Forecasts Adjustments",
        "terseLabel": "Proved reserves revisions of previous estimate of change due to working interest, new projects addition and production forecasts adjustments",
        "verboseLabel": "Proved Reserves Revisions Of Previous Estimate Of Change Due To Working Interest New Projects Addition And Production Forecasts Adjustments",
        "documentation": "Proved reserves revisions of previous estimate of change due to working interest new projects addition and production forecasts adjustments."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ProvedReservesRevisionsOfPreviousEstimatesRelatedToChangesInProjectsStrategyAndDrillingSchedules": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProvedReservesRevisionsOfPreviousEstimatesRelatedToChangesInProjectsStrategyAndDrillingSchedules",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proved Reserves Revisions Of Previous Estimates Related To Changes In Projects Strategy And Drilling Schedules",
        "terseLabel": "Proved reserves revisions of previous estimates related to changes in projects strategy and drilling schedules",
        "documentation": "Proved reserves revisions of previous estimates related to changes in projects strategy and drilling schedules."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ProvedReservesUndevelopedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProvedReservesUndevelopedMember",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Proved reserves, undeveloped [member]",
        "terseLabel": "Proved reserves, undeveloped [member]",
        "documentation": "Proved reserves, undeveloped [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ProvisionForDoubtfulTradeReceivableMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProvisionForDoubtfulTradeReceivableMember",
     "presentation": [
      "http://www.ypf.com/role/TradeReceivablesSummaryOfTradeReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provision For Doubtful Trade Receivable [member]",
        "terseLabel": "Provision for Doubtful Trade Receivable [member]",
        "documentation": "Provision for doubtful trade receivable."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ProvisionForDoubtfulTradeReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProvisionForDoubtfulTradeReceivables",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provision for Doubtful Trade Receivables",
        "terseLabel": "Provision for doubtful trade receivables",
        "documentation": "Provision for doubtful trade receivables."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ProvisionForDoubtfulTradeReceivablesRecognisedInProfitOrLoss": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProvisionForDoubtfulTradeReceivablesRecognisedInProfitOrLoss",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail": {
       "parentTag": "ifrs-full_ExpenseByNature",
       "weight": 1.0,
       "order": 4.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provision for doubtful trade receivables recognised in profit or loss",
        "terseLabel": "Provision for doubtful trade receivables",
        "documentation": "Provision for doubtful trade receivables recognised in profit or loss."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ProvisionForEnvironmentalLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProvisionForEnvironmentalLiabilitiesMember",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provision for environmental liabilities [member]",
        "terseLabel": "Provision for environmental liabilities [member]",
        "documentation": "Provision for environmental liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ProvisionForImpairmentAssociatedWithAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProvisionForImpairmentAssociatedWithAssets",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionsForImpairmentOfPropertyPlantAndEquipmentParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provision For Impairment Associated With Assets",
        "terseLabel": "Provision for impairment associated with assets",
        "documentation": "Provision for impairment associated with assets."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ProvisionForImpairmentOfIntangibleAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProvisionForImpairmentOfIntangibleAssets",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/IntangibleAssetsScheduleOfIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provision For Impairment Of Intangible Assets",
        "terseLabel": "Provision for impairment of intangible assets",
        "documentation": "Provision for impairment of intangible assets."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ProvisionForImpairmentOfPropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProvisionForImpairmentOfPropertyPlantAndEquipment",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfPropertyPlantAndEquipmentDetail": {
       "parentTag": "ifrs-full_PropertyPlantAndEquipment",
       "weight": -1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfPropertyPlantAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provision for impairment of property, plant and equipment",
        "negatedLabel": "Provision for impairment of property, plant and equipment",
        "documentation": "Provision for impairment of property, plant and equipment."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ProvisionForImpairmentOfPropertyPlantAndEquipmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProvisionForImpairmentOfPropertyPlantAndEquipmentMember",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionsForImpairmentOfPropertyPlantAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provision For Impairment Of Property Plant And Equipment [member]",
        "terseLabel": "Provision for Impairment of Property Plant and Equipment [member]",
        "documentation": "Provision For Impairment Of Property Plant And Equipment [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ProvisionForObsolescenceOfMaterialAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProvisionForObsolescenceOfMaterialAndEquipment",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/OtherNetOperatingResultsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provision For Obsolescence Of Material And Equipment",
        "terseLabel": "Provision for obsolescence of materials and equipment",
        "documentation": "Provision for obsolescence of materials and equipment."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ProvisionForObsolescenceOfMaterialsAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProvisionForObsolescenceOfMaterialsAndEquipment",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfPropertyPlantAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provision for obsolescence of materials and equipment",
        "negatedLabel": "Provision for obsolescence of materials and equipment",
        "documentation": "Provision for obsolescence of materials and equipment."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ProvisionForObsolescenceOfMaterialsAndEquipmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProvisionForObsolescenceOfMaterialsAndEquipmentMember",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionForObsolescenceOfMaterialsAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provision For Obsolescence Of Materials And Equipment [member]",
        "terseLabel": "Provision for Obsolescence of Materials and Equipment [member]",
        "documentation": "Provision For Obsolescence Of Materials And Equipment [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ProvisionForOperatingOptimizationsCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProvisionForOperatingOptimizationsCurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/OtherLiabilitiesDetailsOfOtherLiabilitiesDetail": {
       "parentTag": "ifrs-full_OtherCurrentLiabilities",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/OtherLiabilitiesDetailsOfOtherLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provision for operating optimizations Current",
        "terseLabel": "Provision for operating optimizations",
        "documentation": "Provision for operating optimizations current"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ProvisionForOperatingOptimizationsOtherOperatingIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProvisionForOperatingOptimizationsOtherOperatingIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/OtherNetOperatingResultsDetail": {
       "parentTag": "ifrs-full_OtherOperatingIncomeExpense",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/OtherNetOperatingResultsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provision For Operating Optimizations Other Operating Income",
        "terseLabel": "Provision for operating optimizations",
        "documentation": "Provision for operating optimizations other operating income."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ProvisionForOtherDoubtfulNoncurrentReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProvisionForOtherDoubtfulNoncurrentReceivables",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail": {
       "parentTag": "ifrs-full_OtherNoncurrentReceivables",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provision For Other Doubtful Noncurrent Receivables",
        "terseLabel": "Provision for other doubtful receivables",
        "documentation": "Provision for other doubtful noncurrent receivables."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ProvisionForOtherDoubtfulReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProvisionForOtherDoubtfulReceivables",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provision for other doubtful receivables",
        "terseLabel": "Provision for other doubtful receivables",
        "documentation": "Provision for other doubtful receivables"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ProvisionForSeveranceIndemnitiesCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProvisionForSeveranceIndemnitiesCurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/SalariesAndSocialSecuritySummaryOfDetailedInformationAboutSalariesAndSocialSecurityDetail": {
       "parentTag": "ifrs-full_ShorttermEmployeeBenefitsAccruals",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/SalariesAndSocialSecuritySummaryOfDetailedInformationAboutSalariesAndSocialSecurityDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provision For Severance Indemnities Current",
        "terseLabel": "Provision for severance indemnities current",
        "documentation": "provision for severance indemnities current."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ProvisionForSeveranceIndemnitiesOtherOperatingIncome": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProvisionForSeveranceIndemnitiesOtherOperatingIncome",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/OtherNetOperatingResultsDetail": {
       "parentTag": "ifrs-full_OtherOperatingIncomeExpense",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/OtherNetOperatingResultsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provision For Severance Indemnities Other Operating Income",
        "terseLabel": "Provision for severance indemnities",
        "documentation": "Provision for severance indemnities other operating income."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ProvisionOfInventoriesWritedown": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProvisionOfInventoriesWritedown",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/InventoriesSummaryOfInventoriesParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provision of Inventories Writedown",
        "terseLabel": "Write-downs (reversals of write-downs) of inventories",
        "documentation": "Provision of inventories write-down."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ProvisionOnImpairmentLossRecognizedInProfitOrLossPropertyPlantAndEquipmentClassifiedHeldForSale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProvisionOnImpairmentLossRecognizedInProfitOrLossPropertyPlantAndEquipmentClassifiedHeldForSale",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provision On Impairment Loss Recognized In Profit Or Loss Property Plant And Equipment Classified Held For Sale",
        "terseLabel": "Provision on impairment loss recognized in profit or loss property plant and equipment classified held for sale.",
        "documentation": "Provision on impairment loss recognized in profit or loss property plant and equipment classified held for sale."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_Provisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "Provisions",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesSummaryOfTheMainAssetsHeldForSaleAndAssociatedLiabilitiesDetail",
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsDetail",
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provisions",
        "verboseLabel": "Provision",
        "periodStartLabel": "Provisions beginning balance",
        "periodEndLabel": "Provisions ending balance",
        "terseLabel": "Provisions"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of liabilities of uncertain timing or amount, including provisions for employee benefits."
       }
      }
     },
     "auth_ref": [
      "r415"
     ]
    },
    "ypf_ProvisionsAndOtherNonDeductibleLiabilitiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProvisionsAndOtherNonDeductibleLiabilitiesMember",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provisions And Other Non Deductible Liabilities [member]",
        "terseLabel": "Provisions and Other Non Deductible Liabilities [member]",
        "documentation": "Provisions and other non deductible liabilities."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ProvisionsRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ProvisionsRecognisedAsOfAcquisitionDate",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsSummaryOfFairValuesOfTheIdentifiableAssetsAcquiredAndTheLiabilitiesAssumedDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Provisions recognised as of acquisition date",
        "verboseLabel": "Provisions",
        "documentation": "Provisions recognised as of acquisition date."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PublicDistributionServiceTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PublicDistributionServiceTerm",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Public distribution service term",
        "terseLabel": "Public distribution service term",
        "documentation": "Public distribution service term."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PublicSecuritiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PublicSecuritiesMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfCompanysFinancialAssetsMeasuredAtFairValueDetail",
      "http://www.ypf.com/role/InvestmentsInFinancialAssetsSummaryOfInvestmentsInFinancialAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Public securities [member]",
        "terseLabel": "Public securities [member]",
        "documentation": "Public securities."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_PurchaseOfFinancialAssetsMeasuredAtAmortisedCostClassifiedAsInvestingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PurchaseOfFinancialAssetsMeasuredAtAmortisedCostClassifiedAsInvestingActivities",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": -1.0,
       "order": 15.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Purchase of financial assets measured at amortised cost, classified as investing activities",
        "negatedLabel": "Payments from purchase of financial assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for the purchase of financial assets measured at amortised cost, classified as investing activities."
       }
      }
     },
     "auth_ref": [
      "r654"
     ]
    },
    "ifrs-full_PurchaseOfOilAndGasAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PurchaseOfOilAndGasAssets",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Purchase of oil and gas assets",
        "terseLabel": "Purchase of gas and crude oil"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for the purchase of oil and gas assets. [Refer: Oil and gas assets]"
       }
      }
     },
     "auth_ref": [
      "r654"
     ]
    },
    "ifrs-full_PurchaseOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PurchaseOfPropertyPlantAndEquipmentIntangibleAssetsOtherThanGoodwillInvestmentPropertyAndOtherNoncurrentAssets",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInInvestingActivities",
       "weight": -1.0,
       "order": 11.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Purchase of property, plant and equipment, intangible assets other than goodwill, investment property and other non-current assets",
        "negatedLabel": "Acquisition of property, plant and equipment and intangible assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow for the purchase of property, plant and equipment, intangible assets other than goodwill, investment property and other non-current assets. [Refer: Intangible assets other than goodwill; Investment property; Other non-current assets; Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r654"
     ]
    },
    "ifrs-full_PurchaseOfTreasuryShares": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "PurchaseOfTreasuryShares",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Purchase of treasury shares",
        "terseLabel": "Acquisition cost of treasury shares"
       }
      },
      "en": {
       "role": {
        "documentation": "The decrease in equity resulting from the purchase of treasury shares. [Refer: Treasury shares]"
       }
      }
     },
     "auth_ref": [
      "r673"
     ]
    },
    "ypf_PurposeOfUsageAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PurposeOfUsageAxis",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Purpose Of Usage [Axis]",
        "documentation": "Purpose of usage."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_PurposeOfUsageMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "PurposeOfUsageMember",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Purpose Of Usage [Member]",
        "documentation": "Purpose of usage."
       }
      }
     },
     "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": [
      "r576"
     ]
    },
    "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": [
      "r576"
     ]
    },
    "ypf_RamosMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "RamosMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Ramos [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RangeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RangeAxis",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsDetailedInformationAboutPropertyPlantAndEquipmentDetail",
      "http://www.ypf.com/role/ContingentAssetsAndLiabilitiesAdditionalInformationDetail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsAdditionalInformationDetail",
      "http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail",
      "http://www.ypf.com/role/LoansScheduleOfLoansDetail",
      "http://www.ypf.com/role/LoansScheduleOfLoansParentheticalDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentAdditionalInformationDetail",
      "http://www.ypf.com/role/ProvisionsAdditionalInformationDetail",
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail",
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Range [axis]",
        "terseLabel": "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": [
      "r94",
      "r144",
      "r171",
      "r187",
      "r297",
      "r475",
      "r476",
      "r662"
     ]
    },
    "ifrs-full_RangeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RangeDomain",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsDetailedInformationAboutPropertyPlantAndEquipmentDetail",
      "http://www.ypf.com/role/ContingentAssetsAndLiabilitiesAdditionalInformationDetail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsAdditionalInformationDetail",
      "http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail",
      "http://www.ypf.com/role/LoansScheduleOfLoansDetail",
      "http://www.ypf.com/role/LoansScheduleOfLoansParentheticalDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentAdditionalInformationDetail",
      "http://www.ypf.com/role/ProvisionsAdditionalInformationDetail",
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail",
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Range [domain]",
        "terseLabel": "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": [
      "r94",
      "r144",
      "r171",
      "r187",
      "r297",
      "r475",
      "r476",
      "r662"
     ]
    },
    "ifrs-full_RawMaterialsAndConsumablesUsed": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RawMaterialsAndConsumablesUsed",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail": {
       "parentTag": "ifrs-full_ExpenseByNature",
       "weight": 1.0,
       "order": 9.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Raw materials and consumables used",
        "terseLabel": "Industrial inputs, consumable materials and supplies"
       }
      }
     },
     "auth_ref": [
      "r449",
      "r516"
     ]
    },
    "ypf_RawMaterialsPackagingMaterialsAndOthersMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "RawMaterialsPackagingMaterialsAndOthersMember",
     "presentation": [
      "http://www.ypf.com/role/InventoriesSummaryOfInventoriesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Raw Materials Packaging Materials and Others [member]",
        "terseLabel": "Raw materials, packaging materials and others [member]",
        "documentation": "Raw materials packaging materials and others."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ReceiptsFromRentsAndSubsequentSalesOfSuchAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ReceiptsFromRentsAndSubsequentSalesOfSuchAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": 1.0,
       "order": 46.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Receipts from rents and subsequent sales of assets held for rental to others and subsequently held for sale",
        "terseLabel": "Result from changes in fair value of assets held for sale"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash inflow from rents and subsequent sales relating to assets initially held for rental to others and subsequently held for sale."
       }
      }
     },
     "auth_ref": [
      "r465"
     ]
    },
    "ypf_ReceivableFromDisposalOfSubsidiariesPendingPayment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ReceivableFromDisposalOfSubsidiariesPendingPayment",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Receivable from disposal of subsidiaries pending payment",
        "documentation": "Receivable from disposal of subsidiaries pending payment."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_Receivablesfromsaleofnoncashsettledassets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "Receivablesfromsaleofnoncashsettledassets",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlowsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "ReceivablesFromSaleOfNonCashSettledAssets",
        "terseLabel": "Receivables from the sale of non-cash-settled assets",
        "documentation": "Receivables From Sale Of Non Cash Settled Assets"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ReclassificationAdjustmentsCorrespondingToRecognitionOfResultsFromNetMonetaryPosition": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ReclassificationAdjustmentsCorrespondingToRecognitionOfResultsFromNetMonetaryPosition",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquityParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reclassification Adjustments Corresponding To Recognition Of Results From Net Monetary Position",
        "terseLabel": "Corresponding to recognition of result for the net monetary position of subsidiaries, associates and joint ventures with the Peso as functional currency",
        "documentation": "Adjustments corresponding to recognition of results from net monetary position."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ReclassificationAdjustmentsOnExchangeDifferencesOnTranslationNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ReclassificationAdjustmentsOnExchangeDifferencesOnTranslationNetOfTax",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquityParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reclassification adjustments on exchange differences on translation, net of tax",
        "terseLabel": "Corresponding to the effect of the translation"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of reclassification adjustments related to exchange differences when the financial statements of foreign operations are translated, net of tax. Reclassification adjustments are amounts reclassified to profit (loss) in the current period that were recognised in other comprehensive income in the current or previous periods. [Refer: Other comprehensive income]"
       }
      }
     },
     "auth_ref": [
      "r30",
      "r447"
     ]
    },
    "ypf_ReclassificationOfInventories": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ReclassificationOfInventories",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/CostsDetailedInformationOfInventoryCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reclassification Of Inventories",
        "terseLabel": "Reclassifications",
        "documentation": "Reclassification of inventories."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ReclassificationOfOtherFinancialResultsToIncomeTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ReclassificationOfOtherFinancialResultsToIncomeTax",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reclassification Of Other Financial Results To Income Tax",
        "documentation": "Reclassification of other financial results to income tax."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_RecognitionOfTheFinancialCostGeneratedByPaymentDeferralByProvidersOfTheDistributionServiceOfNaturalAndUndilutedPropaneGasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "RecognitionOfTheFinancialCostGeneratedByPaymentDeferralByProvidersOfTheDistributionServiceOfNaturalAndUndilutedPropaneGasMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationAboutRelatedPartyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Recognition of the financial cost generated by payment deferral by providers of the distribution service of natural and undiluted propane gas [Member]",
        "terseLabel": "Recognition of the financial cost generated by payment deferral by providers of the distribution service of natural and undiluted propane gas [member]",
        "documentation": "Recognition of the financial cost generated by payment deferral by providers of the distribution service of natural and undiluted propane gas."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_RecognizedTaxLossesCarryforward": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "RecognizedTaxLossesCarryforward",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Recognized Tax Losses Carryforward",
        "terseLabel": "Recognized tax losses carryforward",
        "documentation": "Recognized tax losses carryforward."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ReconciliationOfAccountingProfitMultipliedByApplicableTaxRatesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ReconciliationOfAccountingProfitMultipliedByApplicableTaxRatesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Reconciliation of accounting profit multiplied by applicable tax rates [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://www.ypf.com/role/PropertyPlantAndEquipmentAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Recoverable amount of asset or cash-generating unit",
        "terseLabel": "Book value of the net assets"
       }
      },
      "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": [
      "r67"
     ]
    },
    "ypf_RecoverableValueAfterTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "RecoverableValueAfterTaxes",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Recoverable value after taxes",
        "documentation": "Recoverable value after taxes."
       }
      }
     },
     "auth_ref": []
    },
    "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": [
      "r543",
      "r554",
      "r564",
      "r597"
     ]
    },
    "ypf_RefineryTermPeriod": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "RefineryTermPeriod",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Refinery Term Period",
        "terseLabel": "Refinery term period",
        "documentation": "Refinery term period."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_RefinorMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "RefinorMember",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/AcquisitionsAndDisposalsSummaryOfFairValuesOfTheIdentifiableAssetsAcquiredAndTheLiabilitiesAssumedDetail",
      "http://www.ypf.com/role/AcquisitionsAndDisposalsTables",
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Refinor [member]",
        "terseLabel": "Refinor [member]",
        "documentation": "Refinor [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_RegasificationAndGasLiquefactionEquipmentMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "RegasificationAndGasLiquefactionEquipmentMember",
     "presentation": [
      "http://www.ypf.com/role/RightOfUseAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Regasification and gas liquefaction equipment [Member]",
        "documentation": "Regasification and gas liquefaction equipment."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_RegularizationPlanAssociatedWithTaxLossCarryforwardsAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "RegularizationPlanAssociatedWithTaxLossCarryforwardsAmount",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfCalculationOfIncomeTaxExpenseAccruedDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Regularization Plan Associated With Tax Loss Carryforwards Amount",
        "terseLabel": "Regularization plan associated with the calculation of tax loss carryforwards",
        "documentation": "Regularization Plan Associated With Tax Loss Carryforwards Amount."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ReleaseOfReservesEquity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ReleaseOfReservesEquity",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Release of Reserves Equity",
        "terseLabel": "Release of reserves",
        "documentation": "Release\u00a0of reserves equity"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_RemainingInstallmentsOfTheRegimesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "RemainingInstallmentsOfTheRegimesMember",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfIncomeTaxLiabilityParentheticalsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Remaining Installments of the Regimes [Member]",
        "documentation": "Remaining installments of the regimes."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_RenewableEnergiesTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "RenewableEnergiesTerm",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Renewable Energies Term",
        "terseLabel": "Renewable energies term",
        "documentation": "Renewable energies term."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RentalExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RentalExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail": {
       "parentTag": "ifrs-full_ExpenseByNature",
       "weight": 1.0,
       "order": 13.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Rental expense",
        "terseLabel": "Rental of real estate and equipment"
       }
      }
     },
     "auth_ref": [
      "r683"
     ]
    },
    "ifrs-full_RepairsAndMaintenanceExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RepairsAndMaintenanceExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail": {
       "parentTag": "ifrs-full_ExpenseByNature",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Repairs and maintenance expense",
        "terseLabel": "Preservation, repair and maintenance"
       }
      }
     },
     "auth_ref": [
      "r683"
     ]
    },
    "ifrs-full_RepaymentsOfBorrowingsClassifiedAsFinancingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RepaymentsOfBorrowingsClassifiedAsFinancingActivities",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInFinancingActivities",
       "weight": -1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow",
      "http://www.ypf.com/role/LoansEvolutionOfTheLoansDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Repayments of borrowings, classified as financing activities",
        "negatedLabel": "Payments of loans",
        "negatedTerseLabel": "Payments of loans"
       }
      },
      "en": {
       "role": {
        "documentation": "The cash outflow to settle borrowings, classified as financing activities. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r468"
     ]
    },
    "ypf_RepsolSAMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "RepsolSAMember",
     "presentation": [
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Repsol S. A. [member]",
        "terseLabel": "Expropation Shares of YPF Owned by Repsol [Member]",
        "documentation": "Repsol S. A."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ResearchAndDevelopmentExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ResearchAndDevelopmentExpense",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Research and development expense",
        "terseLabel": "Research and development expense"
       }
      }
     },
     "auth_ref": [
      "r81",
      "r346"
     ]
    },
    "ypf_ReserveForFutureDividends": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ReserveForFutureDividends",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": 1.0,
       "order": 25.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reserve For Future Dividends",
        "terseLabel": "Reserve for future dividends",
        "documentation": "Reserve for future dividends."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ReserveForInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ReserveForInvestments",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": 1.0,
       "order": 26.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reserve For Investments",
        "terseLabel": "Reserve for investments",
        "documentation": "Reserve for investments."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ReserveForPurchaseOfTreasuryShares": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ReserveForPurchaseOfTreasuryShares",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": 1.0,
       "order": 27.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reserve For Purchase Of Treasury Shares",
        "terseLabel": "Reserve for purchase of treasury shares",
        "documentation": "Reserve for purchase of treasury shares."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ReserveOfGainsAndLossesFromInvestmentsInEquityInstrumentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ReserveOfGainsAndLossesFromInvestmentsInEquityInstrumentsMember",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity",
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reserve of gains and losses from investments in equity instruments [member]",
        "terseLabel": "Reserve for investments [member]"
       }
      }
     },
     "auth_ref": [
      "r518"
     ]
    },
    "ifrs-full_ReserveOfSharebasedPaymentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ReserveOfSharebasedPaymentsMember",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reserve of share-based payments [member]",
        "terseLabel": "Share-based benefit plans [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a component of equity resulting from share-based payments."
       }
      }
     },
     "auth_ref": [
      "r518"
     ]
    },
    "srt_ReserveQuantitiesByTypeOfReserveAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "ReserveQuantitiesByTypeOfReserveAxis",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Petroleum Reserves [Axis]",
        "terseLabel": "Petroleum Reserves [Axis]",
        "documentation": "Information by types of proved developed and undeveloped petroleum reserves."
       }
      }
     },
     "auth_ref": [
      "r0",
      "r663",
      "r664"
     ]
    },
    "ypf_ReservesForFutureDividendsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ReservesForFutureDividendsMember",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reserves for Future Dividends [member]",
        "terseLabel": "Reserve for future dividends [member]",
        "documentation": "Future dividends."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ReservesForPurchaseOfTreasuryShareMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ReservesForPurchaseOfTreasuryShareMember",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity",
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reserves for Purchase Of Treasury Share [member]",
        "terseLabel": "Reserve for purchase of treasury shares [member]",
        "documentation": "Purchase of treasury shares."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ReservoirsAndInstallationsForTheUndergroundStorageOfNaturalGasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ReservoirsAndInstallationsForTheUndergroundStorageOfNaturalGasMember",
     "presentation": [
      "http://www.ypf.com/role/RightOfUseAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Reservoirs and installations for the underground storage of natural gas [Member]",
        "documentation": "Reservoirs and land necessary to mount surface installations for the underground storage of natural gas."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ResolutionMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ResolutionMember",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Resolution [Member]",
        "terseLabel": "Resolution [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ResolutionTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ResolutionTypeAxis",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Resolution Type [Axis]",
        "terseLabel": "Resolution type [axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RestatedMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RestatedMember",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/TradeReceivablesSummaryOfEvolutionOfTheProvisionForDoubtfulTradeReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Currently stated [member]",
        "terseLabel": "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": [
      "r97",
      "r98",
      "r101",
      "r170",
      "r299",
      "r300",
      "r304",
      "r403",
      "r677"
     ]
    },
    "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": [
      "r544",
      "r555",
      "r565",
      "r598"
     ]
    },
    "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": [
      "r545",
      "r556",
      "r566",
      "r599"
     ]
    },
    "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": [
      "r552",
      "r563",
      "r573",
      "r606"
     ]
    },
    "ypf_RestrictedDistributionOfRetainedEarnings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "RestrictedDistributionOfRetainedEarnings",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Restricted Distribution Of Retained Earnings",
        "terseLabel": "Restricted distribution of retained earnings",
        "documentation": "Restricted distribution of retained earnings."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ResultFromNetMonetaryPosition": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ResultFromNetMonetaryPosition",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfGainsAndLossesOnFinancialInstrumentsDetail": {
       "parentTag": "ifrs-full_FinanceIncomeCost",
       "weight": 1.0,
       "order": 5.0
      },
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail": {
       "parentTag": "ifrs-full_OtherFinanceIncome",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfGainsAndLossesOnFinancialInstrumentsDetail",
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Result from net monetary position",
        "terseLabel": "Result from net monetary position",
        "documentation": "Result from net monetary position."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ResultFromRevaluationOfCompanies": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ResultFromRevaluationOfCompanies",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/OtherNetOperatingResultsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Result from revaluation of companies",
        "documentation": "Result from revaluation of companies."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ResultFromSaleOfAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ResultFromSaleOfAssets",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/OtherNetOperatingResultsDetail": {
       "parentTag": "ifrs-full_OtherOperatingIncomeExpense",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/OtherNetOperatingResultsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Result from Sale of Assets",
        "terseLabel": "Result from sale of assets",
        "documentation": "Result from sale of assets."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ResultFromSaleOfCompanies": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ResultFromSaleOfCompanies",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/OtherNetOperatingResultsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Result from sale of companies",
        "documentation": "Result from sale of companies."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ResultsFromTransactionsWithFinancialAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ResultsFromTransactionsWithFinancialAssets",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail": {
       "parentTag": "ifrs-full_OtherFinanceIncome",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/NetFinancialResultsDetailedInformationAboutFinancialResultsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Results From Transactions With Financial Assets",
        "verboseLabel": "Result from transactions with financial assets",
        "documentation": "Results from transactions with financial assets."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ResultsOfOilAndGasProducingActivities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ResultsOfOilAndGasProducingActivities",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsFromOilAndGasProducingActivitiesDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsFromOilAndGasProducingActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Results Of Oil And Gas Producing Activities",
        "totalLabel": "Results of oil and gas producing activities",
        "documentation": "Results of oil and gas producing activities."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_RetailDistributionOfNaturalGasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "RetailDistributionOfNaturalGasMember",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesBySalesChannelsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retail distribution of natural gas [member]",
        "terseLabel": "Retail distribution of natural gas [member]",
        "documentation": "Retail distribution of natural gas."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RetainedEarnings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RetainedEarnings",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retained earnings"
       }
      },
      "en": {
       "role": {
        "documentation": "A component of equity representing the entity's cumulative undistributed earnings or deficit."
       }
      }
     },
     "auth_ref": [
      "r515",
      "r522",
      "r523"
     ]
    },
    "ypf_RetirementPlanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "RetirementPlanMember",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retirement Plan [member]",
        "terseLabel": "Retirement Plan [member]",
        "documentation": "Retirement plan."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RetrospectiveApplicationAndRetrospectiveRestatementAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RetrospectiveApplicationAndRetrospectiveRestatementAxis",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/TradeReceivablesSummaryOfEvolutionOfTheProvisionForDoubtfulTradeReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Retrospective application and retrospective restatement [axis]",
        "terseLabel": "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": [
      "r97",
      "r98",
      "r101",
      "r299",
      "r300",
      "r304",
      "r403"
     ]
    },
    "ifrs-full_RevaluationIncreaseDecreasePropertyPlantAndEquipment": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RevaluationIncreaseDecreasePropertyPlantAndEquipment",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionForObsolescenceOfMaterialsAndEquipmentDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfProvisionsForImpairmentOfPropertyPlantAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revaluation increase (decrease), property, plant and equipment",
        "terseLabel": "Reclassifications"
       }
      },
      "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",
      "r23",
      "r316",
      "r322"
     ]
    },
    "ifrs-full_Revenue": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "Revenue",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_GrossProfit",
       "weight": 1.0,
       "order": 13.0
      },
      "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      },
      "http://www.ypf.com/role/RevenuesDetailedInformationAboutRevenueDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail",
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/RevenuesAdditionalInformationDetail",
      "http://www.ypf.com/role/RevenuesDetailedInformationAboutRevenueDetail",
      "http://www.ypf.com/role/RevenuesSummaryOfRevenueByGeographicAreaDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue",
        "verboseLabel": "Revenues",
        "totalLabel": "Revenues",
        "terseLabel": "Revenue"
       }
      }
     },
     "auth_ref": [
      "r125",
      "r198",
      "r232",
      "r239",
      "r245",
      "r246",
      "r249",
      "r441",
      "r474",
      "r516",
      "r517"
     ]
    },
    "ifrs-full_RevenueAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RevenueAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_RevenueByGeographicalAreaLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "RevenueByGeographicalAreaLineItems",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfRevenueByGeographicAreaDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue By Geographical Area [Line Items]",
        "documentation": "Revenue by geographical area."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_RevenueByGeographicalAreaTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "RevenueByGeographicalAreaTable",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfRevenueByGeographicAreaDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue By Geographical Area [Table]",
        "documentation": "Revenue by geographical area."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RevenueFromContractsWithCustomers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RevenueFromContractsWithCustomers",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesBySalesChannelsDetail",
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue from contracts with customers",
        "verboseLabel": "Revenue from contracts with customers"
       }
      }
     },
     "auth_ref": [
      "r148",
      "r149",
      "r270"
     ]
    },
    "ypf_RevenueFromGovernmentIncentives": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "RevenueFromGovernmentIncentives",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/RevenuesDetailedInformationAboutRevenueDetail": {
       "parentTag": "ifrs-full_Revenue",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/RevenuesDetailedInformationAboutRevenueDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue From Government incentives",
        "terseLabel": "National Government incentives",
        "documentation": "Revenue from government incentives."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RevenueFromInterest": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RevenueFromInterest",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Interest income",
        "verboseLabel": "Interest income"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of income arising from interest."
       }
      }
     },
     "auth_ref": [
      "r129",
      "r233",
      "r243",
      "r675"
     ]
    },
    "ifrs-full_RevenueFromSaleOfGoods": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RevenueFromSaleOfGoods",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsFromOilAndGasProducingActivitiesDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsFromOilAndGasProducingActivitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue from sale of goods",
        "totalLabel": "Total net revenues"
       }
      }
     },
     "auth_ref": [
      "r675"
     ]
    },
    "ifrs-full_RevenueFromSaleOfGoodsRelatedPartyTransactions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RevenueFromSaleOfGoodsRelatedPartyTransactions",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail": {
       "parentTag": "ifrs-full_Revenue",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue from sale of goods, related party transactions",
        "terseLabel": "Revenues from intersegment sales"
       }
      }
     },
     "auth_ref": [
      "r460",
      "r511"
     ]
    },
    "ifrs-full_RevenueFromSaleOfNaturalGas": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RevenueFromSaleOfNaturalGas",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue from sale of natural gas",
        "terseLabel": "Revenue from natural gas produced by the Company"
       }
      }
     },
     "auth_ref": [
      "r675"
     ]
    },
    "ifrs-full_RevenueFromSaleOfOilAndGasProducts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RevenueFromSaleOfOilAndGasProducts",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail": {
       "parentTag": "ifrs-full_Revenue",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenue from sale of oil and gas products",
        "terseLabel": "Revenues"
       }
      }
     },
     "auth_ref": [
      "r675"
     ]
    },
    "ypf_RevenuesFromContractsWithCustomers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "RevenuesFromContractsWithCustomers",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/RevenuesDetailedInformationAboutRevenueDetail": {
       "parentTag": "ifrs-full_Revenue",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/RevenuesDetailedInformationAboutRevenueDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenues from contracts with customers",
        "verboseLabel": "Revenue from contracts with customers",
        "documentation": "Revenues from contracts with customers."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_RevenuesFromContractsWithCustomersIncludedInContractLiabilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "RevenuesFromContractsWithCustomersIncludedInContractLiabilities",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/RevenuesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Revenues From Contracts With Customers Included In Contract Liabilities",
        "terseLabel": "Revenues from contracts with customers which have been included in \"Contract liabilities\" line item in the statement of financial position at the beginning of each year",
        "documentation": "Revenues from contracts with customers which have been included in \"Contract liabilities\" line item in the statement of financial position at the beginning of each year."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RightofuseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RightofuseAssets",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentAssets",
       "weight": 1.0,
       "order": 16.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Right-of-use assets",
        "terseLabel": "Right-of-use assets",
        "periodStartLabel": "Beginning balance",
        "periodEndLabel": "Ending balance"
       }
      },
      "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": [
      "r152",
      "r160",
      "r279"
     ]
    },
    "ypf_RinconDeLaCenizaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "RinconDeLaCenizaMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Rincon de la Ceniza [Member]",
        "terseLabel": "Rincon de la Ceniza [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_RinconDelMangrulloMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "RinconDelMangrulloMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Rincon del Mangrullo [Member]",
        "terseLabel": "Rincon del Mangrullo [Member]",
        "documentation": "Rincon del Mangrullo."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_RioNeuqunMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "RioNeuqunMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Rio Neuqun [Member]",
        "terseLabel": "Rio Neuqu\u00e9n [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_RoyaltiesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "RoyaltiesMember",
     "presentation": [
      "http://www.ypf.com/role/TaxesPayableSummaryOfTaxesPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Royalties [Member]",
        "terseLabel": "Royalties [member]",
        "documentation": "Royalties [Member]."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_RoyaltyExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "RoyaltyExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail": {
       "parentTag": "ifrs-full_ExpenseByNature",
       "weight": 1.0,
       "order": 15.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Royalty expense",
        "terseLabel": "Royalties, easements and fees"
       }
      }
     },
     "auth_ref": [
      "r683"
     ]
    },
    "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": [
      "r615"
     ]
    },
    "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": [
      "r615"
     ]
    },
    "ypf_SalariesAndSocialSecurity": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "SalariesAndSocialSecurity",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_NoncurrentLiabilities",
       "weight": 1.0,
       "order": 54.0
      },
      "http://www.ypf.com/role/SalariesAndSocialSecuritySummaryOfDetailedInformationAboutSalariesAndSocialSecurityDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/SalariesAndSocialSecuritySummaryOfDetailedInformationAboutSalariesAndSocialSecurityDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Salaries And Social Security",
        "terseLabel": "Salaries and social security",
        "totalLabel": "Salaries and social security non current",
        "documentation": "Salaries And Social Security"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_SalariesAndSocialSecurityPayablesCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "SalariesAndSocialSecurityPayablesCurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/SalariesAndSocialSecuritySummaryOfDetailedInformationAboutSalariesAndSocialSecurityDetail": {
       "parentTag": "ifrs-full_ShorttermEmployeeBenefitsAccruals",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/SalariesAndSocialSecuritySummaryOfDetailedInformationAboutSalariesAndSocialSecurityDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Salaries And Social Security Payables Current",
        "terseLabel": "Salaries and social security current",
        "documentation": "Salaries and social security, payables, current."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_SalariesAndSocialSecurityTaxes": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "SalariesAndSocialSecurityTaxes",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail": {
       "parentTag": "ifrs-full_ExpenseByNature",
       "weight": 1.0,
       "order": 19.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Salaries and Social Security Taxes",
        "terseLabel": "Salaries and social security taxes",
        "documentation": "Salaries and social security taxes."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_SalesAndTransfersNetOfProductionCosts": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "SalesAndTransfersNetOfProductionCosts",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInTheStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sales and transfers net of production costs",
        "negatedLabel": "Sales and transfers, net of production costs",
        "documentation": "Sales and transfers net of production costs."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_SalesChannelsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "SalesChannelsAxis",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesBySalesChannelsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sales channels [axis]",
        "terseLabel": "Sales channels [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": [
      "r481",
      "r507"
     ]
    },
    "ifrs-full_SalesChannelsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "SalesChannelsDomain",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesBySalesChannelsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sales channels [domain]",
        "terseLabel": "Sales channels [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for all sales channels. It also represents the standard value for the 'Sales channels' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r481",
      "r507"
     ]
    },
    "ypf_SanRoqueMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "SanRoqueMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "San Roque [Member]",
        "terseLabel": "San Roque [member]",
        "documentation": "San Roque."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ScGasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ScGasMember",
     "presentation": [
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "SC Gas [Member]",
        "documentation": "SC Gas."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ScheduleOfGrantedGuaranteesLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ScheduleOfGrantedGuaranteesLineItems",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsGrantedGuaranteesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Granted Guarantees [Line Items]",
        "documentation": "Schedule of Granted Guarantees [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ScheduleOfGrantedGuaranteesTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ScheduleOfGrantedGuaranteesTable",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsGrantedGuaranteesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Schedule of Granted Guarantees [Table]",
        "documentation": "Schedule of Granted Guarantees."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_SchemeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "SchemeAxis",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Scheme [Axis]",
        "documentation": "Scheme."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_SchemeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "SchemeMember",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Scheme [Member]",
        "documentation": "Scheme."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_SeArgentinaHoldingBvMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "SeArgentinaHoldingBvMember",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "SE Argentina Holding BV [Member]",
        "terseLabel": "SE Argentina Holding BV [Member]",
        "documentation": "SE argentina holding BV."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_SeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "SeMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationAboutRelatedPartyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "SE [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_SealCerroBayoVolcnAucaMahuidaDonRuizandLasManadasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "SealCerroBayoVolcnAucaMahuidaDonRuizandLasManadasMember",
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Seal Cerro Bayo Volcn Auca Mahuida Don Ruiz and Las Manadas [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_SecretaryOfIndustryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "SecretaryOfIndustryMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationAboutRelatedPartyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Secretary of Industry [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_SecretaryOfTransportMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "SecretaryOfTransportMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationAboutRelatedPartyDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Secretary of Transport [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "dei_Security12bTitle": {
     "xbrltype": "securityTitleItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "Security12bTitle",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Title of 12(b) Security",
        "documentation": "Title of a 12(b) registered security."
       }
      }
     },
     "auth_ref": [
      "r525"
     ]
    },
    "dei_SecurityExchangeName": {
     "xbrltype": "edgarExchangeCodeItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "SecurityExchangeName",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Security Exchange Name",
        "documentation": "Name of the Exchange on which a security is registered."
       }
      }
     },
     "auth_ref": [
      "r527"
     ]
    },
    "ifrs-full_SegmentConsolidationItemsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "SegmentConsolidationItemsAxis",
     "presentation": [
      "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segment consolidation items [axis]",
        "terseLabel": "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": [
      "r238"
     ]
    },
    "ifrs-full_SegmentConsolidationItemsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "SegmentConsolidationItemsDomain",
     "presentation": [
      "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segment consolidation items [domain]",
        "terseLabel": "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": [
      "r244"
     ]
    },
    "srt_SegmentGeographicalDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "SegmentGeographicalDomain",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail",
      "http://www.ypf.com/role/ContractualCommitmentsGrantedGuaranteesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Geographical [Domain]",
        "documentation": "Geographical area."
       }
      }
     },
     "auth_ref": [
      "r253",
      "r254",
      "r255",
      "r256",
      "r257",
      "r258",
      "r259",
      "r260",
      "r261",
      "r262",
      "r263",
      "r264",
      "r265",
      "r266",
      "r267",
      "r268"
     ]
    },
    "ifrs-full_SegmentsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "SegmentsAxis",
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesSummaryOfTheMainAssetsHeldForSaleAndAssociatedLiabilitiesDetail",
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segments [axis]",
        "terseLabel": "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": [
      "r66",
      "r150",
      "r238",
      "r271",
      "r458",
      "r485"
     ]
    },
    "ifrs-full_SegmentsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "SegmentsDomain",
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesSummaryOfTheMainAssetsHeldForSaleAndAssociatedLiabilitiesDetail",
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Segments [domain]",
        "terseLabel": "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": [
      "r66",
      "r150",
      "r244",
      "r271",
      "r458",
      "r485"
     ]
    },
    "ypf_SellingExpensesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "SellingExpensesMember",
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Selling Expenses [member]",
        "terseLabel": "Selling expenses [Member]",
        "documentation": "Selling expenses."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_SellingGeneralAndAdministrativeExpenseMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "SellingGeneralAndAdministrativeExpenseMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Selling, general and administrative expense [member]"
       }
      }
     },
     "auth_ref": [
      "r672",
      "r675"
     ]
    },
    "ifrs-full_ServiceConcessionRightsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ServiceConcessionRightsMember",
     "presentation": [
      "http://www.ypf.com/role/IntangibleAssetsSummaryOfChangesInIntangibleAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Service concession rights [member]",
        "terseLabel": "Service concessions [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for service concession rights. [Refer: Service concession arrangements [domain]]"
       }
      }
     },
     "auth_ref": [
      "r650"
     ]
    },
    "ifrs-full_ServicesExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ServicesExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail": {
       "parentTag": "ifrs-full_ExpenseByNature",
       "weight": 1.0,
       "order": 18.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Services expense",
        "terseLabel": "Fees and compensation for services"
       }
      }
     },
     "auth_ref": [
      "r683"
     ]
    },
    "ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFiveToTwentyEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ShareBasedBenefitPlanTwoThousandAndTwentyFiveToTwentyEightMember",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Based Benefit Plan Two Thousand And Twenty Five To Twenty Eight [Member]",
        "terseLabel": "Plan 2025 - 2028 [member]",
        "documentation": "Share based benefit plan two thousand and twenty five to twenty eight"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFiveToTwoThousandAndTwentyEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ShareBasedBenefitPlanTwoThousandAndTwentyFiveToTwoThousandAndTwentyEightMember",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Based Benefit Plan Two Thousand And Twenty Five To Two Thousand And Twenty Eight [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwentySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwentySevenMember",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Based Benefit Plan Two Thousand And Twenty Four To Twenty Seven [Member]",
        "terseLabel": "Plan 2024 - 2027 [member]",
        "documentation": "Share based benefit plan two thousand and twenty four to twenty seven"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwoThousandAndTwentySevenMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ShareBasedBenefitPlanTwoThousandAndTwentyFourToTwoThousandAndTwentySevenMember",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20242027Detail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Based Benefit Plan Two Thousand And Twenty Four To Two Thousand And Twenty Seven [Member]",
        "verboseLabel": "Plan 2024-2027 [member]",
        "documentation": "Share based benefit plan two thousand and sixteen to nineteen."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ShareBasedBenefitPlanTwoThousandAndTwentyTwoToTwentyFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ShareBasedBenefitPlanTwoThousandAndTwentyTwoToTwentyFiveMember",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Based Benefit Plan Two Thousand And Twenty Two to Twenty Five [Member]",
        "terseLabel": "Plan 2022 - 2025 [member]",
        "documentation": "Share based benefit plan two thousand and twenty two to twenty five member."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ShareBasedBenefitPlanTwoThousandTwentyOneToTwoThousandTwentyFourMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ShareBasedBenefitPlanTwoThousandTwentyOneToTwoThousandTwentyFourMember",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20212024Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Based Benefit Plan Two Thousand Twenty One To Two Thousand Twenty Four [Member]",
        "terseLabel": "Plan 2021 - 2024 [member]",
        "documentation": "Share based benefit plan two thousand twenty one to two thousand twenty four."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ShareBasedBenefitPlanTwoThousandTwentyThreeToTwoThousandTwentySixMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ShareBasedBenefitPlanTwoThousandTwentyThreeToTwoThousandTwentySixMember",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20232026Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Based Benefit Plan Two Thousand Twenty Three To Two Thousand Twenty Six [Member]",
        "terseLabel": "Plan 2023 - 2026 [member]",
        "documentation": "Share based benefit plan two thousand and twenty three to two thousand and twenty six member."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ShareBasedBenefitPlanTwoThousandTwentyToTwoThousandTwentyThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ShareBasedBenefitPlanTwoThousandTwentyToTwoThousandTwentyThreeMember",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20202023Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Based Benefit Plan Two Thousand Twenty To Two Thousand Twenty Three [Member]",
        "terseLabel": "Plan 2020 - 2023 [member]",
        "documentation": "Share based benefit plan two thousand twenty to two thousand twenty three [member]."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ShareBasedBenefitPlanTwoThousandTwentyTwoToTwoThousandTwentyFiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ShareBasedBenefitPlanTwoThousandTwentyTwoToTwoThousandTwentyFiveMember",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20222025Detail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Based Benefit Plan Two Thousand Twenty Two To Two Thousand Twenty Five [Member]",
        "terseLabel": "Plan 2022-2025 [member]",
        "documentation": "Share based benefit plan two thousand twenty two to two thousand twenty five."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ShareBasedBenefitPlans": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ShareBasedBenefitPlans",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": -1.0,
       "order": 22.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Based Benefit Plans",
        "negatedLabel": "Share-based benefit plans",
        "documentation": "Share based benefit plans."
       }
      }
     },
     "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": []
    },
    "ypf_ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue": {
     "xbrltype": "perShareItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ShareBasedPaymentArrangementOptionsGrantsInPeriodWeightedAverageGrantDateFairValue",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20202023Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20212024Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20222025Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20232026Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20242027Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20252028Detail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Based Payment Arrangement Options Grants In Period Weighted Average Grant Date Fair Value",
        "terseLabel": "Fair value of shares on grant date (in U.S. dollars)",
        "verboseLabel": "Fair value of shares on grant date (in U.S. dollars)",
        "documentation": "Share Based Payment Arrangement Options Grants In Period Weighted Average Grant Date Fair Value"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ShareOfOtherComprehensiveIncomeOfAssociatesAndJointVenturesAccountedForUsingEquityMethodThatWillBeReclassifiedToProfitOrLossNetOfTax",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_OtherComprehensiveIncome",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share of other comprehensive income of associates and joint ventures accounted for using equity method that will be reclassified to profit or loss, net of tax",
        "terseLabel": "Translation effect from subsidiaries, associates and joint ventures"
       }
      },
      "en": {
       "role": {
        "documentation": "Share of the other comprehensive income of associates and joint ventures accounted for using the equity method that will be reclassified to profit or loss, net of tax."
       }
      }
     },
     "auth_ref": [
      "r445"
     ]
    },
    "ifrs-full_ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ShareOfProfitLossOfAssociatesAndJointVenturesAccountedForUsingEquityMethod",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome": {
       "parentTag": "ifrs-full_ProfitLossBeforeTax",
       "weight": 1.0,
       "order": 24.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail",
      "http://www.ypf.com/role/ConsolidatedStatementsOfComprehensiveIncome",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfMovementsWhichAffectedTheValueOfTheInvestmentsInAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share of profit (loss) of associates and joint ventures accounted for using equity method",
        "positiveLabel": "Income from equity interests in associates and joint ventures",
        "terseLabel": "Income from equity interests in associates and joint ventures",
        "positiveTerseLabel": "Income on investments in associates and joint ventures"
       }
      }
     },
     "auth_ref": [
      "r236",
      "r243",
      "r443"
     ]
    },
    "ifrs-full_ShareOfProfitLossOfContinuingOperationsOfAssociatesAndJointVenturesAccountedForUsingEquityMethod": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ShareOfProfitLossOfContinuingOperationsOfAssociatesAndJointVenturesAccountedForUsingEquityMethod",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow": {
       "parentTag": "ifrs-full_CashFlowsFromUsedInOperatingActivities",
       "weight": -1.0,
       "order": 20.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlow"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share of profit (loss) from continuing operations of associates and joint ventures accounted for using equity method",
        "negatedLabel": "Income from equity interests in associates and joint ventures"
       }
      }
     },
     "auth_ref": [
      "r132",
      "r386"
     ]
    },
    "ifrs-full_SharePremium": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "SharePremium",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": 1.0,
       "order": 23.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share premium",
        "terseLabel": "Issuance premiums"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount received or receivable from the issuance of the entity's shares in excess of nominal value."
       }
      }
     },
     "auth_ref": [
      "r515",
      "r522"
     ]
    },
    "ifrs-full_SharePremiumMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "SharePremiumMember",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share premium [member]",
        "terseLabel": "Issuance premiums [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the amount received or receivable from issuance of the entity's shares in excess of nominal value."
       }
      }
     },
     "auth_ref": [
      "r407"
     ]
    },
    "ypf_ShareTradingPremiumMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ShareTradingPremiumMember",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Trading Premium [member]",
        "terseLabel": "Share trading premium [member]",
        "documentation": "Share trading premium."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ShareTradingPremiums": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ShareTradingPremiums",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": 1.0,
       "order": 31.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Share Trading Premiums",
        "terseLabel": "Share trading premiums",
        "documentation": "Share trading premiums."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ShellArgentinaSaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ShellArgentinaSaMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Shell Argentina S.A. [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_ShorttermBorrowings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ShorttermBorrowings",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilities",
       "weight": 1.0,
       "order": 40.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/LoansScheduleOfLoansDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current borrowings",
        "verboseLabel": "Loans",
        "positiveLabel": "Loans current"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current borrowings. [Refer: Borrowings]"
       }
      }
     },
     "auth_ref": [
      "r678"
     ]
    },
    "ifrs-full_ShorttermEmployeeBenefitsAccruals": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ShorttermEmployeeBenefitsAccruals",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilities",
       "weight": 1.0,
       "order": 39.0
      },
      "http://www.ypf.com/role/SalariesAndSocialSecuritySummaryOfDetailedInformationAboutSalariesAndSocialSecurityDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/SalariesAndSocialSecuritySummaryOfDetailedInformationAboutSalariesAndSocialSecurityDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Short-term employee benefits accruals",
        "terseLabel": "Salaries and social security",
        "totalLabel": "Salaries and social security current"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of accruals for employee benefits (other than termination benefits) that are expected to be settled wholly within twelve months after the end of the annual reporting period in which the employees render the related services. [Refer: Accruals classified as current]"
       }
      }
     },
     "auth_ref": [
      "r681"
     ]
    },
    "ifrs-full_ShorttermInvestmentsClassifiedAsCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ShorttermInvestmentsClassifiedAsCashEquivalents",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/CashAndCashEquivalentsSummaryOfCashAndCashEquivalentsDetail": {
       "parentTag": "ifrs-full_CashAndCashEquivalents",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/CashAndCashEquivalentsSummaryOfCashAndCashEquivalentsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Short-term investments, classified as cash equivalents",
        "terseLabel": "Short-term investments"
       }
      },
      "en": {
       "role": {
        "documentation": "A classification of cash equivalents representing short-term investments. [Refer: Cash equivalents]"
       }
      }
     },
     "auth_ref": [
      "r659"
     ]
    },
    "ifrs-full_ShorttermMiscellaneousOtherProvisions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "ShorttermMiscellaneousOtherProvisions",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/OtherLiabilitiesDetailsOfOtherLiabilitiesDetail": {
       "parentTag": "ifrs-full_OtherCurrentLiabilities",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/OtherLiabilitiesDetailsOfOtherLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current miscellaneous other provisions",
        "terseLabel": "Miscellaneous"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of miscellaneous current other provisions. [Refer: Miscellaneous other provisions]"
       }
      }
     },
     "auth_ref": [
      "r680"
     ]
    },
    "ypf_SierraChataConsorcioChihuidoMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "SierraChataConsorcioChihuidoMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sierra Chata Consorcio Chihuido [Member]",
        "terseLabel": "Sierra Chata Consorcio Chihuido [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_SierraChataLaEscalonadaAndRincnDeLaCenizaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "SierraChataLaEscalonadaAndRincnDeLaCenizaMember",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sierra Chata, La Escalonada and Rinc\u00f3n de la Ceniza",
        "documentation": "Sierra chata la escalonada and rinc\u00f3n de la ceniza member."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_SierraChataMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "SierraChataMember",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sierra Chata [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_SignificantInvestmentsInAssociatesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "SignificantInvestmentsInAssociatesAxis",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfTheInvestmentsInAssociatesAndJointVenturesOnADisaggregatedBasisDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Associates [axis]",
        "terseLabel": "Associates [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": [
      "r51",
      "r55",
      "r136",
      "r384"
     ]
    },
    "ifrs-full_SignificantInvestmentsInAssociatesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "SignificantInvestmentsInAssociatesDomain",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfTheInvestmentsInAssociatesAndJointVenturesOnADisaggregatedBasisDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Associates [domain]",
        "terseLabel": "Associates [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Associates' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r51",
      "r55",
      "r136",
      "r384"
     ]
    },
    "ifrs-full_SignificantInvestmentsInSubsidiariesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "SignificantInvestmentsInSubsidiariesAxis",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/AcquisitionsAndDisposalsTables",
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesAdditionalInformationDetail",
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesSummaryOfTheMainAssetsHeldForSaleAndAssociatedLiabilitiesDetail",
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/ContractualCommitmentsGrantedGuaranteesAdditionalInformationDetail",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsidiaries [axis]",
        "terseLabel": "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": [
      "r51",
      "r55",
      "r133",
      "r382"
     ]
    },
    "ifrs-full_SignificantInvestmentsInSubsidiariesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "SignificantInvestmentsInSubsidiariesDomain",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/AcquisitionsAndDisposalsTables",
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesAdditionalInformationDetail",
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesSummaryOfTheMainAssetsHeldForSaleAndAssociatedLiabilitiesDetail",
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/ContractualCommitmentsGrantedGuaranteesAdditionalInformationDetail",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subsidiaries [domain]",
        "terseLabel": "Subsidiaries [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the standard value for the 'Subsidiaries' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r51",
      "r55",
      "r133",
      "r382"
     ]
    },
    "ifrs-full_SocialSecurityContributions": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "SocialSecurityContributions",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesSummaryOfCompensationOfKeyManagementPersonnelParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Social security contributions",
        "terseLabel": "Social Security contributions"
       }
      }
     },
     "auth_ref": [
      "r643"
     ]
    },
    "ypf_SofrMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "SofrMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "SOFR [Member]",
        "documentation": "SOFR"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_SoybeanByproductsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "SoybeanByproductsMember",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Soybean Byproducts [Member]",
        "documentation": "Soybean byproducts."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_SoybeanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "SoybeanMember",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Soybean [Member]",
        "documentation": "Soybean."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_StandardizedMeasureOfDiscountedFutureNetCashFlowOfProvedOilAndGasReservesOtherAdjustments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "StandardizedMeasureOfDiscountedFutureNetCashFlowOfProvedOilAndGasReservesOtherAdjustments",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInTheStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Standardized measure of discounted future net cash flow of proved oil and gas reserves other adjustments",
        "terseLabel": "Others",
        "documentation": "Standardized measure of discounted future net cash flow of proved oil and gas reserves other adjustments."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserve": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserve",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Standardized measure of discounted future net cash flows relating to proved oil and gas reserve",
        "totalLabel": "Total standardized measure of discounted future net cash flows",
        "documentation": "Standardized measure of discounted future net cash flows relating to proved oil and gas reserve."
       }
      }
     },
     "auth_ref": []
    },
    "srt_StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserves": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "StandardizedMeasureOfDiscountedFutureNetCashFlowsRelatingToProvedOilAndGasReserves",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInTheStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Standardized Measure of Discounted Future Net Cash Flows Relating to Proved Oil and Gas Reserves",
        "periodStartLabel": "Beginning of year",
        "periodEndLabel": "End of year",
        "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"
     ]
    },
    "ypf_StateOrProvinceMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "StateOrProvinceMember",
     "presentation": [
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "State or Province [member]",
        "terseLabel": "State or Province [member]",
        "documentation": "State or Province of a Country."
       }
      }
     },
     "auth_ref": []
    },
    "srt_StatementGeographicalAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "StatementGeographicalAxis",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail",
      "http://www.ypf.com/role/ContractualCommitmentsGrantedGuaranteesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Geographical [Axis]",
        "documentation": "Information by geographical components."
       }
      }
     },
     "auth_ref": [
      "r253",
      "r254",
      "r255",
      "r256",
      "r257",
      "r258",
      "r259",
      "r260",
      "r261",
      "r262",
      "r263",
      "r264",
      "r265",
      "r266",
      "r267",
      "r268"
     ]
    },
    "ifrs-full_StatementOfCashFlowsAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "StatementOfCashFlowsAbstract",
     "lang": {
      "en-us": {
       "role": {
        "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": {
        "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://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity",
      "http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquityParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of changes in equity [line items]",
        "terseLabel": "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://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity",
      "http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquityParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of changes in equity [table]",
        "terseLabel": "Statement of changes in equity [table]"
       }
      },
      "en": {
       "role": {
        "documentation": "Schedule disclosing information related to changes in equity."
       }
      }
     },
     "auth_ref": [
      "r407"
     ]
    },
    "ypf_StatementOfComprehensiveIncomeProfitOrLossLocationAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "StatementOfComprehensiveIncomeProfitOrLossLocationAxis",
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of comprehensive income, profit or loss location [axis]",
        "terseLabel": "Statement of comprehensive income, profit or loss location [axis]",
        "documentation": "Statement of comprehensive income, profit or loss location."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_StatementOfComprehensiveIncomeProfitOrLossLocationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "StatementOfComprehensiveIncomeProfitOrLossLocationMember",
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statement of comprehensive income, profit or loss location [member]",
        "terseLabel": "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": {
        "label": "Statement of financial position [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_StatutoryActAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "StatutoryActAxis",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statutory Act [Axis]",
        "documentation": "Statutory act."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_StatutoryActMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "StatutoryActMember",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail1"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statutory Act [Member]",
        "documentation": "Statutory act."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_StatutoryReserve": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "StatutoryReserve",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": 1.0,
       "order": 24.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition",
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statutory reserve",
        "terseLabel": "Legal reserve"
       }
      },
      "en": {
       "role": {
        "documentation": "A component of equity representing reserves created based on legal requirements."
       }
      }
     },
     "auth_ref": [
      "r678"
     ]
    },
    "ifrs-full_StatutoryReserveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "StatutoryReserveMember",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Statutory reserve [member]",
        "terseLabel": "Legal reserve [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a component of equity representing reserves created based on legal requirements."
       }
      }
     },
     "auth_ref": [
      "r674"
     ]
    },
    "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": [
      "r547",
      "r558",
      "r568",
      "r601"
     ]
    },
    "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": []
    },
    "ypf_StockMarketPromissoryNotesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "StockMarketPromissoryNotesMember",
     "presentation": [
      "http://www.ypf.com/role/LoansScheduleOfLoansDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Stock Market Promissory Notes [Member]",
        "terseLabel": "Stock market promissory notes [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_SubscribedCapital": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "SubscribedCapital",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Subscribed capital",
        "terseLabel": "Share capital",
        "documentation": "Subscribed capital."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_SummaryOfMainCompaniesOfTheGroupAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "SummaryOfMainCompaniesOfTheGroupAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Summary of Main Companies of the Group [Abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_SummaryOfMainCompaniesOfTheGroupLineItems": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "SummaryOfMainCompaniesOfTheGroupLineItems",
     "presentation": [
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Summary of Main Companies of the Group [Line Items]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_SummaryOfMainCompaniesOfTheGroupTable": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "SummaryOfMainCompaniesOfTheGroupTable",
     "presentation": [
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Summary of Main Companies of the Group [Table]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_SupportEquipmentAndFacilities": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "SupportEquipmentAndFacilities",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesDetail": {
       "parentTag": "ypf_GrossCapitalizedCost",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Support equipment and facilities",
        "terseLabel": "Support equipment and facilities",
        "documentation": "Support equipment and facilities."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_SurInversionesEnergeticasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "SurInversionesEnergeticasMember",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsGrantedGuaranteesAdditionalInformationDetail",
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sur Inversiones Energeticas [Member]",
        "terseLabel": "Sur Inversiones Energ\u00e9ticas [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_SurInversionesEnergticasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "SurInversionesEnergticasMember",
     "presentation": [
      "http://www.ypf.com/role/ContractualCommitmentsContractualCommitmentsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sur Inversiones Energticas [Member]",
        "terseLabel": "Sur Inversiones Energticas [Member]",
        "documentation": "Sur inversiones energticas."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_SurveyExpenses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "SurveyExpenses",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail": {
       "parentTag": "ifrs-full_ExpenseByNature",
       "weight": 1.0,
       "order": 12.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Survey Expenses",
        "terseLabel": "Survey expenses",
        "documentation": "Survey expenses."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_SustentatorSaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "SustentatorSaMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Sustentator SA [Member]",
        "terseLabel": "Sustentator [member]",
        "documentation": "Sustentator S.A."
       }
      }
     },
     "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": [
      "r594"
     ]
    },
    "ypf_TakeRespectiveAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TakeRespectiveAxis",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Take respective [Axis]",
        "terseLabel": "Take respective [axis]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TakeRespectiveMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TakeRespectiveMember",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Take respective [Member]",
        "terseLabel": "Take respective [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TaxBenefitsForPriceAgreementsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TaxBenefitsForPriceAgreementsMember",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax Benefits For Price Agreements [Member]",
        "terseLabel": "Tax benefits for price agreements [member]",
        "documentation": "Tax benefits for price agreements."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TaxEffectFromChangeInTaxRate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TaxEffectFromChangeInTaxRate",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/IncomeTaxSummaryOfReconciliationBetweenTheChargeToNetIncomeForIncomeTaxAndTheOneThatWouldResultFromApplyingThePrevailingTaxRateOnNetIncomeBeforeIncomeTaxArisingFromTheConsolidatedStatementsOfComprehensiveIncoe8f94": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfReconciliationBetweenTheChargeToNetIncomeForIncomeTaxAndTheOneThatWouldResultFromApplyingThePrevailingTaxRateOnNetIncomeBeforeIncomeTaxArisingFromTheConsolidatedStatementsOfComprehensiveIncoe8f94"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax effect from change in tax rate",
        "negatedLabel": "Effect of tax rate change"
       }
      },
      "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 changes in the tax rate. [Refer: Accounting profit]"
       }
      }
     },
     "auth_ref": [
      "r4",
      "r307"
     ]
    },
    "ypf_TaxEffectOfRegularizationPlanAssociatedWithTaxLossCarryforwardsAmount": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TaxEffectOfRegularizationPlanAssociatedWithTaxLossCarryforwardsAmount",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfReconciliationBetweenTheChargeToNetIncomeForIncomeTaxAndTheOneThatWouldResultFromApplyingThePrevailingTaxRateOnNetIncomeBeforeIncomeTaxArisingFromTheConsolidatedStatementsOfComprehensiveIncoe8f94"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax Effect Of Regularization Plan Associated With Tax Loss Carryforwards Amount",
        "terseLabel": "Regularization plan associated with the calculation of tax loss carryforwards",
        "documentation": "Tax effect of regularization plan associated with tax loss carryforwards amount."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TaxExpenseIncomeAtApplicableTaxRate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TaxExpenseIncomeAtApplicableTaxRate",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/IncomeTaxSummaryOfReconciliationBetweenTheChargeToNetIncomeForIncomeTaxAndTheOneThatWouldResultFromApplyingThePrevailingTaxRateOnNetIncomeBeforeIncomeTaxArisingFromTheConsolidatedStatementsOfComprehensiveIncoe8f94": {
       "parentTag": "ifrs-full_IncomeTaxExpenseContinuingOperations",
       "weight": 1.0,
       "order": 7.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfReconciliationBetweenTheChargeToNetIncomeForIncomeTaxAndTheOneThatWouldResultFromApplyingThePrevailingTaxRateOnNetIncomeBeforeIncomeTaxArisingFromTheConsolidatedStatementsOfComprehensiveIncoe8f94"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax expense (income) at applicable tax rate",
        "negatedLabel": "Average tax rate applied to net profit or loss before income tax"
       }
      },
      "en": {
       "role": {
        "documentation": "The product of the accounting profit multiplied by the applicable tax rate(s). [Refer: Accounting profit; Applicable tax rate]"
       }
      }
     },
     "auth_ref": [
      "r4",
      "r307"
     ]
    },
    "ifrs-full_TaxExpenseOtherThanIncomeTaxExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TaxExpenseOtherThanIncomeTaxExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail": {
       "parentTag": "ifrs-full_ExpenseByNature",
       "weight": 1.0,
       "order": 16.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax expense other than income tax expense",
        "terseLabel": "Taxes, charges and contributions"
       }
      }
     },
     "auth_ref": [
      "r683"
     ]
    },
    "ypf_TaxLossesCarryforwardAndOtherTaxCreditsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TaxLossesCarryforwardAndOtherTaxCreditsMember",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax Losses Carryforward And Other Tax Credits [member]",
        "verboseLabel": "Tax loss carryforwards [member]",
        "documentation": "Tax losses carryforward and other tax credits."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TaxRateForAnInclusiveAndSolidaryArgentinaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TaxRateForAnInclusiveAndSolidaryArgentinaMember",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax Rate For An Inclusive And Solidary Argentina [Member]",
        "terseLabel": "Tax rate for an inclusive and solidary Argentina [member]",
        "documentation": "Tax rate for an inclusive and solidary Argentina."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TaxRateOfDistributionOfDividendsAndProfitsToIndividualsUndividedEstatesAndForeignBeneficiaries": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TaxRateOfDistributionOfDividendsAndProfitsToIndividualsUndividedEstatesAndForeignBeneficiaries",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax Rate Of Distribution Of Dividends And Profits To Individuals Undivided Estates And Foreign Beneficiaries",
        "terseLabel": "Tax rate of distribution of dividends and profits to individuals undivided estates and foreign beneficiaries",
        "documentation": "Tax rate of distribution of dividends and profits to individuals undivided estates and foreign beneficiaries."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TaxYearAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TaxYearAxis",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax Year [Axis]",
        "documentation": "Tax year."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TaxYearMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TaxYearMember",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tax Year [Member]",
        "documentation": "Tax year."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TaxableIncomeMinimumExcludingTaxLossesCarryForwards": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TaxableIncomeMinimumExcludingTaxLossesCarryForwards",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Taxable Income Minimum Excluding Tax Losses Carry Forwards",
        "terseLabel": "Taxable income minimum excluding tax loss carry forwards",
        "documentation": "Taxable income minimum excluding tax losses carry forwards."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TaxesByTypeAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TaxesByTypeAxis",
     "presentation": [
      "http://www.ypf.com/role/TaxesPayableSummaryOfTaxesPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Taxes by Type [Axis]",
        "documentation": "Taxes by type (Axis)."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TaxesByTypeDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TaxesByTypeDomain",
     "presentation": [
      "http://www.ypf.com/role/TaxesPayableSummaryOfTaxesPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Taxes by Type [Domain]",
        "terseLabel": "Taxes by Type [member]",
        "documentation": "Taxes by type (Domin)."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TecpetrolMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TecpetrolMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Tecpetrol [Member]",
        "verboseLabel": "Tecpetrol S.A. [member]",
        "documentation": "Tecpetrol."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TemporaryDifferenceRelatingToLeaseLiabilitesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TemporaryDifferenceRelatingToLeaseLiabilitesMember",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Temporary Difference Relating To Lease Liabilites [Member]",
        "terseLabel": "Lease liabilities [member]",
        "documentation": "Temporary difference relating to lease liabilites."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TemporaryDifferenceRelatingToRightOfUseAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TemporaryDifferenceRelatingToRightOfUseAssetsMember",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Temporary Difference Relating To Right Of Use Assets [Member]",
        "terseLabel": "Right-of-use assets [Member]",
        "documentation": "Temporary difference relating to right of use assets."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsAxis",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Temporary difference, unused tax losses and unused tax credits [axis]",
        "terseLabel": "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": [
      "r8",
      "r311"
     ]
    },
    "ifrs-full_TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDomain",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Temporary difference, unused tax losses and unused tax credits [domain]",
        "terseLabel": "Temporary difference, unused tax losses and unused tax credits [member]"
       }
      },
      "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": [
      "r8",
      "r311"
     ]
    },
    "ypf_TermDepositsAndOtherInvestmentsClassifiedAsCashEquivalents": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TermDepositsAndOtherInvestmentsClassifiedAsCashEquivalents",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/CashAndCashEquivalentsSummaryOfCashAndCashEquivalentsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Term deposits and other investments , classified as cash equivalents",
        "terseLabel": "Term deposits and other investments",
        "documentation": "Term deposits and other investments , classified as cash equivalents."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TermDepositsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TermDepositsMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInFinancialAssetsSummaryOfInvestmentsInFinancialAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Term Deposits [Member]",
        "documentation": "Term deposits."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TermOfExtensionOfTransportationConcession": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TermOfExtensionOfTransportationConcession",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Term Of Extension Of Transportation Concession",
        "terseLabel": "Term of extension of transportation concession",
        "documentation": "Term of extension of transportation concession."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TermapMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TermapMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfTheInvestmentsInAssociatesAndJointVenturesOnADisaggregatedBasisDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Termap [member]",
        "terseLabel": "Termap [member]",
        "documentation": "Termap [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TextBlock1Abstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TextBlock1Abstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Text Block1 [Abstract]",
        "terseLabel": "Text block [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TopOfRangeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TopOfRangeMember",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsDetailedInformationAboutPropertyPlantAndEquipmentDetail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsAdditionalInformationDetail",
      "http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail",
      "http://www.ypf.com/role/LoansScheduleOfLoansDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail",
      "http://www.ypf.com/role/ProvisionsAdditionalInformationDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Top of range [member]",
        "terseLabel": "Top of range [member]",
        "verboseLabel": "Top of range [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for top of a range."
       }
      }
     },
     "auth_ref": [
      "r94",
      "r144",
      "r171",
      "r187",
      "r297",
      "r475",
      "r476",
      "r662"
     ]
    },
    "ypf_TotalAustralMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TotalAustralMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total Austral [Member]",
        "terseLabel": "Total Austral [member]",
        "documentation": "Total Austral."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TotalChargesRecordedInComprehensiveIncomeAndCapitalizations": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TotalChargesRecordedInComprehensiveIncomeAndCapitalizations",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/LeaseLiabilitiesAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Total charges recorded in comprehensive income and capitalizations",
        "documentation": "Total charges recorded in comprehensive income and capitalizations."
       }
      }
     },
     "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": [
      "r586"
     ]
    },
    "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": [
      "r593"
     ]
    },
    "ifrs-full_TradeAndOtherCurrentPayables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TradeAndOtherCurrentPayables",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_CurrentLiabilities",
       "weight": 1.0,
       "order": 42.0
      },
      "http://www.ypf.com/role/AccountsPayableDetailedInformationAboutAccountsPayableDetail": {
       "parentTag": null,
       "weight": null,
       "order": null,
       "root": true
      }
     },
     "presentation": [
      "http://www.ypf.com/role/AccountsPayableDetailedInformationAboutAccountsPayableDetail",
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade and other current payables",
        "terseLabel": "Accounts payable",
        "totalLabel": "Total, current account payable",
        "positiveLabel": "Accounts payable Current"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current trade payables and current other payables. [Refer: Current trade payables; Other current payables]"
       }
      }
     },
     "auth_ref": [
      "r414"
     ]
    },
    "ifrs-full_TradeAndOtherCurrentPayablesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TradeAndOtherCurrentPayablesAbstract",
     "presentation": [
      "http://www.ypf.com/role/AccountsPayableDetailedInformationAboutAccountsPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade and other current payables [abstract]",
        "terseLabel": "Current"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TradeAndOtherCurrentPayablesToTradeSuppliers": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TradeAndOtherCurrentPayablesToTradeSuppliers",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/AccountsPayableDetailedInformationAboutAccountsPayableDetail": {
       "parentTag": "ifrs-full_TradeAndOtherCurrentPayables",
       "weight": 1.0,
       "order": 1.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/AccountsPayableDetailedInformationAboutAccountsPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current trade payables",
        "terseLabel": "Trade payable and related parties"
       }
      },
      "en": {
       "role": {
        "documentation": "The current amount of payment due to suppliers for goods and services used in entity's business. [Refer: Current liabilities; Trade payables]"
       }
      }
     },
     "auth_ref": [
      "r520",
      "r681"
     ]
    },
    "ifrs-full_TradeAndOtherCurrentReceivablesDueFromRelatedParties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TradeAndOtherCurrentReceivablesDueFromRelatedParties",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail": {
       "parentTag": "ypf_TradeAndOtherCurrentReceivablesOtherThanProvision",
       "weight": 1.0,
       "order": 18.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Current receivables due from related parties",
        "verboseLabel": "Loans and balances with related parties"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of current receivables due from related parties. [Refer: Total for all related parties [member]]"
       }
      }
     },
     "auth_ref": [
      "r514",
      "r521"
     ]
    },
    "ypf_TradeAndOtherCurrentReceivablesOtherThanProvision": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TradeAndOtherCurrentReceivablesOtherThanProvision",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail": {
       "parentTag": "ifrs-full_OtherCurrentReceivables",
       "weight": 1.0,
       "order": 10.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/OtherReceivablesSummaryOfOtherReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade And Other Current Receivables Other Than Provision",
        "totalLabel": "Other current receivables before provision",
        "documentation": "Trade and other current receivables other than provision."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TradeAndOtherPayables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TradeAndOtherPayables",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfMaturityDatesOfFinancialLiabilitiesDetail": {
       "parentTag": "ifrs-full_FinancialLiabilities",
       "weight": 1.0,
       "order": 2.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfMaturityDatesOfFinancialLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade and other payables",
        "terseLabel": "Accounts payable"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount of trade payables and other payables. [Refer: Trade payables; Other payables]"
       }
      }
     },
     "auth_ref": [
      "r414"
     ]
    },
    "ifrs-full_TradeAndOtherPayablesRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TradeAndOtherPayablesRecognisedAsOfAcquisitionDate",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsSummaryOfFairValuesOfTheIdentifiableAssetsAcquiredAndTheLiabilitiesAssumedDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade and other payables recognised as of acquisition date",
        "negatedLabel": "Accounts payable"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount recognised as of the acquisition date for trade and other payables assumed in a business combination. [Refer: Trade and other payables; Total for all business combinations [member]]"
       }
      }
     },
     "auth_ref": [
      "r660"
     ]
    },
    "ifrs-full_TradeReceivables": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TradeReceivables",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/TradeReceivablesSummaryOfEvolutionOfTheProvisionForDoubtfulTradeReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade receivables",
        "periodStartLabel": "Balance at the beginning of the year",
        "periodEndLabel": "Balance at the end of the year"
       }
      },
      "en": {
       "role": {
        "documentation": "The amount due from customers for goods and services sold."
       }
      }
     },
     "auth_ref": [
      "r514",
      "r521"
     ]
    },
    "ypf_TradeReceivablesAbstract": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TradeReceivablesAbstract",
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade Receivables [abstract]",
        "documentation": "Trade Receivables [abstract]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TradeReceivablesIncurredDueToUtilization": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TradeReceivablesIncurredDueToUtilization",
     "crdr": "credit",
     "presentation": [
      "http://www.ypf.com/role/TradeReceivablesSummaryOfEvolutionOfTheProvisionForDoubtfulTradeReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade Receivables Incurred Due to Utilization",
        "terseLabel": "Applications due to utilization",
        "documentation": "Trade receivables incurred due to utilization."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TradeReceivablesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TradeReceivablesMember",
     "presentation": [
      "http://www.ypf.com/role/FinancialInstrumentsByCategorySummaryOfFinancialAssetsAndLiabilitiesByCategoryOfFinancialInstrumentAndReconciliationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade receivables [member]",
        "terseLabel": "Trade receivables [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for trade receivables. [Refer: Trade receivables]"
       }
      }
     },
     "auth_ref": [
      "r208",
      "r213",
      "r376",
      "r379",
      "r490",
      "r675"
     ]
    },
    "ypf_TradeReceivablesReclassificationAdjustments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TradeReceivablesReclassificationAdjustments",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/TradeReceivablesSummaryOfEvolutionOfTheProvisionForDoubtfulTradeReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade Receivables Reclassification Adjustments",
        "terseLabel": "Reclassifications",
        "documentation": "Trade receivables reclassification adjustments."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TradeReceivablesReclassificationAdjustmentsOnExchangeDifferencesOnTranslationNetOfTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TradeReceivablesReclassificationAdjustmentsOnExchangeDifferencesOnTranslationNetOfTax",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/TradeReceivablesSummaryOfEvolutionOfTheProvisionForDoubtfulTradeReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade Receivables Reclassification Adjustments On Exchange Differences On Translation Net Of Tax",
        "terseLabel": "Net exchange and translation differences",
        "documentation": "Trade Receivables Reclassification Adjustments On Exchange Differences On Translation Net Of Tax"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TradeReceivablesRecognisedAsOfAcquisitionDate": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TradeReceivablesRecognisedAsOfAcquisitionDate",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsSummaryOfFairValuesOfTheIdentifiableAssetsAcquiredAndTheLiabilitiesAssumedDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade receivables recognised as of acquisition date",
        "verboseLabel": "Trade receivables",
        "documentation": "Trade receivables recognised as of acquisition date."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TradeReceivablesResultFromNetMonetaryPosition": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TradeReceivablesResultFromNetMonetaryPosition",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/TradeReceivablesSummaryOfEvolutionOfTheProvisionForDoubtfulTradeReceivablesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trade Receivables Result from net monetary position",
        "terseLabel": "Result from net monetary position",
        "documentation": "Trade Receivables Result from net monetary position."
       }
      }
     },
     "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": [
      "r614"
     ]
    },
    "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": [
      "r616"
     ]
    },
    "ypf_TradingMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TradingMember",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesBySalesChannelsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading [member]",
        "terseLabel": "Trading [member]",
        "documentation": "Trading."
       }
      }
     },
     "auth_ref": []
    },
    "dei_TradingSymbol": {
     "xbrltype": "tradingSymbolItemType",
     "nsuri": "http://xbrl.sec.gov/dei/2025",
     "localname": "TradingSymbol",
     "presentation": [
      "http://www.ypf.com/role/CoverPage"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trading Symbol",
        "documentation": "Trading symbol of an instrument as listed on an exchange."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TransferredToProvedProperties": {
     "xbrltype": "integerItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TransferredToProvedProperties",
     "presentation": [
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transferred to Proved Properties",
        "terseLabel": "Transferred to proved properties",
        "documentation": "Transferred to Proved Properties"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TranslationDifferencesOnInvestments": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TranslationDifferencesOnInvestments",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfMovementsWhichAffectedTheValueOfTheInvestmentsInAssociatesAndJointVenturesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Translation Differences On Investments",
        "terseLabel": "Translation differences",
        "documentation": "Translation Differences On Investments"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TranslationEffectOfDeferredIncomeTaxForCompaniesWithAFunctionalCurrencyOtherThanTheDollar": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TranslationEffectOfDeferredIncomeTaxForCompaniesWithAFunctionalCurrencyOtherThanTheDollar",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfDeferredTaxParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Translation Effect of Deferred Income Tax For Companies With A Functional Currency Other Than The Dollar",
        "terseLabel": "Translation effect of deferred income tax for companies with a functional currency other than the dollar",
        "documentation": "Translation effect of deferred income tax for companies with a functional currency other than the dollar."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TransportadoraDeGasDelNorteSaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TransportadoraDeGasDelNorteSaMember",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transportadora De Gas Del Norte SA [member]",
        "documentation": "TGN."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TransportationConcessionTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TransportationConcessionTerm",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transportation Concession Term",
        "terseLabel": "Transportation concession term",
        "documentation": "Transportation concession term."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TransportationExpense": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TransportationExpense",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail": {
       "parentTag": "ifrs-full_ExpenseByNature",
       "weight": 1.0,
       "order": 5.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Transportation expense",
        "terseLabel": "Transportation, products and charges"
       }
      }
     },
     "auth_ref": [
      "r675"
     ]
    },
    "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": [
      "r617"
     ]
    },
    "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": [
      "r618"
     ]
    },
    "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": [
      "r618"
     ]
    },
    "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": [
      "r616"
     ]
    },
    "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": [
      "r616"
     ]
    },
    "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": [
      "r619"
     ]
    },
    "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": [
      "r617"
     ]
    },
    "ifrs-full_TreasuryShares": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TreasuryShares",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": -1.0,
       "order": 21.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Treasury shares",
        "terseLabel": "Treasury shares"
       }
      },
      "en": {
       "role": {
        "documentation": "An entity\u2019s own equity instruments, held by the entity or other members of the consolidated group."
       }
      }
     },
     "auth_ref": [
      "r58",
      "r515",
      "r522"
     ]
    },
    "ifrs-full_TreasurySharesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TreasurySharesMember",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Treasury shares [member]",
        "terseLabel": "Treasury shares [Member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for the entity\u2019s own equity instruments, held by the entity or other members of the consolidated group."
       }
      }
     },
     "auth_ref": [
      "r407"
     ]
    },
    "ypf_TreasuryStockSharesAcquired1": {
     "xbrltype": "sharesItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TreasuryStockSharesAcquired1",
     "presentation": [
      "http://www.ypf.com/role/ShareholdersEquityAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Treasury Stock Shares Acquired 1",
        "terseLabel": "Repurchase of own shares issued, shares",
        "documentation": "Treasury Stock Shares Acquired 1"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TruckFleetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TruckFleetsMember",
     "presentation": [
      "http://www.ypf.com/role/RightOfUseAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Truck fleets [Member]",
        "documentation": "Truck fleets."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TrustSettlementAgreementMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TrustSettlementAgreementMember",
     "presentation": [
      "http://www.ypf.com/role/ProvisionsSummaryOfChangesInGroupsProvisionsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Trust Settlement Agreement [Member]",
        "documentation": "Trust settlement agreement."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TurnoverTax": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TurnoverTax",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Turnover Tax",
        "terseLabel": "Turnover tax",
        "documentation": "Turnover tax."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TurnoverTaxPayableMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TurnoverTaxPayableMember",
     "presentation": [
      "http://www.ypf.com/role/TaxesPayableSummaryOfTaxesPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Turnover Tax Payable [Member]",
        "terseLabel": "Turnover tax [member]",
        "documentation": "Turnover tax payable [Member]."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TwelveInstalmentsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TwelveInstalmentsMember",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxSummaryOfBreakdownOfIncomeTaxLiabilityParentheticalsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Twelve Instalments [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TwoThousandAndTwentyTwoAndTwoThousandAndTwentyThreeMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TwoThousandAndTwentyTwoAndTwoThousandAndTwentyThreeMember",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Thousand And Twenty Two AndTwo Thousand And Twenty Three [Member]",
        "terseLabel": "2022 or 2023 [member]",
        "documentation": "Two thousand and twenty two and two thousand and twenty three."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TwoThousandEightMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TwoThousandEightMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Thousand Eight [member]",
        "terseLabel": "Two Thousand Eight [member]",
        "documentation": "Two thousand eight."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TwoThousandFifteenAprilMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TwoThousandFifteenAprilMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two thousand fifteen April [member]",
        "terseLabel": "2015 April [member]",
        "documentation": "Two thousand fifteen April."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TwoThousandFifteenOctoberMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TwoThousandFifteenOctoberMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two thousand fifteen October [member]",
        "terseLabel": "2015 October [member]",
        "documentation": "Two thousand fifteen October."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TwoThousandFourteenAprilTwoThousandFifteenFebruaryAndTwoThousanSixteenOctoberMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TwoThousandFourteenAprilTwoThousandFifteenFebruaryAndTwoThousanSixteenOctoberMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Thousand Fourteen April Two Thousand Fifteen February And Two Thousan Sixteen October [member]",
        "terseLabel": "2014 April, 2015 February and 2016 October [member]",
        "documentation": "Two thousand fourteen April two thousand fifteen February and two thousand sixteen October."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TwoThousandFourteenSeptemberMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TwoThousandFourteenSeptemberMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Thousand Fourteen September [member]",
        "terseLabel": "2014 September [member]",
        "documentation": "Two thousand fourteen September."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TwoThousandNineteenJuneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TwoThousandNineteenJuneMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Thousand Nineteen June [Member]",
        "terseLabel": "2019 June [member]",
        "documentation": "Two Thousand Nineteen June."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TwoThousandSeventeenDecemberMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TwoThousandSeventeenDecemberMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Thousand Seventeen December [member]",
        "terseLabel": "2017 December [member]",
        "documentation": "Two Thousand Seventeen December [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TwoThousandSeventeenJulyAndDecemberMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TwoThousandSeventeenJulyAndDecemberMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Thousand Seventeen July And December [member]",
        "terseLabel": "2017 July and December [member]",
        "documentation": "Two Thousand Seventeen July And December [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TwoThousandTwentyFiveAugustMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TwoThousandTwentyFiveAugustMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Thousand Twenty Five August [Member]",
        "terseLabel": "2025 August [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TwoThousandTwentyFiveDecemberMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TwoThousandTwentyFiveDecemberMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Thousand Twenty Five December [Member]",
        "terseLabel": "2025 December [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TwoThousandTwentyFiveFebruaryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TwoThousandTwentyFiveFebruaryMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Thousand Twenty Five February [Member]",
        "terseLabel": "2025 February [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TwoThousandTwentyFiveJanuaryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TwoThousandTwentyFiveJanuaryMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Thousand Twenty Five January [Member]",
        "terseLabel": "2025 January [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TwoThousandTwentyFiveJulyAndAugustMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TwoThousandTwentyFiveJulyAndAugustMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Thousand Twenty Five July And August [Member]",
        "terseLabel": "2025 July and August [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TwoThousandTwentyFiveJulyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TwoThousandTwentyFiveJulyMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Thousand Twenty Five July [Member]",
        "terseLabel": "2025 July [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TwoThousandTwentyFiveMayMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TwoThousandTwentyFiveMayMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Thousand Twenty Five May [Member]",
        "terseLabel": "2025 May [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TwoThousandTwentyFiveOctoberMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TwoThousandTwentyFiveOctoberMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Thousand Twenty Five October [Member]",
        "terseLabel": "2025 October [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TwoThousandTwentyFourJanuaryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TwoThousandTwentyFourJanuaryMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Thousand Twenty Four January [Member]",
        "terseLabel": "2024 January [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TwoThousandTwentyFourJulyAndTwoThousandTwentyFiveAprilMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TwoThousandTwentyFourJulyAndTwoThousandTwentyFiveAprilMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "TwoThousandTwentyFourJulyAndTwoThousandTwentyFiveApril [Member]",
        "terseLabel": "2024 July and 2025 April [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TwoThousandTwentyFourMayMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TwoThousandTwentyFourMayMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Thousand Twenty Four May [Member]",
        "terseLabel": "2024 May [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TwoThousandTwentyFourOctoberMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TwoThousandTwentyFourOctoberMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Thousand Twenty Four October [Member]",
        "terseLabel": "2024 October [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TwoThousandTwentyFourSeptemberMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TwoThousandTwentyFourSeptemberMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Thousand Twenty Four September [Member]",
        "terseLabel": "2024 September [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TwoThousandTwentyJulyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TwoThousandTwentyJulyMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Thousand Twenty July [Member]",
        "terseLabel": "2020 July [member]",
        "documentation": "Two Thousand Twenty July Member"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TwoThousandTwentyOneFebruaryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TwoThousandTwentyOneFebruaryMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Thousand Twenty One February [Member]",
        "terseLabel": "2021 February [member]",
        "documentation": "Two thousand twenty one february."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TwoThousandTwentyOneJulyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TwoThousandTwentyOneJulyMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Thousand Twenty One July [Member]",
        "terseLabel": "2021 July [member]",
        "documentation": "Two thousand twenty one july."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TwoThousandTwentyThreeAprilMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TwoThousandTwentyThreeAprilMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Thousand Twenty Three April [Member]",
        "terseLabel": "2023 April [member]",
        "documentation": "Two thousand twenty three april."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TwoThousandTwentyThreeJanuaryAndTwoThousandTwentyThreeAprilMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TwoThousandTwentyThreeJanuaryAndTwoThousandTwentyThreeAprilMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Thousand Twenty Three January And Two Thousand Twenty Three April [Member]",
        "terseLabel": "2023 January and 2023 April [member]",
        "documentation": "Two thousand twenty three january and two thousand twenty three april."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TwoThousandTwentyThreeJanuaryMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TwoThousandTwentyThreeJanuaryMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Thousand Twenty Three January [Member]",
        "terseLabel": "2023 January [member]",
        "documentation": "Two thousand twenty three january."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TwoThousandTwentyThreeJuneMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TwoThousandTwentyThreeJuneMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Thousand Twenty Three June [Member]",
        "terseLabel": "2023 June [member]",
        "documentation": "Two thousand twenty three june."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TwoThousandTwentyThreeOctoberMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TwoThousandTwentyThreeOctoberMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Thousand Twenty Three October [Member]",
        "terseLabel": "2023 October [member]",
        "documentation": "Two thousand twenty three october."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TwoThousandTwentyThreeSeptemberMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TwoThousandTwentyThreeSeptemberMember",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Two Thousand Twenty Three September [Member]",
        "terseLabel": "2023 September [member]",
        "documentation": "Two thousand twenty three september."
       }
      }
     },
     "auth_ref": []
    },
    "srt_TypeOfReserveDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "http://fasb.org/srt/2025",
     "localname": "TypeOfReserveDomain",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Type of Reserve [Domain]",
        "terseLabel": "Type of Reserve [Domain]",
        "documentation": "The type of petroleum reserve being disclosed: oil, natural gas, natural gas liquids, synthetic oil, synthetic gas, or other nonrenewable natural resource that is intended to be upgraded into synthetic oil and gas with separate disclosures for consolidated entities and equity method investments."
       }
      }
     },
     "auth_ref": [
      "r663",
      "r664"
     ]
    },
    "ypf_TypeOfTermAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TypeOfTermAxis",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Type of Term [Axis]",
        "terseLabel": "Type of Term [Axis]",
        "documentation": "Type of Term"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_TypeOfTermMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "TypeOfTermMember",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Type of Term [Member]",
        "terseLabel": "Type of Term [Member]",
        "documentation": "Type of Term"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_TypesOfContractsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TypesOfContractsAxis",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesParentheticalDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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": [
      "r480",
      "r483",
      "r506"
     ]
    },
    "ifrs-full_TypesOfContractsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TypesOfContractsDomain",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesParentheticalDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "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": [
      "r480",
      "r483",
      "r506"
     ]
    },
    "ifrs-full_TypesOfInterestRatesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TypesOfInterestRatesAxis",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail",
      "http://www.ypf.com/role/FinancialRiskManagementInformationAboutFinancialAssetsAndLiabilitiesThatAccruesInterestConsideringApplicableRateDetail",
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfEstimatedImpactOnConsolidatedComprehensiveIncomeThatAnIncreaseOrDecreaseOf100BasisPointsInInterestRateDetail",
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail",
      "http://www.ypf.com/role/LoansScheduleOfLoansParentheticalDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail",
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Types of interest rates [axis]",
        "terseLabel": "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": [
      "r661"
     ]
    },
    "ifrs-full_TypesOfInterestRatesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TypesOfInterestRatesDomain",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail",
      "http://www.ypf.com/role/FinancialRiskManagementInformationAboutFinancialAssetsAndLiabilitiesThatAccruesInterestConsideringApplicableRateDetail",
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfEstimatedImpactOnConsolidatedComprehensiveIncomeThatAnIncreaseOrDecreaseOf100BasisPointsInInterestRateDetail",
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail",
      "http://www.ypf.com/role/LoansScheduleOfLoansParentheticalDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail",
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Types of interest rates [domain]",
        "terseLabel": "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": [
      "r661"
     ]
    },
    "ifrs-full_TypesOfRateregulatedActivitiesAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TypesOfRateregulatedActivitiesAxis",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail",
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Types of rate-regulated activities [axis]",
        "terseLabel": "Types of rate-regulated activities [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",
      "r145",
      "r390"
     ]
    },
    "ifrs-full_TypesOfRateregulatedActivitiesDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TypesOfRateregulatedActivitiesDomain",
     "presentation": [
      "http://www.ypf.com/role/LoansDetailsOfNegotiableObligationsDetail",
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail",
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Types of rate-regulated activities [domain]",
        "terseLabel": "Types of rate-regulated activities [domain]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for an entity\u2019s activities that are subject to rate regulation. It also represents the standard value for the 'Types of rate-regulated activities' axis if no other member is used."
       }
      }
     },
     "auth_ref": [
      "r143",
      "r145",
      "r390"
     ]
    },
    "ifrs-full_TypesOfRisksAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TypesOfRisksAxis",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail",
      "http://www.ypf.com/role/FinancialRiskManagementInformationAboutFinancialAssetsAndLiabilitiesThatAccruesInterestConsideringApplicableRateDetail",
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfBreakdownOfEffectAVariationOf10InPrevailingExchangeRatesOnNetIncomeDetail",
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfEffectOfA10VariationInThePricesOfInvestmentsInFinancialInstrumentsDetail",
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfEstimatedImpactOnConsolidatedComprehensiveIncomeThatAnIncreaseOrDecreaseOf100BasisPointsInInterestRateDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Types of risks [axis]",
        "terseLabel": "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": [
      "r32",
      "r172",
      "r173",
      "r174",
      "r176",
      "r202",
      "r206",
      "r207",
      "r325"
     ]
    },
    "ifrs-full_TypesOfRisksDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TypesOfRisksDomain",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail",
      "http://www.ypf.com/role/FinancialRiskManagementInformationAboutFinancialAssetsAndLiabilitiesThatAccruesInterestConsideringApplicableRateDetail",
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfBreakdownOfEffectAVariationOf10InPrevailingExchangeRatesOnNetIncomeDetail",
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfEffectOfA10VariationInThePricesOfInvestmentsInFinancialInstrumentsDetail",
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfEstimatedImpactOnConsolidatedComprehensiveIncomeThatAnIncreaseOrDecreaseOf100BasisPointsInInterestRateDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Types of risks [domain]",
        "terseLabel": "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": [
      "r32",
      "r172",
      "r173",
      "r174",
      "r176",
      "r202",
      "r206",
      "r207",
      "r325"
     ]
    },
    "ifrs-full_TypesOfSharebasedPaymentArrangementsAxis": {
     "xbrltype": "stringItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TypesOfSharebasedPaymentArrangementsAxis",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesAdditionalInformationDetail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsAdditionalInformationDetail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20202023Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20212024Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20222025Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20232026Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20242027Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20252028Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Types of share-based payment arrangements [axis]",
        "terseLabel": "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": [
      "r188",
      "r361"
     ]
    },
    "ifrs-full_TypesOfSharebasedPaymentArrangementsDomain": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "TypesOfSharebasedPaymentArrangementsDomain",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesAdditionalInformationDetail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsAdditionalInformationDetail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20202023Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20212024Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20222025Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20232026Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20242027Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsSummaryOfShareBasedCompensationPlanPlan20252028Detail",
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsTables"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Types of share-based payment arrangements [domain]",
        "terseLabel": "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": [
      "r188",
      "r361"
     ]
    },
    "currency_USD": {
     "xbrltype": "domainItemType",
     "nsuri": "http://xbrl.sec.gov/currency/2025",
     "localname": "USD",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementScheduleOfBreakdownOfEffectAVariationOf10InPrevailingExchangeRatesOnNetIncomeDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "United States of America, Dollars",
        "verboseLabel": "Peso against U.S. dollar [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_UnappropriatedRetainedEarningsAndLosses": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "UnappropriatedRetainedEarningsAndLosses",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition": {
       "parentTag": "ifrs-full_EquityAttributableToOwnersOfParent",
       "weight": 1.0,
       "order": 28.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfFinancialPosition"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unappropriated Retained Earnings And Losses",
        "terseLabel": "Unappropriated retained earnings and losses",
        "documentation": "Unappropriated retained\u00a0earnings\u00a0and losses."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_UnappropriatedRetainedEarningsAndLossesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "UnappropriatedRetainedEarningsAndLossesMember",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfChangesInShareholdersEquity"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unappropriated Retained Earnings and Losses [Member]",
        "verboseLabel": "Unappropriated retained earnings and losses [member]",
        "documentation": "Unappropriated retained earnings and losses."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_UnconventionalExploitationConcessionTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "UnconventionalExploitationConcessionTerm",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unconventional Exploitation Concession Term",
        "terseLabel": "Unconventional exploitation concession term",
        "documentation": "Unconventional exploitation concession term."
       }
      }
     },
     "auth_ref": []
    },
    "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": [
      "r613"
     ]
    },
    "ypf_UnpaidAdditionsOfAssetsHeldForSale": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "UnpaidAdditionsOfAssetsHeldForSale",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlowsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unpaid Additions Of Assets Held For Sale",
        "terseLabel": "Unpaid additions of assets held for sale",
        "documentation": "Unpaid additions of assets held for sale."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_UnpaidReceivablesFromSaleOfCompanies": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "UnpaidReceivablesFromSaleOfCompanies",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/ConsolidatedStatementsOfCashFlowsParenthetical"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "UnpaidReceivablesFromSaleOfCompanies",
        "terseLabel": "Unpaid receivables from the sale of companies",
        "documentation": "Unpaid Receivables From Sale Of Companies"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_UnproductiveExploratoryDrillings": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "UnproductiveExploratoryDrillings",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail": {
       "parentTag": "ifrs-full_ExpenseByNature",
       "weight": 1.0,
       "order": 6.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationParentheticalDetail",
      "http://www.ypf.com/role/ExpensesByNatureDetailedInformationAboutExpensesByNatureDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unproductive exploratory drillings",
        "negatedLabel": "Unproductive exploratory drillings",
        "terseLabel": "Unproductive exploratory drillings",
        "documentation": "Unproductive exploratory drillings."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_UnprovedOilAndGasProperties": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "UnprovedOilAndGasProperties",
     "crdr": "debit",
     "calculation": {
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesDetail": {
       "parentTag": "ypf_GrossCapitalizedCost",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Unproved Oil And Gas Properties",
        "terseLabel": "Unproved oil and gas properties",
        "documentation": "Unproved oil and gas properties."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_UpdatedOfExportPermitTerm": {
     "xbrltype": "durationItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "UpdatedOfExportPermitTerm",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Updated Of Export Permit Term",
        "terseLabel": "Updated of export permit term",
        "documentation": "Updated of export permit term."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_UpstreamContractsComprisedInRightOfUseAssetsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "UpstreamContractsComprisedInRightOfUseAssetsMember",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesParentheticalDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Upstream Contracts Comprised In Right Of Use Assets [Member]",
        "terseLabel": "Upstream Contracts comprised in right-of-use assets [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_UpstreamMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "UpstreamMember",
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesSummaryOfTheMainAssetsHeldForSaleAndAssociatedLiabilitiesDetail",
      "http://www.ypf.com/role/BusinessSegmentInformationSummaryOfBusinessSegmentInformationDetail",
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail",
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesBySalesChannelsDetail",
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Upstream [member]",
        "terseLabel": "Upstream [member]",
        "documentation": "Upstream."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_UpstreamSupportEquipmentAndFacilitiesContractsComprisedInRightOfUseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "UpstreamSupportEquipmentAndFacilitiesContractsComprisedInRightOfUseAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Upstream Support Equipment And Facilities Contracts Comprised In Right Of Use Assets",
        "terseLabel": "Upstream support equipment and facilities contracts comprised in right-of-use assets",
        "documentation": "Upstream support equipment and facilities contracts comprised in right-of-use assets."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_UpstreamWellsRelatedEquipmentContractsComprisedInRightOfUseAssets": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "UpstreamWellsRelatedEquipmentContractsComprisedInRightOfUseAssets",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Upstream Wells Related Equipment Contracts Comprised In Right Of Use Assets",
        "terseLabel": "Upstream wells related equipment contracts comprised in right-of-use assets",
        "documentation": "Upstream wells related equipment contracts comprised in right-of-use assets."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment": {
     "xbrltype": "durationItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "UsefulLifeMeasuredAsPeriodOfTimePropertyPlantAndEquipment",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsDetailedInformationAboutPropertyPlantAndEquipmentDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Useful life measured as period of time, property, plant and equipment",
        "terseLabel": "Estimated useful life of the assets"
       }
      },
      "en": {
       "role": {
        "documentation": "The useful life, measured as period of time, used for property, plant and equipment. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r10",
      "r312"
     ]
    },
    "ypf_VacationProvisionCurrent": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "VacationProvisionCurrent",
     "crdr": "credit",
     "calculation": {
      "http://www.ypf.com/role/SalariesAndSocialSecuritySummaryOfDetailedInformationAboutSalariesAndSocialSecurityDetail": {
       "parentTag": "ifrs-full_ShorttermEmployeeBenefitsAccruals",
       "weight": 1.0,
       "order": 3.0
      }
     },
     "presentation": [
      "http://www.ypf.com/role/SalariesAndSocialSecuritySummaryOfDetailedInformationAboutSalariesAndSocialSecurityDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Vacation Provision Current",
        "terseLabel": "Vacation provision current",
        "documentation": "Vacation provision, current."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_ValueGenerationPlanMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "ValueGenerationPlanMember",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Value Generation Plan [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_VehiclesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "VehiclesMember",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsDetailedInformationAboutPropertyPlantAndEquipmentDetail",
      "http://www.ypf.com/role/PropertyPlantAndEquipmentSummaryOfChangesInPropertyPlantAndEquipmentDetail",
      "http://www.ypf.com/role/RightOfUseAssetsSummaryOfEvolutionOfTheGroupsRightOfUseAssetsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Vehicles [member]",
        "terseLabel": "Transportation equipment [member]"
       }
      },
      "en": {
       "role": {
        "documentation": "This member stands for a class of property, plant and equipment representing vehicles used in the entity's operations, specifically to include aircraft, motor vehicles and ships. [Refer: Property, plant and equipment]"
       }
      }
     },
     "auth_ref": [
      "r640"
     ]
    },
    "ypf_VesselsAndBargesForHydrocarbonTransportationMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "VesselsAndBargesForHydrocarbonTransportationMember",
     "presentation": [
      "http://www.ypf.com/role/RightOfUseAssetsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Vessels and barges for hydrocarbon transportation [Member]",
        "documentation": "Vessels and barges for hydrocarbon transportation."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_VirginNaphthaMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "VirginNaphthaMember",
     "presentation": [
      "http://www.ypf.com/role/RevenuesSummaryOfBreakdownOfRevenuesByTypeOfGoodOrServiceDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Virgin naphtha [member]",
        "terseLabel": "Virgin naphtha [member]",
        "documentation": "Virgin naphtha."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_VmiMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "VmiMember",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail",
      "http://www.ypf.com/role/AcquisitionsAndDisposalsSummaryOfFairValuesOfTheIdentifiableAssetsAcquiredAndTheLiabilitiesAssumedDetail",
      "http://www.ypf.com/role/AcquisitionsAndDisposalsTables",
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail",
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail",
      "http://www.ypf.com/role/SubsequentEventsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "VMI [Member]",
        "documentation": "VMI."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_VmosMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "VmosMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfTheInvestmentsInAssociatesAndJointVenturesOnADisaggregatedBasisDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "VMOS [Member]",
        "terseLabel": "VMOS [member]",
        "documentation": "VMOS."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_VolumeOfNaturalGasConvertedToCubicFeetPerBarrel": {
     "xbrltype": "decimalItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "VolumeOfNaturalGasConvertedToCubicFeetPerBarrel",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesParentheticalDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Volume Of Natural Gas Converted To Cubic Feet Per Barrel",
        "terseLabel": "Natural gas converted to barrel of oil equivalent",
        "documentation": "Volume of natural gas converted to cubic feet per barrel."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_VolumeOfProvedReserveForDivestmentProcessOfCrudeoil": {
     "xbrltype": "energyItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "VolumeOfProvedReserveForDivestmentProcessOfCrudeoil",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Volume Of Proved Reserve For Divestment Process Of Crudeoil",
        "terseLabel": "Volume Of Proved Reserve For Divestment Process Of Crudeoil",
        "documentation": "Volume of proved reserve for divestment process of crudeoil."
       }
      }
     },
     "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": [
      "r582"
     ]
    },
    "ifrs-full_WeightedAverageExercisePriceOfShareOptionsGrantedInSharebasedPaymentArrangement2019": {
     "xbrltype": "perShareItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "WeightedAverageExercisePriceOfShareOptionsGrantedInSharebasedPaymentArrangement2019",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted average exercise price of share options granted in share-based payment arrangement"
       }
      },
      "en": {
       "role": {
        "documentation": "The weighted average exercise price of share options granted in a share-based payment arrangement. [Refer: Weighted average [member]]"
       }
      }
     },
     "auth_ref": [
      "r181",
      "r356"
     ]
    },
    "ifrs-full_WeightedAverageLesseesIncrementalBorrowingRateAppliedToLeaseLiabilitiesRecognisedAtDateOfInitialApplicationOfIFRS16": {
     "xbrltype": "percentItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "WeightedAverageLesseesIncrementalBorrowingRateAppliedToLeaseLiabilitiesRecognisedAtDateOfInitialApplicationOfIFRS16",
     "presentation": [
      "http://www.ypf.com/role/LeaseLiabilitiesSummaryOfLeaseLiabilitiesAndDiscountRatesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted average lessee's incremental borrowing rate applied to lease liabilities recognised at date of initial application of IFRS 16",
        "terseLabel": "Effective\u00a0average\u00a0monthly\u00a0rate\u00a0used"
       }
      },
      "en": {
       "role": {
        "documentation": "The weighted average lessee's incremental borrowing rate applied to lease liabilities recognised in the statement of financial position at the date of initial application of IFRS 16. The incremental borrowing rate is the rate of interest that a lessee would have to pay to borrow over a similar term, and with a similar security, the funds necessary to obtain an asset of a similar value to the right-of-use asset in a similar economic environment."
       }
      }
     },
     "auth_ref": [
      "r165"
     ]
    },
    "ifrs-full_WeightedAverageRemainingContractualLifeOfOutstandingShareOptions2019": {
     "xbrltype": "durationItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "WeightedAverageRemainingContractualLifeOfOutstandingShareOptions2019",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted average remaining contractual life of outstanding share options"
       }
      },
      "en": {
       "role": {
        "documentation": "The weighted average remaining contractual life of outstanding share options. [Refer: Weighted average [member]]"
       }
      }
     },
     "auth_ref": [
      "r187"
     ]
    },
    "ifrs-full_WeightedAverageSharePrice2019": {
     "xbrltype": "perShareItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "WeightedAverageSharePrice2019",
     "presentation": [
      "http://www.ypf.com/role/EmployeeBenefitPlansAndSimilarObligationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted average share price"
       }
      },
      "en": {
       "role": {
        "documentation": "The weighted average share price. [Refer: Weighted average [member]]"
       }
      }
     },
     "auth_ref": [
      "r186"
     ]
    },
    "ifrs-full_WeightedAverageShares": {
     "xbrltype": "sharesItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "WeightedAverageShares",
     "presentation": [
      "http://www.ypf.com/role/EarningsPerShareSummaryOfEarningsPerShareDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Weighted average number of ordinary shares outstanding",
        "terseLabel": "Weighted average number of shares outstanding"
       }
      },
      "en": {
       "role": {
        "documentation": "The number of ordinary shares outstanding at the beginning of the period, adjusted by the number of ordinary shares bought back or issued during the period multiplied by a time-weighting factor."
       }
      }
     },
     "auth_ref": [
      "r61"
     ]
    },
    "ypf_WheatCornAndSorghumMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "WheatCornAndSorghumMember",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Wheat Corn And Sorghum [Member]",
        "terseLabel": "Wheat, corn and sorghum [member]",
        "documentation": "Wheat, corn and sorghum."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_WheatMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "WheatMember",
     "presentation": [
      "http://www.ypf.com/role/MainRegulationsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Wheat [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_WithholdingsAndPerceptionsMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "WithholdingsAndPerceptionsMember",
     "presentation": [
      "http://www.ypf.com/role/TaxesPayableSummaryOfTaxesPayableDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Withholdings and Perceptions [Member]",
        "terseLabel": "Withholdings and Perceptions [member]",
        "documentation": "Withholdings and perceptions [Member]."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_WorkingCapital": {
     "xbrltype": "monetaryItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "WorkingCapital",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/FinancialRiskManagementAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "WorkingCapital",
        "verboseLabel": "Working capital",
        "documentation": "Working capital."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_WorkingInterestInUnconventionalExploitationConcessions": {
     "xbrltype": "percentItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "WorkingInterestInUnconventionalExploitationConcessions",
     "presentation": [
      "http://www.ypf.com/role/AcquisitionsAndDisposalsAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Working interest in unconventional exploitation concessions",
        "documentation": "Working interest in unconventional exploitation concessions."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_WorldwideMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "WorldwideMember",
     "presentation": [
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedCostsIncurredForOilAndGasProducingActivitiesDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedResultsOfOperationsFromOilAndGasProducingActivitiesDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfCapitalizedCostsAlongWithTheRelatedAccumulatedDepreciationAndAllowancesDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfChangesInYpfsNetProvedReservesDetail",
      "http://www.ypf.com/role/SupplementalInformationOnOilAndGasProducingActivitiesUnauditedSummaryOfStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Worldwide [member]",
        "terseLabel": "Worldwide [member]",
        "documentation": "Worldwide."
       }
      }
     },
     "auth_ref": []
    },
    "ifrs-full_WritedownsReversalsOfInventories": {
     "xbrltype": "monetaryItemType",
     "nsuri": "https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full",
     "localname": "WritedownsReversalsOfInventories",
     "crdr": "debit",
     "presentation": [
      "http://www.ypf.com/role/CostsDetailedInformationOfInventoryCostsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Write-downs (reversals of write-downs) of inventories",
        "negatedLabel": "Inventories write-down"
       }
      }
     },
     "auth_ref": [
      "r290",
      "r448"
     ]
    },
    "ypf_YPFChileMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "YPFChileMember",
     "presentation": [
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "YPF Chile [Member]",
        "terseLabel": "YPF Chile [member]",
        "documentation": "YPF Chile."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_YPFEEMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "YPFEEMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesAdditionalInformationDetail",
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfAnalysisOfAssetsAndLiabilitiesOfSignificantAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfTheInvestmentsInAssociatesAndJointVenturesOnADisaggregatedBasisDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "YPF EE [member]",
        "terseLabel": "YPF EE [member]",
        "documentation": "YPF EE."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_YPFGasMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "YPFGasMember",
     "presentation": [
      "http://www.ypf.com/role/BalancesAndTransactionsWithRelatedPartiesInformationDetailedInTheTablesBelowShowsTheBalancesWithAssociatesAndJointVenturesDetail",
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail",
      "http://www.ypf.com/role/InvestmentsInAssociatesAndJointVenturesSummaryOfTheInvestmentsInAssociatesAndJointVenturesOnADisaggregatedBasisDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "YPF Gas [member]",
        "terseLabel": "YPF Gas [member]",
        "documentation": "YPF Gas [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_YTECMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "YTECMember",
     "presentation": [
      "http://www.ypf.com/role/BasisOfPreparationOfTheConsolidatedFinancialStatementsAdditionalInformationDetail",
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Y T E C [member]",
        "terseLabel": "Y-TEC [member]",
        "documentation": "Y T E C [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_YacimientosPetroliferosFiscalesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "YacimientosPetroliferosFiscalesMember",
     "presentation": [
      "http://www.ypf.com/role/InvestmentsInJointOperationsAndConsortiumsInformationAboutExplorationAndExploitationOfJointVenturesAndOtherAgreementsDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Yacimientos Petroliferos Fiscales [member]",
        "terseLabel": "YPF [member]",
        "documentation": "YPFB"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_YearTwoThousandAndTwentyNineAndYearTwoThousandAndThirtyMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "YearTwoThousandAndTwentyNineAndYearTwoThousandAndThirtyMember",
     "presentation": [
      "http://www.ypf.com/role/IncomeTaxAdditionalInformationDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "Year Two Thousand And Twenty Nine and Year Two Thousand And Thirty [Member]",
        "terseLabel": "2029 and 2030 [member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_YpfBrazilMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "YpfBrazilMember",
     "presentation": [
      "http://www.ypf.com/role/AssetsHeldForSaleAndAssociatedLiabilitiesSummaryOfTheMainAssetsHeldForSaleAndAssociatedLiabilitiesDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "YPF Brazil [Member]"
       }
      }
     },
     "auth_ref": []
    },
    "ypf_YpfDigitalMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "YpfDigitalMember",
     "presentation": [
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "YPF Digital [Member]",
        "documentation": "YPF Digital."
       }
      }
     },
     "auth_ref": []
    },
    "ypf_YpfVenturesMember": {
     "xbrltype": "domainItemType",
     "nsuri": "http://www.ypf.com/20251231",
     "localname": "YpfVenturesMember",
     "presentation": [
      "http://www.ypf.com/role/GeneralInformationStructureAndOrganizationOfTheBusinessOfTheGroupSummaryOfMainCompaniesOfTheGroupDetail"
     ],
     "lang": {
      "en-us": {
       "role": {
        "label": "YPF Ventures [Member]",
        "terseLabel": "YPF Ventures [Member]",
        "documentation": "YPF Ventures."
       }
      }
     },
     "auth_ref": []
    },
    "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": [
      "r580"
     ]
    }
   }
  }
 },
 "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": "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"
  },
  "r5": {
   "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"
  },
  "r6": {
   "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"
  },
  "r7": {
   "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"
  },
  "r8": {
   "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"
  },
  "r9": {
   "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"
  },
  "r10": {
   "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"
  },
  "r11": {
   "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"
  },
  "r12": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_73_e_i&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": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_73_e_iii&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": "ix",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_73_e_ix&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": "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"
  },
  "r17": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "73",
   "Subparagraph": "e",
   "Clause": "vii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_73_e_vii&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",
   "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"
  },
  "r19": {
   "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"
  },
  "r20": {
   "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"
  },
  "r21": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "75",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_75_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r22": {
   "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"
  },
  "r23": {
   "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"
  },
  "r24": {
   "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"
  },
  "r25": {
   "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"
  },
  "r26": {
   "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"
  },
  "r27": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "2",
   "IssueDate": "2025-01-01",
   "Paragraph": "36",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=2&code=ifrs-tx-2025-en-r&anchor=para_36_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r28": {
   "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"
  },
  "r29": {
   "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"
  },
  "r30": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "21",
   "IssueDate": "2025-01-01",
   "Paragraph": "48",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=21&code=ifrs-tx-2025-en-r&anchor=para_48&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r31": {
   "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"
  },
  "r32": {
   "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"
  },
  "r33": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "23",
   "IssueDate": "2025-01-01",
   "Paragraph": "26",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=23&code=ifrs-tx-2025-en-r&anchor=para_26_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r34": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "23",
   "IssueDate": "2025-01-01",
   "Paragraph": "26",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=23&code=ifrs-tx-2025-en-r&anchor=para_26_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r35": {
   "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"
  },
  "r36": {
   "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"
  },
  "r37": {
   "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"
  },
  "r38": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2025-01-01",
   "Paragraph": "17",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2025-en-r&anchor=para_17_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r39": {
   "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"
  },
  "r40": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2025-01-01",
   "Paragraph": "19",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2025-en-r&anchor=para_19_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r41": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2025-01-01",
   "Paragraph": "19",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2025-en-r&anchor=para_19_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r42": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2025-01-01",
   "Paragraph": "19",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2025-en-r&anchor=para_19_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r43": {
   "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"
  },
  "r44": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "26",
   "IssueDate": "2025-01-01",
   "Paragraph": "35",
   "Subparagraph": "b",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=26&code=ifrs-tx-2025-en-r&anchor=para_35_b_iii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r45": {
   "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"
  },
  "r46": {
   "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"
  },
  "r47": {
   "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"
  },
  "r48": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2025-01-01",
   "Paragraph": "16",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2025-en-r&anchor=para_16_b_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r49": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2025-01-01",
   "Paragraph": "16",
   "Subparagraph": "b",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2025-en-r&anchor=para_16_b_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r50": {
   "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"
  },
  "r51": {
   "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"
  },
  "r52": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2025-01-01",
   "Paragraph": "17",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2025-en-r&anchor=para_17_b_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r53": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "27",
   "IssueDate": "2025-01-01",
   "Paragraph": "17",
   "Subparagraph": "b",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=27&code=ifrs-tx-2025-en-r&anchor=para_17_b_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r54": {
   "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"
  },
  "r55": {
   "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"
  },
  "r56": {
   "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"
  },
  "r57": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "29",
   "IssueDate": "2025-01-01",
   "Paragraph": "9",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=29&code=ifrs-tx-2025-en-r&anchor=para_9&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r58": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "32",
   "IssueDate": "2025-01-01",
   "Paragraph": "34",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=32&code=ifrs-tx-2025-en-r&anchor=para_34&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r59": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "33",
   "IssueDate": "2025-01-01",
   "Paragraph": "66",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=33&code=ifrs-tx-2025-en-r&anchor=para_66&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r60": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "33",
   "IssueDate": "2025-01-01",
   "Paragraph": "67",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=33&code=ifrs-tx-2025-en-r&anchor=para_67&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r61": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "33",
   "IssueDate": "2025-01-01",
   "Paragraph": "70",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=33&code=ifrs-tx-2025-en-r&anchor=para_70_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r62": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "33",
   "IssueDate": "2025-01-01",
   "Section": "Disclosure",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=33&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IAS33_g70-73A_TI",
   "URIDate": "2025-03-27"
  },
  "r63": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2025-01-01",
   "Paragraph": "126",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2025-en-r&anchor=para_126_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r64": {
   "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"
  },
  "r65": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2025-01-01",
   "Paragraph": "129",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2025-en-r&anchor=para_129_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r66": {
   "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"
  },
  "r67": {
   "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"
  },
  "r68": {
   "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"
  },
  "r69": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2025-01-01",
   "Paragraph": "130",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2025-en-r&anchor=para_130_g&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r70": {
   "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"
  },
  "r71": {
   "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"
  },
  "r72": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2025-01-01",
   "Paragraph": "134",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2025-en-r&anchor=para_134&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r73": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "36",
   "IssueDate": "2025-01-01",
   "Paragraph": "135",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=36&code=ifrs-tx-2025-en-r&anchor=para_135&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r74": {
   "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"
  },
  "r75": {
   "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"
  },
  "r76": {
   "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"
  },
  "r77": {
   "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"
  },
  "r78": {
   "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"
  },
  "r79": {
   "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"
  },
  "r80": {
   "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"
  },
  "r81": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IAS",
   "Number": "38",
   "IssueDate": "2025-01-01",
   "Paragraph": "126",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=38&code=ifrs-tx-2025-en-r&anchor=para_126&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r82": {
   "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"
  },
  "r83": {
   "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"
  },
  "r84": {
   "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"
  },
  "r85": {
   "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"
  },
  "r86": {
   "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"
  },
  "r87": {
   "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"
  },
  "r88": {
   "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"
  },
  "r89": {
   "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"
  },
  "r90": {
   "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"
  },
  "r91": {
   "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"
  },
  "r92": {
   "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"
  },
  "r93": {
   "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"
  },
  "r94": {
   "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"
  },
  "r95": {
   "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"
  },
  "r96": {
   "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"
  },
  "r97": {
   "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"
  },
  "r98": {
   "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"
  },
  "r99": {
   "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"
  },
  "r100": {
   "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"
  },
  "r101": {
   "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"
  },
  "r102": {
   "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"
  },
  "r103": {
   "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"
  },
  "r104": {
   "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"
  },
  "r105": {
   "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"
  },
  "r106": {
   "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"
  },
  "r107": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "12",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_12_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r108": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "12",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_12_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r109": {
   "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"
  },
  "r110": {
   "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"
  },
  "r111": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "19B",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_19B_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r112": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "19B",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_19B_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r113": {
   "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"
  },
  "r114": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "21",
   "Subparagraph": "a",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_21_a_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r115": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "21",
   "Subparagraph": "a",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_21_a_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r116": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "21",
   "Subparagraph": "a",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_21_a_iii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r117": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "21",
   "Subparagraph": "a",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_21_a_iv&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r118": {
   "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"
  },
  "r119": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B12",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B12_a&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r120": {
   "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"
  },
  "r121": {
   "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"
  },
  "r122": {
   "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"
  },
  "r123": {
   "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"
  },
  "r124": {
   "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"
  },
  "r125": {
   "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"
  },
  "r126": {
   "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"
  },
  "r127": {
   "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"
  },
  "r128": {
   "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"
  },
  "r129": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B13",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B13_e&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r130": {
   "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"
  },
  "r131": {
   "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"
  },
  "r132": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B16",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B16_a&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r133": {
   "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"
  },
  "r134": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B4",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B4_b&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r135": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B4",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B4_c&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r136": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Paragraph": "B4",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&anchor=para_B4_d&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r137": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "12",
   "IssueDate": "2025-01-01",
   "Section": "Nature of the risks associated with an entity's interests in consolidated structured entities",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=12&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IFRS12_g14-17_TI",
   "URIDate": "2025-03-27"
  },
  "r138": {
   "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"
  },
  "r139": {
   "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"
  },
  "r140": {
   "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"
  },
  "r141": {
   "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"
  },
  "r142": {
   "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"
  },
  "r143": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "14",
   "IssueDate": "2025-01-01",
   "Paragraph": "30",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=14&code=ifrs-tx-2025-en-r&anchor=para_30&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r144": {
   "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"
  },
  "r145": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "14",
   "IssueDate": "2025-01-01",
   "Paragraph": "33",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=14&code=ifrs-tx-2025-en-r&anchor=para_33&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r146": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "14",
   "IssueDate": "2025-01-01",
   "Section": "Explanation of activities subject to rate regulation",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=14&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IFRS14_g30-31_TI",
   "URIDate": "2025-03-27"
  },
  "r147": {
   "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"
  },
  "r148": {
   "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"
  },
  "r149": {
   "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"
  },
  "r150": {
   "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"
  },
  "r151": {
   "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"
  },
  "r152": {
   "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"
  },
  "r153": {
   "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"
  },
  "r154": {
   "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"
  },
  "r155": {
   "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"
  },
  "r156": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "53",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2025-en-r&anchor=para_53_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r157": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "53",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2025-en-r&anchor=para_53_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r158": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "53",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2025-en-r&anchor=para_53_g&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r159": {
   "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"
  },
  "r160": {
   "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"
  },
  "r161": {
   "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"
  },
  "r162": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "58",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2025-en-r&anchor=para_58&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r163": {
   "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"
  },
  "r164": {
   "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"
  },
  "r165": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "C12",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=16&code=ifrs-tx-2025-en-r&anchor=para_C12_a&doctype=Appendix&subtype=C",
   "URIDate": "2025-03-27"
  },
  "r166": {
   "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"
  },
  "r167": {
   "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"
  },
  "r168": {
   "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"
  },
  "r169": {
   "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"
  },
  "r170": {
   "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"
  },
  "r171": {
   "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"
  },
  "r172": {
   "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"
  },
  "r173": {
   "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"
  },
  "r174": {
   "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"
  },
  "r175": {
   "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"
  },
  "r176": {
   "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"
  },
  "r177": {
   "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"
  },
  "r178": {
   "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"
  },
  "r179": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "2",
   "IssueDate": "2025-01-01",
   "Paragraph": "45",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=2&code=ifrs-tx-2025-en-r&anchor=para_45_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r180": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "2",
   "IssueDate": "2025-01-01",
   "Paragraph": "45",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=2&code=ifrs-tx-2025-en-r&anchor=para_45_b_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r181": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "2",
   "IssueDate": "2025-01-01",
   "Paragraph": "45",
   "Subparagraph": "b",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=2&code=ifrs-tx-2025-en-r&anchor=para_45_b_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r182": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "2",
   "IssueDate": "2025-01-01",
   "Paragraph": "45",
   "Subparagraph": "b",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=2&code=ifrs-tx-2025-en-r&anchor=para_45_b_iv&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r183": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "2",
   "IssueDate": "2025-01-01",
   "Paragraph": "45",
   "Subparagraph": "b",
   "Clause": "v",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=2&code=ifrs-tx-2025-en-r&anchor=para_45_b_v&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r184": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "2",
   "IssueDate": "2025-01-01",
   "Paragraph": "45",
   "Subparagraph": "b",
   "Clause": "vi",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=2&code=ifrs-tx-2025-en-r&anchor=para_45_b_vi&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r185": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "2",
   "IssueDate": "2025-01-01",
   "Paragraph": "45",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=2&code=ifrs-tx-2025-en-r&anchor=para_45_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r186": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "2",
   "IssueDate": "2025-01-01",
   "Paragraph": "45",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=2&code=ifrs-tx-2025-en-r&anchor=para_45_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r187": {
   "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"
  },
  "r188": {
   "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"
  },
  "r189": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "2",
   "IssueDate": "2025-01-01",
   "Paragraph": "51",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=2&code=ifrs-tx-2025-en-r&anchor=para_51_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r190": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2025-01-01",
   "Paragraph": "B64",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2025-en-r&anchor=para_B64_c&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r191": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2025-01-01",
   "Paragraph": "B64",
   "Subparagraph": "f",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2025-en-r&anchor=para_B64_f_i&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r192": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2025-01-01",
   "Paragraph": "B64",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2025-en-r&anchor=para_B64_f&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r193": {
   "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"
  },
  "r194": {
   "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"
  },
  "r195": {
   "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"
  },
  "r196": {
   "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"
  },
  "r197": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2025-01-01",
   "Section": "Disclosures",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IFRS03_g59-63_TI",
   "URIDate": "2025-03-27"
  },
  "r198": {
   "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"
  },
  "r199": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "5",
   "IssueDate": "2025-01-01",
   "Paragraph": "38",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=5&code=ifrs-tx-2025-en-r&anchor=para_38&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r200": {
   "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"
  },
  "r201": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "20",
   "Subparagraph": "a",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_20_a_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r202": {
   "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"
  },
  "r203": {
   "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"
  },
  "r204": {
   "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"
  },
  "r205": {
   "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"
  },
  "r206": {
   "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"
  },
  "r207": {
   "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"
  },
  "r208": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "35H",
   "Subparagraph": "b",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_35H_b_iii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r209": {
   "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"
  },
  "r210": {
   "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"
  },
  "r211": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "35K",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_35K_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r212": {
   "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"
  },
  "r213": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "35M",
   "Subparagraph": "b",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_35M_b_iii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r214": {
   "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"
  },
  "r215": {
   "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"
  },
  "r216": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "39",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_39_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r217": {
   "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"
  },
  "r218": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "42G",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_42G_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r219": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "42G",
   "Subparagraph": "c",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_42G_c_iii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r220": {
   "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"
  },
  "r221": {
   "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"
  },
  "r222": {
   "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"
  },
  "r223": {
   "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"
  },
  "r224": {
   "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"
  },
  "r225": {
   "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"
  },
  "r226": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "8",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_8_g&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r227": {
   "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"
  },
  "r228": {
   "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"
  },
  "r229": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Section": "Credit risk",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&doctype=Standard&dita_xref=IFRS07_g35A-38_TI",
   "URIDate": "2025-03-27"
  },
  "r230": {
   "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"
  },
  "r231": {
   "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"
  },
  "r232": {
   "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"
  },
  "r233": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "IFRS",
   "Number": "8",
   "IssueDate": "2025-01-01",
   "Paragraph": "23",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=8&code=ifrs-tx-2025-en-r&anchor=para_23_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r234": {
   "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"
  },
  "r235": {
   "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"
  },
  "r236": {
   "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"
  },
  "r237": {
   "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"
  },
  "r238": {
   "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"
  },
  "r239": {
   "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"
  },
  "r240": {
   "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"
  },
  "r241": {
   "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"
  },
  "r242": {
   "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"
  },
  "r243": {
   "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"
  },
  "r244": {
   "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"
  },
  "r245": {
   "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"
  },
  "r246": {
   "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"
  },
  "r247": {
   "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"
  },
  "r248": {
   "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"
  },
  "r249": {
   "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"
  },
  "r250": {
   "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"
  },
  "r251": {
   "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"
  },
  "r252": {
   "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"
  },
  "r253": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "12",
   "Paragraph": "Column C",
   "Footnote": "5",
   "Publisher": "SEC"
  },
  "r254": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "12A",
   "Paragraph": "Column C",
   "Footnote": "4",
   "Publisher": "SEC"
  },
  "r255": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "12B",
   "Paragraph": "Column C",
   "Footnote": "2",
   "Publisher": "SEC"
  },
  "r256": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "14",
   "Paragraph": "Column F",
   "Footnote": "7",
   "Publisher": "SEC"
  },
  "r257": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column A",
   "Footnote": "2",
   "Publisher": "SEC"
  },
  "r258": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column B",
   "Publisher": "SEC"
  },
  "r259": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column C",
   "Publisher": "SEC"
  },
  "r260": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column D",
   "Publisher": "SEC"
  },
  "r261": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column E",
   "Publisher": "SEC"
  },
  "r262": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column F",
   "Publisher": "SEC"
  },
  "r263": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column G",
   "Publisher": "SEC"
  },
  "r264": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column H",
   "Publisher": "SEC"
  },
  "r265": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "28",
   "Paragraph": "Column I",
   "Publisher": "SEC"
  },
  "r266": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "29",
   "Paragraph": "Column A",
   "Footnote": "4",
   "Publisher": "SEC"
  },
  "r267": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "29",
   "Paragraph": "Column B",
   "Publisher": "SEC"
  },
  "r268": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Name": "Regulation S-X (SX)",
   "Number": "210",
   "Section": "12",
   "Subsection": "29",
   "Paragraph": "Column C",
   "Publisher": "SEC"
  },
  "r269": {
   "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"
  },
  "r270": {
   "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"
  },
  "r271": {
   "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"
  },
  "r272": {
   "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"
  },
  "r273": {
   "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"
  },
  "r274": {
   "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"
  },
  "r275": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "115",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_115_c&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": "115",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_115_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": "115",
   "Subparagraph": "f",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_115_f&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": "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"
  },
  "r279": {
   "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"
  },
  "r280": {
   "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"
  },
  "r281": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "119",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_119&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": "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"
  },
  "r283": {
   "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"
  },
  "r284": {
   "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"
  },
  "r285": {
   "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"
  },
  "r286": {
   "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"
  },
  "r287": {
   "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"
  },
  "r288": {
   "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"
  },
  "r289": {
   "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"
  },
  "r290": {
   "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": "v",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_133_a_v&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": "160",
   "Subparagraph": "a",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_160_a_iii&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": "160",
   "Subparagraph": "a",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_160_a_iv&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": "160",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_160_a&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": "160",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_160&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": "164",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_164_a&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": "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"
  },
  "r297": {
   "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"
  },
  "r298": {
   "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"
  },
  "r299": {
   "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"
  },
  "r300": {
   "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"
  },
  "r301": {
   "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"
  },
  "r302": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "182",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_182&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": "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"
  },
  "r304": {
   "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"
  },
  "r305": {
   "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"
  },
  "r306": {
   "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"
  },
  "r307": {
   "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"
  },
  "r308": {
   "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"
  },
  "r309": {
   "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"
  },
  "r310": {
   "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"
  },
  "r311": {
   "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"
  },
  "r312": {
   "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"
  },
  "r313": {
   "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"
  },
  "r314": {
   "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": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_200_e_i&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": "200",
   "Subparagraph": "e",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_200_e_iii&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": "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"
  },
  "r317": {
   "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"
  },
  "r318": {
   "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": "vii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_200_e_vii&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": "200",
   "Subparagraph": "e",
   "Clause": "viii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_200_e_viii&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": "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"
  },
  "r321": {
   "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"
  },
  "r322": {
   "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"
  },
  "r323": {
   "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"
  },
  "r324": {
   "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"
  },
  "r325": {
   "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"
  },
  "r326": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "225",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_225_a&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": "225",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_225_b&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": "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"
  },
  "r329": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "231",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_231_a&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": "231",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_231_d&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": "231",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_231_e&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": "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"
  },
  "r333": {
   "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"
  },
  "r334": {
   "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"
  },
  "r335": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "250",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_250_a&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": "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"
  },
  "r337": {
   "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"
  },
  "r338": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "254",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_254&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r339": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "255",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_255&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r340": {
   "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"
  },
  "r341": {
   "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"
  },
  "r342": {
   "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"
  },
  "r343": {
   "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"
  },
  "r344": {
   "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"
  },
  "r345": {
   "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"
  },
  "r346": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "266",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_266&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r347": {
   "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"
  },
  "r348": {
   "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"
  },
  "r349": {
   "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"
  },
  "r350": {
   "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"
  },
  "r351": {
   "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"
  },
  "r352": {
   "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"
  },
  "r353": {
   "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"
  },
  "r354": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "31",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_31_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r355": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "31",
   "Subparagraph": "b",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_31_b_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r356": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "31",
   "Subparagraph": "b",
   "Clause": "ii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_31_b_ii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r357": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "31",
   "Subparagraph": "b",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_31_b_iv&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r358": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "31",
   "Subparagraph": "b",
   "Clause": "v",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_31_b_v&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r359": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "31",
   "Subparagraph": "b",
   "Clause": "vi",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_31_b_vi&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r360": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "31",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_31_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r361": {
   "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"
  },
  "r362": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "34",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_34_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r363": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "35",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_35_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r364": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "35",
   "Subparagraph": "e",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_35_e_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r365": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "35",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_35_e&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r366": {
   "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"
  },
  "r367": {
   "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"
  },
  "r368": {
   "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"
  },
  "r369": {
   "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"
  },
  "r370": {
   "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"
  },
  "r371": {
   "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"
  },
  "r372": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "44",
   "Subparagraph": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_44_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r373": {
   "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"
  },
  "r374": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "56",
   "Subparagraph": "a",
   "Clause": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_56_a_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r375": {
   "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"
  },
  "r376": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "66",
   "Subparagraph": "b",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_66_b_iii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r377": {
   "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"
  },
  "r378": {
   "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"
  },
  "r379": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "71",
   "Subparagraph": "b",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_71_b_iii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r380": {
   "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"
  },
  "r381": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "72",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_72_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r382": {
   "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"
  },
  "r383": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "75",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_75_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r384": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "75",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_75_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r385": {
   "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"
  },
  "r386": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "89",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_89_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r387": {
   "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"
  },
  "r388": {
   "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"
  },
  "r389": {
   "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"
  },
  "r390": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "98",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_98&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r391": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "B10",
   "Subparagraph": "a",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_B10_a_iii&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r392": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "B10",
   "Subparagraph": "a",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_B10_a_iv&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r393": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "B10",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_B10_a&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r394": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "B10",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_B10&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r395": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "B15",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_B15&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r396": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "B9",
   "Subparagraph": "e",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_B9_e&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r397": {
   "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"
  },
  "r398": {
   "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"
  },
  "r399": {
   "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"
  },
  "r400": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "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"
  },
  "r401": {
   "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"
  },
  "r402": {
   "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"
  },
  "r403": {
   "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"
  },
  "r404": {
   "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"
  },
  "r405": {
   "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"
  },
  "r406": {
   "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"
  },
  "r407": {
   "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"
  },
  "r408": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "125",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_125&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r409": {
   "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"
  },
  "r410": {
   "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"
  },
  "r411": {
   "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"
  },
  "r412": {
   "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"
  },
  "r413": {
   "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"
  },
  "r414": {
   "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": "k",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_54_k&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r415": {
   "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"
  },
  "r416": {
   "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": "m",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_54_m&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r417": {
   "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"
  },
  "r418": {
   "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"
  },
  "r419": {
   "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": "p",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_54_p&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r420": {
   "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"
  },
  "r421": {
   "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"
  },
  "r422": {
   "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"
  },
  "r423": {
   "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"
  },
  "r424": {
   "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"
  },
  "r425": {
   "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"
  },
  "r426": {
   "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"
  },
  "r427": {
   "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"
  },
  "r428": {
   "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": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_78_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r429": {
   "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"
  },
  "r430": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "79",
   "Subparagraph": "a",
   "Clause": "iii",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_79_a_iii&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r431": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "79",
   "Subparagraph": "a",
   "Clause": "iv",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_79_a_iv&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r432": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "79",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_79_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r433": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "79",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_79&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r434": {
   "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"
  },
  "r435": {
   "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"
  },
  "r436": {
   "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"
  },
  "r437": {
   "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"
  },
  "r438": {
   "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"
  },
  "r439": {
   "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"
  },
  "r440": {
   "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"
  },
  "r441": {
   "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"
  },
  "r442": {
   "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"
  },
  "r443": {
   "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"
  },
  "r444": {
   "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"
  },
  "r445": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "82A",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_82A&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r446": {
   "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"
  },
  "r447": {
   "role": "http://www.xbrl.org/2003/role/disclosureRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "92",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_92&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r448": {
   "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"
  },
  "r449": {
   "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"
  },
  "r450": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "10",
   "IssueDate": "2025-01-01",
   "Paragraph": "22",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=10&code=ifrs-tx-2025-en-r&anchor=para_22_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r451": {
   "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"
  },
  "r452": {
   "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"
  },
  "r453": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "37",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_37_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r454": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "37",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_37_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r455": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "37",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_37_g&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r456": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "16",
   "IssueDate": "2025-01-01",
   "Paragraph": "37",
   "Subparagraph": "h",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=16&code=ifrs-tx-2025-en-r&anchor=para_37_h&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r457": {
   "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"
  },
  "r458": {
   "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"
  },
  "r459": {
   "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"
  },
  "r460": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2025-01-01",
   "Paragraph": "21",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2025-en-r&anchor=para_21_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r461": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "24",
   "IssueDate": "2025-01-01",
   "Paragraph": "21",
   "Subparagraph": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=24&code=ifrs-tx-2025-en-r&anchor=para_21_i&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r462": {
   "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"
  },
  "r463": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "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"
  },
  "r464": {
   "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"
  },
  "r465": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "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"
  },
  "r466": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "17",
   "Subparagraph": "b",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_17_b&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r467": {
   "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"
  },
  "r468": {
   "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"
  },
  "r469": {
   "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"
  },
  "r470": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "44C",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_44C&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r471": {
   "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"
  },
  "r472": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Section": "C Reconciliation of liabilities arising from financing activities",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&doctype=Illustrative%20Examples&dita_xref=IAS07_IE_C_TI",
   "URIDate": "2025-03-27"
  },
  "r473": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "IG63",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=1&code=ifrs-tx-2025-en-r&anchor=para_IG63&doctype=Implementation%20Guidance",
   "URIDate": "2025-03-27"
  },
  "r474": {
   "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"
  },
  "r475": {
   "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"
  },
  "r476": {
   "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"
  },
  "r477": {
   "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"
  },
  "r478": {
   "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"
  },
  "r479": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "15",
   "IssueDate": "2025-01-01",
   "Paragraph": "B89",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2025-en-r&anchor=para_B89_c&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r480": {
   "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"
  },
  "r481": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "15",
   "IssueDate": "2025-01-01",
   "Paragraph": "B89",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=15&code=ifrs-tx-2025-en-r&anchor=para_B89_g&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r482": {
   "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"
  },
  "r483": {
   "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"
  },
  "r484": {
   "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"
  },
  "r485": {
   "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"
  },
  "r486": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2025-01-01",
   "Paragraph": "B64",
   "Subparagraph": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2025-en-r&anchor=para_B64_i&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r487": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2025-01-01",
   "Paragraph": "IE72",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2025-en-r&anchor=para_IE72&doctype=Illustrative%20Examples",
   "URIDate": "2025-03-27"
  },
  "r488": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "32",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_32&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r489": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "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"
  },
  "r490": {
   "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"
  },
  "r491": {
   "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"
  },
  "r492": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "B11D",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_B11D_a&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r493": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "B33",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_B33&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r494": {
   "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"
  },
  "r495": {
   "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"
  },
  "r496": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Name": "IFRS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "IG20C",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=7&code=ifrs-tx-2025-en-r&anchor=para_IG20C&doctype=Implementation%20Guidance",
   "URIDate": "2025-03-27"
  },
  "r497": {
   "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"
  },
  "r498": {
   "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"
  },
  "r499": {
   "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"
  },
  "r500": {
   "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"
  },
  "r501": {
   "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"
  },
  "r502": {
   "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"
  },
  "r503": {
   "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"
  },
  "r504": {
   "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"
  },
  "r505": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "103",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_103_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r506": {
   "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"
  },
  "r507": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "103",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_103_g&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r508": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "191",
   "Subparagraph": "c",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_191_c&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r509": {
   "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"
  },
  "r510": {
   "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"
  },
  "r511": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "234",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_234_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r512": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Effective 2027-01-01",
   "Name": "IFRS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "35",
   "Subparagraph": "g",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=19&code=ifrs-tx-2025-en-r&anchor=para_35_g&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r513": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "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"
  },
  "r514": {
   "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"
  },
  "r515": {
   "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"
  },
  "r516": {
   "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"
  },
  "r517": {
   "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"
  },
  "r518": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "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"
  },
  "r519": {
   "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"
  },
  "r520": {
   "role": "http://www.xbrl.org/2003/role/exampleRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "70",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_70&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r521": {
   "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"
  },
  "r522": {
   "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"
  },
  "r523": {
   "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"
  },
  "r524": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12"
  },
  "r525": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b"
  },
  "r526": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "b-2"
  },
  "r527": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "12",
   "Subsection": "d1-1"
  },
  "r528": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Exchange Act",
   "Number": "240",
   "Section": "15",
   "Subsection": "d-3"
  },
  "r529": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 10-K",
   "Number": "249",
   "Section": "310"
  },
  "r530": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Number": "249",
   "Section": "220",
   "Subsection": "f"
  },
  "r531": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16",
   "Subsection": "J",
   "Paragraph": "a"
  },
  "r532": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K"
  },
  "r533": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "b",
   "Paragraph": "1"
  },
  "r534": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "b",
   "Paragraph": "1",
   "Subparagraph": "i"
  },
  "r535": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "b",
   "Paragraph": "1",
   "Subparagraph": "ii"
  },
  "r536": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "b",
   "Paragraph": "1",
   "Subparagraph": "iii"
  },
  "r537": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "b",
   "Paragraph": "2"
  },
  "r538": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "c",
   "Paragraph": "1"
  },
  "r539": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "c",
   "Paragraph": "2"
  },
  "r540": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "c",
   "Paragraph": "2",
   "Subparagraph": "i"
  },
  "r541": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "c",
   "Paragraph": "2",
   "Subparagraph": "ii"
  },
  "r542": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "16K",
   "Subsection": "c",
   "Paragraph": "2",
   "Subparagraph": "iii"
  },
  "r543": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1"
  },
  "r544": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i"
  },
  "r545": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "A"
  },
  "r546": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "B"
  },
  "r547": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "C"
  },
  "r548": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "D"
  },
  "r549": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "i",
   "Sentence": "E"
  },
  "r550": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "ii"
  },
  "r551": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "1",
   "Subparagraph": "iii"
  },
  "r552": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 20-F",
   "Section": "6",
   "Subsection": "F",
   "Paragraph": "2"
  },
  "r553": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Number": "249",
   "Section": "240",
   "Subsection": "f"
  },
  "r554": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a"
  },
  "r555": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1"
  },
  "r556": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "i"
  },
  "r557": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "ii"
  },
  "r558": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iii"
  },
  "r559": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iv"
  },
  "r560": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "v"
  },
  "r561": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "2"
  },
  "r562": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "a",
   "Subparagraph": "3"
  },
  "r563": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form 40-F",
   "Section": "19",
   "Paragraph": "b"
  },
  "r564": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a"
  },
  "r565": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1"
  },
  "r566": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "i"
  },
  "r567": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "ii"
  },
  "r568": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iii"
  },
  "r569": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "iv"
  },
  "r570": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "1",
   "Sentence": "v"
  },
  "r571": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "2"
  },
  "r572": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "a",
   "Subparagraph": "3"
  },
  "r573": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Form N-CSR",
   "Section": "18",
   "Paragraph": "b"
  },
  "r574": {
   "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"
  },
  "r575": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v"
  },
  "r576": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "1"
  },
  "r577": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "ii"
  },
  "r578": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iii"
  },
  "r579": {
   "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"
  },
  "r580": {
   "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"
  },
  "r581": {
   "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"
  },
  "r582": {
   "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"
  },
  "r583": {
   "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"
  },
  "r584": {
   "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"
  },
  "r585": {
   "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"
  },
  "r586": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "iv"
  },
  "r587": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "2",
   "Subparagraph": "vi"
  },
  "r588": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "3"
  },
  "r589": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "4"
  },
  "r590": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "i"
  },
  "r591": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "ii"
  },
  "r592": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "iii"
  },
  "r593": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "5",
   "Subparagraph": "iv"
  },
  "r594": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "6"
  },
  "r595": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "v",
   "Paragraph": "6",
   "Subparagraph": "i"
  },
  "r596": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w"
  },
  "r597": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1"
  },
  "r598": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "i"
  },
  "r599": {
   "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"
  },
  "r600": {
   "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"
  },
  "r601": {
   "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"
  },
  "r602": {
   "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"
  },
  "r603": {
   "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"
  },
  "r604": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "ii"
  },
  "r605": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "1",
   "Subparagraph": "iii"
  },
  "r606": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "w",
   "Paragraph": "2"
  },
  "r607": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "1"
  },
  "r608": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "402",
   "Subsection": "x",
   "Paragraph": "2"
  },
  "r609": {
   "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"
  },
  "r610": {
   "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"
  },
  "r611": {
   "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"
  },
  "r612": {
   "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"
  },
  "r613": {
   "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"
  },
  "r614": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a"
  },
  "r615": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "1"
  },
  "r616": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "A"
  },
  "r617": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "B"
  },
  "r618": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "C"
  },
  "r619": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "a",
   "Paragraph": "2",
   "Subparagraph": "D"
  },
  "r620": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Number": "229",
   "Section": "408",
   "Subsection": "b",
   "Paragraph": "1"
  },
  "r621": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106"
  },
  "r622": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "b",
   "Paragraph": "1"
  },
  "r623": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "b",
   "Paragraph": "1",
   "Subparagraph": "i"
  },
  "r624": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "b",
   "Paragraph": "1",
   "Subparagraph": "ii"
  },
  "r625": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "b",
   "Paragraph": "1",
   "Subparagraph": "iii"
  },
  "r626": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "b",
   "Paragraph": "2"
  },
  "r627": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "c",
   "Paragraph": "1"
  },
  "r628": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "c",
   "Paragraph": "2"
  },
  "r629": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "c",
   "Paragraph": "2",
   "Subparagraph": "i"
  },
  "r630": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "c",
   "Paragraph": "2",
   "Subparagraph": "ii"
  },
  "r631": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-K",
   "Section": "106",
   "Subsection": "c",
   "Paragraph": "2",
   "Subparagraph": "iii"
  },
  "r632": {
   "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"
  },
  "r633": {
   "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"
  },
  "r634": {
   "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"
  },
  "r635": {
   "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"
  },
  "r636": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Regulation S-T",
   "Number": "232",
   "Section": "405"
  },
  "r637": {
   "role": "http://www.xbrl.org/2003/role/presentationRef",
   "Publisher": "SEC",
   "Name": "Securities Act",
   "Number": "230",
   "Section": "405"
  },
  "r638": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Form 20-F",
   "Number": "Part II",
   "Section": "Item 18",
   "Subparagraph": "(Instruction 2)",
   "Publisher": "SEC"
  },
  "r639": {
   "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"
  },
  "r640": {
   "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"
  },
  "r641": {
   "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"
  },
  "r642": {
   "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"
  },
  "r643": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "19",
   "IssueDate": "2025-01-01",
   "Paragraph": "9",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=19&code=ifrs-tx-2025-en-r&anchor=para_9&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r644": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r645": {
   "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"
  },
  "r646": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r647": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r648": {
   "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"
  },
  "r649": {
   "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"
  },
  "r650": {
   "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"
  },
  "r651": {
   "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"
  },
  "r652": {
   "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"
  },
  "r653": {
   "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"
  },
  "r654": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IAS",
   "Number": "7",
   "IssueDate": "2025-01-01",
   "Paragraph": "16",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=7&code=ifrs-tx-2025-en-r&anchor=para_16&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r655": {
   "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"
  },
  "r656": {
   "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"
  },
  "r657": {
   "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"
  },
  "r658": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r659": {
   "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"
  },
  "r660": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "IFRS",
   "Number": "3",
   "IssueDate": "2025-01-01",
   "Paragraph": "B64",
   "Subparagraph": "i",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IFRS&num=3&code=ifrs-tx-2025-en-r&anchor=para_B64_i&doctype=Appendix&subtype=B",
   "URIDate": "2025-03-27"
  },
  "r661": {
   "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"
  },
  "r662": {
   "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"
  },
  "r663": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1204",
   "Paragraph": "b",
   "Subparagraph": "(1)",
   "Publisher": "SEC"
  },
  "r664": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Name": "Regulation S-K (SK)",
   "Number": "229",
   "Section": "1204",
   "Paragraph": "b",
   "Subparagraph": "(2)",
   "Publisher": "SEC"
  },
  "r665": {
   "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"
  },
  "r666": {
   "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"
  },
  "r667": {
   "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"
  },
  "r668": {
   "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"
  },
  "r669": {
   "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"
  },
  "r670": {
   "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"
  },
  "r671": {
   "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"
  },
  "r672": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "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"
  },
  "r673": {
   "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"
  },
  "r674": {
   "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"
  },
  "r675": {
   "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"
  },
  "r676": {
   "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"
  },
  "r677": {
   "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"
  },
  "r678": {
   "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"
  },
  "r679": {
   "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"
  },
  "r680": {
   "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": "d",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_78_d&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r681": {
   "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"
  },
  "r682": {
   "role": "http://www.xbrl.org/2009/role/commonPracticeRef",
   "Note": "Expiry date 2027-01-01",
   "Name": "IAS",
   "Number": "1",
   "IssueDate": "2025-01-01",
   "Paragraph": "79",
   "Subparagraph": "a",
   "URI": "https://taxonomy.ifrs.org/xifrs-link?type=IAS&num=1&code=ifrs-tx-2025-en-b&anchor=para_79_a&doctype=Standard",
   "URIDate": "2025-03-27"
  },
  "r683": {
   "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"
  }
 }
}
