XML 181 R137.htm IDEA: XBRL DOCUMENT
v3.24.1.u1

Provisions for employees' benefits - Additional Information (Details) | 12 Months Ended
--- | ---
Dec. 31, 2023 | Dec. 31, 2022
Fair value level 1 |  |
Provisions for employees' benefits |  |
Percentage of plan assets | 55.70% | 53.76%
Fair value level 2 |  |
Provisions for employees' benefits |  |
Percentage of plan assets | 44.30% | 46.24%

X
- Definition The percentage of plan assets in total assets. + References No definition available. + Details
Name: | ec_PercentageOfPlanAssets
Namespace Prefix: | ec_
Data Type: | dtr-types:percentItemType
Balance Type: | na
Period Type: | duration

X
- Definition Line items represent concepts included in a table. These concepts are used to disclose reportable information associated with members defined in one or many axes of the table. + References No definition available. + Details
Name: | ifrs-full_DisclosureOfDefinedBenefitPlansLineItems
Namespace Prefix: | ifrs-full_
Data Type: | xbrli:stringItemType
Balance Type: | na
Period Type: | duration

X
- Details
Name: | ifrs-full_LevelsOfFairValueHierarchyAxis=ifrs-full_Level1OfFairValueHierarchyMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |

X
- Details
Name: | ifrs-full_LevelsOfFairValueHierarchyAxis=ifrs-full_Level2OfFairValueHierarchyMember
Namespace Prefix: |
Data Type: | na
Balance Type: |
Period Type: |