/* Capa oscura sobre style.css (se carga después → gana en el cascade) */

/* ── Fondo ────────────────────────────────────────────── */
body {
  color: rgba(255, 255, 255, .85);
  background: transparent;
  overflow-x: hidden;
}
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
}
body::before {
  background: center/cover no-repeat;
  background-image: url('../img/hub-bg-hospital.jpg');
  background-image: image-set(url('../img/hub-bg-hospital.webp') type('image/webp'), url('../img/hub-bg-hospital.jpg') type('image/jpeg'));
  will-change: transform;
}
body::after {
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 10, 18, .80), rgba(6, 10, 18, .90));
}

/* ── Header ───────────────────────────────────────────── */
.est-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  padding: 18px 0 4px;
}
/* Velo que difumina el contenido al pasar bajo el header fijo */
.est-header::before {
  content: "";
  position: absolute;
  inset: 0 0 -20px;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(6, 10, 18, .94) 42%, rgba(6, 10, 18, 0));
}
.est-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 10px;
  padding-inline: clamp(14px, 3vw, 22px);
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 100px;
  -webkit-backdrop-filter: saturate(160%) blur(14px);
          backdrop-filter: saturate(160%) blur(14px);
}
.est-logo img { height: 34px; width: auto; display: block; }
.est-header a, .est-footer a { text-decoration: none; }
.est-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, .28);
  background: rgba(255, 255, 255, .12);
  border-radius: 100px;
  transition: border-color var(--ease), background var(--ease), color var(--ease);
}
.est-back i { font-size: 12px; }
.est-back:hover {
  border-color: rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

/* ── Sección presencia ────────────────────────────────── */
/* padding-top ampliado para dejar hueco al header fijo */
.presencia-section { background: transparent; padding-top: clamp(96px, 14vw, 140px); }
.presencia-head .section-title { color: #fff; }
.presencia-head .section-lead  { color: rgba(255, 255, 255, .78); }

/* ── Globo ────────────────────────────────────────────── */
/* Centro sólido con borde difuminado: el disco se funde con el fondo */
.globe-bg {
  -webkit-mask-image: radial-gradient(98% 96% at 50% 42%, #000 44%, rgba(0,0,0,.55) 72%, transparent 100%);
          mask-image: radial-gradient(98% 96% at 50% 42%, #000 44%, rgba(0,0,0,.55) 72%, transparent 100%);
}
.globe-sphere { fill: #182238; }
.globe-grat   { stroke: rgba(255, 255, 255, .14); opacity: .55; filter: blur(.5px); }
.globe-land   { fill: rgba(255, 255, 255, .15); stroke: rgba(255, 255, 255, .18); opacity: 1; }
.globe-bg .mx-state {
  fill: rgba(226, 235, 250, .30);
  stroke: rgba(255, 255, 255, .45);
  stroke-width: .7;
}
.globe-bg .mx-state.has-presence { fill: var(--accent); stroke: rgba(255, 255, 255, .5); }
.globe-bg .mx-state.is-hq        { fill: var(--primary); stroke: var(--primary-light); stroke-width: 1; }
/* Va después de .has-presence/.is-hq para ganarles el fill */
.globe-bg .mx-state.is-active {
  fill: var(--primary);
  stroke: #fff;
  stroke-width: 1.1;
  filter: drop-shadow(0 0 10px rgba(37, 99, 235, .55));
  animation: estStateGlow 2.6s ease-in-out infinite;
}
@keyframes estStateGlow {
  0%, 100% { filter: drop-shadow(0 0 8px  rgba(37, 99, 235, .4)); }
  50%      { filter: drop-shadow(0 0 15px rgba(37, 99, 235, .7)); }
}

/* ── Línea conectora estado ↔ tarjeta ─────────────────── */
/* z-index por encima de la card: el trazo nace en su borde, no detrás */
.hosp-link {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.hosp-link.is-on { opacity: 1; }
.hosp-link .link-line {
  fill: none;
  stroke: url(#hospGrad);
  stroke-width: 2.2;
  stroke-linecap: round;
  filter: drop-shadow(0 0 7px rgba(96, 165, 250, .85))
          drop-shadow(0 0 2px rgba(205, 230, 255, .9));
}
.hosp-link .link-halo {
  fill: #7cc0ff;
  opacity: .4;
  transform-box: fill-box;
  transform-origin: center;
  animation: hospPulse 2.2s ease-out infinite;
}
.hosp-link .link-ring {
  fill: none;
  stroke: #cde6ff;
  stroke-width: 1.4;
  opacity: .9;
}
.hosp-link .link-dot  {
  fill: #eaf4ff;
  filter: drop-shadow(0 0 6px rgba(124, 192, 255, .95));
}
.hosp-link .link-node {
  fill: #eaf4ff;
  stroke: #7cc0ff;
  stroke-width: 1.6;
  filter: drop-shadow(0 0 5px rgba(96, 165, 250, .95));
}
@keyframes hospPulse {
  0%   { transform: scale(.45); opacity: .6; }
  100% { transform: scale(2.7); opacity: 0; }
}

/* ── Tarjeta de hospitales ────────────────────────────── */
.hosp-card {
  position: absolute;
  left: calc(max(0px, (100vw - 1240px) / 2) + var(--gutter));
  bottom: clamp(20px, 5%, 48px);
  z-index: 4;
  width: min(400px, calc(100vw - 2 * var(--gutter)));
  height: auto;
  max-height: min(72vh, 460px);
  display: flex;
  flex-direction: column;
  padding: clamp(14px, 1.5vw, 18px);
  background: rgba(16, 24, 40, .55);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-lg);
  box-shadow: 0 34px 70px -30px rgba(0, 0, 0, .75);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
          backdrop-filter: blur(18px) saturate(1.4);
  overflow: hidden;
  /* aparece cuando el globo deja de girar (JS añade .is-visible) */
  opacity: 0;
  transform: translateY(14px) scale(.985);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  pointer-events: none;
}
.hosp-card.is-visible { opacity: 1; transform: none; pointer-events: auto; }

.hosp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.hosp-state {
  font-family: 'Manrope', sans-serif;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .20);
  padding: 6px 13px; border-radius: 999px;
}
.hosp-count {
  font-family: 'Manrope', sans-serif;
  font-size: 11.5px; font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.hosp-top.is-fresh { animation: hospFade .45s var(--ease) both; }

.hosp-list {
  list-style: none; margin: 0; padding: 0 2px 2px 0;
  display: flex; flex-direction: column; gap: 8px;
  flex: 1; min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}
.hosp-list::-webkit-scrollbar { width: 0; height: 0; }

.hosp-item {
  padding: 10px 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  animation: hospItemIn .5s var(--ease) both;
}
.hosp-name {
  display: flex; align-items: center; gap: 9px;
  font-family: 'Manrope', sans-serif;
  font-size: 14.5px; font-weight: 700; color: #fff;
  margin-bottom: 7px;
}
.hosp-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; flex-shrink: 0;
  border-radius: 8px;
  background: rgba(37, 99, 235, .22);
  color: var(--accent); font-size: 12px;
}
.hosp-hn { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hosp-city {
  margin-left: auto; flex-shrink: 0;
  font-size: 11px; font-weight: 600;
  color: rgba(255, 255, 255, .55);
}
.hosp-services { display: flex; flex-wrap: wrap; gap: 5px; }
.hosp-serv {
  font-family: 'Manrope', sans-serif;
  font-size: 11px; font-weight: 600;
  color: rgba(255, 255, 255, .82);
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  padding: 3px 9px; border-radius: 999px;
}

/* Pie: puntos del carrusel + hint */
.hosp-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 9px; padding-top: 9px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  flex-shrink: 0;
}
.hosp-dots { display: flex; gap: 5px; flex-wrap: wrap; }
.hosp-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .26);
  transition: width var(--ease), background var(--ease);
}
.hosp-dot.is-on { width: 18px; background: var(--accent); }
.hosp-hint {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; color: rgba(255, 255, 255, .5);
  white-space: nowrap;
}
.hosp-hint i { color: var(--accent); }

/* Paginador del carrusel de hospitales (solo móvil, con 2+) */
.hosp-pager { display: none; gap: 6px; align-items: center; }
.hosp-pager .hp-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .28);
  transition: width var(--ease), background var(--ease);
}
.hosp-pager .hp-dot.is-on { width: 16px; background: var(--accent); }

@keyframes hospItemIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hospFade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive: móvil ────────────────────────────────── */
/* Tarjeta compacta: los hospitales pasan a carrusel horizontal */
@media (max-width: 640px) {
  .hosp-card {
    width: min(430px, calc(100vw - 2 * var(--gutter)));
    max-height: none;
    bottom: 14px;
    padding: 11px;
    background: rgba(16, 24, 40, .74);
  }
  .hosp-name { font-size: 13.5px; }

  .hosp-list {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 10px;
    margin: 0 -13px;                     /* full-bleed dentro del padding de la card */
    padding: 2px 13px;
    scroll-padding-inline: 13px;
    scrollbar-width: none;
  }
  .hosp-list::-webkit-scrollbar { display: none; }
  .hosp-item {
    flex: 0 0 100%;
    box-sizing: border-box;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .hosp-list.is-multi .hosp-item { flex-basis: 86%; }

  .hosp-dots  { display: none; }
  .hosp-pager { display: flex; }
  .hosp-pager:empty { display: none; }

  .hosp-link .link-line { stroke-width: 1.9; }
}
@media (prefers-reduced-motion: reduce) {
  .hosp-item, .hosp-top.is-fresh { animation: none; }
  .hosp-link .link-halo { animation: none; }
  .globe-bg .mx-state.is-active { animation: none; }
  .hosp-card { transition: none; }
  .geo-card--solo, .geo-card--a, .geo-card--b { animation: none; }
  .geo-map-load { animation: none; }
  .geo-page, .geo-map-frame { transition: none; }
}

/* ── Rejilla de estados ───────────────────────────────── */
/* Escritorio: a la derecha, con el lado izquierdo para el panel de ubicación */
.presencia-detail { grid-template-columns: 1fr 1fr; align-items: stretch; }
.presence-states  { grid-column: 2 / 3; }
.states-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 860px) {
  .presencia-detail { grid-template-columns: 1fr; }
  .presence-states  { grid-column: auto; }
}

/* ── Chips de estado ──────────────────────────────────── */
.presence-states h4   { color: #fff; }
/* Querétaro y CDMX (oficinas): punto en color primario, como en el mapa */
.state-chip--hq .chip-dot { background: var(--primary); }
.presence-states h4 i { color: var(--accent); }
.states-count {
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .20);
}
.state-chip {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .9);
}
.state-chip .chip-dot { background: var(--accent); }
.state-chip:hover,
.state-chip.is-active {
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .30);
  color: #fff;
}

