:root {
  --cmap-white: #FFFFFF;
  --cmap-forest: #00402A;
  --cmap-green: #00A443;
  --cmap-green-1: #007F33;
  --cmap-green-4: #5BD38C;
  --cmap-green-45: rgba(91, 211, 140, 0.50);
  --cmap-sand: #FFF5EC;
  --cmap-sand-1: #FFFEFF;
  --cmap-sand-3: #D8CFC7;
  --cmap-sand-6: #615D5A;
  --cmap-sand-7: #3A3735;
  --cmap-sunset-2: #E3850D;
  --cmap-sky-2: #0792E5;
}

#cmap {
  width: 100%;
  max-width: 1280px;
  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(--cmap-sand-3);
  background: var(--cmap-white);
  padding: 16px;
}

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

#cmap strong {
  font-family: "IberPangeaText Bold" !important;
  font-weight: normal;
}

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

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

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

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

#cmap .cmap_map {
  width: 100%;
  margin: 0 auto;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
}

#cmap .cmap_map:before {
  content: '';
  display: block;
  width: 100%;
  height: 100%;
  background-image: url('/wcorp/gc/prod/es_ES/estaticos/mapa-clientes/images/bg-map.svg');
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center top;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  transform-origin: 11% 41%;
  transform: scale(1.65);
}

#cmap .cmap_map svg {
  position: relative;
  z-index: 2;
  transform-origin: 11% 41%;
  transform: scale(1.65);
}

#cmap .cmap_map path,
#cmap .cmap_map polygon,
#cmap .cmap_map circle {
  cursor: pointer;
}

#cmap .cmap_dot {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(1.6);
}

#cmap .cmap_area.is-hover,
#cmap .cmap_dot.is-hover {
  /* estilos hover */
}

#cmap .cmap_dot.is-hover {
  stroke: #FFFFFF;
}

#cmap .cmap_area.is-active,
#cmap .cmap_dot.is-active {
  /* estilos activo */
}

#cmap .cmap_area.is-active {
  fill: var(--cmap-forest)
}

#cmap .cmap_dropdown {
  display: block;
  position: relative;
  margin-bottom: 24px;
  z-index: 3;
}

#cmap .cmap_dropdown_toggle {
  width: 100%;
  min-height: 52px;
  padding: 16px 48px 16px 16px;
  border: 1px solid var(--cmap-green-1);
  border-radius: 15px;
  background: var(--cmap-sand-1);
  color: var(--cmap-sand-6) !important;
  font-family: "IberPangeaText Medium" !important;
  font-size: 16px;
  line-height: 1.25;
  font-style: normal;
  font-weight: normal;
  text-align: left;
  position: relative;
  cursor: pointer;
}

#cmap .cmap_dropdown_icon {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 12px;
  height: 12px;
  border-right: 1.5px solid var(--cmap-green);
  border-bottom: 1.5px solid var(--cmap-green);
  transform: translateY(-65%) rotate(45deg);
  transition: transform .25s ease;
}

#cmap .cmap_dropdown_panel {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: 0;
  overflow: hidden;
  border-radius: 0 0 18px 18px;
  background: var(--cmap-white);
}

#cmap .cmap_dropdown_list {
  max-height: 170px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 0 8px 0 0;
}

#cmap .cmap_dropdown_list::-webkit-scrollbar {
  width: 8px;
}

#cmap .cmap_dropdown_list::-webkit-scrollbar-track {
  background: var(--cmap-sand-3);
  border-radius: 8px;
}

#cmap .cmap_dropdown_list::-webkit-scrollbar-thumb {
  background: var(--cmap-green);
  border-radius: 8px;
}

#cmap .cmap_dropdown_item {
  cursor: pointer;
  padding: 16px;
  border-bottom: 1px solid var(--cmap-sand-3);
  color: var(--cmap-sand-6) !important;
  font-family: "IberPangeaText" !important;
  font-size: 16px;
  line-height: 1.25;
  font-style: normal;
  font-weight: normal;
  text-align: left;
}

#cmap .cmap_dropdown_item:last-child {
  border-bottom: none;
}

#cmap .cmap_dropdown.is-open .cmap_dropdown_toggle {
  background: var(--cmap-green-1);
  color: var(--cmap-white) !important;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

#cmap .cmap_dropdown.is-open .cmap_dropdown_icon {
  border-color: var(--cmap-white);
  transform: translateY(-35%) rotate(-135deg);
}

#cmap .cmap_dropdown.is-open .cmap_dropdown_panel {
  max-height: 192px;
  border: 1px solid var(--cmap-green-1);
  border-top: 0;
  padding: 8px 8px 16px 8px;
}

#cmap .cmap_modal {
  border-radius: 16px;
  border: 1px solid var(--cmap-sand-3);
  background: var(--cmap-sand-1);
  padding: 16px;
  flex-wrap: wrap;
  display: none;
}

#cmap .cmap_modal.is-active {
  display: flex;
}

#cmap .cmap_logo {
  width: auto;
  height: 32px;
  margin-right: auto;
}

