:root {
  --eworldp-black: #000000;
  --eworldp-white: #fffeff;
  --eworldp-real-white: #fffeff;
  --eworldp-border: #d8cfc7;
  --eworldp-sand: #fff5ec;
  --eworldp-forest: #00402a;
  --eworldp-green: #00a443;
  --eworldp-green-light: #dcebe1;
  --eworldp-green-dark: #007f33;
  --eworldp-orange: #ff9c1a;
  --eworldp-blue: #0da9ff;
  --eworldp-brown: #89837e;
  --eworldp-brown-dark: #615d5a;
  --eworldp-dark: #3a3735;
}

#eworldp {
  width: 100%;
  max-width: 980px;
  padding: 31px 16px;
  margin: 20px auto;
  text-align: left;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  border: 1px solid var(--eworldp-border);
  background-color: var(--eworldp-real-white);
}

#eworldp * {
  font-family: "IberPangea" !important;
  font-style: normal;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#eworldp h2,
#eworldp h3,
#eworldp h4 {
  margin-top: 0 !important;
}

#eworldp ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#eworldp ul li:before {
  content: none !important;
  display: none !important;
  position: relative !important;
}

#eworldp img {
  display: block;
  width: 100%;
}

#eworldp .eworldp_title {
  color: var(--eworldp-green-dark) !important;
  font-size: 32px;
  line-height: 1.125;
  font-style: normal;
  font-weight: 600;
  text-align: left;
  text-wrap: balance;
  margin-bottom: 24px;
}

#eworldp .eworldp_years {
  border-radius: 12px;
  background: var(--eworldp-sand);
  padding: 16px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#eworldp .eworldp_years_item {
  border-radius: 12px;
  border: 1px solid var(--eworldp-green);
  background: var(--eworldp-white);
  padding: 12px 2px;
  color: var(--eworldp-forest) !important;
  font-size: 12px;
  line-height: 1.3;
  font-style: normal;
  font-weight: 600;
  text-align: center;
  flex: 1;
}

#eworldp .eworldp_years_item strong {
  color: var(--eworldp-green-dark);
  font-size: 14px;
  line-height: 1.25;
  font-style: normal;
  font-weight: 500;
  text-align: center;
  display: block;
  margin-bottom: 8px;
}

#eworldp .eworldp_years_item-2,
#eworldp .eworldp_years_item-4 {
  border: none;
  background-color: transparent;
  padding: 0;
  align-items: center;
  justify-content: center;
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  display: none;
}

#eworldp .eworldp_years_item-3 {
  border-color: var(--eworldp-blue);
}

#eworldp .eworldp_years_item-5 {
  border-color: var(--eworldp-orange);
}

#eworldp .eworldp_graph {
  padding-bottom: 15px;
  border-bottom: 1px dashed var(--eworldp-brown);
  margin-bottom: 9px;
  padding-right: 50px;
  position: relative;
  min-height: 46px;
}

#eworldp .eworldp_graph-7 {
  border-bottom: none;
  margin-bottom: 10px;
}

#eworldp .eworldp_graph_title {
  color: var(--eworldp-forest) !important;
  font-size: 16px;
  line-height: 1.25;
  font-style: normal;
  font-weight: 600;
  text-align: left;
  margin-bottom: 15px;
}

#eworldp .eworldp_graph_bars {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#eworldp .eworldp_graph_bar {
  height: 6px;
  border-radius: 0px 15px 15px 0px;
  background: var(--eworldp-green);
  display: block;
  width: 0%;
  transition: all 0.75s;
}

#eworldp .eworldp_graph_bar-orange {
  background-color: var(--eworldp-orange);
}

#eworldp .eworldp_graph_bar-blue {
  background-color: var(--eworldp-blue);
}

#eworldp.viewport .eworldp_graph_bar-1 {
  width: 79%;
}

#eworldp.viewport .eworldp_graph_bar-2 {
  width: 57%;
}