/* ── Panel de ubicación (solo escritorio) ─────────────── */
/* 1 hospital → una tarjeta que llena el hueco; 2 → se separan con animación */
.geo-panel {
  grid-column: 1 / 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.geo-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px; min-height: 30px;
}
.geo-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: #fff;
}
.geo-eyebrow i { color: var(--accent); }
.geo-state-badge {
  font-family: 'Manrope', sans-serif;
  font-size: 11px; font-weight: 700; letter-spacing: .05em;
  color: var(--accent);
  background: rgba(37, 99, 235, .16);
  border: 1px solid rgba(96, 165, 250, .35);
  padding: 5px 12px; border-radius: 999px;
  white-space: nowrap; max-width: 55%;
  overflow: hidden; text-overflow: ellipsis;
}

.geo-stack {
  position: relative;
  flex: 1; min-height: 420px;
}
/* Cada estado es una página que se cruza con fundido */
.geo-page {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; gap: 14px;
  opacity: 0; pointer-events: none;
  transition: opacity .5s var(--ease);
}
.geo-page.is-active { opacity: 1; pointer-events: auto; }

.geo-card {
  position: relative;
  display: flex; flex-direction: column;
  flex: 1 1 0; min-height: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(158deg, rgba(255,255,255,.12), rgba(255,255,255,.03) 46%, rgba(255,255,255,.07));
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 26px 55px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
          backdrop-filter: blur(16px) saturate(1.5);
  overflow: hidden;
  will-change: transform, opacity;
}
.geo-card::after {
  content: ""; position: absolute; inset: 0; z-index: 3;
  pointer-events: none; border-radius: inherit;
  background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,0) 34%);
}
.geo-card--solo { animation: geoRise .5s var(--ease) both; }
.geo-card--a    { animation: geoSplitA .6s var(--ease) both; }
.geo-card--b    { animation: geoSplitB .6s .05s var(--ease) both; }

