/* ═══════════════════════════════════════════════════════════════════════════
   EL MINI-MODAL DE LOS TRES MINUTOS · compartido
   ───────────────────────────────────────────────────────────────────────────
   Extraído el 27-ago-2026. Vivía duplicado LETRA POR LETRA en index.html y en
   seo-local.html (2.319 car de markup + 3.292 de CSS + 5.499 de JS, dos veces),
   y el endpoint de EmailOctopus ya se había tocado dos veces en un día en los
   dos sitios. Ahora se cambia en uno.

   ⚠️ Depende de los tokens de la página: --navy-soft, --line, --teal y la
   escala --tx-1..4. Cualquier página que cargue esto tiene que definirlos.
   El botón usa .btn-primary, que también declara cada página.
   ═══════════════════════════════════════════════════════════════════════════ */

.mapa-modal {
  position: fixed; inset: 0; z-index: 300; display: flex;
  align-items: safe center; justify-content: center; padding: 1.2rem;
  overflow-y: auto; -webkit-overflow-scrolling: touch;
}
.mapa-modal[hidden] { display: none; }

.mapa-overlay {
  position: absolute; inset: 0; background: rgba(4,9,18,0.92);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}

.mapa-panel {
  position: relative; width: 100%; max-width: 30rem;
  background: var(--navy-soft); border: 1px solid var(--line);
  border-radius: 6px; padding: 2.2rem 2rem 1.9rem;
  box-shadow: 0 30px 90px rgba(0,0,0,0.6);
  animation: mapaIn .28s cubic-bezier(.2,.8,.2,1);
}
@keyframes mapaIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@media (prefers-reduced-motion: reduce) { .mapa-panel { animation: none; } }

.mapa-cerrar {
  position: absolute; top: .55rem; right: .55rem; width: 44px; height: 44px;
  border: none; background: none; color: var(--tx-4); font-size: 1.5rem;
  line-height: 1; cursor: pointer; border-radius: 4px;
}
.mapa-cerrar:hover { color: var(--tx-1); }
.mapa-cerrar:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }

.mapa-eti {
  display: block; font-size: .68rem; font-weight: 800; letter-spacing: .15em;
  text-transform: uppercase; color: var(--teal); margin-bottom: .8rem;
}
.mapa-titulo {
  font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em;
  line-height: 1.2; color: var(--tx-1); margin-bottom: .7rem;
}
.mapa-intro {
  font-size: .93rem; font-weight: 300; line-height: 1.6; color: var(--tx-3);
  margin-bottom: 1.5rem;
}

.mapa-campo { margin-bottom: 1rem; }
.mapa-campo label {
  display: block; font-size: .72rem; font-weight: 600; letter-spacing: .11em;
  text-transform: uppercase; color: var(--tx-4); margin-bottom: .45rem;
}
.mapa-campo input {
  width: 100%; font-family: inherit; font-size: 1rem; font-weight: 300; color: var(--tx-1);
  background: rgba(255,255,255,0.06); border: 1px solid var(--line);
  border-radius: 4px; padding: .85rem 1rem;
  transition: border-color .18s ease, background .18s ease;
}
.mapa-campo input::placeholder { color: rgba(255,255,255,0.3); }
.mapa-campo input:focus { outline: none; border-color: var(--teal); background: rgba(255,255,255,0.09); }

.mapa-consent {
  display: flex; gap: .7rem; align-items: flex-start;
  margin: 1.3rem 0 .3rem; font-size: .88rem; font-weight: 300;
  color: var(--tx-2); line-height: 1.5; cursor: pointer;
}
.mapa-consent input {
  margin-top: .15rem; width: 1.25rem; height: 1.25rem;
  flex: 0 0 auto; accent-color: var(--teal);
}

/* El cebo del formulario: fuera de pantalla, nunca display:none — un bot que
   no lo ve tampoco lo rellena. */
.mapa-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.mapa-modal .btn-primary { width: 100%; margin-top: .6rem; text-align: center; }
.mapa-modal .btn-primary[disabled] { opacity: .55; cursor: wait; }

.mapa-nota { margin-top: 1rem; font-size: .78rem; font-weight: 300; line-height: 1.55; color: var(--tx-4); }
.mapa-nota a { color: var(--teal); }

.mapa-ok {
  border-left: 2px solid var(--teal); padding-left: 1.1rem;
  font-weight: 300; line-height: 1.65; color: var(--tx-2);
}
.mapa-ok b { color: var(--tx-1); font-weight: 600; }

.mapa-err { margin-top: .9rem; font-size: .9rem; font-weight: 300; color: #f4a48c; line-height: 1.55; }
.mapa-err a { color: var(--teal); }
