/* =================================================
   STYLES.CSS – COMPLETO, SEPARADO Y ORDENADO
   (respeta 100% el CSS original)
================================================= */

/* =====================
   IMPORTS
===================== */
@import url("https://fonts.googleapis.com/css2?family=Cabin:wght@400;600&family=Montserrat:wght@500;600;700;900&display=swap");

/* =====================
   VISIBILIDAD
===================== */
@media screen and (min-width: 1025px) {
  .mobile-only {
    display: none !important;
  }
}

@media screen and (max-width: 1024px) {
  .desktop-only {
    display: none !important;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  left: -9999px;
  top: -9999px;
}

.ib {
  display: inline-block;
}

.parallax {
  will-change: transform;
}

/* =================================================
   SECTION: TERRITORIOS / MAPA INTERACTIVO
================================================= */

.section--territorios .section--territorios__title {
  font-family: "Montserrat", sans-serif;
  font-size: 1.875rem;
  margin-top: 80px;
}

.section--territorios .section--territorios__title strong {
  font-weight: 700;
}

@media screen and (max-width: 600px) {
  .section--territorios .section--territorios__title {
    margin-top: 0;
    font-size: 1.5625rem;
  }
}

.section--territorios p {
  font-size: 1.25rem;
  font-weight: 600;
}

@media screen and (max-width: 600px) {
  .section--territorios p {
    font-size: 0.9375rem;
    font-weight: 500;
  }
}

.section--territorios b {
  font-weight: inherit;
}

/* =====================
   CONTADOR
===================== */

.section--territorios .section--territorios__count {
  font-family: "Montserrat", sans-serif;
  font-size: 3.75rem;
  font-weight: 700;
  line-height: 1;
  padding-left: 2rem;
}

@media screen and (max-width: 1024px) {
  .section--territorios .section--territorios__count {
    font-size: 2.875rem;
    letter-spacing: -0.025em;
    padding: 0;
    display: block;
    text-align: center;
  }
}

.section--territorios .section--territorios__count .counter {
  display: block;
  font-size: 10.625rem;
  font-weight: 900;
  text-indent: -0.625rem;
  margin-left: -2rem;
}

@media screen and (max-width: 600px) {
  .section--territorios .section--territorios__count .counter {
    font-size: 8.25rem;
    text-indent: initial;
    margin-left: auto;
  }
}

.section--territorios .section--territorios__count .counter .counter_value {
  display: inline-block;
  text-align: left;
}

/* =====================
   TEXTO + LINEA
===================== */

.section--territorios__text {
  position: relative;
}

.section--territorios__text .line {
  position: absolute;
  top: 100%;
  right: 145px;
}

/* =====================
   DEFINICIONES (DL)
===================== */

.section--territorios dl {
  margin: 0;
  margin-top: 80px;
}

.section--territorios dt,
.section--territorios dd {
  padding: 0;
  margin: 0;
  font-weight: 600;
  width: 0;
  height: 0;
  overflow: hidden;
  position: absolute;
  left: -99999px;
  opacity: 0;
  transform: translateX(-15px);
}

.section--territorios dt {
  font-size: 1.875rem;
  color: #1D1A9B;
  margin-bottom: 0.25em;
}

.section--territorios dt.selected,
.section--territorios dt.selected + dd {
  width: unset;
  height: unset;
  overflow: unset;
  position: unset;
  left: unset;
  transition: opacity 400ms ease-in-out,
              transform 400ms ease-out;
  opacity: 1;
  transform: none;
}

/* =====================
   MAPA INTERACTIVO
===================== */

.section--territorios .interactive-map {
  display: flex;
}

.section--territorios .interactive-map img {
  display: block;
  margin: 0 auto;
}

.section--territorios .interactive-map__map {
  padding: 0 10px;
  margin-right: 60px;
}

@media screen and (max-width: 1280px) {
  .section--territorios .interactive-map__map {
    margin-right: 0;
    max-width: 65%;
  }
}

.section--territorios .interactive-map__info {
  flex: 1;
}

/* =====================
   LISTADO DE UBICACIONES
===================== */

.section--territorios .interactive-map__locations ul,
.section--territorios .interactive-map__locations li {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.section--territorios .interactive-map__locations li {
  margin-bottom: 0.5em;
}

.section--territorios .interactive-map__locations ul {
  padding: 1.5em 20px 1.5em 0;
  min-height: 100%;
}

.section--territorios
.interactive-map__locations
ul::after {
  content: "";
  position: absolute;
  height: 100%;
  right: 6px;
  top: 0;
  border-right: 1px solid #000;
  opacity: 0.1;
}

/* =====================
   SCROLL
===================== */

.section--territorios
.interactive-map__locations
.scrollable {
  height: 50vh;
  overflow: auto;
  position: relative;
}

.section--territorios
.interactive-map__locations
.scrollable::before {
  content: "";
  height: 2em;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(
    180deg,
    #fff 0%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
}

.section--territorios
.interactive-map__locations
.scrollable::after {
  content: "";
  height: 4em;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    #fff 100%
  );
}

/* =====================
   SVG MAPA
===================== */

.section--territorios #map-svg {
  height: 645px;
}

@media screen and (max-width: 1280px) {
  .section--territorios #map-svg {
    width: 100%;
  }
}

.section--territorios #map-svg path {
  fill: #f36e32;
}

.section--territorios #map-svg #markers {
  pointer-events: none;
}

.section--territorios #map-svg #markers path {
  fill: #282525;
}

.section--territorios #map-svg .province--active {
  cursor: pointer;
  transition: fill 200ms ease-out;
}

.section--territorios #map-svg .province--active:hover {
  fill: #a84310;
}

.section--territorios #map-svg .province--selected {
  fill: #1D1A9B;
  pointer-events: none;
}

/* =====================
   SELECTOR (MOBILE)
===================== */

.section--territorios__selector
.section--territorios__selector__tip {
  font-weight: 700;
  color: #1D1A9B;
  margin: 2em auto;
}

.section--territorios__selector .select-wrapper {
  position: relative;
  border: 2px solid #000;
  border-radius: 8px;
  overflow: hidden;
}

.section--territorios__selector
.select-wrapper
.select-button {
  pointer-events: none;
  display: flex;
  position: absolute;
  width: 40px;
  height: 100%;
  right: 0;
  top: 0;
  padding: 0.5em 10px;
  background-color: #fff;
}

.section--territorios__selector
.select-wrapper
select {
  font-size: 0.9375rem;
  font-weight: 700;
  display: block;
  background-color: #fff;
  border: 0;
  width: 100%;
  padding: 0.5em 10px;
}

/* =====================
   RESULTADOS
===================== */

.section--territorios__selector__results ul,
.section--territorios__selector__results li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.section--territorios__selector__results ul {
  font-size: 0.9375rem;
  margin-top: 2em;
  column-count: 3;
  display: none;
}

@media screen and (max-width: 600px) {
  .section--territorios__selector__results ul {
    column-count: 2;
  }
}

.section--territorios__selector__results ul.selected {
  display: block;
  animation: list-in 400ms ease-in-out;
}

.section--territorios__selector__results li {
  font-weight: normal;
}

/* =====================
   ANIMACIÓN LISTA
===================== */

@keyframes list-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


/* =====================
   ANIMACIÓN LISTA
===================== */

@keyframes list-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
