/* ==========================================================================
   ILAMARCA — Tasador automático · rediseño aprobado 5/10/2026
   Basado en la maqueta aprobada (tasador-rediseno/maqueta.html). Paleta,
   tipografía y componentes idénticos a la maqueta; acá se agrega lo que la
   maqueta no necesitaba por ser estática: estados de pantalla, dropdown de
   barrios, mapa Leaflet, spinner de carga.
   ========================================================================== */
:root {
  --azul: #115FB5;          /* primario de ilamarca.com */
  --azul-hondo: #0A3D7A;    /* reborde fino y estados presionados */
  --tinta: #14233C;         /* texto: 15,7:1 sobre blanco */
  --tinta-2: #4B5A73;       /* texto secundario: 7:1 sobre blanco */
  --tinta-3: #5E6B80;       /* pasos pendientes: 5,4:1 */
  --menta: #00D6AD;         /* acento: solo relleno, nunca texto sobre blanco */
  --menta-hondo: #00715C;   /* texto verde sobre blanco: 6:1 */
  --celeste: #DEE9F5;       /* = color-mix(#115FB5 14%, white) */
  --celeste-2: #F1F5FB;     /* = color-mix(#115FB5 6%, white) */
  --linea: #C9DAEE;         /* divisores decorativos */
  --borde: #6F8DB8;         /* bordes de campos y tarjetas: 3,4:1 */
  --danger: #C62828;        /* errores: AA sobre blanco */
  --sombra: 0 1px 2px rgba(10, 61, 122, .06), 0 10px 28px -14px rgba(10, 61, 122, .28);
  --f-titulo: "Poppins", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --f-texto: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--tinta); font: 400 16px/1.5 var(--f-texto); }
img, svg { display: block; }
a { color: var(--azul); }
h1, h2, h3, p { margin: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; }

.hidden { display: none !important; }

/* LOW (revisión 5/10): único style="" en línea de todo el HTML — pasado acá
   para poder sacar 'unsafe-inline' de style-src. */
.iconos-ocultos { position: absolute; }

/* ---------- Estructura de la app ---------- */
.app { min-height: 100vh; min-height: 100dvh; }
.marco { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.lado { display: none; }
.barra-sup {
  position: sticky; top: 0; z-index: 5; background: #fff;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; border-bottom: 1px solid var(--linea);
}
.barra-sup .logo { height: 34px; width: auto; }
.ayuda {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--borde); border-radius: 999px; background: #fff;
  color: var(--azul-hondo); font: 600 14px/1 var(--f-texto); text-decoration: none;
}
.ayuda svg { width: 18px; height: 18px; }
main { flex: 1; display: flex; flex-direction: column; }

/* Pantallas: una visible por vez, controlada por JS con la clase .activa */
.pantalla { display: none; flex-direction: column; width: 100%; max-width: 560px; margin: 0 auto; padding: 0 16px; }
.pantalla.activa { display: flex; }

