#hud-chart * {
  margin: 0 auto;
}

#hud-chart .outer-chart {
  width: 100%;
  max-width: 768px;
  height: auto;
  margin: 24px auto;
}

#hud-chart .chart {
  width: 100%;
  max-width: 648px;
  height: auto;
  margin: 0 auto;
}

#hud-chart .chart__title {
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
  letter-spacing: 0em;
  color: #000;
}

#hud-chart .chart__subtitle {
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
  letter-spacing: 0em;
  color: #000;
  margin-top: 4px;
}

#hud-chart .chart__sb-title {
  width: 40%;
}

#hud-chart .chart__b-select {
  text-align: end;
  margin-top: 8px;
}

#hud-chart .chart__select {
  /* Ocultamos el selector por defecto */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  /* Nuevos estilos */
  position: relative;
  width: 350px;
  height: 36px;
  border-radius: 32px;
  padding-left: 16px;
  /* Elemento flecha */
  background: url(../img/triangle-bottom-solid-18.svg) no-repeat right #f4f4f4;
  -webkit-appearance: none;
  background-position-x: calc(100% - 16px);
  border: 0px;
  cursor: pointer;
  /* Texto */
  font-style: normal;
  font-weight: normal;
  font-size: 15px;
  line-height: 16px;
}

#hud-chart .chart__select:focus-visible {
  outline: none;
}

#hud-chart .chart__select--double {
  /* Ocultamos el selector por defecto */
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  /* Nuevos estilos */
  position: relative;
  width: 160px;
  height: 32px;
  border-radius: 26px;
  padding-left: 12px;
  /* Elemento flecha */
  background: url(../img/triangle-bottom-solid-12.svg) no-repeat right #f4f4f4;
  -webkit-appearance: none;
  background-position-x: calc(100% - 12px);
  border: 0px;
  cursor: pointer;
  /* Texto */
  font-style: normal;
  font-weight: normal;
  font-size: 12px;
  line-height: 16px;
  /* Margen con elemento inferior */
  margin-top: 12px;
}

#hud-chart .chart__select--double:first-child {
  margin-right: 24px;
}

#hud-chart .chart__select--double:focus-visible {
  outline: none;
}

#hud-chart .chart__b-switch {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

#hud-chart .chart__switch {
  display: flex;
  width: 144px;
  justify-content: space-between;
}

#hud-chart .switch {
  position: relative;
  display: inline-block;
  width: 100px;
  height: 36px;
}

#hud-chart .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

#hud-chart .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #F4F4F4;
  -webkit-transition: .4s;
  transition: .4s;
}

#hud-chart .slider:before {
  position: absolute;
  content: "";
  height: 36px;
  width: 36px;
  left: 0px;
  bottom: 0px;
  background-color: #000;
  -webkit-transition: .4s;
  transition: .4s;
}

#hud-chart input:checked + .slider:before {
  background-color: #000;
}

#hud-chart input:checked + .slider:before {
  -webkit-transform: translateX(64px);
  -ms-transform: translateX(64px);
  transform: translateX(64px);
}

#hud-chart .slider.round {
  border-radius: 36px;
}

#hud-chart .slider.round:before {
  border-radius: 50%;
}

#hud-chart .chart__b-title--together {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

#hud-chart .chart__b-title--together .chart__b-select, #hud-chart .chart__b-title--together .chart__b-switch {
  margin-top: 0px;
}

#hud-chart .chart__legend {
  /* DisposiciÃ³n de elementos */
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

#hud-chart .chart__legend--item {
  position: relative;
  display: flex;
  align-items: center;
  height: 15px;
  font-style: normal;
  font-weight: normal;
  font-size: 12px;
  line-height: 10px;
  padding-left: 20px;
  margin-right: 16px;
  margin-top: 12px;
  /* Incorporamos aquÃ­ este atributo y no 'chart__legend' para que en dispositivos mÃ³viles funcione correctamente el flex-wrap */
}

#hud-chart .chart__legend--item:last-child {
  margin-right: 0px;
}

#hud-chart .chart__legend--item:before {
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: #ccc;
  /* Este es el atributo a modificar */
}

#hud-chart .chart__legend--item.one-color:before {
  background-color: #00827E;
}

#hud-chart .chart__legend--item.more-colors-first:before {
  background-color: #22505F;
}

#hud-chart .chart__legend--item.more-colors-second:before {
  background-color: #00827E;
}

#hud-chart .chart__legend--item.more-colors-third:before {
  background-color: #4CB8E8;
}

#hud-chart .chart__legend--item.more-colors-fourth:before {
  background-color: #919191;
}

#hud-chart .chart--double {
  display: flex;
  justify-content: space-between;
}

#hud-chart .chart__viz {
  width: 100%;
  max-width: 648px;
  height: 400px;
  margin: 12px auto 0px auto;
}

#hud-chart .chart--double .chart__viz {
  width: 48%;
  margin: 12px 0px 0px;
}

#hud-chart .chart__viz.large {
  height: 475px;
}

#hud-chart .tick text {
  font-weight: 300;
  font-size: 12px;
  line-height: 10px;
  color: #A3A3A3;
  cursor: default;
}