/* Mini-mapa */
.geo-map {
  position: relative; width: 100%;
  flex: 1 1 auto; min-height: 120px;
  overflow: hidden;
}
.geo-map-frame {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; display: block; background: #0e1626;
  pointer-events: none;
  opacity: 0; transition: opacity .6s ease;
}
.geo-map.is-loaded .geo-map-frame { opacity: 1; }
/* Velo de carga mientras el mapa no está listo */
.geo-map-load {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.06) 50%, rgba(255,255,255,0) 70%) #0e1626;
  background-size: 200% 100%;
  animation: geoShimmer 1.3s linear infinite;
  transition: opacity .45s ease;
}
.geo-map.is-loaded .geo-map-load { opacity: 0; }

.geo-map-ui { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.geo-badge {
  position: absolute; top: 10px; left: 10px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 600;
  color: #eaf2ff; background: rgba(9, 14, 24, .62);
  border: 1px solid rgba(255,255,255,.16);
  padding: 5px 9px; border-radius: 999px;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  z-index: 2;
}
.geo-badge i { color: var(--accent); font-size: 10px; }

/* Info bajo el mapa */
.geo-info {
  padding: 11px 14px 12px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(9, 14, 24, .3);
}
.geo-name {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Manrope', sans-serif; font-size: 15px; font-weight: 800;
  color: #fff; margin: 0 0 4px;
}
.geo-name-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; flex-shrink: 0; border-radius: 7px;
  background: rgba(37,99,235,.24); color: var(--accent); font-size: 11px;
}
.geo-addr {
  font-family: 'IBM Plex Sans', sans-serif; font-size: 11.5px; font-weight: 500;
  color: rgba(255,255,255,.6); margin: 0 0 8px; line-height: 1.35;
}
.geo-meta { display: flex; flex-wrap: wrap; gap: 5px 12px; margin-bottom: 9px; }
.geo-meta span {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: 'Manrope', sans-serif; font-size: 10.5px; font-weight: 600;
  color: rgba(255,255,255,.74);
}
.geo-meta i { color: var(--accent); font-size: 10px; }
.geo-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.geo-tag {
  font-family: 'Manrope', sans-serif; font-size: 10.5px; font-weight: 600;
  color: rgba(255,255,255,.82);
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14);
  padding: 3px 8px; border-radius: 999px;
}

