@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;
}

:root {
  --cprofile-green: #00A443;
  --cprofile-green-light: #5BD38C;
  --cprofile-forest: #00402A;
  --cprofile-sand: #FFF5EC;
  --cprofile-grey: #615D5A;
  --cprofile-yellow: #FFCB2C;
  --cprofile-orange: #FF9C1A;
  --cprofile-border: #D8CFC7;
  --cprofile-white: #FFFFFF;
}

#cprofile {
  width: 100%;
  margin: 20px auto;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;
  border-radius: 15px;
  background: var(--cprofile-white);
  padding: 27px 22px;
  font-family: 'IberPangea'; 
  display: flex;
  flex-direction: column; 
  overflow: hidden;
}

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

#cprofile .cprofile_title {
  color: var(--cprofile-green) !important;
  font-size: 36px;
  line-height: 1.3;
  font-style: normal;
  font-weight: 500;
  text-align: left;
  margin-bottom: 44px;
}

#cprofile .cprofile_subtitle {
  color: var(--cprofile-green) !important;
  font-size: 21px;
  line-height: 1;
  font-style: normal;
  font-weight: 500;
  text-align: left;
  width: 100%;
  margin-bottom: 15px;
}

#cprofile .cprofile_legend {
  list-style: none;
  margin: 0;
  padding: 0;
}

#cprofile .cprofile_legend li {
  list-style: none;
  color: var(--cprofile-grey);
  font-size: 16px;
  line-height: 1.5;
  font-style: normal;
  font-weight: 300;
  text-align: left;
  margin-bottom: 0;
}

#cprofile .cprofile_legend li strong {
  display: block;
  color: var(--cprofile-green);
  font-weight: 300;
  line-height: 0.9;
}

#cprofile .cprofile_composition,
#cprofile .cprofile_antiquity,
#cprofile .cprofile_capabilities {
  border-radius: 10px;
  border: 1px solid var(--cprofile-border);
  padding: 13px 13px 17px 20px;
  margin-bottom: 19px;
}

#cprofile .cprofile_composition img {
  display: block;
  margin-bottom: 18px;
}

#cprofile .cprofile_composition .cprofile_legend li:before,
#cprofile .cprofile_antiquity .cprofile_legend li:before {
  content: '';
  display: inline-block;
  vertical-align: middle;
  width: 13px;
  height: 12px;
  margin-right: 12px;
  border-radius: 2px;
  overflow: hidden;
}

#cprofile .cprofile_composition .cprofile_legend li:nth-of-type(1):before {
  background-color: var(--cprofile-green-light);
}

#cprofile .cprofile_composition .cprofile_legend li:nth-of-type(2):before,
#cprofile .cprofile_antiquity .cprofile_legend li:nth-of-type(1):before {
  background-color: var(--cprofile-green);
}

#cprofile .cprofile_composition .cprofile_legend li:nth-of-type(3):before,
#cprofile .cprofile_antiquity .cprofile_legend li:nth-of-type(2):before {
  background-color: var(--cprofile-yellow);
}

#cprofile .cprofile_composition .cprofile_legend li:nth-of-type(4):before,
#cprofile .cprofile_antiquity .cprofile_legend li:nth-of-type(3):before {
  background-color: var(--cprofile-orange);
}

#cprofile .cprofile_antiquity {
  display: flex;
  flex-wrap: wrap;
}

#cprofile .cprofile_antiquity .cprofile_legend {
  margin-left: 20px;
  margin-bottom: -4px;
  margin-top: auto;
}

#cprofile .cprofile_antiquity .cprofile_subtitle,
#cprofile .cprofile_genre .cprofile_subtitle {
  margin-bottom: 25px;
}

#cprofile .cprofile_genre {
  width: 100%;
  border-radius: 10px;
  background-color: var(--cprofile-sand);
  padding: 13px 17px 20px;
  margin-bottom: 19px;
}

#cprofile .cprofile_genre_graph { 
  display: flex;
  flex-wrap: wrap;
  max-width: 290px;
  margin: 0 auto;
  padding-bottom: 33px;
  border-bottom: 1px solid var(--cprofile-border);
  margin-bottom: 16px;
}

#cprofile .cprofile_genre_graph img { 
  max-width: 216px;
  width: calc(100% - 76px);
  margin-bottom: auto;
  margin-top: auto;
}

#cprofile .cprofile_genre_graph .cprofile_legend {
  margin-left: auto;
  margin-right: 0;
  margin-bottom: auto;
  margin-top: 36px;
}

#cprofile .cprofile_genre_graph .cprofile_legend li:first-child {
  margin-bottom: 18px;
}

#cprofile .cprofile_genre_flags {
  padding-bottom: 55px;
}

#cprofile .cprofile_genre_flags .cprofile_subtitle {
  margin-bottom: 41px;
}

#cprofile .cprofile_flags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