#hud-chart .tick line {
  stroke: #F0F0F0;
  stroke-width: 0.5px;
}

#hud-chart .line-special {
  stroke: #000 !important;
  stroke-width: 0.5px !important;
}

#hud-chart .chart__tooltip {
  position: absolute;
  /* Este elemento se modifica de forma dinÃ¡mica desde JS */
  opacity: 0;
  width: auto;
  max-width: 135px;
  height: auto;
  padding: 8px;
  background-color: #F4F4F4;
}

#hud-chart .chart__tooltip--title {
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
  line-height: 1.1;
  color: #000;
}

#hud-chart .chart__tooltip--text {
  font-style: normal;
  font-weight: 300;
  font-size: 12px;
  line-height: 1.1;
  color: #000;
  margin-top: 4px;
}

#hud-chart .data-source {
  font-size: 12px;
  font-weight: 400;
  line-height: 10px;
  margin-top: 8px;
}

#hud-chart .data-source .strong {
  font-weight: 700;
}

#hud-chart .data-note {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.1;
  margin-top: 8px;
  font-style: italic;
}

#hud-chart .b-btn__map {
  display: flex;
  justify-content: space-between;
}

#hud-chart .btn__map {
  background-color: #D4D4D4;
  padding: 8px;
  border: 0px;
  border-radius: 2px;
  cursor: pointer;
  color: #fff;
  font-size: 15px;
  margin-top: 16px;
  margin-right: 8px;
}

#hud-chart .btn__map:last-of-type {
  margin-right: 0px;
}

#hud-chart .btn__map.active {
  background-color: #081C29;
  color: #fff;
}

#hud-chart .legend__map {
  /* DisposiciÃ³n de elementos */
  display: none;
}

#hud-chart .legend__map.active {
  /* DisposiciÃ³n de elementos */
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  flex-wrap: wrap;
}

#hud-chart .legend__alone {
  justify-content: flex-start !important;
}

#hud-chart .legend--item {
  position: relative;
  display: flex;
  align-items: center;
  height: 18px;
  font-style: normal;
  font-weight: normal;
  font-size: 15px;
  line-height: 10px;
  padding-left: 8px;
  margin-right: 16px;
  margin-top: 24px;
  /* Incorporamos aquÃ­ este atributo y no 'chart__legend' para que en dispositivos mÃ³viles funcione correctamente el flex-wrap */
}

#hud-chart .legend__alone .legend--item {
  padding-left: 24px !important;
}

#hud-chart .legend--item:last-child {
  margin-right: 0px;
}

#hud-chart .legend--item:before {
  position: absolute;
  content: '';
  top: -1px;
  left: 0;
  width: 3px;
  height: 20px;
  background-color: #ccc;
}

#hud-chart .legend--item.zona-verde:before {
  background-color: #63DAAF;
  width: 20px;
}

#hud-chart .legend--item.calle-uno:before {
  background-color: #095677;
}

#hud-chart .legend--item.calle-dos:before {
  background-color: #9B918C;
}

#hud-chart .legend--item.calle-tres:before {
  background-color: #FEB531;
}

#hud-chart .legend--item.calle-cuatro:before {
  background-color: #9CBDD2;
}

#hud-chart .legend--item.calle-cinco:before {
  background-color: red;
}

#hud-chart .b-map {
  margin-top: 14px;
}

#hud-chart #mapboxBA, #hud-chart #mapboxSS {
  width: 100%;
  max-width: 768px;
  height: 500px;
}

@media only screen and (max-width: 525px) {
  #hud-chart {
    /* Adaptando el bloque exterior se adapta el bloque interior */
    /* GrÃ¡fico doble */
    /**** INTEGRACIÃ“N DE ESTILOS DE MAPAS *****/
  }
  #hud-chart .outer-chart {
    box-sizing: border-box;
    width: 100%;
    padding: 0px 8px;
  }
  #hud-chart .chart__sb-title {
    width: 100%;
  }
  #hud-chart .chart__b-select {
    text-align: start;
  }
  #hud-chart .chart__select, #hud-chart .chart__select--double {
    width: 100%;
  }
  #hud-chart .chart__b-switch {
    justify-content: center;
  }
  #hud-chart .chart__select--double:first-child {
    margin-right: 0px;
  }
  #hud-chart .chart__b-title--together {
    flex-direction: column;
    align-items: initial;
  }
  #hud-chart .chart__b-title--together .chart__b-select, #hud-chart .chart__b-title--together .chart__b-switch {
    margin-top: 8px;
  }
  #hud-chart .chart__legend {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  #hud-chart .chart--double {
    display: block;
  }
  #hud-chart .chart__viz {
    width: 100%;
    max-width: 648px;
    height: 390px;
    margin: 12px auto 0px auto;
  }
  #hud-chart .chart--double .chart__viz {
    width: 100%;
    margin: 12px auto 0px auto;
  }
  #hud-chart .legend__map.active {
    justify-content: flex-start;
  }
}

@media only screen and (max-width: 465px) {
  #hud-chart .b-btn__map {
    display: block;
  }
}