/* Chip fijado al hacer click */
.state-chip.is-pinned {
  background: rgba(37, 99, 235, .28);
  border-color: rgba(96, 165, 250, .6);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(96,165,250,.3);
}

@keyframes geoRise {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to   { opacity: 1; transform: none; }
}
@keyframes geoSplitA {
  from { opacity: 0; transform: translateY(52%) scale(.94); }
  55%  { opacity: 1; }
  to   { opacity: 1; transform: none; }
}
@keyframes geoSplitB {
  from { opacity: 0; transform: translateY(-52%) scale(.94); }
  55%  { opacity: 1; }
  to   { opacity: 1; transform: none; }
}
@keyframes geoShimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* Va después de .geo-panel para ganarle el display en el cascade */
@media (max-width: 860px) { .geo-panel { display: none; } }

/* Tarjeta clickeable → abre el modal */
.geo-card { cursor: pointer; transition: border-color var(--ease), transform var(--ease); }
.geo-card:hover { border-color: rgba(96, 165, 250, .45); }
.geo-card:hover .geo-expand,
.geo-card:focus-within .geo-expand { opacity: 1; transform: none; }
.geo-expand {
  position: absolute; top: 10px; right: 10px; z-index: 4;
  width: 30px; height: 30px; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.2); border-radius: 9px;
  background: rgba(9,14,24,.66); color: #eaf2ff; font-size: 12px; cursor: pointer;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transform: translateY(-4px);
  transition: opacity var(--ease), transform var(--ease), background var(--ease), border-color var(--ease);
}
.geo-expand:hover { background: var(--primary); border-color: var(--primary-light); }