#eworldp.viewport .eworldp_graph_bar-3 {
  width: 47%;
}

#eworldp.viewport .eworldp_graph_bar-4 {
  width: 72%;
}

#eworldp.viewport .eworldp_graph_bar-5 {
  width: 94%;
}

#eworldp.viewport .eworldp_graph_bar-6 {
  width: 91%;
}

#eworldp.viewport .eworldp_graph_bar-7 {
  width: 39%;
}

#eworldp.viewport .eworldp_graph_bar-8 {
  width: 100%;
}

#eworldp.viewport .eworldp_graph_bar-9 {
  width: 94%;
}

#eworldp.viewport .eworldp_graph_bar-10 {
  width: 36%;
}

#eworldp.viewport .eworldp_graph_bar-11 {
  width: 32%;
}

#eworldp.viewport .eworldp_graph_bar-12 {
  width: 32%;
}

#eworldp.viewport .eworldp_graph_bar-13 {
  width: 18%;
}

#eworldp.viewport .eworldp_graph_bar-14 {
  width: 25%;
}

#eworldp.viewport .eworldp_graph_bar-15 {
  width: 17%;
}

#eworldp.viewport .eworldp_graph_bar-16 {
  width: 15%;
}

#eworldp.viewport .eworldp_graph_bar-17 {
  width: 18%;
}

#eworldp.viewport .eworldp_graph_bar-18 {
  width: 27%;
}

#eworldp.viewport .eworldp_graph_bar-19 {
  width: 1.5%;
}

#eworldp.viewport .eworldp_graph_bar-20 {
  width: 2%;
}

#eworldp.viewport .eworldp_graph_bar-21 {
  width: 2.5%;
}

#eworldp .eworldp_totals {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: -3px;
  margin-bottom: 24px;
  border-top: 1px solid var(--eworldp-brown);
  padding-right: 50px;
}

#eworldp .eworldp_totals_item {
  color: var(--eworldp-brown-dark) !important;
  font-size: 12px;
  line-height: 1.25;
  font-style: normal;
  font-weight: 600;
  text-align: center;
}

#eworldp .eworldp_legend {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

#eworldp .eworldp_legend_item {
  color: var(--eworldp-black) !important;
  font-size: 16px;
  line-height: 1.25;
  font-style: normal;
  font-weight: 400;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

#eworldp .eworldp_legend_item:before {
  content: "" !important;
  display: block !important;
  margin: 0 !important;
  width: 14px;
  height: 14px;
  border-radius: 100%;
  background-color: var(--eworldp-green);
}

#eworldp .eworldp_legend_item-2:before {
  background-color: var(--eworldp-blue);
}

#eworldp .eworldp_legend_item-3:before {
  background-color: var(--eworldp-orange);
}

#eworldp .eworldp_source {
  color: var(--eworldp-brown) !important;
  font-size: 12px;
  line-height: 1.3;
  font-style: italic;
  font-weight: 400;
  text-align: left;
}

#eworldp .eworldp_source strong {
  color: var(--eworldp-brown-dark) !important;
  font-size: 12px;
  font-weight: 400;
}

#eworldp .eworldp_graph_data {
  position: absolute;
  top: 35px;
  right: 0;
}

#eworldp .eworldp_graph_data.active {
  padding: 8px 71px 8px 8px;
  border-radius: 15px;
  background: var(--eworldp-green-light);
  z-index: 3;
  top: 27px;
  right: -8px;
}

#eworldp .eworldp_graph_data_button {
  display: block;
  width: 32px;
  height: 32px;
  text-align: left;
  text-indent: -9999px;
  overflow: hidden;
  background-image: url("/wcorp/gc/prod/es_ES/estaticos/evolucion-poblacion-mundial/images/ico-mas.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

#eworldp .eworldp_graph_data.active .eworldp_graph_data_button {
  background-image: url("/wcorp/gc/prod/es_ES/estaticos/evolucion-poblacion-mundial/images/ico-mas-activo.svg");
  position: absolute;
  top: 8px;
  right: 8px;
}