#cmap .cmap_close {
  display: block;
  width: 32px;
  height: 32px;
  text-align: left;
  text-indent: -9999px;
  overflow: hidden;
  background-image: url('/wcorp/gc/prod/es_ES/estaticos/mapa-clientes/images/ico-cerrar.svg');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  margin-left: auto;
}

#cmap .cmap_content {
  width: 100%;
  max-height: 530px;
  overflow-y: auto;
  margin-top: 24px;
}

#cmap .cmap_content::-webkit-scrollbar {
  width: 8px;
}

#cmap .cmap_content::-webkit-scrollbar-track {
  background: var(--cmap-sand-3);
  border-radius: 8px;
}

#cmap .cmap_content::-webkit-scrollbar-thumb {
  background: var(--cmap-green);
  border-radius: 8px;
}

#cmap .cmap_text {
  color: var(--cmap-sand-7) !important;
  font-size: 16px;
  line-height: 1.25;
  text-align: left;
  font-family: "IberPangea" !important;
  font-style: normal;
  font-weight: normal;
  margin-bottom: 16px;
}

#cmap .cmap_text:first-child {
  font-size: 18px;
  line-height: 1.33;
  margin-bottom: 24px;
}

#cmap .cmap_info .cmap_text:first-child {
  margin-bottom: 16px;
}

#cmap .cmap_text strong {
  font-family: "IberPangea Medium" !important;
  font-style: normal;
  font-weight: normal;
}

#cmap .cmap_text:first-child + .cmap_info {
  margin-top: -8px;
}

#cmap .cmap_info {
  width: 100%;
  border-radius: 8px;
  background: var(--cmap-sand);
  padding: 16px;
}

#cmap .cmap_info + .cmap_text {
  margin-top: 16px;
}

#cmap .cmap_data {
  border-top: 1px solid var(--cmap-sand-3);
  border-bottom: 1px solid var(--cmap-sand-3);
  padding: 16px 0;
}

#cmap .cmap_data:first-child {
  border-top: none;
  border-bottom: none;
  padding: 0;
}

#cmap .cmap_data + .cmap_text {
  margin-top: 16px;
}

#cmap .cmap_list img {
  max-width: 24px;
}

#cmap .cmap_list-title {
  color: var(--cmap-green-1) !important;
  font-family: "IberPangeaText Bold" !important;
  font-size: 16px;
  line-height: 1.25;
  font-style: normal;
  font-weight: normal;
  text-align: left;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

#cmap .cmap_list-title a {
  color: var(--cmap-sand-7) !important;
  font-family: "IberPangeaText" !important;
  font-size: 16px;
  line-height: 1.25;
  font-style: normal;
  font-weight: normal;
  text-align: left;
  text-decoration: none;
}

#cmap .cmap_list-title a:hover {
  text-decoration: underline;
}

#cmap .cmap_list-title em {
  color: var(--cmap-sand-7) !important;
  font-family: "IberPangeaText" !important;
  font-size: 16px;
  line-height: 1.25;
  font-style: italic;
  font-weight: normal;
  text-align: left;
  text-decoration: none;
}

#cmap .cmap_text-info {
  color: var(--cmap-sand-7) !important;
  font-family: "IberPangeaText" !important;
  font-size: 16px;
  line-height: 1.25;
  font-style: normal;
  font-weight: normal;
  text-align: left;
  width: 100%;
}

#cmap .cmap_text-info a {
  color: var(--cmap-green-1) !important;
  font-family: "IberPangeaText Bold" !important;
  text-decoration: none;
}

#cmap .cmap_text-info a:hover {
  text-decoration: underline;
}

#cmap .cmap_list-item {
  color: var(--cmap-sand-7) !important;
  font-family: "IberPangeaText" !important;
  font-size: 16px;
  line-height: 1.25;
  font-style: normal;
  font-weight: normal;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

#cmap .cmap_list-item a {
  color: var(--cmap-sand-7) !important;
  text-decoration: none;
}

#cmap .cmap_list-item a:hover {
  text-decoration: underline;
}

#cmap .cmap_list-item-location {
  align-items: flex-start;
}

#cmap .cmap_list-item-location a {
  color: var(--cmap-green-1) !important;
}

#cmap .cmap_text + .cmap_social {
  margin-top: -28px;
}

#cmap .cmap_social {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 16px;
}

#cmap .cmap_social-logo {
  width: 100%;
  color: var(--cmap-green-1) !important;
  font-family: "IberPangeaText" !important;
  font-size: 16px;
  line-height: 1.25;
  font-style: normal;
  font-weight: normal;
  text-align: left;
  text-decoration: none;
  margin-bottom: 8px;
}

#cmap .cmap_social-logo:hover {
  text-decoration: underline;
}

#cmap .cmap_social-item {
  text-decoration: none;
}

#cmap .cmap_social-item img {
  max-width: 30px;
}

#cmap .cmap_list-subtitle {
  color: var(--cmap-forest) !important;
  font-family: "IberPangeaText Bold" !important;
  font-size: 16px;
  line-height: 1.25;
  font-style: normal;
  font-weight: normal;
  text-align: left;
  margin-bottom: 8px;
}

