/* IngSoft V80.99.11 — HARD FIX REAL DEL SELECTOR GEOGRÁFICO
   Motivo: las reglas v80.99.9/10 estaban condicionadas a body.page-observatorio,
   pero la página publicada conserva body.page-home. Esta capa NO depende de body class.
   Alcance: solo Observatorio / #obsLocationPanel y su contenedor inmediato. */

:root{
  --geo11-panel-max: 640px;
  --geo11-gap: 12px;
  --geo11-bg-a: rgba(5, 22, 42, .985);
  --geo11-bg-b: rgba(8, 40, 76, .96);
  --geo11-border: rgba(123, 206, 252, .48);
  --geo11-cyan: #25c9f4;
  --geo11-blue: #168fe8;
  --geo11-white: #ffffff;
  --geo11-ink: #061426;
}

/* Contención horizontal del bloque hero del Observatorio, sin depender de body.page-observatorio. */
html body .observatorio-hero,
html body .observatorio-hero--advanced,
html body .hero.observatorio-hero{
  overflow-x: clip !important;
  padding-inline: clamp(28px, 4vw, 70px) !important;
}

html body .observatorio-hero > .wide,
html body .observatorio-hero .wide.hero-grid,
html body .observatorio-hero .hero-grid.observatorio-grid,
html body .observatorio-hero .observatorio-grid{
  width: min(1400px, calc(100vw - clamp(56px, 8vw, 140px))) !important;
  max-width: min(1400px, calc(100vw - clamp(56px, 8vw, 140px))) !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, var(--geo11-panel-max)) !important;
  gap: clamp(32px, 4vw, 58px) !important;
  align-items: center !important;
  box-sizing: border-box !important;
  overflow: visible !important;
}

html body .observatorio-hero .v96-observatory-right,
html body .observatorio-hero .hero-grid.observatorio-grid > aside,
html body .observatorio-hero .observatorio-grid > aside{
  width: 100% !important;
  max-width: var(--geo11-panel-max) !important;
  min-width: 0 !important;
  justify-self: end !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

/* Panel principal: ancho fijo seguro dentro de viewport, nunca más ancho que su columna. */
html body #obsLocationPanel,
html body .obs-location-panel#obsLocationPanel,
html body .obs-location-panel.v92-global-location#obsLocationPanel,
html body [data-ingsoft-component^="geo-selector"]#obsLocationPanel{
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  float: none !important;
  display: block !important;
  width: 100% !important;
  max-width: var(--geo11-panel-max) !important;
  min-width: 0 !important;
  margin: 0 0 18px 0 !important;
  padding: 22px !important;
  border-radius: 26px !important;
  border: 1px solid var(--geo11-border) !important;
  background: linear-gradient(145deg, var(--geo11-bg-a), var(--geo11-bg-b)) !important;
  box-shadow: 0 28px 72px rgba(0, 0, 0, .34), inset 0 0 0 1px rgba(255,255,255,.05) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  isolation: isolate !important;
}

html body #obsLocationPanel,
html body #obsLocationPanel *,
html body #obsLocationPanel *::before,
html body #obsLocationPanel *::after{
  box-sizing: border-box !important;
  min-width: 0 !important;
}

html body #obsLocationPanel .v91-eyebrow,
html body #obsLocationPanel .v92-eyebrow,
html body #obsLocationPanel .eyebrow,
html body #obsLocationPanel [class*="eyebrow"]{
  display: inline-flex !important;
  align-items: center !important;
  width: auto !important;
  max-width: 100% !important;
  background: #ffffff !important;
  color: #061426 !important;
  -webkit-text-fill-color: #061426 !important;
  border: 2px solid #69c9f5 !important;
  border-radius: 999px !important;
  padding: .45rem 1rem !important;
  font-size: .82rem !important;
  font-weight: 950 !important;
  letter-spacing: .18em !important;
  line-height: 1.05 !important;
  text-shadow: none !important;
  opacity: 1 !important;
  filter: none !important;
  white-space: nowrap !important;
}

html body #obsLocationPanel .v91-eyebrow::before,
html body #obsLocationPanel .v92-eyebrow::before,
html body #obsLocationPanel .eyebrow::before,
html body #obsLocationPanel [class*="eyebrow"]::before{
  content: "" !important;
  display: inline-block !important;
  width: 42px !important;
  height: 4px !important;
  border-radius: 999px !important;
  background: #e52533 !important;
  margin-right: .82rem !important;
  flex: 0 0 auto !important;
}

html body #obsLocationPanel .obs-location-grid{
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

/* Ciudades: 3 columnas REALES. Anula flex/inline/global buttons. */
html body #obsLocationPanel .obs-location-buttons{
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-flow: row !important;
  grid-auto-columns: unset !important;
  gap: var(--geo11-gap) !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 18px 0 14px !important;
  padding: 0 !important;
  overflow: hidden !important;
  justify-items: stretch !important;
  align-items: stretch !important;
}

html body #obsLocationPanel .obs-location-buttons > button[data-geo],
html body #obsLocationPanel button[data-geo]{
  all: unset !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  border: 1.5px solid rgba(140, 226, 255, .88) !important;
  background: linear-gradient(135deg, #158fe8 0%, #1fb8f1 52%, #24d3f2 100%) !important;
  color: var(--geo11-white) !important;
  -webkit-text-fill-color: var(--geo11-white) !important;
  font-family: inherit !important;
  font-size: clamp(.78rem, .78vw, .9rem) !important;
  font-weight: 950 !important;
  line-height: 1.05 !important;
  letter-spacing: .01em !important;
  text-align: center !important;
  text-decoration: none !important;
  text-shadow: 0 1px 2px rgba(0, 18, 42, .48) !important;
  opacity: 1 !important;
  filter: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  cursor: pointer !important;
  box-shadow: 0 10px 26px rgba(24, 181, 242, .16), inset 0 0 0 1px rgba(255,255,255,.18) !important;
}