#eworldp .eworldp_graph_data_item {
  display: none;
  margin-bottom: 7px;
}

#eworldp .eworldp_graph_data_item:last-child {
  margin-bottom: 0px;
}

#eworldp .eworldp_graph_data.active .eworldp_graph_data_item {
  display: flex;
  gap: 6px;
}

#eworldp .eworldp_graph_data_item strong,
#eworldp .eworldp_graph_data_item span {
  border-radius: 15px;
  border: 1px solid;
  background: var(--eworldp-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--eworldp-brown-dark) !important;
  font-size: 16px;
  line-height: 1.25;
  font-style: normal;
  font-weight: 400;
  text-align: center;
  padding: 0px 8px;
  min-width: 117px;
}

#eworldp .eworldp_graph_data_item strong {
  color: var(--eworldp-dark) !important;
  font-weight: 600;
  min-width: 56px;
}

#eworldp .eworldp_graph_data_item-1 strong,
#eworldp .eworldp_graph_data_item-1 span {
  border-color: var(--eworldp-green);
}

#eworldp .eworldp_graph_data_item-2 strong,
#eworldp .eworldp_graph_data_item-2 span {
  border-color: var(--eworldp-blue);
}

#eworldp .eworldp_graph_data_item-3 strong,
#eworldp .eworldp_graph_data_item-3 span {
  border-color: var(--eworldp-orange);
}

@media (min-width: 700px) {
  #eworldp {
    padding: 36px 32px;
  }

  #eworldp .eworldp_title {
    margin-bottom: 26px;
  }

  #eworldp .eworldp_years {
    padding-left: 24px;
    padding-right: 24px;
    gap: 5px;
    margin-bottom: 26px;
  }

  #eworldp .eworldp_years_item {
    font-size: 16px;
    padding-top: 14px;
    padding-bottom: 14px;
    max-width: 112px;
  }

  #eworldp.eworldp-es .eworldp_years_item,
  #eworldp.eworldp-pt .eworldp_years_item {
    max-width: 162px;
  }

  #eworldp .eworldp_years_item-2,
  #eworldp .eworldp_years_item-4 {
    display: flex;
    max-width: 48px;
  }

  #eworldp .eworldp_years_item strong {
    font-size: 18px;
    margin-bottom: 13px;
  }

  #eworldp .eworldp_graph {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    padding-bottom: 5px;
    margin-bottom: 5px;
  }

  #eworldp .eworldp_graph_title {
    width: 138px;
    min-width: 138px;
    max-width: 138px;
    margin-bottom: 0;
  }

  #eworldp .eworldp_graph-7 {
    padding-top: 6px;
    margin-bottom: 9px;
  }

  #eworldp .eworldp_totals {
    width: calc(100% - 148px);
    margin-left: 149px;
    margin-bottom: 26px;
  }

  #eworldp .eworldp_totals_item:not(:first-child) {
    min-width: 45px;
    text-align: center;
  }

  #eworldp .eworldp_legend {
    margin-bottom: 26px;
  }

  #eworldp .eworldp_source,
  #eworldp .eworldp_source strong {
    font-size: 14px;
  }

  #eworldp .eworldp_graph_data:not(.active) .eworldp_graph_data_button:hover {
    background-image: url("/wcorp/gc/prod/es_ES/estaticos/evolucion-poblacion-mundial/images/ico-mas-hover.svg");
  }

  #eworldp .eworldp_graph_data {
    top: 4px;
  }

  #eworldp .eworldp_graph_data.active {
    top: -4px;
  }
}

@media (max-width: 699px) {
  #eworldp .eworldp_years_item-3 {
    width: 41%;
    min-width: 41%;
  }

  #eworldp .eworldp_totals_item-2,
  #eworldp .eworldp_totals_item-4,
  #eworldp .eworldp_totals_item-6 {
    display: none;
  }
}
