:root { --fondo: #f6f3ee; --texto: #23281f; --verde: #2f3a2c; --cobre: #8a4e2e; --suave: #6b6f66; }
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.4 system-ui, -apple-system, sans-serif; background: var(--fondo); color: var(--texto); padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
.barra { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top)); background: var(--verde); color: #fff; }
main { padding: 12px 16px; max-width: 900px; margin: 0 auto; }
.aviso { margin: 0; padding: 8px 16px; background: #f4d9a6; }
.mapa-caja svg { width: 100%; height: auto; display: block; border-radius: 8px; }
.mapa .lote { stroke: #fff; stroke-width: 2; cursor: pointer; }
.mapa .lote[data-estado="disponible"] { fill: rgba(72, 140, 72, .55); }
.mapa .lote[data-estado="bloqueado"] { fill: rgba(232, 170, 40, .8); }
.mapa .lote[data-estado="separado"] { fill: rgba(214, 110, 30, .85); }
.mapa .lote[data-estado="promesa"], .mapa .lote[data-estado="escriturado"], .mapa .lote[data-estado="especie"] { fill: rgba(220, 220, 214, .75); }
.mapa .lote[data-estado="reservado"] { fill: rgba(138, 78, 46, .85); }
.mapa .resto { fill: rgba(35, 40, 31, .34); }
.mapa .perimetro { fill: none; stroke: #fff; stroke-width: 3; stroke-dasharray: 18 12; }
.mapa .rotulo-lote { pointer-events: none; text-anchor: middle; }
.mapa .rotulo-lote .numero { font-size: 60px; font-weight: 700; fill: #fff; }
.mapa .rotulo-lote .area, .mapa .rotulo-lote .marca { display: none; }
.leyenda { display: flex; flex-wrap: wrap; gap: 12px; font-size: 14px; }
.leyenda i { display: inline-block; width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; border-radius: 3px; }
.leyenda i[data-estado="disponible"] { background: rgb(72, 140, 72); } .leyenda i[data-estado="bloqueado"] { background: rgb(232, 170, 40); }
.leyenda i[data-estado="separado"] { background: rgb(214, 110, 30); } .leyenda i[data-estado="promesa"] { background: rgb(200, 200, 194); }
.leyenda i[data-estado="reservado"] { background: rgb(138, 78, 46); }
.ficha { width: min(560px, 100vw - 32px); border: 0; border-radius: 12px; padding: 16px; }
.ficha dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; }
.ficha dt { color: var(--suave); }
.ficha .botones { display: grid; gap: 8px; margin-top: 12px; }
button, .boton { font: inherit; padding: 10px 14px; border-radius: 8px; border: 0; background: var(--cobre); color: #fff; }
button.secundario { background: #e4ddd2; color: var(--texto); }
label { display: block; margin-top: 8px; } input, select, textarea { width: 100%; font: inherit; padding: 8px; border: 1px solid #c9c2b6; border-radius: 6px; }
.error { color: #a12a1a; } .nota { font-size: 13px; color: var(--suave); }
.menu { position: fixed; bottom: 0; left: 0; right: 0; display: flex; overflow-x: auto; gap: 4px; padding: 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -1px 4px rgba(0,0,0,.1); }
.menu button { flex: 1 0 auto; background: transparent; color: var(--texto); }
.menu button[aria-current="page"] { background: var(--verde); color: #fff; }
.tabla { width: 100%; border-collapse: collapse; font-size: 14px; } .tabla td, .tabla th { padding: 6px; border-bottom: 1px solid #e2dcd2; text-align: left; }
.desplazable { overflow-x: auto; }
.casilla input { width: auto; }
