@font-face {
  font-family: 'IberPangea';
  src: url('/o/iberdrola-corporativo-theme/fonts/iberpangea/IberPangea-Bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'IberPangea';
  src: url('/o/iberdrola-corporativo-theme/fonts/iberpangea/IberPangea-BoldItalic.woff2') format('woff2');
  font-weight: bold;
  font-style: italic;
}

@font-face {
  font-family: 'IberPangea';
  src: url('/o/iberdrola-corporativo-theme/fonts/iberpangea/IberPangea-Italic.woff2') format('woff2');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'IberPangea';
  src: url('/o/iberdrola-corporativo-theme/fonts/iberpangea/IberPangea-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'IberPangea';
  src: url('/o/iberdrola-corporativo-theme/fonts/iberpangea/IberPangea-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'IberPangea';
  src: url('/o/iberdrola-corporativo-theme/fonts/iberpangea/IberPangea-LightItalic.woff2') format('woff2');
  font-weight: 300;
  font-style: italic;
}

@font-face {
  font-family: 'IberPangea';
  src: url('/o/iberdrola-corporativo-theme/fonts/iberpangea/IberPangea-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'IberPangea';
  src: url('/o/iberdrola-corporativo-theme/fonts/iberpangea/IberPangea-SmBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: 'IberPangea';
  src: url('/o/iberdrola-corporativo-theme/fonts/iberpangea/IberPangea-SmBoldItalic.woff2') format('woff2');
  font-weight: 600;
  font-style: italic;
}

:root {
  --algorithm-green: #00A443;
  --algorithm-brown: #615D5A;
  --algorithm-white: #FFFFFF;
  --algorithm-border: #D8CFC7;
  --algorithm-green-dark: #00402A;
  --algorithm-orange: #FF9C1A;
  --algorithm-orange-light: #FFF5EC;
}

#algorithm {
  width: 100%;
  max-width: 980px;
  padding: 29px 26px;
  margin: 20px auto;
  text-align: left;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 15px;
  background-color: var(--algorithm-orange-light);
}

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

#algorithm h2 {
  margin-top: 0 !important;
}

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

#algorithm ul li:before {
  content: none !important;
  display: none !important;
}

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

#algorithm .algorithm_title {
  color: var(--algorithm-green) !important;
  font-size: 32px;
  line-height: 1.3;
  font-style: normal;
  font-weight: 400;
  text-align: left;
  width: 100%;
  max-width: 556px;
  margin: 0 auto 31px 0;
}

#algorithm .algorithm_title strong {
  font-weight: 600;
}

#algorithm .algorithm_grid {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

#algorithm .algorithm_item {
  width: 100%;
  margin-bottom: 27px;
}

#algorithm .algorithm_item:last-child {
  margin-bottom: 0;
}

#algorithm .algorithm_text {
  border-radius: 15px;
  padding: 20px 25px 40px 20px;
  border: 1px solid var(--algorithm-border);
  background-color: var(--algorithm-white);
}

#algorithm .algorithm_subtitle {
  color: var(--algorithm-green) !important;
  font-size: 20px;
  line-height: 1.2;
  font-style: normal;
  font-weight: 600;
  text-align: left;
  margin-bottom: 10px;
}

#algorithm .algorithm_description {
  color: var(--algorithm-brown);
  font-size: 16px;
  line-height: 1.2;
  font-style: normal;
  font-weight: 400;
  text-align: left;
}

#algorithm .algorithm_description strong {
  font-weight: 600;
}

#algorithm .algorithm_image {
  max-width: 95%;
  margin: -25px auto 0;
  position: relative;
}

@media (min-width: 700px) {

  #algorithm .algorithm_title {
    margin-bottom: 37px;
  }

  #algorithm .algorithm_grid {
    max-width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  #algorithm .algorithm_item {
    max-width: calc(50% - 10px);
    display: flex;
    flex-direction: column;
  }

  #algorithm .algorithm_item:nth-of-type(odd) {
    margin-right: auto;
  }

  #algorithm .algorithm_item:nth-of-type(5) {
    margin-bottom: 0;
  }

  #algorithm .algorithm_text {
    min-height: 216px;
    padding: 20px 23px 25px 20px;
  }

  #algorithm .algorithm_image {
    width: auto;
    max-width: none;
    margin-top: -15px;
    margin-bottom: auto;
  }

}

@media (min-width: 1060px) {

  #algorithm .algorithm_item:nth-of-type(1),
  #algorithm .algorithm_item:nth-of-type(2),
  #algorithm .algorithm_item:nth-of-type(4),
  #algorithm .algorithm_item:nth-of-type(5) {
    margin-right: auto;
  }

  #algorithm .algorithm_item:nth-of-type(3),
  #algorithm .algorithm_item:nth-of-type(6) {
    margin-right: 0;
  }

  #algorithm .algorithm_item {
    max-width: 300px;
  }

  #algorithm .algorithm_text {
    min-height: 196px;
  }

  #algorithm .algorithm_image {
    width: 85%;
  }
  
  #column-2 #algorithm .algorithm_item:nth-of-type(1),
  #column-2 #algorithm .algorithm_item:nth-of-type(2),
  #column-2 #algorithm .algorithm_item:nth-of-type(4),
  #column-2 #algorithm .algorithm_item:nth-of-type(5),
  #column-2 #algorithm .algorithm_item:nth-of-type(3),
  #column-2 #algorithm .algorithm_item:nth-of-type(6) {
    margin-right: 0;
  }

  #column-2 #algorithm .algorithm_item:nth-of-type(odd) {
    margin-right: auto;
  }
  
  #column-2 #algorithm .algorithm_item {
    max-width: calc(50% - 10px);
  }
  
  #column-2 #algorithm .algorithm_text {
    min-height: 216px;
  }
  
  #column-2 #algorithm .algorithm_image {
    width: auto;
    max-width: none;
  }

}