/* CUADRA — identidad de marca
   Paleta: asfalto (base) + naranja cono-de-obras (acción) + arena cálida (texto)
   Regla 12: glass 3 capas, auroras, numerales tabulares, curva propia, reduced-motion. */

:root {
  --asfalto:    #17191d;
  --asfalto-2:  #1e2127;
  --asfalto-3:  #262a31;
  --linea:      rgba(245, 234, 216, 0.10);
  --arena:      #f5ead8;
  --arena-60:   rgba(245, 234, 216, 0.62);
  --arena-40:   rgba(245, 234, 216, 0.40);
  --cono:       #ff7a1a;
  --cono-suave: rgba(255, 122, 26, 0.14);
  --rojo:       #ff4d5e;
  --violeta:    #b98cff;
  --verde:      #3ddc97;
  --ambar:      #ffc247;
  --teal:       #2dd4bf;
  --marron:     #c98b5e;

  /* curva propia de la casa Cuadra */
  --curva: cubic-bezier(0.22, 1, 0.36, 1);

  --radio: 18px;
  --sombra: 0 10px 34px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* TRAMPA #13 (critica ola 1): display explicito en CSS pisa el [hidden] del user-agent
   (modal fantasma bloqueando toda la app + vistas apiladas). Regla dura: hidden gana SIEMPRE. */
[hidden] { display: none !important; }

html, body {
  height: 100%;
  background: var(--asfalto);
  color: var(--arena);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  overscroll-behavior: none;
}

/* numeros de datos: tabulares siempre (horas, distancias, contadores) */
.num-tab, .num, .contador-lista, .rep-coords, time {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--cono); outline-offset: 2px; border-radius: 6px; }
::placeholder { color: var(--arena-40); }

/* ============ CAPA 1: AURORAS ============ */
.auroras { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.auroras > div { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; }
.a1 { width: 55vmax; height: 55vmax; background: radial-gradient(circle, rgba(255,122,26,0.34), transparent 62%); top: -22vmax; right: -14vmax; animation: flota1 26s var(--curva) infinite alternate; }
.a2 { width: 44vmax; height: 44vmax; background: radial-gradient(circle, rgba(45,212,191,0.16), transparent 60%); bottom: -18vmax; left: -12vmax; animation: flota2 31s var(--curva) infinite alternate; }
.a3 { width: 36vmax; height: 36vmax; background: radial-gradient(circle, rgba(185,140,255,0.13), transparent 58%); top: 32%; left: 42%; animation: flota3 37s var(--curva) infinite alternate; }

@keyframes flota1 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-6vmax, 8vmax) scale(1.14); } }
@keyframes flota2 { from { transform: translate(0, 0) scale(1); } to { transform: translate(7vmax, -5vmax) scale(1.1); } }
@keyframes flota3 { from { transform: translate(0, 0); } to { transform: translate(-8vmax, -7vmax); } }