html body #obsLocationPanel .obs-location-current{
  display: block !important;
  width: 100% !important;
  margin: 2px 0 14px !important;
  color: #f7fbff !important;
  -webkit-text-fill-color: #f7fbff !important;
  font-size: .96rem !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere !important;
  text-shadow: 0 1px 2px rgba(0,0,0,.3) !important;
}

/* Herramientas: filas compactas completas dentro del panel. */
html body #obsLocationPanel .obs-location-custom{
  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(80px, .55fr) minmax(122px, .85fr) !important;
  grid-template-areas:
    "search searchbtn browser"
    "lat lon apply"
    "message message message" !important;
  gap: 10px !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

html body #obsLocationPanel #obsGeoSearch{ grid-area: search !important; }
html body #obsLocationPanel [data-geo-search-apply]{ grid-area: searchbtn !important; }
html body #obsLocationPanel [data-geo-browser]{ grid-area: browser !important; }
html body #obsLocationPanel #obsLatitude{ grid-area: lat !important; }
html body #obsLocationPanel #obsLongitude{ grid-area: lon !important; }
html body #obsLocationPanel [data-geo-custom-apply]{ grid-area: apply !important; }
html body #obsLocationPanel .obs-location-message{ grid-area: message !important; }

html body #obsLocationPanel .obs-location-custom input,
html body #obsLocationPanel input#obsGeoSearch,
html body #obsLocationPanel input#obsLatitude,
html body #obsLocationPanel input#obsLongitude{
  all: unset !important;
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 12px !important;
  border-radius: 14px !important;
  border: 1px solid rgba(161, 219, 250, .98) !important;
  background: #f8fcff !important;
  color: var(--geo11-ink) !important;
  -webkit-text-fill-color: var(--geo11-ink) !important;
  font-family: inherit !important;
  font-size: .86rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  opacity: 1 !important;
  filter: none !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.85) !important;
}

html body #obsLocationPanel .obs-location-custom input::placeholder{
  color: #4c637b !important;
  -webkit-text-fill-color: #4c637b !important;
  opacity: 1 !important;
}

html body #obsLocationPanel .obs-location-custom button,
html body #obsLocationPanel [data-geo-search-apply],
html body #obsLocationPanel [data-geo-browser],
html body #obsLocationPanel [data-geo-custom-apply]{
  all: unset !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  border: 1.5px solid rgba(150, 231, 255, .9) !important;
  background: linear-gradient(135deg, #128fe8 0%, #1eb9f2 55%, #25d5f2 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-family: inherit !important;
  font-size: .82rem !important;
  font-weight: 950 !important;
  line-height: 1.05 !important;
  text-align: center !important;
  text-shadow: 0 1px 2px rgba(0, 18, 42, .48) !important;
  white-space: normal !important;
  cursor: pointer !important;
  opacity: 1 !important;
  filter: none !important;
  box-shadow: 0 10px 24px rgba(25, 211, 255, .16), inset 0 0 0 1px rgba(255,255,255,.18) !important;
}

html body #obsLocationPanel .obs-location-message{
  width: 100% !important;
  color: #d9efff !important;
  -webkit-text-fill-color: #d9efff !important;
  font-size: .9rem !important;
  font-weight: 600 !important;
  line-height: 1.42 !important;
  margin-top: 2px !important;
  opacity: 1 !important;
  text-shadow: none !important;
  overflow-wrap: anywhere !important;
}

html body .observatorio-hero .v96-observatory-right .dashboard-preview-card,
html body .observatorio-hero .dashboard-preview-card--lab{
  width: 100% !important;
  max-width: var(--geo11-panel-max) !important;
  margin: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

@media (max-width: 1320px){
  html body .observatorio-hero > .wide,
  html body .observatorio-hero .wide.hero-grid,
  html body .observatorio-hero .hero-grid.observatorio-grid,
  html body .observatorio-hero .observatorio-grid{
    grid-template-columns: 1fr !important;
    width: min(1120px, calc(100vw - 56px)) !important;
    max-width: calc(100vw - 56px) !important;
  }
  html body .observatorio-hero .v96-observatory-right,
  html body .observatorio-hero .dashboard-preview-card--lab,
  html body #obsLocationPanel{
    max-width: min(760px, 100%) !important;
    justify-self: center !important;
    margin-inline: auto !important;
  }
}

@media (max-width: 760px){
  html body .observatorio-hero{ padding-inline: 18px !important; }
  html body .observatorio-hero > .wide,
  html body .observatorio-hero .wide.hero-grid,
  html body .observatorio-hero .hero-grid.observatorio-grid,
  html body .observatorio-hero .observatorio-grid{
    width: calc(100vw - 36px) !important;
    max-width: calc(100vw - 36px) !important;
  }
  html body #obsLocationPanel{ padding: 18px !important; }
  html body #obsLocationPanel .obs-location-buttons{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  html body #obsLocationPanel .obs-location-custom{
    grid-template-columns: 1fr 1fr !important;
    grid-template-areas:
      "search search"
      "searchbtn browser"
      "lat lon"
      "apply apply"
      "message message" !important;
  }
}

@media (max-width: 460px){
  html body #obsLocationPanel .obs-location-buttons,
  html body #obsLocationPanel .obs-location-custom{
    grid-template-columns: 1fr !important;
  }
  html body #obsLocationPanel .obs-location-custom{
    grid-template-areas:
      "search"
      "searchbtn"
      "browser"
      "lat"
      "lon"
      "apply"
      "message" !important;
  }
}
