/* Mapas de terreno — fondo blanco, sin modo oscuro */
:root { --verde: #1f5c3a; --verde-claro: #e8f1ea; --gris: #5b6660; --borde: #d9e0db; --azul: #1a73e8; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #fff; color: #1b1f1c;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

.barra { display: flex; align-items: center; gap: .6rem; background: #fff; border-bottom: 1px solid var(--borde);
  padding: calc(.7rem + env(safe-area-inset-top)) 1rem .7rem; }
.barra h1 { flex: 1; margin: 0; font-size: 1.15rem; color: var(--verde); }
.barra h2 { flex: 1; margin: 0; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip { font-size: .8rem; padding: .25rem .65rem; border-radius: 999px; background: var(--verde-claro);
  color: var(--verde); white-space: nowrap; }
.chip.sin-conexion { background: #fdecea; color: #a1281b; }
.boton-icono { border: 0; background: transparent; color: var(--verde); font-size: 1.4rem; padding: .1rem .4rem; }

.aviso { margin: .75rem 1rem 0; padding: .6rem .8rem; border-radius: .5rem; background: #fff6e0; color: #6b4e00;
  font-size: .85rem; }
.aviso.error { background: #fdecea; color: #a1281b; }
.lista { list-style: none; margin: 0; padding: .25rem 1rem; }
.mapa-item { display: flex; align-items: center; gap: .75rem; padding: .9rem 0; border-bottom: 1px solid var(--borde); }
.mapa-item .datos { flex: 1; min-width: 0; }
.mapa-item .nombre { font-weight: 600; }
.mapa-item .detalle { margin-top: .15rem; font-size: .8rem; color: var(--gris); }
.acciones { display: flex; gap: .4rem; }
.boton { border: 1px solid var(--verde); background: #fff; color: var(--verde); border-radius: .5rem;
  padding: .5rem .8rem; font-size: .9rem; font-weight: 600; }
.boton.lleno { background: var(--verde); color: #fff; }
.boton:disabled { opacity: .45; }
.vacio, .pie { padding: 1rem; color: var(--gris); font-size: .85rem; }
.pie { font-size: .75rem; }

#vista-mapa { position: fixed; inset: 0; display: flex; flex-direction: column; background: #eef0ed; }
.visor { position: relative; flex: 1; overflow: hidden; touch-action: none; user-select: none;
  -webkit-user-select: none; }
#imagen { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; will-change: transform;
  background: #fff; box-shadow: 0 0 0 1px var(--borde); }
.punto { position: absolute; left: 0; top: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: var(--azul); border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .3); pointer-events: none; }
.precision { position: absolute; left: 0; top: 0; border-radius: 50%; background: rgba(26, 115, 232, .15);
  border: 1px solid rgba(26, 115, 232, .55); pointer-events: none; }
.chip-gps { position: absolute; left: 1rem; bottom: calc(1.2rem + env(safe-area-inset-bottom)); background: #fff;
  color: #1b1f1c; box-shadow: 0 1px 4px rgba(0, 0, 0, .25); font-size: .85rem; padding: .4rem .8rem; }
.chip-gps.fuera { background: #fff6e0; color: #6b4e00; }
.boton-redondo { position: absolute; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); width: 54px;
  height: 54px; border: 0; border-radius: 50%; background: #fff; color: var(--azul); font-size: 1.6rem;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .3); }