@media (prefers-reduced-motion: reduce) {
  .auroras > div { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ============ CAPA 2: GLASS ============ */
.glass {
  background: linear-gradient(160deg, rgba(38, 42, 49, 0.72), rgba(23, 25, 29, 0.82));
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  border: 1px solid var(--linea);
  box-shadow: var(--sombra);
}

/* ============ LAYOUT ============ */
body { display: flex; flex-direction: column; }

.topbar {
  position: relative; z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-left: none; border-right: none; border-top: none;
  border-radius: 0;
}
.marca { display: flex; align-items: center; gap: 9px; color: var(--cono); }
.logo { width: 30px; height: 30px; flex: none; }
.marca-txt { display: flex; flex-direction: column; line-height: 1.05; }
.marca-txt strong { font-size: 1.02rem; letter-spacing: 0.16em; color: var(--arena); }
.marca-txt span { font-size: 0.68rem; color: var(--arena-60); letter-spacing: 0.05em; }

.buscar {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: rgba(23, 25, 29, 0.6);
  border: 1px solid var(--linea); border-radius: 999px;
  padding: 7px 13px; min-width: 0;
  transition: border-color 0.25s var(--curva);
}
.buscar:focus-within { border-color: var(--cono); }
.buscar svg { width: 16px; height: 16px; color: var(--arena-60); flex: none; }
.buscar input {
  flex: 1; background: none; border: none; color: var(--arena);
  min-width: 0; font-size: 0.92rem;
}
.buscar input:focus { outline: none; }
.buscar input::-webkit-search-cancel-button { -webkit-appearance: none; }
.limpiar { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: var(--arena-60); transition: background .2s var(--curva); }
.limpiar:hover { color: var(--arena); background: rgba(245, 234, 216, 0.1); }
.limpiar svg { width: 10px; height: 10px; }

.badge-modo {
  flex: none; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em;
  padding: 5px 10px; border-radius: 999px; text-transform: uppercase;
}
.badge-modo.vivo   { background: rgba(61, 220, 151, 0.16); color: var(--verde); border: 1px solid rgba(61, 220, 151, 0.4); }
.badge-modo.demo   { background: var(--cono-suave); color: var(--ambar); border: 1px solid rgba(255, 194, 71, 0.4); }
.badge-modo.error  { background: rgba(255, 77, 94, 0.14); color: var(--rojo); border: 1px solid rgba(255, 77, 94, 0.4); }

/* ============ FILTROS ============ */
.filtros {
  position: relative; z-index: 20;
  display: flex; gap: 7px; align-items: center;
  padding: 8px 12px;
  overflow-x: auto; scrollbar-width: none;
  border-left: none; border-right: none;
  border-radius: 0;
}
.filtros::-webkit-scrollbar { display: none; }

.chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--linea);
  background: rgba(23, 25, 29, 0.5);
  color: var(--arena-60);
  font-size: 0.8rem; font-weight: 600;
  transition: all 0.22s var(--curva);
}
.chip .punto { width: 8px; height: 8px; border-radius: 50%; background: var(--chip-color, var(--arena-40)); }
.chip .num-tab { font-size: 0.72rem; color: var(--arena-40); }
.chip[aria-pressed="true"] {
  background: color-mix(in srgb, var(--chip-color, var(--cono)) 22%, rgba(23,25,29,0.6));
  border-color: var(--chip-color, var(--cono));
  color: var(--arena);
}
.chip-estado[aria-pressed="true"] { --chip-color: var(--verde); }