/* ---------- Pasos ---------- */
.pasos { padding: 12px 0 4px; }
.pasos-fila { display: flex; align-items: center; justify-content: space-between; min-height: 44px; }
.pasos-fila.solo-n { min-height: 24px; }
.volver {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-left: -8px; padding: 0 8px;
  color: var(--azul-hondo); font: 600 15px/1 var(--f-texto); text-decoration: none; border-radius: 10px;
  background: none; border: 0; cursor: pointer;
}
.volver svg { width: 20px; height: 20px; }
.pasos-n { margin-left: auto; color: var(--azul); font: 600 14px/1 var(--f-texto); }
.pasos-barra { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.pasos-barra li { font: 500 13px/1.2 var(--f-texto); color: var(--tinta-3); }
.pasos-barra li::before { content: ""; display: block; height: 5px; border-radius: 3px; background: var(--celeste); margin-bottom: 6px; }
.pasos-barra li.hecho { color: var(--tinta-2); }
.pasos-barra li.hecho::before { background: var(--azul); }
.pasos-barra li.actual { color: var(--tinta); font-weight: 700; }
.pasos-barra li.actual::before { background: linear-gradient(90deg, var(--azul), var(--menta)); }

/* ---------- Tipografía ---------- */
.eyebrow { color: var(--menta-hondo); font: 600 13px/1.3 var(--f-texto); letter-spacing: .04em; text-transform: uppercase; }
.h1 { font: 700 28px/1.14 var(--f-titulo); color: var(--azul); letter-spacing: -.01em; }
.h2 { font: 600 24px/1.2 var(--f-titulo); color: var(--azul); letter-spacing: -.005em; }
.h1, .h2, .firma-frase, .tarjeta-cab { text-wrap: balance; }
.raya { display: block; width: 48px; height: 5px; border-radius: 3px; background: var(--menta); }
.bajada { color: var(--tinta-2); font-size: 16px; line-height: 1.5; }
.encabezado { display: grid; gap: 10px; padding: 14px 0 18px; }

/* ---------- Paso 1: grilla de tipos ---------- */
.tipos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; margin: 0; padding: 0; }
.tipos > li { display: contents; } /* M5: <li> real para los lectores de pantalla, pero el grid sigue viendo los <button> como celda */
.tipo {
  display: flex; flex-direction: column; justify-content: flex-start; gap: 8px;
  min-height: 0; padding: 12px 12px 11px; border: 1px solid var(--borde); border-radius: 16px;
  background: #fff; color: var(--tinta); text-decoration: none; box-shadow: 0 1px 0 rgba(10, 61, 122, .05);
  transition: background .15s, border-color .15s, transform .1s; cursor: pointer; text-align: left; font-family: inherit;
}
.tipo:hover { background: var(--celeste-2); border-color: var(--azul-hondo); }
.tipo:active { transform: scale(.98); background: var(--celeste); }
.tipo-icono { width: 40px; height: 40px; border-radius: 11px; background: var(--celeste); color: var(--azul); display: grid; place-items: center; }
.tipo-icono svg { width: 25px; height: 25px; }
.tipo-nombre { font: 600 15.5px/1.22 var(--f-titulo); }
.tipo-nombre small { display: block; margin-top: 2px; font: 500 13px/1.3 var(--f-texto); color: var(--tinta-2); }

/* ---------- Confianza ---------- */
.fuentes { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--linea); }
.mini { font: 600 13px/1.3 var(--f-texto); color: var(--tinta-2); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.fuentes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.fuentes li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: center; font-size: 14.5px; line-height: 1.35; color: var(--tinta-2); }
.fuentes li strong { color: var(--tinta); font-weight: 600; }
.f-ic { width: 36px; height: 36px; border-radius: 10px; background: var(--celeste-2); border: 1px solid var(--linea); color: var(--azul); display: grid; place-items: center; }
.f-ic svg { width: 20px; height: 20px; }
.firma {
  display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center;
  margin: 22px 0 8px; padding: 16px; border: 1px solid var(--borde); border-radius: 16px; background: #fff;
}
.mono-foto {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--menta);
}
.firma-frase { font: 600 16px/1.3 var(--f-titulo); color: var(--azul); }
.firma-datos { margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--tinta-2); }
.firma-datos strong { color: var(--tinta); font-weight: 600; }
.legal { margin: 10px 0 20px; font-size: 13px; line-height: 1.45; color: var(--tinta-2); }