#cprofile .cprofile_flags li {
  list-style: none;
  color: var(--cprofile-grey);
  font-size: 16px;
  line-height: 1;
  font-style: normal;
  font-weight: 300;
  text-align: center;
  margin-bottom: 16px;
  width: 33.33%;
}

#cprofile .cprofile_flags li img {
  display: block;
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
}

#cprofile .cprofile_bars {
  list-style: none;
  margin: 0;
  padding: 0;
}

#cprofile .cprofile_bars li {
  list-style: none;
  color: black;
  font-size: 16px;
  line-height: 20px;
  font-style: normal;
  font-weight: 300;
  text-align: left;
  margin-bottom: 14px;
}

#cprofile .cprofile_bars span {
  display: block;
  margin-bottom: 8px;
}

#cprofile .cprofile_bars img {
  display: block;
  width: 100%;
}

#cprofile .cprofile_capabilities {
  width: 100%;
  padding-top: 23px;
  padding-bottom: 5px;
}

#cprofile .cprofile_capabilities .cprofile_subtitle {
  margin-bottom: 21px;
}

#cprofile .cprofile_training {
  display: flex;
  flex-wrap: wrap;
  padding-top: 4px;
}

#cprofile .cprofile_training .cprofile_subtitle {
  margin-bottom: 19px;
}

#cprofile .cprofile_training picture {
  order: 1;
  max-width: 181px;
  margin-left: auto;
  margin-top: 7px;
}

#cprofile .cprofile_training .cprofile_legend {
  width: calc(100% - 185px);
}

#cprofile .cprofile_training .cprofile_legend li {
  min-height: 50px;
}

#cprofile .cprofile_note {
  color: var(--cprofile-grey);
  font-size: 12px;
  font-style: italic;
  text-align: left;
  margin-top: 20px;
}

@media (min-width: 728px) {

  #cprofile {
    max-width: 980px;
    flex-direction: row;
    flex-wrap: wrap;
  }

  #cprofile .cprofile_title {
    margin-bottom: 37px;
  }

  #cprofile .cprofile_composition {
    width: 65%;
    max-width: 568px;
    display: flex;
    flex-wrap: wrap;
    padding-left: 26px;
    padding-top: 16px;
  }

  #cprofile .cprofile_composition .cprofile_legend {
    width: calc(100% - 212px);
    margin-top: auto;
    margin-left: 23px;
    margin-bottom: 15px;
  }

  #cprofile .cprofile_antiquity {
    width: 34%;
    max-width: 280px;
    margin-right: 0;
    margin-left: auto;
  }

  #cprofile .cprofile_antiquity .cprofile_subtitle {
    margin-bottom: -15px;
  }

  #cprofile .cprofile_antiquity .cprofile_legend {
    margin-bottom: 12px;
  }

  #cprofile .cprofile_bars img {
    max-width: 281px;
    margin-left: auto;
  }

  #cprofile .cprofile_bars li {
    display: flex;
  }

  #cprofile .cprofile_training .cprofile_legend {
    width: 100%;
    order: 1;
    display: flex;
    justify-content: space-between;
  }

  #cprofile .cprofile_training .cprofile_legend {
    margin-left: 20px;
    margin-right: 20px;
  }

  #cprofile .cprofile_training .cprofile_legend li {
    width: 25%;
    max-width: 147px;
    min-height: 20px;
    text-align: center;
    margin: 0 auto;
  }

  #cprofile .cprofile_training picture,
  #cprofile .cprofile_training picture img {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  #cprofile .cprofile_genre {
    display: flex;
    padding-top: 35px;
    padding-bottom: 56px;
    padding-left: 46px;
    padding-right: 46px;
  }

  #cprofile .cprofile_genre_graph {
    min-width: 45%;
    padding-right: 5%;
    margin-right: 5%;
    border-right: 1px solid var(--cprofile-border);
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
    margin-left: 0;
  }

  #cprofile .cprofile_genre_graph .cprofile_legend {
    margin-top: 35px;
  }

  #cprofile .cprofile_genre_flags {
    padding-bottom: 0;
  }

  #cprofile .cprofile_genre_graph img {
    width: calc(100% - 82px);
    margin-bottom: auto;
    margin-top: 6px;
  }
  
}

@media (min-width: 980px) {

  #cprofile {
    padding-left: 49px;
    padding-right: 49px;
  }

  #cprofile .cprofile_genre_graph img {
    min-width: 238px;
  }

  #cprofile .cprofile_genre_graph {
    max-width: 50%;
    margin-left: 0;
  }

  #cprofile .cprofile_genre_graph .cprofile_legend {
    margin-left: 20px;
    margin-right: auto;
    margin-bottom: auto;
    margin-top: 67px;
  }

  #cprofile .cprofile_antiquity .cprofile_subtitle,
  #cprofile .cprofile_genre .cprofile_subtitle {
    margin-bottom: 21px;
  }

  #cprofile .cprofile_capabilities {
    padding-left: 35px;
    padding-right: 48px;
    margin-bottom: 26px;
  }

  #cprofile .cprofile_note {
    font-size: 14px;
  }

}