/* ============ VISTAS ============ */
.vista { position: relative; z-index: 10; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.vista-mapa #mapa { position: absolute; inset: 0; z-index: 0; background: var(--asfalto-2); }

/* Leaflet: adaptar al tema (fondo de controles) */
.leaflet-container { font: inherit; }
.leaflet-control-attribution {
  background: rgba(23, 25, 29, 0.72) !important; color: var(--arena-40) !important;
  font-size: 0.6rem !important; backdrop-filter: blur(6px);
}
.leaflet-control-attribution a { color: var(--arena-60) !important; }
.leaflet-bar a {
  background: var(--asfalto-3) !important; color: var(--arena) !important;
  border-bottom: 1px solid var(--linea) !important;
}
.leaflet-popup-content-wrapper, .leaflet-popup-tip {
  background: var(--asfalto-3); color: var(--arena);
  border: 1px solid var(--linea); border-radius: 14px;
  box-shadow: var(--sombra);
}
.leaflet-popup-content { margin: 12px 14px; font-size: 0.88rem; }
.leaflet-container a.leaflet-popup-close-button { color: var(--arena-60); }

/* CAPA 3: PINES propios (divIcon) */
.pin { position: relative; width: 30px; height: 30px; }
.pin .disco {
  position: absolute; inset: 0; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg);
  background: var(--pin-color, var(--cono));
  border: 2px solid rgba(23, 25, 29, 0.9);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
.pin.pulso .disco::after {
  content: ""; position: absolute; inset: -9px; border-radius: 50% 50% 50% 4px;
  border: 2px solid var(--pin-color, var(--cono)); opacity: 0;
  animation: pulso 2.2s var(--curva) infinite;
}
@keyframes pulso { 0% { transform: scale(0.55); opacity: 0.8; } 70% { transform: scale(1.25); opacity: 0; } 100% { opacity: 0; } }
.pin svg { position: absolute; inset: 0; margin: auto; width: 15px; height: 15px; transform: rotate(45deg); color: #17191d; z-index: 1; }
.pin.fuente-vecino .disco { border-style: dashed; background: color-mix(in srgb, var(--pin-color) 55%, #17191d); }
.pin.fuente-vecino svg { color: var(--arena); }
.pin.resuelto { opacity: 0.55; }

/* ============ PANEL (bottom sheet movil / lateral desktop) ============ */
.panel {
  position: absolute; z-index: 20;
  left: 10px; right: 10px; bottom: 66px;
  max-height: 42%;
  border-radius: var(--radio);
  display: flex; flex-direction: column;
  transition: max-height 0.3s var(--curva);
}
.panel.expandido { max-height: 74%; }
.panel-tabs { display: flex; gap: 4px; padding: 8px 10px 0; }
.tab {
  padding: 8px 12px; border-radius: 12px 12px 0 0;
  color: var(--arena-60); font-size: 0.85rem; font-weight: 600;
  border-bottom: 2px solid transparent;
}
.tab.activa { color: var(--arena); border-bottom-color: var(--cono); }
.panel-cuerpo { overflow-y: auto; padding: 10px 12px 14px; }

.lista { display: flex; flex-direction: column; gap: 8px; }

.tarjeta {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px; border-radius: 14px;
  background: rgba(23, 25, 29, 0.55);
  border: 1px solid var(--linea);
  cursor: pointer;
  transition: transform 0.2s var(--curva), border-color 0.2s var(--curva);
  text-align: left; width: 100%;
}
.tarjeta:hover, .tarjeta:focus-visible { border-color: var(--t-color, var(--cono)); transform: translateY(-1px); }
.tarjeta .icono-tipo {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--t-color, var(--cono)) 18%, transparent);
  color: var(--t-color, var(--cono));
}
.tarjeta .icono-tipo svg { width: 17px; height: 17px; }
.tarjeta .cuerpo { flex: 1; min-width: 0; }
.tarjeta h5 { font-size: 0.88rem; font-weight: 650; color: var(--arena); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tarjeta .meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 0.72rem; color: var(--arena-60); margin-top: 3px; }

.estado-pill {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 2px 8px; border-radius: 999px; text-transform: uppercase;
}
.st-activo     { background: rgba(255, 77, 94, 0.15); color: #ff8f9c; }
.st-programado { background: rgba(185, 140, 255, 0.15); color: var(--violeta); }
.st-resuelto   { background: rgba(61, 220, 151, 0.14); color: var(--verde); }
.st-reportado  { background: rgba(245, 234, 216, 0.09); color: var(--arena-60); border: 1px dashed var(--arena-40); }

/* DETALLE */
.detalle .detalle-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.detalle .detalle-top .icono-tipo { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--t-color, var(--cono)) 18%, transparent); color: var(--t-color, var(--cono)); }
.detalle h4 { font-size: 1.05rem; }
.detalle .detalle-calle { color: var(--arena-60); font-size: 0.82rem; margin-top: 2px; }
.detalle .nota-bloque {
  margin-top: 10px; padding: 10px 12px; border-radius: 12px;
  background: rgba(23, 25, 29, 0.5); border: 1px solid var(--linea);
  font-size: 0.86rem; line-height: 1.5; color: var(--arena-60);
}
.detalle .fila-tiempos { display: flex; gap: 14px; margin-top: 10px; font-size: 0.78rem; color: var(--arena-60); }
.detalle .fila-tiempos strong { color: var(--arena); display: block; font-size: 0.8rem; }
.volver-lista { margin-top: 12px; color: var(--cono); font-size: 0.84rem; font-weight: 600; }

/* ============ FAB ============ */
.fab {
  position: absolute; z-index: 25;
  right: 16px; bottom: 78px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 18px; border-radius: 999px;
  background: linear-gradient(150deg, #ff8f3f, var(--cono));
  color: #17191d; font-weight: 800; font-size: 0.9rem;
  border: none;
  box-shadow: 0 8px 26px rgba(255, 122, 26, 0.4);
  transition: transform 0.22s var(--curva), box-shadow 0.22s var(--curva);
}
.fab:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 12px 32px rgba(255, 122, 26, 0.5); }
.fab svg { width: 17px; height: 17px; }

/* ============ NAVBAR ============ */
.navbar {
  position: relative; z-index: 30;
  display: flex; justify-content: space-around;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  border-left: none; border-right: none; border-bottom: none;
  border-radius: 0;
}
.nav-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 6px 14px; border-radius: 12px;
  color: var(--arena-40); font-size: 0.68rem; font-weight: 600;
  transition: color 0.2s var(--curva);
}
.nav-btn svg { width: 21px; height: 21px; }
.nav-btn.activa { color: var(--cono); }

/* ============ PÁGINAS (agenda / servicios) ============ */
.pagina { flex: 1; overflow-y: auto; padding: 22px 18px 90px; max-width: 760px; width: 100%; margin: 0 auto; }
.pagina h2 { font-size: 1.35rem; letter-spacing: 0.01em; }
.pagina .sub { color: var(--arena-60); font-size: 0.88rem; margin: 6px 0 18px; line-height: 1.5; }