/* ---------- Formularios ---------- */
.chip-tipo { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.chip-tipo span {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px;
  background: var(--celeste); color: var(--azul-hondo); font: 600 14px/1 var(--f-texto);
}
.chip-tipo span i { width: 28px; height: 28px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--azul); font-style: normal; }
.chip-tipo svg { width: 18px; height: 18px; }
.chip-tipo a, .chip-tipo button { font: 600 14px/1 var(--f-texto); min-height: 44px; display: inline-flex; align-items: center; padding: 0 4px; background: none; border: 0; cursor: pointer; color: var(--azul); }
.campos { display: grid; gap: 20px; padding-bottom: 20px; }
.campo { display: grid; gap: 8px; min-width: 0; }
.etiqueta { font: 600 15px/1.3 var(--f-texto); color: var(--tinta); }
.etiqueta em { font-style: normal; font-weight: 500; color: var(--tinta-2); }
.ayudita { font-size: 14px; line-height: 1.4; color: var(--tinta-2); }
.ayudita.ok { color: var(--menta-hondo); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.ayudita.ok svg { width: 18px; height: 18px; }
.ayudita.error { color: var(--danger); font-weight: 600; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.entrada { position: relative; }
.entrada input, .entrada select {
  width: 100%; height: 56px; padding: 0 16px; border: 1px solid var(--borde); border-radius: 12px;
  background: #fff; color: var(--tinta); font: 500 17px/1 var(--f-texto); -webkit-appearance: none; appearance: none;
}
.entrada input::placeholder { color: #6B7890; font-weight: 400; }
.entrada input:focus, .entrada select:focus { outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px var(--celeste); }
.entrada input.error, .entrada select.error { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(198, 40, 40, .15); }
.entrada .sufijo { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--tinta-2); font: 500 15px/1 var(--f-texto); pointer-events: none; }
.entrada.con-sufijo input { padding-right: 52px; }
.entrada.con-icono input { padding-left: 46px; }
.entrada .icono-izq { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--azul); }
.entrada.elegido input { border-color: var(--azul-hondo); background: var(--celeste-2); font-weight: 600; }
.entrada .limpiar { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: none; color: var(--tinta-2); display: grid; place-items: center; border-radius: 10px; cursor: pointer; }
.entrada .limpiar svg { width: 20px; height: 20px; }
.con-boton { display: grid; grid-template-columns: 1fr 56px; gap: 8px; }
.btn-cuadrado { width: 56px; height: 56px; border: 0; border-radius: 12px; background: var(--azul); color: #fff; display: grid; place-items: center; cursor: pointer; }
.btn-cuadrado svg { width: 22px; height: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.cinco { display: grid; grid-template-columns: repeat(5, 1fr); }
.chips.tres { display: grid; grid-template-columns: repeat(3, 1fr); }
.chip {
  min-height: 48px; padding: 0 16px; border: 1px solid var(--borde); border-radius: 12px; background: #fff;
  color: var(--tinta); font: 600 16px/1 var(--f-texto); display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer;
}
.chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--azul); border-color: var(--azul); color: #fff; }
.chip svg { width: 18px; height: 18px; }

/* ---------- Dropdown de barrio / country (autocompletar) ---------- */
.campo-autocompletar { position: relative; }
.autocompletar-lista {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 20;
  background: #fff; border: 1px solid var(--azul); border-radius: 12px; max-height: 260px; overflow-y: auto;
  box-shadow: var(--sombra);
}
.autocompletar-item {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 10px 14px; border: 0;
  border-bottom: 1px solid var(--linea); background: none; color: var(--tinta); font: 500 15px/1.3 var(--f-texto);
  text-align: left; cursor: pointer;
}
.autocompletar-item:last-child { border-bottom: 0; }
.autocompletar-item:hover, .autocompletar-item.activo { background: var(--celeste-2); }
.autocompletar-item mark { background: none; color: var(--azul-hondo); font-weight: 700; }
.autocompletar-item.es-country { border-left: 3px solid var(--menta); }

/* ---------- Mapa (Leaflet real) ---------- */
.mapa { position: relative; height: 236px; border: 1px solid var(--borde); border-radius: 16px; overflow: hidden; background: #E9EEF5; }
.mapa-leaflet { width: 100%; height: 100%; }
.mapa-tag { position: absolute; left: 10px; top: 10px; z-index: 450; padding: 7px 11px; border-radius: 999px; background: #fff; border: 1px solid var(--linea); font: 600 13px/1.2 var(--f-texto); color: var(--tinta); box-shadow: var(--sombra); pointer-events: none; }
.btn-texto { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 4px; color: var(--azul); font: 600 15.5px/1 var(--f-texto); text-decoration: none; background: none; border: 0; cursor: pointer; }
.btn-texto svg { width: 20px; height: 20px; }
.btn-texto:disabled { opacity: .5; cursor: not-allowed; }
.nota { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--tinta-2); }
.nota svg { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--azul); }
.aviso { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--celeste-2); border: 1px solid var(--linea); font-size: 14.5px; line-height: 1.45; color: var(--tinta); }
.aviso svg { flex: none; width: 22px; height: 22px; color: var(--azul); }

/* ---------- Contacto ---------- */
.listo { display: flex; align-items: center; gap: 12px; }
.listo-ic { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--menta); color: var(--tinta); display: grid; place-items: center; box-shadow: inset 0 0 0 1px rgba(10, 61, 122, .25); }
.listo-ic svg { width: 24px; height: 24px; stroke-width: 2.4; }
.resumen { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 12px 8px 12px 12px; border-radius: 14px; background: var(--celeste-2); border: 1px solid var(--linea); }
.resumen i { width: 42px; height: 42px; border-radius: 12px; background: #fff; border: 1px solid var(--linea); display: grid; place-items: center; color: var(--azul); font-style: normal; }
.resumen i svg { width: 24px; height: 24px; }
.resumen b { display: block; font: 600 15px/1.3 var(--f-titulo); color: var(--tinta); }
.resumen small { display: block; font-size: 13.5px; line-height: 1.35; color: var(--tinta-2); }
.resumen a { font: 600 14px/1 var(--f-texto); min-height: 44px; display: inline-flex; align-items: center; padding: 0 8px; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 14px; border: 1px solid var(--linea); border-radius: 14px; background: var(--celeste-2); font-size: 14px; line-height: 1.45; color: var(--tinta-2); }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--azul); }
.consent.error { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(198, 40, 40, .15); }
.mensaje-error { color: var(--danger); font-size: 14px; line-height: 1.4; margin: -6px 0 0; }
.enlace-manual { margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--azul); text-decoration: underline; }

