<?xml version='1.0' encoding='utf-8'?>
<FilingSummary>
  <Version>3.26.1</Version>
  <ProcessingTime/>
  <ReportFormat>html</ReportFormat>
  <ContextCount>1150</ContextCount>
  <ElementCount>799</ElementCount>
  <EntityCount>1</EntityCount>
  <FootnotesReported>true</FootnotesReported>
  <SegmentCount>369</SegmentCount>
  <ScenarioCount>0</ScenarioCount>
  <TuplesReported>false</TuplesReported>
  <UnitCount>15</UnitCount>
  <MyReports>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R1.htm</HtmlFileName>
      <LongName>1001 - Document - Cover Page</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/CoverPage</Role>
      <ShortName>Cover Page</ShortName>
      <MenuCategory>Cover</MenuCategory>
      <Position>1</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R2.htm</HtmlFileName>
      <LongName>1002 - Statement - Consolidated statements of profit or loss and other comprehensive income</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/ConsolidatedStatementsOfProfitOrLossAndOtherComprehensiveIncome</Role>
      <ShortName>Consolidated statements of profit or loss and other comprehensive income</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>2</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R3.htm</HtmlFileName>
      <LongName>1003 - Statement - Consolidated statements of financial position</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/ConsolidatedStatementsOfFinancialPosition</Role>
      <ShortName>Consolidated statements of financial position</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>3</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R4.htm</HtmlFileName>
      <LongName>1004 - Statement - Consolidated statements of changes in equity</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/ConsolidatedStatementsOfChangesInEquity</Role>
      <ShortName>Consolidated statements of changes in equity</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>4</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R5.htm</HtmlFileName>
      <LongName>1005 - Statement - Consolidated statements of changes in equity (Parenthetical)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/ConsolidatedStatementsOfChangesInEquityParenthetical</Role>
      <ShortName>Consolidated statements of changes in equity (Parenthetical)</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>5</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R6.htm</HtmlFileName>
      <LongName>1006 - Statement - Consolidated statements of cash flows</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/ConsolidatedStatementsOfCashFlows</Role>
      <ShortName>Consolidated statements of cash flows</ShortName>
      <MenuCategory>Statements</MenuCategory>
      <Position>6</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R7.htm</HtmlFileName>
      <LongName>995447 - Disclosure - Insider Trading Policies and Procedures</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/ecd/role/InsiderTradingPoliciesProc</Role>
      <ShortName>Insider Trading Policies and Procedures</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>7</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R8.htm</HtmlFileName>
      <LongName>995550 - Disclosure - Cybersecurity Risk Management and Strategy Disclosure</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://xbrl.sec.gov/cyd/role/CybersecurityRiskManagementAndStrategyDisclosure</Role>
      <ShortName>Cybersecurity Risk Management and Strategy Disclosure</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>8</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R9.htm</HtmlFileName>
      <LongName>999001 - Disclosure - Group information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/GroupInformation</Role>
      <ShortName>Group information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>9</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R10.htm</HtmlFileName>
      <LongName>999002 - Disclosure - Basis of preparation and material accounting policies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/BasisOfPreparationAndMaterialAccountingPolicies</Role>
      <ShortName>Basis of preparation and material accounting policies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>10</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R11.htm</HtmlFileName>
      <LongName>999003 - Disclosure - Significant accounting judgements estimates and assumptions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/SignificantAccountingJudgementsEstimatesAndAssumptions</Role>
      <ShortName>Significant accounting judgements estimates and assumptions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>11</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R12.htm</HtmlFileName>
      <LongName>999004 - Disclosure - Segment information</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/SegmentInformation</Role>
      <ShortName>Segment information</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>12</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R13.htm</HtmlFileName>
      <LongName>999005 - Disclosure - Revenue from contracts with customers</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/RevenueFromContractsWithCustomers</Role>
      <ShortName>Revenue from contracts with customers</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>13</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R14.htm</HtmlFileName>
      <LongName>999006 - Disclosure - Cost of sales</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/CostOfSales</Role>
      <ShortName>Cost of sales</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>14</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R15.htm</HtmlFileName>
      <LongName>999007 - Disclosure - Selling expenses</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/SellingExpenses</Role>
      <ShortName>Selling expenses</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>15</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R16.htm</HtmlFileName>
      <LongName>999008 - Disclosure - General and administrative expenses</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/GeneralAndAdministrativeExpenses</Role>
      <ShortName>General and administrative expenses</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>16</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R17.htm</HtmlFileName>
      <LongName>999009 - Disclosure - Other operating income and expenses</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/OtherOperatingIncomeAndExpenses</Role>
      <ShortName>Other operating income and expenses</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>17</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R18.htm</HtmlFileName>
      <LongName>999010 - Disclosure - Financial income (expense), net</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/FinancialIncomeExpenseNet</Role>
      <ShortName>Financial income (expense), net</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>18</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R19.htm</HtmlFileName>
      <LongName>999011 - Disclosure - Earnings per share</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/EarningsPerShare</Role>
      <ShortName>Earnings per share</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>19</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R20.htm</HtmlFileName>
      <LongName>999012 - Disclosure - Property, plant and equipment</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/PropertyPlantAndEquipment</Role>
      <ShortName>Property, plant and equipment</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>20</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R21.htm</HtmlFileName>
      <LongName>999013 - Disclosure - Goodwill and other intangible assets</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/GoodwillAndOtherIntangibleAssets</Role>
      <ShortName>Goodwill and other intangible assets</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>21</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R22.htm</HtmlFileName>
      <LongName>999014 - Disclosure - Right of use assets and lease liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/RightOfUseAssetsAndLeaseLiabilities</Role>
      <ShortName>Right of use assets and lease liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>22</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R23.htm</HtmlFileName>
      <LongName>999015 - Disclosure - Deferred income tax assets and liabilities and income tax expense</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/DeferredIncomeTaxAssetsAndLiabilitiesAndIncomeTaxExpense</Role>
      <ShortName>Deferred income tax assets and liabilities and income tax expense</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>23</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R24.htm</HtmlFileName>
      <LongName>999016 - Disclosure - Trade and other receivables</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/TradeAndOtherReceivables</Role>
      <ShortName>Trade and other receivables</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>24</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R25.htm</HtmlFileName>
      <LongName>999017 - Disclosure - Financial assets and liabilities</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/FinancialAssetsAndLiabilities</Role>
      <ShortName>Financial assets and liabilities</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>25</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R26.htm</HtmlFileName>
      <LongName>999018 - Disclosure - Investments in associates</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/InvestmentsInAssociates</Role>
      <ShortName>Investments in associates</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>26</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R27.htm</HtmlFileName>
      <LongName>999019 - Disclosure - Inventories</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/Inventories</Role>
      <ShortName>Inventories</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>27</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R28.htm</HtmlFileName>
      <LongName>999020 - Disclosure - Cash, bank balances and other short-term investments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/CashBankBalancesAndOtherShortTermInvestments</Role>
      <ShortName>Cash, bank balances and other short-term investments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>28</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R29.htm</HtmlFileName>
      <LongName>999021 - Disclosure - Capital stock and capital risk management</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/CapitalStockAndCapitalRiskManagement</Role>
      <ShortName>Capital stock and capital risk management</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>29</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R30.htm</HtmlFileName>
      <LongName>999022 - Disclosure - Provisions</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/Provisions</Role>
      <ShortName>Provisions</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>30</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R31.htm</HtmlFileName>
      <LongName>999023 - Disclosure -  Employee benefits</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/EmployeeBenefits</Role>
      <ShortName> Employee benefits</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>31</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R32.htm</HtmlFileName>
      <LongName>999024 - Disclosure -  Salaries and payroll taxes</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/SalariesAndPayrollTaxes</Role>
      <ShortName> Salaries and payroll taxes</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>32</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R33.htm</HtmlFileName>
      <LongName>999025 - Disclosure - Other taxes and royalties</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/OtherTaxesAndRoyalties</Role>
      <ShortName>Other taxes and royalties</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>33</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R34.htm</HtmlFileName>
      <LongName>999026 - Disclosure -  Trade and other payables</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/TradeAndOtherPayables</Role>
      <ShortName> Trade and other payables</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>34</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R35.htm</HtmlFileName>
      <LongName>999027 - Disclosure - Related parties' transactions and balances</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/RelatedPartiesTransactionsAndBalances</Role>
      <ShortName>Related parties' transactions and balances</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>35</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R36.htm</HtmlFileName>
      <LongName>999028 - Disclosure - Commitments and contingencies</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/CommitmentsAndContingencies</Role>
      <ShortName>Commitments and contingencies</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>36</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R37.htm</HtmlFileName>
      <LongName>999029 - Disclosure - Operations in hydrocarbon consortiums</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/OperationsInHydrocarbonConsortiums</Role>
      <ShortName>Operations in hydrocarbon consortiums</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>37</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R38.htm</HtmlFileName>
      <LongName>999030 - Disclosure - Tax regulations</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/TaxRegulations</Role>
      <ShortName>Tax regulations</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>38</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R39.htm</HtmlFileName>
      <LongName>999031 - Disclosure - Share-based payments</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/ShareBasedPayments</Role>
      <ShortName>Share-based payments</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>39</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R40.htm</HtmlFileName>
      <LongName>999032 - Disclosure - Business Combination</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/BusinessCombination</Role>
      <ShortName>Business Combination</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>40</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R41.htm</HtmlFileName>
      <LongName>999033 - Disclosure - Supplementary information on oil and gas activities (unaudited)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/SupplementaryInformationOnOilAndGasActivitiesUnaudited</Role>
      <ShortName>Supplementary information on oil and gas activities (unaudited)</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>41</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R42.htm</HtmlFileName>
      <LongName>999034 - Disclosure - Subsequent events</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/SubsequentEvents</Role>
      <ShortName>Subsequent events</ShortName>
      <MenuCategory>Notes</MenuCategory>
      <Position>42</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R43.htm</HtmlFileName>
      <LongName>999035 - Disclosure - Basis of preparation and material accounting policies (Policies)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/BasisOfPreparationAndMaterialAccountingPoliciesPolicies</Role>
      <ShortName>Basis of preparation and material accounting policies (Policies)</ShortName>
      <MenuCategory>Policies</MenuCategory>
      <Position>43</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R44.htm</HtmlFileName>
      <LongName>999036 - Disclosure - Basis of preparation and material accounting policies (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/BasisOfPreparationAndMaterialAccountingPoliciesTables</Role>
      <ShortName>Basis of preparation and material accounting policies (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/BasisOfPreparationAndMaterialAccountingPolicies</ParentRole>
      <Position>44</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R45.htm</HtmlFileName>
      <LongName>999037 - Disclosure - Significant accounting judgements estimates and assumptions (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/SignificantAccountingJudgementsEstimatesAndAssumptionsTables</Role>
      <ShortName>Significant accounting judgements estimates and assumptions (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/SignificantAccountingJudgementsEstimatesAndAssumptions</ParentRole>
      <Position>45</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R46.htm</HtmlFileName>
      <LongName>999038 - Disclosure - Segment information (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/SegmentInformationTables</Role>
      <ShortName>Segment information (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/SegmentInformation</ParentRole>
      <Position>46</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R47.htm</HtmlFileName>
      <LongName>999039 - Disclosure - Revenue from contracts with customers (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/RevenueFromContractsWithCustomersTables</Role>
      <ShortName>Revenue from contracts with customers (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/RevenueFromContractsWithCustomers</ParentRole>
      <Position>47</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R48.htm</HtmlFileName>
      <LongName>999040 - Disclosure - Cost of sales (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/CostOfSalesTables</Role>
      <ShortName>Cost of sales (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/CostOfSales</ParentRole>
      <Position>48</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R49.htm</HtmlFileName>
      <LongName>999041 - Disclosure - Selling expenses (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/SellingExpensesTables</Role>
      <ShortName>Selling expenses (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/SellingExpenses</ParentRole>
      <Position>49</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R50.htm</HtmlFileName>
      <LongName>999042 - Disclosure - General and administrative expenses (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/GeneralAndAdministrativeExpensesTables</Role>
      <ShortName>General and administrative expenses (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/GeneralAndAdministrativeExpenses</ParentRole>
      <Position>50</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R51.htm</HtmlFileName>
      <LongName>999043 - Disclosure - Other operating income and expenses (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/OtherOperatingIncomeAndExpensesTables</Role>
      <ShortName>Other operating income and expenses (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/OtherOperatingIncomeAndExpenses</ParentRole>
      <Position>51</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R52.htm</HtmlFileName>
      <LongName>999044 - Disclosure - Financial income (expense), net (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/FinancialIncomeExpenseNetTables</Role>
      <ShortName>Financial income (expense), net (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/FinancialIncomeExpenseNet</ParentRole>
      <Position>52</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R53.htm</HtmlFileName>
      <LongName>999045 - Disclosure - Earnings per share (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/EarningsPerShareTables</Role>
      <ShortName>Earnings per share (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/EarningsPerShare</ParentRole>
      <Position>53</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R54.htm</HtmlFileName>
      <LongName>999046 - Disclosure - Property, plant and equipment (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/PropertyPlantAndEquipmentTables</Role>
      <ShortName>Property, plant and equipment (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/PropertyPlantAndEquipment</ParentRole>
      <Position>54</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R55.htm</HtmlFileName>
      <LongName>999047 - Disclosure - Goodwill and other intangible assets (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/GoodwillAndOtherIntangibleAssetsTables</Role>
      <ShortName>Goodwill and other intangible assets (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/GoodwillAndOtherIntangibleAssets</ParentRole>
      <Position>55</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R56.htm</HtmlFileName>
      <LongName>999048 - Disclosure - Right of use assets and lease liabilities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/RightOfUseAssetsAndLeaseLiabilitiesTables</Role>
      <ShortName>Right of use assets and lease liabilities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/RightOfUseAssetsAndLeaseLiabilities</ParentRole>
      <Position>56</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R57.htm</HtmlFileName>
      <LongName>999049 - Disclosure - Deferred income tax assets and liabilities and income tax expense (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/DeferredIncomeTaxAssetsAndLiabilitiesAndIncomeTaxExpenseTables</Role>
      <ShortName>Deferred income tax assets and liabilities and income tax expense (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/DeferredIncomeTaxAssetsAndLiabilitiesAndIncomeTaxExpense</ParentRole>
      <Position>57</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R58.htm</HtmlFileName>
      <LongName>999050 - Disclosure - Trade and other receivables (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/TradeAndOtherReceivablesTables</Role>
      <ShortName>Trade and other receivables (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/TradeAndOtherReceivables</ParentRole>
      <Position>58</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R59.htm</HtmlFileName>
      <LongName>999051 - Disclosure - Financial assets and liabilities (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/FinancialAssetsAndLiabilitiesTables</Role>
      <ShortName>Financial assets and liabilities (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/FinancialAssetsAndLiabilities</ParentRole>
      <Position>59</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R60.htm</HtmlFileName>
      <LongName>999052 - Disclosure - Investments in associates (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/InvestmentsInAssociatesTables</Role>
      <ShortName>Investments in associates (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/InvestmentsInAssociates</ParentRole>
      <Position>60</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R61.htm</HtmlFileName>
      <LongName>999053 - Disclosure - Inventories (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/InventoriesTables</Role>
      <ShortName>Inventories (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/Inventories</ParentRole>
      <Position>61</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R62.htm</HtmlFileName>
      <LongName>999054 - Disclosure - Cash, bank balances and other short-term investments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/CashBankBalancesAndOtherShortTermInvestmentsTables</Role>
      <ShortName>Cash, bank balances and other short-term investments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/CashBankBalancesAndOtherShortTermInvestments</ParentRole>
      <Position>62</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R63.htm</HtmlFileName>
      <LongName>999055 - Disclosure -  Capital stock and capital risk management (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/CapitalStockAndCapitalRiskManagementTables</Role>
      <ShortName> Capital stock and capital risk management (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <Position>63</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R64.htm</HtmlFileName>
      <LongName>999056 - Disclosure - Provisions (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/ProvisionsTables</Role>
      <ShortName>Provisions (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/Provisions</ParentRole>
      <Position>64</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R65.htm</HtmlFileName>
      <LongName>999057 - Disclosure -  Employee benefits (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/EmployeeBenefitsTables</Role>
      <ShortName> Employee benefits (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/EmployeeBenefits</ParentRole>
      <Position>65</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R66.htm</HtmlFileName>
      <LongName>999058 - Disclosure -   Salaries and payroll taxes (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/SalariesAndPayrollTaxesTables</Role>
      <ShortName>  Salaries and payroll taxes (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <Position>66</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R67.htm</HtmlFileName>
      <LongName>999059 - Disclosure - Other taxes and royalties (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/OtherTaxesAndRoyaltiesTables</Role>
      <ShortName>Other taxes and royalties (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/OtherTaxesAndRoyalties</ParentRole>
      <Position>67</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R68.htm</HtmlFileName>
      <LongName>999060 - Disclosure -  Trade and other payables (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/TradeAndOtherPayablesTables</Role>
      <ShortName> Trade and other payables (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/TradeAndOtherPayables</ParentRole>
      <Position>68</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R69.htm</HtmlFileName>
      <LongName>999061 - Disclosure - Related parties transactions and balances (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/RelatedPartiesTransactionsAndBalancesTables</Role>
      <ShortName>Related parties transactions and balances (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <Position>69</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R70.htm</HtmlFileName>
      <LongName>999062 - Disclosure - Operations in hydrocarbon consortiums (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/OperationsInHydrocarbonConsortiumsTables</Role>
      <ShortName>Operations in hydrocarbon consortiums (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/OperationsInHydrocarbonConsortiums</ParentRole>
      <Position>70</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R71.htm</HtmlFileName>
      <LongName>999063 - Disclosure - Business Combinations (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/BusinessCombinationsTables</Role>
      <ShortName>Business Combinations (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/BusinessCombination</ParentRole>
      <Position>71</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R72.htm</HtmlFileName>
      <LongName>999064 - Disclosure - Share-based payments (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/ShareBasedPaymentsTables</Role>
      <ShortName>Share-based payments (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/ShareBasedPayments</ParentRole>
      <Position>72</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R73.htm</HtmlFileName>
      <LongName>999065 - Disclosure - Supplementary information on oil and gas activities (unaudited) (Tables)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/SupplementaryInformationOnOilAndGasActivitiesUnauditedTables</Role>
      <ShortName>Supplementary information on oil and gas activities (unaudited) (Tables)</ShortName>
      <MenuCategory>Tables</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/SupplementaryInformationOnOilAndGasActivitiesUnaudited</ParentRole>
      <Position>73</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R74.htm</HtmlFileName>
      <LongName>999066 - Disclosure - Group information - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/GroupInformationAdditionalInformationDetail</Role>
      <ShortName>Group information - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>74</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R75.htm</HtmlFileName>
      <LongName>999067 - Disclosure - Basis of preparation and material accounting policies - Summary of equity interest in subsidiaries (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/BasisOfPreparationAndMaterialAccountingPoliciesSummaryOfEquityInterestInSubsidiariesDetail</Role>
      <ShortName>Basis of preparation and material accounting policies - Summary of equity interest in subsidiaries (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>75</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R76.htm</HtmlFileName>
      <LongName>999068 - Disclosure - Basis of preparation and material accounting policies - Summary of useful lives of property plant and equipment (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/BasisOfPreparationAndMaterialAccountingPoliciesSummaryOfUsefulLivesOfPropertyPlantAndEquipmentDetail</Role>
      <ShortName>Basis of preparation and material accounting policies - Summary of useful lives of property plant and equipment (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>76</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R77.htm</HtmlFileName>
      <LongName>999069 - Disclosure - Basis of preparation and material accounting policies - Additional information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/BasisOfPreparationAndMaterialAccountingPoliciesAdditionalInformationDetail</Role>
      <ShortName>Basis of preparation and material accounting policies - Additional information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>77</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R78.htm</HtmlFileName>
      <LongName>999070 - Disclosure - Significant accounting judgements estimates and assumptions - Additional information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/SignificantAccountingJudgementsEstimatesAndAssumptionsAdditionalInformationDetail</Role>
      <ShortName>Significant accounting judgements estimates and assumptions - Additional information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>78</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R79.htm</HtmlFileName>
      <LongName>999071 - Disclosure - Significant accounting judgements estimates and assumptions - Schedule of assumptions used In sensitivity analysis for CGU's (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/SignificantAccountingJudgementsEstimatesAndAssumptionsScheduleOfAssumptionsUsedInSensitivityAnalysisForCgusDetail</Role>
      <ShortName>Significant accounting judgements estimates and assumptions - Schedule of assumptions used In sensitivity analysis for CGU's (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>79</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R80.htm</HtmlFileName>
      <LongName>999072 - Disclosure - Significant accounting judgements estimates and assumptions - Schedule of sensitivity analysis for CGU's with respect to change in assumptions (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/SignificantAccountingJudgementsEstimatesAndAssumptionsScheduleOfSensitivityAnalysisForCgusWithRespectToChangeInAssumptionsDetail</Role>
      <ShortName>Significant accounting judgements estimates and assumptions - Schedule of sensitivity analysis for CGU's with respect to change in assumptions (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>80</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R81.htm</HtmlFileName>
      <LongName>999073 - Disclosure - Segment information - Schedule of assets and liabilities by geographical area (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/SegmentInformationScheduleOfAssetsAndLiabilitiesByGeographicalAreaDetail</Role>
      <ShortName>Segment information - Schedule of assets and liabilities by geographical area (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>81</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R82.htm</HtmlFileName>
      <LongName>999074 - Disclosure - Segment information - Additional information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/SegmentInformationAdditionalInformationDetail</Role>
      <ShortName>Segment information - Additional information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>82</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R83.htm</HtmlFileName>
      <LongName>999075 - Disclosure - Revenue from contracts with customers - Schedule of revenue from contract with customers (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/RevenueFromContractsWithCustomersScheduleOfRevenueFromContractWithCustomersDetail</Role>
      <ShortName>Revenue from contracts with customers - Schedule of revenue from contract with customers (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>83</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R84.htm</HtmlFileName>
      <LongName>999076 - Disclosure - Revenue from contracts with customers - Schedule of revenue through different channels (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/RevenueFromContractsWithCustomersScheduleOfRevenueThroughDifferentChannelsDetail</Role>
      <ShortName>Revenue from contracts with customers - Schedule of revenue through different channels (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>84</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R85.htm</HtmlFileName>
      <LongName>999077 - Disclosure - Cost of sales - Schedule of operating expenses (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/CostOfSalesScheduleOfOperatingExpensesDetail</Role>
      <ShortName>Cost of sales - Schedule of operating expenses (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>85</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R86.htm</HtmlFileName>
      <LongName>999078 - Disclosure - Cost of sales - Schedule of crude oil fluctuation (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/CostOfSalesScheduleOfCrudeOilFluctuationDetail</Role>
      <ShortName>Cost of sales - Schedule of crude oil fluctuation (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>86</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R87.htm</HtmlFileName>
      <LongName>999079 - Disclosure - Cost of sales - Schedule of royalties and others (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/CostOfSalesScheduleOfRoyaltiesAndOthersDetail</Role>
      <ShortName>Cost of sales - Schedule of royalties and others (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>87</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R88.htm</HtmlFileName>
      <LongName>999080 - Disclosure - Selling expenses - Schedule of selling expenses (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/SellingExpensesScheduleOfSellingExpensesDetail</Role>
      <ShortName>Selling expenses - Schedule of selling expenses (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>88</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R89.htm</HtmlFileName>
      <LongName>999081 - Disclosure - General and administrative expenses - Schedule of general and administrative expenses (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/GeneralAndAdministrativeExpensesScheduleOfGeneralAndAdministrativeExpensesDetail</Role>
      <ShortName>General and administrative expenses - Schedule of general and administrative expenses (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>89</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R90.htm</HtmlFileName>
      <LongName>999082 - Disclosure - Other operating income and expenses - Schedule of other operating income (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/OtherOperatingIncomeAndExpensesScheduleOfOtherOperatingIncomeDetail</Role>
      <ShortName>Other operating income and expenses - Schedule of other operating income (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>90</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R91.htm</HtmlFileName>
      <LongName>999083 - Disclosure - Other operating income and expenses - Schedule of other operating income (Parenthetical) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/OtherOperatingIncomeAndExpensesScheduleOfOtherOperatingIncomeParentheticalDetail</Role>
      <ShortName>Other operating income and expenses - Schedule of other operating income (Parenthetical) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>91</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R92.htm</HtmlFileName>
      <LongName>999084 - Disclosure - Other operating income and expenses - Schedule of other operating expenses (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/OtherOperatingIncomeAndExpensesScheduleOfOtherOperatingExpensesDetail</Role>
      <ShortName>Other operating income and expenses - Schedule of other operating expenses (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>92</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R93.htm</HtmlFileName>
      <LongName>999085 - Disclosure - Financial income (expense), net - Schedule of interest income (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/FinancialIncomeExpenseNetScheduleOfInterestIncomeDetail</Role>
      <ShortName>Financial income (expense), net - Schedule of interest income (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/FinancialIncomeExpenseNetTables</ParentRole>
      <Position>93</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R94.htm</HtmlFileName>
      <LongName>999086 - Disclosure - Financial income (expense), net - Schedule of interest expense (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/FinancialIncomeExpenseNetScheduleOfInterestExpenseDetail</Role>
      <ShortName>Financial income (expense), net - Schedule of interest expense (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/FinancialIncomeExpenseNetTables</ParentRole>
      <Position>94</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R95.htm</HtmlFileName>
      <LongName>999087 - Disclosure - Financial income (expense), net - Schedule of other financial results (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/FinancialIncomeExpenseNetScheduleOfOtherFinancialResultsDetail</Role>
      <ShortName>Financial income (expense), net - Schedule of other financial results (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/FinancialIncomeExpenseNetTables</ParentRole>
      <Position>95</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R96.htm</HtmlFileName>
      <LongName>999088 - Disclosure - Financial income (expense), net - Schedule of other financial results (Parenthetical) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/FinancialIncomeExpenseNetScheduleOfOtherFinancialResultsParentheticalDetail</Role>
      <ShortName>Financial income (expense), net - Schedule of other financial results (Parenthetical) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/FinancialIncomeExpenseNetTables</ParentRole>
      <Position>96</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R97.htm</HtmlFileName>
      <LongName>999089 - Disclosure - Earnings per share -Schedule of basic and diluted earnings per share (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/EarningsPerShareScheduleOfBasicAndDilutedEarningsPerShareDetail</Role>
      <ShortName>Earnings per share -Schedule of basic and diluted earnings per share (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>97</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R98.htm</HtmlFileName>
      <LongName>999090 - Disclosure - Earnings per share -Schedule of basic and diluted earnings per share (Parenthetical) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/EarningsPerShareScheduleOfBasicAndDilutedEarningsPerShareParentheticalDetail</Role>
      <ShortName>Earnings per share -Schedule of basic and diluted earnings per share (Parenthetical) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>98</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R99.htm</HtmlFileName>
      <LongName>999091 - Disclosure - Earnings per share - Additional information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/EarningsPerShareAdditionalInformationDetail</Role>
      <ShortName>Earnings per share - Additional information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>99</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R100.htm</HtmlFileName>
      <LongName>999092 - Disclosure - Property, plant and equipment - Schedule Of Plant Property Equipment (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/PropertyPlantAndEquipmentScheduleOfPlantPropertyEquipmentDetail</Role>
      <ShortName>Property, plant and equipment - Schedule Of Plant Property Equipment (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>100</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R101.htm</HtmlFileName>
      <LongName>999093 - Disclosure - Goodwill and other intangible assets - Schedule of reconciliation of changes in intangible assets and goodwill (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/GoodwillAndOtherIntangibleAssetsScheduleOfReconciliationOfChangesInIntangibleAssetsAndGoodwillDetail</Role>
      <ShortName>Goodwill and other intangible assets - Schedule of reconciliation of changes in intangible assets and goodwill (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>101</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R102.htm</HtmlFileName>
      <LongName>999094 - Disclosure - Right of use assets and lease liabilities -  Summary of  carrying amounts of the Company's right of use assets and lease and the movements during the years (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/RightOfUseAssetsAndLeaseLiabilitiesSummaryOfCarryingAmountsOfTheCompanysRightOfUseAssetsAndLeaseAndTheMovementsDuringTheYearsDetail</Role>
      <ShortName>Right of use assets and lease liabilities -  Summary of  carrying amounts of the Company's right of use assets and lease and the movements during the years (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>102</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R103.htm</HtmlFileName>
      <LongName>999095 - Disclosure - Right of use assets and lease liabilities -  Summary of  carrying amounts of the Company's right of use assets and lease and the movements during the years (Parenthetical) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/RightOfUseAssetsAndLeaseLiabilitiesSummaryOfCarryingAmountsOfTheCompanysRightOfUseAssetsAndLeaseAndTheMovementsDuringTheYearsParentheticalDetail</Role>
      <ShortName>Right of use assets and lease liabilities -  Summary of  carrying amounts of the Company's right of use assets and lease and the movements during the years (Parenthetical) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>103</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R104.htm</HtmlFileName>
      <LongName>999096 - Disclosure - Right of use assets and lease liabilities - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/RightOfUseAssetsAndLeaseLiabilitiesAdditionalInformationDetail</Role>
      <ShortName>Right of use assets and lease liabilities - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>104</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R105.htm</HtmlFileName>
      <LongName>999097 - Disclosure - Deferred income tax assets and liabilities and income tax expense - Schedule of temporary difference unused tax losses and unused tax credits (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/DeferredIncomeTaxAssetsAndLiabilitiesAndIncomeTaxExpenseScheduleOfTemporaryDifferenceUnusedTaxLossesAndUnusedTaxCreditsDetail</Role>
      <ShortName>Deferred income tax assets and liabilities and income tax expense - Schedule of temporary difference unused tax losses and unused tax credits (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>105</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R106.htm</HtmlFileName>
      <LongName>999098 - Disclosure - Deferred income tax assets and liabilities and income tax expense - Schedule of deferred tax assets and liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/DeferredIncomeTaxAssetsAndLiabilitiesAndIncomeTaxExpenseScheduleOfDeferredTaxAssetsAndLiabilitiesDetail</Role>
      <ShortName>Deferred income tax assets and liabilities and income tax expense - Schedule of deferred tax assets and liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>106</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R107.htm</HtmlFileName>
      <LongName>999099 - Disclosure - Deferred income tax assets and liabilities and income tax expense - Schedule of major componets of tax expense income (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/DeferredIncomeTaxAssetsAndLiabilitiesAndIncomeTaxExpenseScheduleOfMajorComponetsOfTaxExpenseIncomeDetail</Role>
      <ShortName>Deferred income tax assets and liabilities and income tax expense - Schedule of major componets of tax expense income (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>107</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R108.htm</HtmlFileName>
      <LongName>999100 - Disclosure - Deferred income tax assets and liabilities and income tax expense - Schedule of Reconciliation of Income Taxes (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/DeferredIncomeTaxAssetsAndLiabilitiesAndIncomeTaxExpenseScheduleOfReconciliationOfIncomeTaxesDetail</Role>
      <ShortName>Deferred income tax assets and liabilities and income tax expense - Schedule of Reconciliation of Income Taxes (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>108</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R109.htm</HtmlFileName>
      <LongName>999101 - Disclosure - Deferred income tax assets and liabilities and income tax expense - Summary of tax losses carryforwards (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/DeferredIncomeTaxAssetsAndLiabilitiesAndIncomeTaxExpenseSummaryOfTaxLossesCarryforwardsDetail</Role>
      <ShortName>Deferred income tax assets and liabilities and income tax expense - Summary of tax losses carryforwards (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>109</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R110.htm</HtmlFileName>
      <LongName>999102 - Disclosure - Deferred income tax assets and liabilities and income tax expense - Schedule of breakdown of income tax liability (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/DeferredIncomeTaxAssetsAndLiabilitiesAndIncomeTaxExpenseScheduleOfBreakdownOfIncomeTaxLiabilityDetail</Role>
      <ShortName>Deferred income tax assets and liabilities and income tax expense - Schedule of breakdown of income tax liability (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>110</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R111.htm</HtmlFileName>
      <LongName>999103 - Disclosure - Deferred income tax assets and liabilities and income tax expense - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/DeferredIncomeTaxAssetsAndLiabilitiesAndIncomeTaxExpenseAdditionalInformationDetail</Role>
      <ShortName>Deferred income tax assets and liabilities and income tax expense - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>111</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R112.htm</HtmlFileName>
      <LongName>999104 - Disclosure - Trade and Other Receivables - Additional information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/TradeAndOtherReceivablesAdditionalInformationDetail</Role>
      <ShortName>Trade and Other Receivables - Additional information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>112</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R113.htm</HtmlFileName>
      <LongName>999105 - Disclosure - Trade and Other Receivables - Tabular Disclosure of Trade and Other Receivables (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/TradeAndOtherReceivablesTabularDisclosureOfTradeAndOtherReceivablesDetail</Role>
      <ShortName>Trade and Other Receivables - Tabular Disclosure of Trade and Other Receivables (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>113</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R114.htm</HtmlFileName>
      <LongName>999106 - Disclosure - Trade and Other Receivables - Tabular Disclosure of Trade and Other Receivables (Parenthetical) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/TradeAndOtherReceivablesTabularDisclosureOfTradeAndOtherReceivablesParentheticalDetail</Role>
      <ShortName>Trade and Other Receivables - Tabular Disclosure of Trade and Other Receivables (Parenthetical) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>114</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R115.htm</HtmlFileName>
      <LongName>999107 - Disclosure - Trade and Other Receivables - Reconciliation of Changes in Allowance Account for Credit Losses (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/TradeAndOtherReceivablesReconciliationOfChangesInAllowanceAccountForCreditLossesDetail</Role>
      <ShortName>Trade and Other Receivables - Reconciliation of Changes in Allowance Account for Credit Losses (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>115</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R116.htm</HtmlFileName>
      <LongName>999108 - Disclosure - Financial assets and liabilities - Summary of classification of borrowings (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/FinancialAssetsAndLiabilitiesSummaryOfClassificationOfBorrowingsDetail</Role>
      <ShortName>Financial assets and liabilities - Summary of classification of borrowings (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>116</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R117.htm</HtmlFileName>
      <LongName>999109 - Disclosure - Financial assets and liabilities - Summary of maturities of borrowings (excluding lease liabilities) and exposure to interest rates (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/FinancialAssetsAndLiabilitiesSummaryOfMaturitiesOfBorrowingsExcludingLeaseLiabilitiesAndExposureToInterestRatesDetail</Role>
      <ShortName>Financial assets and liabilities - Summary of maturities of borrowings (excluding lease liabilities) and exposure to interest rates (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>117</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R118.htm</HtmlFileName>
      <LongName>999110 - Disclosure - Financial assets and liabilities - Summary of detailed information about borrowings (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/FinancialAssetsAndLiabilitiesSummaryOfDetailedInformationAboutBorrowingsDetail</Role>
      <ShortName>Financial assets and liabilities - Summary of detailed information about borrowings (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>118</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R119.htm</HtmlFileName>
      <LongName>999111 - Disclosure - Financial assets and liabilities - Summary of detailed information about borrowings (Parenthetical) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/FinancialAssetsAndLiabilitiesSummaryOfDetailedInformationAboutBorrowingsParentheticalDetail</Role>
      <ShortName>Financial assets and liabilities - Summary of detailed information about borrowings (Parenthetical) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>119</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R120.htm</HtmlFileName>
      <LongName>999112 - Disclosure - Financial assets and liabilities - Summary of reconciliation of liabilities arising from financing activities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/FinancialAssetsAndLiabilitiesSummaryOfReconciliationOfLiabilitiesArisingFromFinancingActivitiesDetail</Role>
      <ShortName>Financial assets and liabilities - Summary of reconciliation of liabilities arising from financing activities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>120</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R121.htm</HtmlFileName>
      <LongName>999113 - Disclosure - Financial Assets and liabilities - Summary of Financial Instruments by Category (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/FinancialAssetsAndLiabilitiesSummaryOfFinancialInstrumentsByCategoryDetail</Role>
      <ShortName>Financial Assets and liabilities - Summary of Financial Instruments by Category (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>121</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R122.htm</HtmlFileName>
      <LongName>999114 - Disclosure - Financial Assets And Liabilities - Summary Of Sensitivity Analysis For Types Of Market Risk (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/FinancialAssetsAndLiabilitiesSummaryOfSensitivityAnalysisForTypesOfMarketRiskDetail</Role>
      <ShortName>Financial Assets And Liabilities - Summary Of Sensitivity Analysis For Types Of Market Risk (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>122</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R123.htm</HtmlFileName>
      <LongName>999115 - Disclosure - Financial Assets And Liabilities - Summary of financial assets at fair value through profit or loss (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/FinancialAssetsAndLiabilitiesSummaryOfFinancialAssetsAtFairValueThroughProfitOrLossDetail</Role>
      <ShortName>Financial Assets And Liabilities - Summary of financial assets at fair value through profit or loss (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>123</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R124.htm</HtmlFileName>
      <LongName>999116 - Disclosure - Financial Assets And Liabilities - Summary Of Detailed Information About Concentration Of Risk That Arises From Contracts Within Scope Of IFRS 17 (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/FinancialAssetsAndLiabilitiesSummaryOfDetailedInformationAboutConcentrationOfRiskThatArisesFromContractsWithinScopeOfIfrs17Detail</Role>
      <ShortName>Financial Assets And Liabilities - Summary Of Detailed Information About Concentration Of Risk That Arises From Contracts Within Scope Of IFRS 17 (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>124</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R125.htm</HtmlFileName>
      <LongName>999117 - Disclosure - Financial Assets And Liabilities - Summary of Credit Risk Exposure (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/FinancialAssetsAndLiabilitiesSummaryOfCreditRiskExposureDetail</Role>
      <ShortName>Financial Assets And Liabilities - Summary of Credit Risk Exposure (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>125</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R126.htm</HtmlFileName>
      <LongName>999118 - Disclosure - Financial Assets And Liabilities - Summary of managing liquidity risk (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/FinancialAssetsAndLiabilitiesSummaryOfManagingLiquidityRiskDetail</Role>
      <ShortName>Financial Assets And Liabilities - Summary of managing liquidity risk (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>126</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R127.htm</HtmlFileName>
      <LongName>999119 - Disclosure - Financial Assets And Liabilities -Summary of contractual undiscounted cash flows of financial liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/FinancialAssetsAndLiabilitiesSummaryOfContractualUndiscountedCashFlowsOfFinancialLiabilitiesDetail</Role>
      <ShortName>Financial Assets And Liabilities -Summary of contractual undiscounted cash flows of financial liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>127</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R128.htm</HtmlFileName>
      <LongName>999120 - Disclosure - Financial Assets and liabilities - Summary of income, expenses, gains and losses (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/FinancialAssetsAndLiabilitiesSummaryOfIncomeExpensesGainsAndLossesDetail</Role>
      <ShortName>Financial Assets and liabilities - Summary of income, expenses, gains and losses (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>128</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R129.htm</HtmlFileName>
      <LongName>999121 - Disclosure - Financial Assets and liabilities - Summary of Fair value of the group's financial assets and financial liabilities (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/FinancialAssetsAndLiabilitiesSummaryOfFairValueOfTheGroupSFinancialAssetsAndFinancialLiabilitiesDetail</Role>
      <ShortName>Financial Assets and liabilities - Summary of Fair value of the group's financial assets and financial liabilities (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>129</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R130.htm</HtmlFileName>
      <LongName>999122 - Disclosure - Financial Assets and liabilities - Summary of Fair value of financial assets and financial liabilities that are not measured at fair value (but fair value disclosures are required) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/FinancialAssetsAndLiabilitiesSummaryOfFairValueOfFinancialAssetsAndFinancialLiabilitiesThatAreNotMeasuredAtFairValueButFairValueDisclosuresAreRequiredDetail</Role>
      <ShortName>Financial Assets and liabilities - Summary of Fair value of financial assets and financial liabilities that are not measured at fair value (but fair value disclosures are required) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>130</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R131.htm</HtmlFileName>
      <LongName>999123 - Disclosure - Financial Assets And Liabilities - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/FinancialAssetsAndLiabilitiesAdditionalInformationDetail</Role>
      <ShortName>Financial Assets And Liabilities - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>131</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R132.htm</HtmlFileName>
      <LongName>999124 - Disclosure - Investments in associates - Schedule of Detailed information of Significant Investments In Associates (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/InvestmentsInAssociatesScheduleOfDetailedInformationOfSignificantInvestmentsInAssociatesDetail</Role>
      <ShortName>Investments in associates - Schedule of Detailed information of Significant Investments In Associates (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>132</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R133.htm</HtmlFileName>
      <LongName>999125 - Disclosure - Investments in associates - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/InvestmentsInAssociatesAdditionalInformationDetail</Role>
      <ShortName>Investments in associates - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>133</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R134.htm</HtmlFileName>
      <LongName>999126 - Disclosure - Inventories - Disclosure of Detailed Information About Inventory (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/InventoriesDisclosureOfDetailedInformationAboutInventoryDetail</Role>
      <ShortName>Inventories - Disclosure of Detailed Information About Inventory (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>134</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R135.htm</HtmlFileName>
      <LongName>999127 - Disclosure - Cash, bank balances and other short-term investments - Disclosure of Cash and Cash Equivalents (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/CashBankBalancesAndOtherShortTermInvestmentsDisclosureOfCashAndCashEquivalentsDetail</Role>
      <ShortName>Cash, bank balances and other short-term investments - Disclosure of Cash and Cash Equivalents (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>135</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R136.htm</HtmlFileName>
      <LongName>999128 - Disclosure - Capital stock and capital risk management - Summary of detailed information about changes in equity (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/CapitalStockAndCapitalRiskManagementSummaryOfDetailedInformationAboutChangesInEquityDetail</Role>
      <ShortName>Capital stock and capital risk management - Summary of detailed information about changes in equity (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>136</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R137.htm</HtmlFileName>
      <LongName>999129 - Disclosure - Capital stock and capital risk management - Summary of financial leverage ratios (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/CapitalStockAndCapitalRiskManagementSummaryOfFinancialLeverageRatiosDetail</Role>
      <ShortName>Capital stock and capital risk management - Summary of financial leverage ratios (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>137</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R138.htm</HtmlFileName>
      <LongName>999130 - Disclosure - Capital stock and capital risk management - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/CapitalStockAndCapitalRiskManagementAdditionalInformationDetail</Role>
      <ShortName>Capital stock and capital risk management - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>138</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R139.htm</HtmlFileName>
      <LongName>999131 - Disclosure - Provisions - Summary of classification of provisions (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/ProvisionsSummaryOfClassificationOfProvisionsDetail</Role>
      <ShortName>Provisions - Summary of classification of provisions (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>139</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R140.htm</HtmlFileName>
      <LongName>999132 - Disclosure - Provisions - Summary of movements in provision (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/ProvisionsSummaryOfMovementsInProvisionDetail</Role>
      <ShortName>Provisions - Summary of movements in provision (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>140</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R141.htm</HtmlFileName>
      <LongName>999133 - Disclosure - Provisions - Summary of movements in provision (Parenthetical) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/ProvisionsSummaryOfMovementsInProvisionParentheticalDetail</Role>
      <ShortName>Provisions - Summary of movements in provision (Parenthetical) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>141</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R142.htm</HtmlFileName>
      <LongName>999134 - Disclosure - Provisions - Additional information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/ProvisionsAdditionalInformationDetail</Role>
      <ShortName>Provisions - Additional information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>142</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R143.htm</HtmlFileName>
      <LongName>999135 - Disclosure - Employee benefits - Summary of employee benefit costs (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/EmployeeBenefitsSummaryOfEmployeeBenefitCostsDetail</Role>
      <ShortName>Employee benefits - Summary of employee benefit costs (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>143</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R144.htm</HtmlFileName>
      <LongName>999136 - Disclosure - Employee benefits - Summary of obligations for defined benefit plans (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/EmployeeBenefitsSummaryOfObligationsForDefinedBenefitPlansDetail</Role>
      <ShortName>Employee benefits - Summary of obligations for defined benefit plans (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>144</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R145.htm</HtmlFileName>
      <LongName>999137 - Disclosure - Employee benefits - Summary of fair value of plan assets (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/EmployeeBenefitsSummaryOfFairValueOfPlanAssetsDetail</Role>
      <ShortName>Employee benefits - Summary of fair value of plan assets (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>145</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R146.htm</HtmlFileName>
      <LongName>999138 - Disclosure - Employee benefits - Summary of estimated expected benefits payments (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/EmployeeBenefitsSummaryOfEstimatedExpectedBenefitsPaymentsDetail</Role>
      <ShortName>Employee benefits - Summary of estimated expected benefits payments (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>146</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R147.htm</HtmlFileName>
      <LongName>999139 - Disclosure - Employee benefits - Summary of significant actuarial assumptions used (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/EmployeeBenefitsSummaryOfSignificantActuarialAssumptionsUsedDetail</Role>
      <ShortName>Employee benefits - Summary of significant actuarial assumptions used (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>147</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R148.htm</HtmlFileName>
      <LongName>999140 - Disclosure - Employee benefits - Additional information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/EmployeeBenefitsAdditionalInformationDetail</Role>
      <ShortName>Employee benefits - Additional information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>148</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R149.htm</HtmlFileName>
      <LongName>999141 - Disclosure - Salaries and payroll taxes - Summary of salaries and payroll taxes (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/SalariesAndPayrollTaxesSummaryOfSalariesAndPayrollTaxesDetail</Role>
      <ShortName>Salaries and payroll taxes - Summary of salaries and payroll taxes (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>149</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R150.htm</HtmlFileName>
      <LongName>999142 - Disclosure - Other taxes and royalties   - Summary of other taxes and royalties (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/OtherTaxesAndRoyaltiesSummaryOfOtherTaxesAndRoyaltiesDetail</Role>
      <ShortName>Other taxes and royalties   - Summary of other taxes and royalties (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>150</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R151.htm</HtmlFileName>
      <LongName>999143 - Disclosure - Trade and other payables- Summary of trade and other payables (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/TradeAndOtherPayablesSummaryOfTradeAndOtherPayablesDetail</Role>
      <ShortName>Trade and other payables- Summary of trade and other payables (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>151</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R152.htm</HtmlFileName>
      <LongName>999144 - Disclosure - Trade and other payables- Summary of trade and other payables (Parenthetical) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/TradeAndOtherPayablesSummaryOfTradeAndOtherPayablesParentheticalDetail</Role>
      <ShortName>Trade and other payables- Summary of trade and other payables (Parenthetical) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>152</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R153.htm</HtmlFileName>
      <LongName>999145 - Disclosure - Related parties transactions and balances - Summary of key management personnel remuneration (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/RelatedPartiesTransactionsAndBalancesSummaryOfKeyManagementPersonnelRemunerationDetail</Role>
      <ShortName>Related parties transactions and balances - Summary of key management personnel remuneration (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>153</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R154.htm</HtmlFileName>
      <LongName>999146 - Disclosure - Related parties transactions and balances - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/RelatedPartiesTransactionsAndBalancesAdditionalInformationDetail</Role>
      <ShortName>Related parties transactions and balances - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>154</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R155.htm</HtmlFileName>
      <LongName>999147 - Disclosure - Commitments and contingencies - Additional information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/CommitmentsAndContingenciesAdditionalInformationDetail</Role>
      <ShortName>Commitments and contingencies - Additional information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>155</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R156.htm</HtmlFileName>
      <LongName>999148 - Disclosure - Operations in hydrocarbon consortiums - Additional information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/OperationsInHydrocarbonConsortiumsAdditionalInformationDetail</Role>
      <ShortName>Operations in hydrocarbon consortiums - Additional information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>156</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R157.htm</HtmlFileName>
      <LongName>999149 - Disclosure - Operations in hydrocarbon consortiums - Summary of financial information of joint operation (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/OperationsInHydrocarbonConsortiumsSummaryOfFinancialInformationOfJointOperationDetail</Role>
      <ShortName>Operations in hydrocarbon consortiums - Summary of financial information of joint operation (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>157</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R158.htm</HtmlFileName>
      <LongName>999150 - Disclosure - Tax regulations - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/TaxRegulationsAdditionalInformationDetail</Role>
      <ShortName>Tax regulations - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>158</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R159.htm</HtmlFileName>
      <LongName>999151 - Disclosure - Share-based payments - Summary of number and weighted average exercise prices (WAEP) of, and movements in, share options (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/ShareBasedPaymentsSummaryOfNumberAndWeightedAverageExercisePricesWaepOfAndMovementsInShareOptionsDetail</Role>
      <ShortName>Share-based payments - Summary of number and weighted average exercise prices (WAEP) of, and movements in, share options (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>159</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R160.htm</HtmlFileName>
      <LongName>999152 - Disclosure - Share-based payments - Summary of valuation assumptions of stock option plan (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/ShareBasedPaymentsSummaryOfValuationAssumptionsOfStockOptionPlanDetail</Role>
      <ShortName>Share-based payments - Summary of valuation assumptions of stock option plan (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>160</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R161.htm</HtmlFileName>
      <LongName>999153 - Disclosure - Share-based payments - Summary of number and weighted average exercise prices (WAEP) of, and movements in, restricted stock (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/ShareBasedPaymentsSummaryOfNumberAndWeightedAverageExercisePricesWaepOfAndMovementsInRestrictedStockDetail</Role>
      <ShortName>Share-based payments - Summary of number and weighted average exercise prices (WAEP) of, and movements in, restricted stock (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>161</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R162.htm</HtmlFileName>
      <LongName>999154 - Disclosure - Share-based payments - Additional Informtaion (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/ShareBasedPaymentsAdditionalInformtaionDetail</Role>
      <ShortName>Share-based payments - Additional Informtaion (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>162</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R163.htm</HtmlFileName>
      <LongName>999155 - Disclosure - Business Combination - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/BusinessCombinationAdditionalInformationDetail</Role>
      <ShortName>Business Combination - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>163</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R164.htm</HtmlFileName>
      <LongName>999156 - Disclosure - Business combination - Summary of fair value of identifiable assets and liabilities as of the settlement date (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/BusinessCombinationSummaryOfFairValueOfIdentifiableAssetsAndLiabilitiesAsOfTheSettlementDateDetail</Role>
      <ShortName>Business combination - Summary of fair value of identifiable assets and liabilities as of the settlement date (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>164</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R165.htm</HtmlFileName>
      <LongName>999157 - Disclosure - Business combination - Summary of fair value of identifiable assets and liabilities as of the settlement date (Parenthetical) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/BusinessCombinationSummaryOfFairValueOfIdentifiableAssetsAndLiabilitiesAsOfTheSettlementDateParentheticalDetail</Role>
      <ShortName>Business combination - Summary of fair value of identifiable assets and liabilities as of the settlement date (Parenthetical) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>165</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R166.htm</HtmlFileName>
      <LongName>999158 - Disclosure - Business combination - Summary Of Business Combination Net Cash Acquired Explanatory (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/BusinessCombinationSummaryOfBusinessCombinationNetCashAcquiredExplanatoryDetail</Role>
      <ShortName>Business combination - Summary Of Business Combination Net Cash Acquired Explanatory (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>166</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R167.htm</HtmlFileName>
      <LongName>999159 - Disclosure - Supplementary information on oil and gas activities (unaudited) - Summary of costs capitalized as well as expensed that were incurred (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/SupplementaryInformationOnOilAndGasActivitiesUnauditedSummaryOfCostsCapitalizedAsWellAsExpensedThatWereIncurredDetail</Role>
      <ShortName>Supplementary information on oil and gas activities (unaudited) - Summary of costs capitalized as well as expensed that were incurred (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/SupplementaryInformationOnOilAndGasActivitiesUnauditedTables</ParentRole>
      <Position>167</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R168.htm</HtmlFileName>
      <LongName>999160 - Disclosure - Supplementary information on oil and gas activities (unaudited) - Summary of capitalized costs (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/SupplementaryInformationOnOilAndGasActivitiesUnauditedSummaryOfCapitalizedCostsDetail</Role>
      <ShortName>Supplementary information on oil and gas activities (unaudited) - Summary of capitalized costs (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/SupplementaryInformationOnOilAndGasActivitiesUnauditedTables</ParentRole>
      <Position>168</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R169.htm</HtmlFileName>
      <LongName>999161 - Disclosure - Supplementary information on oil and gas activities (unaudited) - Summary of capitalized costs (Parenthetical) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/SupplementaryInformationOnOilAndGasActivitiesUnauditedSummaryOfCapitalizedCostsParentheticalDetail</Role>
      <ShortName>Supplementary information on oil and gas activities (unaudited) - Summary of capitalized costs (Parenthetical) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/SupplementaryInformationOnOilAndGasActivitiesUnauditedTables</ParentRole>
      <Position>169</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R170.htm</HtmlFileName>
      <LongName>999162 - Disclosure - Supplementary information on oil and gas activities (unaudited) - Summary of results of operations (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/SupplementaryInformationOnOilAndGasActivitiesUnauditedSummaryOfResultsOfOperationsDetail</Role>
      <ShortName>Supplementary information on oil and gas activities (unaudited) - Summary of results of operations (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/SupplementaryInformationOnOilAndGasActivitiesUnauditedTables</ParentRole>
      <Position>170</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R171.htm</HtmlFileName>
      <LongName>999163 - Disclosure - Supplementary information on oil and gas activities (unaudited) - Summary of estimated oil and natural gas proved reserves and technical volumes (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/SupplementaryInformationOnOilAndGasActivitiesUnauditedSummaryOfEstimatedOilAndNaturalGasProvedReservesAndTechnicalVolumesDetail</Role>
      <ShortName>Supplementary information on oil and gas activities (unaudited) - Summary of estimated oil and natural gas proved reserves and technical volumes (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/SupplementaryInformationOnOilAndGasActivitiesUnauditedTables</ParentRole>
      <Position>171</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R172.htm</HtmlFileName>
      <LongName>999164 - Disclosure - Supplementary information on oil and gas activities (unaudited) - Summary of reconciliation of the Company's reserves (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/SupplementaryInformationOnOilAndGasActivitiesUnauditedSummaryOfReconciliationOfTheCompanySReservesDetail</Role>
      <ShortName>Supplementary information on oil and gas activities (unaudited) - Summary of reconciliation of the Company's reserves (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/SupplementaryInformationOnOilAndGasActivitiesUnauditedTables</ParentRole>
      <Position>172</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R173.htm</HtmlFileName>
      <LongName>999165 - Disclosure - Supplementary information on oil and gas activities (unaudited) - Summary of reconciliation of the company's reserves (Parenthetical) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/SupplementaryInformationOnOilAndGasActivitiesUnauditedSummaryOfReconciliationOfTheCompanySReservesParentheticalDetail</Role>
      <ShortName>Supplementary information on oil and gas activities (unaudited) - Summary of reconciliation of the company's reserves (Parenthetical) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/SupplementaryInformationOnOilAndGasActivitiesUnauditedTables</ParentRole>
      <Position>173</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R174.htm</HtmlFileName>
      <LongName>999166 - Disclosure - Supplementary information on oil and gas activities (unaudited) - Summary of standardized measure of discounted future cash flows (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/SupplementaryInformationOnOilAndGasActivitiesUnauditedSummaryOfStandardizedMeasureOfDiscountedFutureCashFlowsDetail</Role>
      <ShortName>Supplementary information on oil and gas activities (unaudited) - Summary of standardized measure of discounted future cash flows (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/SupplementaryInformationOnOilAndGasActivitiesUnauditedTables</ParentRole>
      <Position>174</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R175.htm</HtmlFileName>
      <LongName>999167 - Disclosure - Supplementary information on oil and gas activities (unaudited) - Summary of standardized measure of discounted future cash flows (Parenthetical) (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/SupplementaryInformationOnOilAndGasActivitiesUnauditedSummaryOfStandardizedMeasureOfDiscountedFutureCashFlowsParentheticalDetail</Role>
      <ShortName>Supplementary information on oil and gas activities (unaudited) - Summary of standardized measure of discounted future cash flows (Parenthetical) (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/SupplementaryInformationOnOilAndGasActivitiesUnauditedTables</ParentRole>
      <Position>175</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R176.htm</HtmlFileName>
      <LongName>999168 - Disclosure - Supplementary information on oil and gas activities (unaudited)  - Summary of changes in the standardized measure of discounted future net cash flows (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/SupplementaryInformationOnOilAndGasActivitiesUnauditedSummaryOfChangesInTheStandardizedMeasureOfDiscountedFutureNetCashFlowsDetail</Role>
      <ShortName>Supplementary information on oil and gas activities (unaudited)  - Summary of changes in the standardized measure of discounted future net cash flows (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/SupplementaryInformationOnOilAndGasActivitiesUnauditedTables</ParentRole>
      <Position>176</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R177.htm</HtmlFileName>
      <LongName>999169 - Disclosure - Supplementary information on oil and gas activities (unaudited) -  Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/SupplementaryInformationOnOilAndGasActivitiesUnauditedAdditionalInformationDetail</Role>
      <ShortName>Supplementary information on oil and gas activities (unaudited) -  Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <ParentRole>http://www.vistaoilandgas.com/role/SupplementaryInformationOnOilAndGasActivitiesUnauditedTables</ParentRole>
      <Position>177</Position>
    </Report>
    <Report instance="d936340d20f.htm">
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <HtmlFileName>R178.htm</HtmlFileName>
      <LongName>999170 - Disclosure - Subsequent events - Additional Information (Detail)</LongName>
      <ReportType>Sheet</ReportType>
      <Role>http://www.vistaoilandgas.com/role/SubsequentEventsAdditionalInformationDetail</Role>
      <ShortName>Subsequent events - Additional Information (Detail)</ShortName>
      <MenuCategory>Details</MenuCategory>
      <Position>178</Position>
    </Report>
    <Report>
      <IsDefault>false</IsDefault>
      <HasEmbeddedReports>false</HasEmbeddedReports>
      <LongName>All Reports</LongName>
      <ReportType>Book</ReportType>
      <ShortName>All Reports</ShortName>
    </Report>
  </MyReports>
  <InputFiles>
    <File doctype="20-F" isDefinitelyFs="true" isIfrs="true" isUsgaap="true" original="d936340d20f.htm">d936340d20f.htm</File>
    <File>vist-20251231.xsd</File>
  </InputFiles>
  <SupplementalFiles>
    <File>g936340g00g09.jpg</File>
    <File>g936340g01g03.jpg</File>
    <File>g936340g01g04.jpg</File>
    <File>g936340g01g05.jpg</File>
    <File>g936340g01g06.jpg</File>
    <File>g936340g01g07.jpg</File>
    <File>g936340g01g08.jpg</File>
    <File>g936340g01g09.jpg</File>
    <File>g936340g01g10.jpg</File>
    <File>g936340g01g11.jpg</File>
    <File>g936340g01g12.jpg</File>
    <File>g936340g01g13.jpg</File>
    <File>g936340g01g14.jpg</File>
    <File>g936340g01g72.jpg</File>
    <File>g936340g01g73.jpg</File>
  </SupplementalFiles>
  <BaseTaxonomies>
    <BaseTaxonomy items="239">http://fasb.org/srt/2025</BaseTaxonomy>
    <BaseTaxonomy items="9">http://xbrl.sec.gov/cyd/2025</BaseTaxonomy>
    <BaseTaxonomy items="56">http://xbrl.sec.gov/dei/2025</BaseTaxonomy>
    <BaseTaxonomy items="1">http://xbrl.sec.gov/ecd/2025</BaseTaxonomy>
    <BaseTaxonomy items="2157">https://xbrl.ifrs.org/taxonomy/2025-03-27/ifrs-full</BaseTaxonomy>
  </BaseTaxonomies>
  <HasPresentationLinkbase>false</HasPresentationLinkbase>
  <HasCalculationLinkbase>false</HasCalculationLinkbase>
</FilingSummary>