#cmap .cmap_list-link {
  margin-bottom: 16px;
}

#cmap .cmap_list-link a {
  color: var(--cmap-green-1) !important;
  font-family: "IberPangeaText" !important;
  font-size: 16px;
  line-height: 1.25;
  font-style: normal;
  font-weight: normal;
  text-align: left;
  text-decoration: none;
}

#cmap .cmap_list-link a:hover {
  text-decoration: underline;
}

#cmap .cmap_list:nth-of-type(2) li:last-child {
  margin-bottom: 0;
}

#cmap .cmap_link a {
  color: var(--cmap-green-1) !important;
  font-family: "IberPangeaText" !important;
  font-size: 16px;
  line-height: 1.25;
  font-style: normal;
  font-weight: normal;
  text-align: left;
  text-decoration: none;
}

#cmap .cmap_link a:hover {
  text-decoration: underline;
}

@media (max-width: 699px) {

  #cmap.has-active-modal .cmap_map {
    display: none;
  }

}


@media (min-width: 700px) {

  #cmap {
    padding: 24px;
  }

  #cmap .cmap_data {
    display: flex;
    flex-wrap: wrap;
    /* align-items: flex-start; */
    justify-content: space-between;
    gap: 32px;
  }
  
  #cmap .cmap_list {
    flex: 1;
  }

  #cmap .cmap_list-expand {
    width: 100%;
    flex: auto;
  }

  #cmap .cmap_list:nth-of-type(1) li:last-child {
    margin-bottom: 0;
  }

  #cmap .cmap_list:nth-of-type(2) {
    padding-left: 16px;
    border-left: 1px solid var(--cmap-sand-3);
  }

  #cmap .cmap_modal {
    margin-top: 16px;
  }

  #cmap .cmap_content {
    max-height: 230px;
  }

  #cmap .cmap_social {
    align-items: center;
    justify-content: flex-start;
  }

  #cmap .cmap_social-logo {
    width: auto;
    margin-top: auto;
    margin-bottom: auto;
  }

  #cmap .cmap_social-item img {
    max-width: 40px;
  }
  
  #cmap .cmap_social-item {
    border-radius: 100%;
    border: 1px solid transparent;
  }

  #cmap .cmap_social-item:hover {
    border: 1px solid var(--cmap-green-1);
  }

  #cmap .cmap_text-info {
    margin-top: -16px;
  }

  #cmap .cmap_dot {
    transform: scale(1.2);
    transition: all 1.5s;
  }

  #cmap.has-active-modal .cmap_dot {
    opacity: 0;
  }

  #cmap .cmap_map svg,
  #cmap .cmap_map:before {
    transition: all 1.5s;
  }

  #cmap[data-area="norte-america"] .cmap_map svg,
  #cmap[data-area="norte-america"] .cmap_map:before {
    transform-origin: -5% 10%;
    transform: scale(1.8);
  }

  #cmap[data-area="mexico"] .cmap_map svg,
  #cmap[data-area="mexico"] .cmap_map:before {
    transform-origin: -5% 55%;
    transform: scale(1.8);
  }

  #cmap[data-area="brasil"] .cmap_map svg,
  #cmap[data-area="brasil"] .cmap_map:before {
    transform-origin: 40% 100%;
    transform: scale(1.8);
  }

  #cmap[data-area="portugal"] .cmap_map svg,
  #cmap[data-area="portugal"] .cmap_map:before,
  #cmap[data-area="espana"] .cmap_map svg,
  #cmap[data-area="espana"] .cmap_map:before {
    transform-origin: 55% 30%;
    transform: scale(3.5);
  }

  #cmap[data-area="francia"] .cmap_map svg,
  #cmap[data-area="francia"] .cmap_map:before,
  #cmap[data-area="italia"] .cmap_map svg,
  #cmap[data-area="italia"] .cmap_map:before,
  #cmap[data-area="reino-unido"] .cmap_map svg,
  #cmap[data-area="reino-unido"] .cmap_map:before,
  #cmap[data-area="alemania"] .cmap_map svg,
  #cmap[data-area="alemania"] .cmap_map:before {
    transform-origin: 58% 30%;
    transform: scale(3.5);
  }

}

@media (min-width: 1280px) {

  #cmap {
    padding: 0;
    border: none;
    border-radius: 0;
  }

  #cmap .cmap_map svg,
  #cmap .cmap_map:before {
    transform-origin: left top;
    transform: scale(1.0);
  }

  #cmap .cmap_dot {
    transform: scale(1.0);
  }

  #cmap .cmap_dropdown {
    display: none; 
  }

  #cmap .cmap_modal {
    margin-top: 0;
    display: flex;
    width: 50%;
    max-width: 670px;
    position: absolute;
    top: 0;
    right: -681px;
    z-index: 9;
    transition: all 1s;
  }

  #cmap .cmap_modal.is-active {
    right: 0;
  }

  #cmap .cmap_content {
    max-height: 569px;
  }

}