/* ── Modal: mapa ampliado ─────────────────────────────── */
.geo-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(12px, 3vw, 40px);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.geo-modal.is-open { opacity: 1; visibility: visible; }
.geo-modal-scrim {
  position: absolute; inset: 0; cursor: pointer;
  background: rgba(4, 8, 16, .72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.geo-modal-panel {
  position: relative; z-index: 1;
  width: min(1120px, 100%); height: min(660px, 90vh);
  display: grid; grid-template-columns: 1.75fr 1fr;
  border-radius: 22px; overflow: hidden;
  background: rgba(16, 24, 40, .82);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.85);
  -webkit-backdrop-filter: blur(22px) saturate(1.4); backdrop-filter: blur(22px) saturate(1.4);
  transform: translateY(16px) scale(.985);
  transition: transform .4s var(--ease);
}
.geo-modal.is-open .geo-modal-panel { transform: none; }
.geo-modal-x {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255,255,255,.24);
  background: rgba(9,14,24,.7); color: #fff; font-size: 16px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background var(--ease), transform var(--ease);
}
.geo-modal-x:hover { background: rgba(220,60,60,.85); transform: rotate(90deg); }

/* Flechas de navegación (fuera del recuadro) */
.geo-modal-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  color: #fff; font-size: 20px;
  background: rgba(9, 14, 24, .42);
  border: 1.5px solid rgba(255, 255, 255, .6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.6);
  transition: background var(--ease), transform var(--ease), border-color var(--ease);
}
.geo-modal-nav:hover { background: var(--primary); border-color: #fff; transform: translateY(-50%) scale(1.08); }
.geo-modal-nav:active { transform: translateY(-50%) scale(.96); }
.geo-modal-nav--prev { left: clamp(8px, 2.2vw, 44px); }
.geo-modal-nav--next { right: clamp(8px, 2.2vw, 44px); }

/* Área del mapa (interactivo) */
.geo-modal-map { position: relative; min-height: 0; min-width: 0; background: #0e1626; }
.geo-modal-frame { position: absolute; inset: 0; }
.geo-modal-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
  opacity: 0; transition: opacity .5s ease;
}
.geo-modal-frame.is-loaded iframe { opacity: 1; }
.geo-modal-frame .geo-map-load { position: absolute; inset: 0; }
.geo-modal-frame.is-loaded .geo-map-load { opacity: 0; }

/* Controles: tipo de vista + zoom */
.geo-modal-tools { position: absolute; top: 12px; left: 12px; z-index: 3; display: flex; flex-wrap: wrap; gap: 8px; }
.gmc-seg {
  display: inline-flex; align-items: center; overflow: hidden;
  background: rgba(9,14,24,.72); border: 1px solid rgba(255,255,255,.18); border-radius: 10px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.gmc-seg button {
  border: 0; background: transparent; color: rgba(255,255,255,.82); cursor: pointer; line-height: 1;
  font-family: 'Manrope', sans-serif; font-size: 12px; font-weight: 600; padding: 8px 13px;
  transition: background var(--ease), color var(--ease);
}
.gmc-seg button + button { border-left: 1px solid rgba(255,255,255,.14); }
.gmc-seg button:hover { background: rgba(255,255,255,.1); color: #fff; }
.gmc-seg button.is-on { background: var(--primary); color: #fff; }
.gmc-zoom button { padding: 8px 12px; font-size: 13px; }

/* Info lateral */
.geo-modal-info {
  padding: clamp(20px, 2.4vw, 30px);
  display: flex; flex-direction: column; gap: 12px; overflow-y: auto;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,0));
  border-left: 1px solid rgba(255,255,255,.12);
}
.geo-modal-eyebrow {
  display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
  font-family: 'Manrope', sans-serif; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: var(--accent);
  background: rgba(37,99,235,.16); border: 1px solid rgba(96,165,250,.34);
  padding: 5px 12px; border-radius: 999px;
}
.geo-modal-name { font-family: 'Manrope', sans-serif; font-size: clamp(20px, 2.4vw, 27px); font-weight: 800; color: #fff; margin: 0; line-height: 1.1; }
.geo-modal-addr { font-family: 'IBM Plex Sans', sans-serif; font-size: 13px; color: rgba(255,255,255,.62); margin: 0; line-height: 1.4; }
.geo-modal-meta { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.geo-modal-meta li { display: flex; align-items: center; gap: 11px; font-family: 'Manrope', sans-serif; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.82); }
.geo-modal-meta i { width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; background: rgba(37,99,235,.2); color: var(--accent); font-size: 12px; }
.geo-modal-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.geo-modal-cta { margin-top: auto; display: flex; flex-direction: column; gap: 9px; padding-top: 10px; }
.geo-modal-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; text-decoration: none;
  font-family: 'Manrope', sans-serif; font-size: 13.5px; font-weight: 700;
  padding: 12px 16px; border-radius: 12px;
  transition: transform var(--ease), background var(--ease), border-color var(--ease);
}
.geo-modal-btn--map { color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); }
.geo-modal-btn--map:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.geo-modal-btn--wa { color: #fff; background: var(--primary); border: 1px solid var(--primary-light); }
.geo-modal-btn--wa:hover { background: var(--primary-dark); transform: translateY(-2px); }

body.geo-modal-open { overflow: hidden; }

/* Móvil: mapa más bajo e info al contenido, sin perder datos */
@media (max-width: 820px) {
  .geo-modal-panel {
    grid-template-columns: 1fr;
    grid-template-rows: clamp(180px, 34vh, 260px) auto;
    height: auto; max-height: 92vh;
  }
  .geo-modal-info {
    border-left: 0; border-top: 1px solid rgba(255,255,255,.12);
    padding: 14px 16px 16px; gap: 8px;
  }
  .geo-modal-eyebrow { font-size: 10.5px; padding: 4px 10px; }
  .geo-modal-name { font-size: 18px; }
  .geo-modal-addr { font-size: 12px; }
  .geo-modal-meta { gap: 6px; margin-top: 2px; }
  .geo-modal-meta li { font-size: 12.5px; gap: 9px; }
  .geo-modal-meta i { width: 25px; height: 25px; font-size: 11px; border-radius: 7px; }
  .geo-modal-tags .geo-tag { font-size: 11px; padding: 3px 8px; }
  .geo-modal-cta { flex-direction: row; gap: 8px; padding-top: 4px; }
  .geo-modal-btn { flex: 1; min-width: 0; padding: 11px 8px; font-size: 12px; gap: 7px; }
  .geo-modal-nav { width: 40px; height: 40px; font-size: 15px; top: 33%; }
  .geo-modal-nav--prev { left: 8px; }
  .geo-modal-nav--next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .geo-modal, .geo-modal-panel, .geo-modal-frame iframe, .geo-modal-x { transition: none; }
}

/* ── CTA de cobertura ─────────────────────────────────── */
.coverage-cta {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  -webkit-backdrop-filter: blur(10px);
          backdrop-filter: blur(10px);
}
.coverage-cta p   { color: rgba(255, 255, 255, .85); }
.coverage-cta p i { color: var(--accent); }

/* ── Footer ───────────────────────────────────────────── */
.est-footer { border-top: 1px solid rgba(255, 255, 255, .16); padding: 22px 0; text-align: center; }
.est-footer p { font-size: 13px; color: rgba(255, 255, 255, .55); }

/* ── Ken Burns del fondo ──────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  body::before { animation: estKen 32s ease-in-out infinite alternate; }
}
@keyframes estKen {
  from { transform: scale(1.03); }
  to   { transform: scale(1.12); }
}