/* ---------- Botones de acción ---------- */
.accion {
  position: sticky; bottom: 0; z-index: 4; margin: auto -16px 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--linea);
}
.btn {
  width: 100%; min-height: 56px; border-radius: 14px; border: 0; display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--azul); color: #fff; font: 600 17px/1.2 var(--f-titulo); text-decoration: none; padding: 0 20px; text-align: center;
  cursor: pointer; font-family: var(--f-titulo);
}
.btn:hover { background: var(--azul-hondo); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn svg { width: 20px; height: 20px; }
.btn-wa { min-height: 62px; background: var(--menta); color: var(--tinta); border: 1px solid var(--azul-hondo); font-size: 18px; box-shadow: 0 10px 24px -12px rgba(0, 113, 92, .55); }
.btn-wa:hover { background: #00C29D; }
.btn-wa svg { width: 26px; height: 26px; }
.debajo { margin-top: 8px; text-align: center; font-size: 13.5px; line-height: 1.3; color: var(--tinta-2); }
.accion-wa { margin-top: 18px; padding-top: 10px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }

/* ---------- Pantalla final ---------- */
.tarjeta { border: 1px solid var(--borde); border-radius: 18px; background: #fff; box-shadow: var(--sombra); overflow: hidden; }
.tarjeta-cab { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--celeste); border-bottom: 1px solid var(--linea); font: 600 14.5px/1.3 var(--f-texto); color: var(--azul-hondo); }
.tarjeta-cab svg { width: 20px; height: 20px; flex: none; }
.tarjeta-cuerpo { padding: 18px; display: grid; gap: 14px; }
.cifra { font: 700 34px/1 var(--f-titulo); color: var(--azul); letter-spacing: -.01em; }
.cifra small { font: 600 18px/1 var(--f-titulo); color: var(--azul); }
.cifra-desc { margin-top: 6px; font-size: 15.5px; line-height: 1.4; color: var(--tinta); }
.rango-lbl { font: 600 13px/1.2 var(--f-texto); color: var(--tinta-2); letter-spacing: .04em; text-transform: uppercase; }
.rango { margin-top: 6px; font: 700 25px/1.15 var(--f-titulo); color: var(--tinta); letter-spacing: -.01em; }
.rango .y { font-weight: 500; color: var(--tinta-2); }
.puntos { width: 100%; height: auto; }
.puntos circle { fill: var(--azul); fill-opacity: .82; stroke: #fff; stroke-width: 1; }
.puntos line { stroke: var(--borde); stroke-width: 1; }
.ejes { display: flex; justify-content: space-between; margin-top: 6px; font-size: 13px; color: var(--tinta-2); }
.ejes b { color: var(--tinta); font-weight: 600; }
.pie-fuente { padding: 14px 18px 16px; border-top: 1px solid var(--linea); background: var(--celeste-2); font-size: 13.5px; line-height: 1.5; color: var(--tinta-2); }
.pie-fuente strong { color: var(--tinta); font-weight: 600; }
/* M-OMI: fuente secundaria (la que NO se eligió como principal, cuando
   también llega a 5 avisos) — mismo fondo, más chica y sin su propio borde
   para que se lea como un agregado del mismo pie, no como otra tarjeta. */
.pie-fuente-sec { padding: 0 18px 14px; border-top: none; background: var(--celeste-2); font-size: 12px; line-height: 1.4; color: var(--tinta-3); }
.barra-iqr { position: relative; height: 34px; margin-top: 4px; }
.barra-iqr .pista { position: absolute; left: 0; right: 0; top: 15px; height: 4px; border-radius: 2px; background: var(--celeste); }
.barra-iqr .caja { position: absolute; top: 9px; height: 16px; border-radius: 6px; background: var(--azul); opacity: .85; }
.barra-iqr .med { position: absolute; top: 3px; width: 4px; height: 28px; margin-left: -2px; border-radius: 2px; background: var(--menta); box-shadow: 0 0 0 1px var(--azul-hondo); }
.otra { display: flex; justify-content: center; margin: 4px 0 20px; }

/* ---------- Carga ---------- */
.pantalla-carga { align-items: center; justify-content: center; text-align: center; min-height: 60vh; gap: 20px; }
.spinner { width: 48px; height: 48px; border: 4px solid var(--celeste); border-top-color: var(--azul); border-radius: 50%; animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.texto-carga { color: var(--tinta-2); font-size: 14px; font-weight: 600; animation: pulso 1.5s ease-in-out infinite; }
@keyframes pulso { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* ---------- Angosto (zoom 200 % en un celular de 390 px = 195 px) ---------- */
.pasos-nom { display: none; }
@media (max-width: 359px) {
  .barra-sup .logo { height: 28px; }
  .ayuda-sup .txt { display: none; }
  .ayuda-sup { padding: 0 12px; }
  .pasos-barra { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pasos-barra li { font-size: 0; }
  .pasos-barra li::before { margin-bottom: 0; }
  .pasos-nom { display: inline; }
  .tipos, .dos { grid-template-columns: minmax(0, 1fr); }
  .tipo { min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; }
  .chips.cinco { display: flex; flex-wrap: wrap; }
  .chips.tres { grid-template-columns: minmax(0, 1fr); }
  .chip { min-width: 48px; }
  .resumen { grid-template-columns: minmax(0, 1fr); }
  .resumen i { display: none; }
  .h1 { font-size: 26px; }
  .h2 { font-size: 21px; }
  .rango { font-size: 21px; }
  .ejes { flex-wrap: wrap; gap: 4px 10px; }
  .campo, .campos > *, .tarjeta-cuerpo > * { min-width: 0; }
  body { overflow-wrap: anywhere; }
}

/* ---------- Escritorio ---------- */
.solo-esc { display: none; }
@media (min-width: 960px) {
  body { background: var(--celeste-2); }
  .app { display: grid; grid-template-columns: minmax(320px, 420px) 560px; gap: 64px; justify-content: center; align-items: start; padding: 48px 32px 64px; }
  .lado { display: block; position: sticky; top: 48px; }
  .lado-logo { width: 190px; height: auto; margin-bottom: 30px; }
  .lado .h1 { font-size: 40px; margin: 10px 0 14px; }
  .lado .bajada { margin-top: 16px; font-size: 17px; }
  .lado .firma { margin-top: 24px; }
  .lado .ayuda { margin-top: 18px; }
  .marco { min-height: 0; border: 1px solid var(--borde); border-radius: 24px; background: #fff; box-shadow: var(--sombra); overflow: hidden; }
  .barra-sup { display: none; }
  .pantalla { padding: 8px 32px 32px; }
  .tipo { min-height: 106px; justify-content: space-between; }
  .accion { position: static; margin: 24px -32px -32px; padding: 20px 32px 28px; }
  .accion-wa { margin: 22px 0 0; padding: 0; border-top: 0; }
  .solo-movil { display: none !important; }
  .solo-esc { display: block; }
}

/* ---------- Leaflet: overrides para el tema claro ---------- */
.leaflet-control-zoom a {
  background: #fff !important; color: var(--azul-hondo) !important; border-color: var(--borde) !important;
}
.leaflet-control-zoom { border: 1px solid var(--borde) !important; border-radius: 10px !important; overflow: hidden; box-shadow: var(--sombra) !important; }
.leaflet-control-attribution { background: rgba(255, 255, 255, .88) !important; color: var(--tinta-2) !important; font-size: 10px !important; }
.leaflet-control-attribution a { color: var(--azul) !important; }
.leaflet-popup-content-wrapper { background: #fff !important; color: var(--tinta) !important; border-radius: 12px !important; box-shadow: var(--sombra) !important; border: 1px solid var(--linea) !important; }
.leaflet-popup-tip { background: #fff !important; }
.leaflet-popup-content { font: 13px/1.5 var(--f-texto) !important; }

/* ---------- WhatsApp FAB de "Consultas" (solo si hace falta flotante) ---------- */
.whatsapp-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 50; background: var(--menta); color: var(--tinta);
  padding: 13px; border-radius: 50%; box-shadow: var(--sombra); display: flex; align-items: center; justify-content: center;
}
.whatsapp-fab svg { width: 24px; height: 24px; }
@media (min-width: 960px) { .whatsapp-fab { display: none; } }