.agenda-item {
  display: flex; gap: 14px; padding: 14px; border-radius: 16px;
  background: rgba(23, 25, 29, 0.55); border: 1px solid var(--linea);
  margin-bottom: 10px;
}
.agenda-fecha {
  flex: none; width: 66px; text-align: center; padding: 8px 4px;
  border-radius: 12px; background: color-mix(in srgb, var(--violeta) 16%, transparent);
  color: var(--violeta);
}
.agenda-fecha .dia { font-size: 1.35rem; font-weight: 800; display: block; }
.agenda-fecha .mes { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.08em; }
.agenda-fecha.hoy { background: var(--cono-suave); color: var(--cono); }
.agenda-cuerpo h5 { font-size: 0.95rem; }
.agenda-cuerpo .meta { font-size: 0.76rem; color: var(--arena-60); margin-top: 4px; line-height: 1.5; }
.badge-cuando { display: inline-block; margin-left: 8px; font-size: 0.66rem; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--cono-suave); color: var(--cono); text-transform: uppercase; letter-spacing: 0.05em; }

.serv-cat { margin: 20px 0 8px; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--arena-40); }
.serv-item {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 14px; margin-bottom: 8px;
  background: rgba(23, 25, 29, 0.55); border: 1px solid var(--linea);
}
.serv-item .s-nombre { font-size: 0.9rem; font-weight: 650; }
.serv-item .s-detalle { font-size: 0.76rem; color: var(--arena-60); margin-top: 2px; line-height: 1.45; }
.serv-item a.tel {
  flex: none; padding: 8px 14px; border-radius: 999px; text-decoration: none;
  background: var(--cono); color: #17191d; font-weight: 800; font-size: 0.82rem;
  transition: transform 0.2s var(--curva);
}
.serv-item a.tel:hover { transform: scale(1.05); }
.serv-item .por-confirmar { display: inline-block; margin-top: 4px; font-size: 0.64rem; color: var(--ambar); border: 1px dashed rgba(255, 194, 71, 0.5); border-radius: 999px; padding: 1px 8px; }
.nota-verificar { margin-top: 16px; font-size: 0.72rem; color: var(--arena-40); line-height: 1.5; }

/* ============ MODAL ============ */
.modal-fondo {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center; padding: 16px;
  background: rgba(10, 11, 13, 0.66);
  backdrop-filter: blur(4px);
  animation: aparece 0.25s var(--curva);
}
@keyframes aparece { from { opacity: 0; } }
.modal {
  width: min(520px, 100%); max-height: min(86dvh, 720px);
  border-radius: 22px; padding: 0;
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: sube 0.32s var(--curva);
}
@keyframes sube { from { transform: translateY(26px) scale(0.98); opacity: 0; } }
.modal header { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px 0; }
.modal h3 { font-size: 1.05rem; }
.cerrar { padding: 8px; border-radius: 10px; color: var(--arena-60); }
.cerrar:hover { color: var(--arena); background: rgba(245, 234, 216, 0.08); }
.cerrar svg { width: 14px; height: 14px; display: block; }
.rep-sub { padding: 4px 18px 0; font-size: 0.78rem; color: var(--arena-60); }

.modal > .rep-paso, .modal > .rep-exito, .modal > .rep-nav { padding: 14px 18px 0; overflow-y: auto; }
.rep-paso h4 { font-size: 0.95rem; margin-bottom: 12px; }

.rep-tipos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rep-tipo {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 4px; border-radius: 14px;
  border: 1px solid var(--linea); background: rgba(23, 25, 29, 0.5);
  font-size: 0.68rem; font-weight: 600; color: var(--arena-60);
  transition: all 0.2s var(--curva);
}
.rep-tipo svg { width: 20px; height: 20px; color: var(--t-color); }
.rep-tipo[aria-pressed="true"] { border-color: var(--t-color); background: color-mix(in srgb, var(--t-color) 16%, rgba(23,25,29,0.5)); color: var(--arena); transform: translateY(-2px); }
@media (max-width: 400px) { .rep-tipos { grid-template-columns: repeat(2, 1fr); } }

