/* Página "Mapa" — estilos específicos del embed del mapa de cobertura FTTH.
   Reutiliza base.css + cobertura.css (nav, hero, cta-global, footer, WhatsApp). */

.mapa-embed { padding: 2.5rem 5% 3rem; }
.mapa-frame-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 20px;
  padding: 10px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}
.mapa-frame {
  display: block;
  width: 100%;
  height: 70vh;
  min-height: 520px;
  border: 0;
  border-radius: 14px;
  background: #e2e8f0;
}
.mapa-frame-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 1400px;
  margin: 1.2rem auto 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.mapa-fullscreen-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(236,37,42,0.1);
  border: 1px solid var(--red-border);
  color: var(--red);
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  transition: all .2s;
  white-space: nowrap;
}
.mapa-fullscreen-btn:hover { background: var(--red); color: white; }

.mapa-locate-btn {
  position: absolute; top: 22px; left: 22px; z-index: 1000;
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid #e2e8f0; color: #2563eb;
  border-radius: 50px; padding: 9px 16px; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 0.85rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.12); transition: all .2s;
  white-space: nowrap;
}
.mapa-locate-btn:hover { color: #fff; background: #2563eb; border-color: #2563eb; }
.mapa-locate-btn:disabled { opacity: .7; cursor: wait; }
.mapa-locate-btn svg { flex-shrink: 0; }
.mapa-locate-precision {
  position: absolute; top: 66px; left: 22px; z-index: 1000;
  display: flex; align-items: flex-start; gap: 6px;
  background: rgba(255,255,255,.95); border: 1px solid #e2e8f0;
  border-radius: 10px; padding: 7px 12px; font-size: 11.5px;
  font-weight: 700; line-height: 1.35; box-shadow: 0 1px 6px rgba(0,0,0,.08);
  max-width: calc(100% - 44px);
}
.mapa-locate-precision[hidden] { display: none; }
.mapa-locate-precision svg { flex-shrink: 0; margin-top: 1px; }

.mapa-toggles {
  position: absolute; top: 22px; right: 22px; z-index: 1000;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.12); padding: 10px 12px;
  display: flex; flex-direction: column; gap: 6px;
  font-size: 12px; color: #334155;
  max-width: calc(100% - 44px);
}
.mapa-toggles strong { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #64748b; }
.mapa-layer-check {
  display: flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap;
}
.mapa-layer-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--dot, #6366f1);
}
.mapa-updated {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 1000; background: rgba(255,255,255,.92); border: 1px solid #e2e8f0;
  border-radius: 9999px; padding: 5px 12px; font-size: 11px; color: #475569;
  box-shadow: 0 1px 6px rgba(0,0,0,.08); white-space: nowrap;
}
.mapa-error {
  position: absolute; inset: 0; z-index: 2000;
  display: none; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: rgba(241,245,249,.95); border-radius: 14px; text-align: center;
  font-size: 14px; color: #334155; padding: 2rem;
}
.mapa-error strong { font-size: 15px; }
.mapa-error-link { color: var(--red); font-weight: 700; }

@media (max-width: 768px) {
  .mapa-frame { height: 60vh; min-height: 420px; }
}