.rep-pista { font-size: 0.78rem; color: var(--arena-60); margin-bottom: 10px; }
.rep-mapa-wrap { border-radius: 14px; overflow: hidden; border: 1px solid var(--linea); height: 230px; }
#rep-mapa { height: 100%; }
.rep-geo { display: flex; align-items: center; justify-content: space-between; margin: 10px 0; }
.btn-chico {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 13px; border-radius: 999px;
  border: 1px solid var(--linea); background: rgba(23, 25, 29, 0.5);
  font-size: 0.8rem; font-weight: 600; color: var(--arena-60);
  transition: all 0.2s var(--curva);
}
.btn-chico:hover { color: var(--arena); border-color: var(--cono); }
.btn-chico svg { width: 15px; height: 15px; }
.rep-coords { font-size: 0.74rem; color: var(--arena-40); }

.rep-label { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--arena-60); margin: 12px 0 5px; }
.opcional { color: var(--arena-40); }
.modal input, .modal textarea {
  width: 100%; padding: 11px 13px; border-radius: 12px;
  background: rgba(23, 25, 29, 0.6); border: 1px solid var(--linea);
  color: var(--arena); resize: vertical;
}
.modal input:focus, .modal textarea:focus { outline: none; border-color: var(--cono); }

.btn-primario {
  display: block; width: 100%; margin-top: 16px;
  padding: 13px; border-radius: 14px;
  background: linear-gradient(150deg, #ff8f3f, var(--cono));
  color: #17191d; font-weight: 800; font-size: 0.92rem;
  transition: transform 0.2s var(--curva), filter 0.2s var(--curva);
}
.btn-primario:hover:not(:disabled) { transform: translateY(-1px); filter: brightness(1.06); }
.btn-primario:disabled { opacity: 0.45; cursor: not-allowed; }

.rep-aviso { margin-top: 12px; font-size: 0.72rem; color: var(--arena-40); line-height: 1.5; }
.rep-aviso strong { color: var(--arena-60); }

.rep-exito { text-align: center; padding-bottom: 18px; }
.exito-icono {
  width: 62px; height: 62px; margin: 8px auto 12px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(61, 220, 151, 0.14); color: var(--verde);
  animation: rebota 0.5s var(--curva);
}
@keyframes rebota { 0% { transform: scale(0.4); opacity: 0; } 70% { transform: scale(1.12); } }
.exito-icono svg { width: 28px; height: 28px; }

.rep-nav { display: flex; justify-content: space-between; align-items: center; padding: 12px 18px 16px; margin-top: auto; }
.rep-paso-ind { font-size: 0.76rem; color: var(--arena-40); }
.rep-volver { font-size: 0.8rem; color: var(--cono); font-weight: 700; }
.rep-volver:hover { text-decoration: underline; }

/* ============ TOASTS ============ */
.toasts { position: fixed; z-index: 80; bottom: 86px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast {
  padding: 12px 16px; border-radius: 14px; font-size: 0.84rem; line-height: 1.45;
  background: rgba(38, 42, 49, 0.92); backdrop-filter: blur(14px);
  border: 1px solid var(--linea); color: var(--arena);
  box-shadow: var(--sombra);
  animation: toast-in 0.3s var(--curva);
}
.toast.ok    { border-color: rgba(61, 220, 151, 0.5); }
.toast.error { border-color: rgba(255, 77, 94, 0.55); }
@keyframes toast-in { from { transform: translateY(14px); opacity: 0; } }

/* ============ DESKTOP ============ */
@media (min-width: 1024px) {
  .topbar { padding: 14px 26px; }
  .marca-txt strong { font-size: 1.12rem; }
  .buscar { max-width: 460px; }
  .filtros { padding: 10px 26px; }
  .panel {
    left: auto; right: 18px; top: 132px; bottom: 24px;
    width: 380px; max-height: none;
  }
  .panel.expandido { max-height: none; }
  .fab { right: 414px; bottom: 24px; }
  .navbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; border-radius: 999px; padding: 6px 10px; }
}

/* ============ MOVIL CHICO (375) ============ */
@media (max-width: 420px) {
  .topbar { gap: 8px; padding: 8px 10px; }
  .marca-txt span { display: none; }
  .buscar input { font-size: 0.84rem; }
  .badge-modo { padding: 4px 8px; font-size: 0.58rem; }
  .panel { bottom: 62px; max-height: 38%; }
  .fab { padding: 11px 15px; font-size: 0.82rem; bottom: 72px; }
}

/* mapa gris en impresion/lectores */
@media (prefers-contrast: more) {
  .glass { background: #1e2127; backdrop-filter: none; }
  .tarjeta, .agenda-item, .serv-item { background: #17191d; }
}
