/* Campo Social · app de captura en campo. Una columna, botones grandes, legible al sol.
   Identidad v0.2.1: azul profundo → azul eléctrico → turquesa (base) y lima como luz de acento.
   Fondos en malla de varios focos (nunca un degradado plano), vidrio en la barra inferior, contenido sobre blanco con contraste alto. */
:root {
  --bg: #F3F6F9; --surface: #FFFFFF; --surface-2: #EEF2F6; --fg: #0E1A2E; --muted: #5B6472; --line: #DDE3EA;
  --azul: #1E3C86; --electrico: #2E6BFF; --turquesa: #19C3A6; --azul-suave: #E6EEFF; --azul-tinta: #0B1B4A; --noche: #0A1535;
  --verde: #1F7A4D; --verde-suave: #DDF3E4;
  --lima: #C6F35A; --lima-2: #ECFBBF; --lima-tinta: #1E3310;
  --primario: var(--azul); --primario-suave: var(--azul-suave); --acento: var(--lima); --acento-tinta: var(--lima-tinta);
  --ok: #1F7A4D; --ok-suave: #DDF3E4; --alerta: #A86A0B; --alerta-suave: #FBEDCB; --error: #B4382A; --error-suave: #F9DFDA;
  /* Mallas: varios focos de luz sobre una base */
  /* Los focos de luz van a la derecha y abajo; el texto siempre queda sobre la zona oscura (velo a la izquierda) */
  --malla-oscura: radial-gradient(at 92% 92%, rgba(198,243,90,.34) 0%, rgba(198,243,90,0) 40%), radial-gradient(at 78% 20%, rgba(25,195,166,.5) 0%, rgba(25,195,166,0) 45%),
    radial-gradient(at 55% 70%, rgba(46,107,255,.62) 0%, rgba(46,107,255,0) 55%), linear-gradient(135deg, #0B1B4A 0%, #1B3677 60%, #143A66 100%);
  --velo-oscuro: linear-gradient(90deg, rgba(10,21,53,.55) 0%, rgba(10,21,53,.22) 55%, rgba(10,21,53,0) 100%);
  --malla-clara: radial-gradient(at 15% 0%, rgba(46,107,255,.12) 0%, rgba(46,107,255,0) 40%), radial-gradient(at 95% 12%, rgba(25,195,166,.13) 0%, rgba(25,195,166,0) 38%),
    radial-gradient(at 50% 105%, rgba(198,243,90,.18) 0%, rgba(198,243,90,0) 45%), #F3F6F9;
  --grad-boton: linear-gradient(120deg, #2E6BFF 0%, #1E3C86 55%, #19C3A6 130%);
  --grad-lima: linear-gradient(120deg, #D9FF7A 0%, #C6F35A 55%, #8FE6C9 130%);
  --grad-icono: linear-gradient(135deg, #2E6BFF, #19C3A6);
  --sombra: 0 1px 2px rgba(14,26,46,.05), 0 10px 30px rgba(30,60,134,.07);
  --sombra-alta: 0 6px 14px rgba(10,21,53,.16), 0 20px 44px rgba(10,21,53,.18);
  --brillo-azul: 0 8px 20px rgba(46,107,255,.24);
  --r: 22px; --r-sm: 16px;
  --fuente: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0C121C; --surface: #151D2B; --surface-2: #1E2838; --fg: #ECEFF4; --muted: #A2ABB8; --line: #2B3647;
    --azul: #8AA9F2; --electrico: #6D96FF; --turquesa: #3FD9BF; --azul-suave: #1C2A4A; --azul-tinta: #0B1B4A; --noche: #070D20;
    --verde: #7CCB9A; --verde-suave: #1D3326; --lima: #C6F35A; --lima-2: #2E3A14; --lima-tinta: #1C2406;
    --ok: #86C27E; --ok-suave: #233224; --alerta: #E3B45A; --alerta-suave: #3A2F16; --error: #E07E6F; --error-suave: #3C231F;
    --malla-clara: radial-gradient(at 15% 0%, rgba(46,107,255,.22) 0%, rgba(46,107,255,0) 40%), radial-gradient(at 95% 12%, rgba(25,195,166,.2) 0%, rgba(25,195,166,0) 38%), #0C121C;
    --sombra: 0 1px 2px rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.35); --sombra-alta: 0 6px 16px rgba(0,0,0,.5); color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--fg); font: 16px/1.45 var(--fuente); -webkit-tap-highlight-color: transparent; }
/* Capa de fondo en malla, fija, detrás de todo */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: var(--malla-clara); }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--electrico); outline-offset: 2px; }
[hidden] { display: none !important; }
h1 { font-size: 25px; margin: 4px 0 0; line-height: 1.15; letter-spacing: -.015em; }
h2 { font-size: 17px; margin: 0; display: flex; align-items: center; gap: 8px; }
h2 svg { width: 20px; height: 20px; color: var(--electrico); }
.sub { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- Cabecera y navegación ---------- */
.barra { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; background: var(--malla-oscura); color: #fff; overflow: hidden;
  border-radius: 0 0 26px 26px; box-shadow: 0 10px 30px rgba(10,21,53,.28);
  padding: calc(14px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 16px max(16px, env(safe-area-inset-left, 0px)); }
/* Línea de luz en el borde inferior (como una barra led) */
.barra::before { content: ""; position: absolute; inset: 0; background: var(--velo-oscuro); pointer-events: none; }
.barra::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 0; height: 2px; border-radius: 2px 2px 0 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(198,243,90,0), #C6F35A 35%, #8FE6C9 65%, rgba(143,230,201,0)); box-shadow: 0 0 8px rgba(198,243,90,.55); }
.barra > * { position: relative; }
.barra .titulo { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.barra strong { font-size: 19px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.barra span { font-size: 13px; opacity: .88; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atras { background: rgba(10,21,53,.45); border: 1px solid rgba(255,255,255,.26); color: #fff; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; backdrop-filter: blur(8px); }
.senal { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: #fff; background: rgba(10,21,53,.45); border: 1px solid rgba(255,255,255,.26); padding: 7px 11px; border-radius: 999px; white-space: nowrap; backdrop-filter: blur(8px); }
.senal i { width: 9px; height: 9px; border-radius: 50%; background: #F2B8AE; }
.senal.si i { background: var(--lima); box-shadow: 0 0 0 3px rgba(198,243,90,.25), 0 0 8px rgba(198,243,90,.7); }
main { padding: 16px max(16px, env(safe-area-inset-right, 0px)) calc(118px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin: 0 auto; outline: none; }
.pie { position: fixed; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 20;
  display: grid; grid-template-columns: repeat(4, 1fr); background: rgba(10,21,53,.92); border: 1px solid rgba(255,255,255,.12); border-radius: 28px; box-shadow: var(--sombra-alta);
  padding: 8px 10px; max-width: 520px; margin: 0 auto; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.pie a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 2px 0 4px; color: rgba(255,255,255,.86); text-decoration: none; font-size: 12.5px; font-weight: 700; position: relative; }
.pie .ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease; }
.pie .ico svg { width: 24px; height: 24px; }
.pie a[aria-current="page"] { color: #fff; }
.pie a[aria-current="page"] .ico { background: var(--grad-icono); color: #fff; transform: translateY(-16px); box-shadow: 0 0 0 5px rgba(10,21,53,.95), 0 10px 22px rgba(46,107,255,.4); }
.pie a[aria-current="page"]::after { content: ""; position: absolute; bottom: -2px; width: 20px; height: 3px; border-radius: 3px; background: var(--lima); box-shadow: 0 0 6px rgba(198,243,90,.6); }
.insignia { position: absolute; top: -2px; left: calc(50% + 8px); background: #FF5A4E; color: #fff; font-size: 11px; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 5px; z-index: 1; box-shadow: 0 0 0 2px rgba(10,21,53,.95); }
.aviso { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(100px + env(safe-area-inset-bottom, 0px)); z-index: 40; background: rgba(10,21,53,.95); color: #fff; border: 1px solid rgba(255,255,255,.14);
  padding: 12px 18px; border-radius: 14px; font-size: 14.5px; font-weight: 600; max-width: calc(100% - 32px); box-shadow: var(--sombra-alta); backdrop-filter: blur(10px); }

/* ---------- Bloques comunes ---------- */
.tarjeta { background: var(--surface); border-radius: var(--r); box-shadow: var(--sombra); padding: 18px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.7); }
/* Niebla de color al pie de la tarjeta (como en la referencia), muy suave para no robar contraste */
.tarjeta::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -70px; height: 120px; pointer-events: none; z-index: 0;
  background: radial-gradient(at 30% 100%, rgba(46,107,255,.06), rgba(46,107,255,0) 60%), radial-gradient(at 80% 100%, rgba(25,195,166,.07), rgba(25,195,166,0) 60%); filter: blur(10px); }
.tarjeta > * { position: relative; z-index: 1; }
.fila { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 12px 18px; border-radius: 16px; border: 1.5px solid var(--line);
  background: var(--surface); font-weight: 700; font-size: 16px; text-decoration: none; color: var(--fg); transition: transform .12s ease; }
.boton svg { width: 20px; height: 20px; }
.boton:active { transform: scale(.985); }
.boton.primario { background: var(--grad-boton); border-color: transparent; color: #fff; box-shadow: var(--brillo-azul); }
.boton.acento { background: var(--grad-lima); border-color: transparent; color: var(--lima-tinta); box-shadow: 0 8px 20px rgba(198,243,90,.3); }
.boton.ancho { width: 100%; }
.boton:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.chip svg { width: 14px; height: 14px; }
.chip.ok { background: var(--ok-suave); color: var(--ok); } .chip.alerta { background: var(--alerta-suave); color: var(--alerta); } .chip.error { background: var(--error-suave); color: var(--error); }
.chip.primario { background: var(--azul-suave); color: var(--azul); } .chip.lima { background: var(--lima-2); color: var(--lima-tinta); }
.ico { display: inline-grid; place-items: center; flex-shrink: 0; }
.ico.redondo { width: 40px; height: 40px; border-radius: 50%; background: var(--azul-suave); color: var(--electrico); }
.ico.redondo.lima { background: var(--grad-lima); color: var(--lima-tinta); } .ico.redondo.ok { background: var(--verde-suave); color: var(--verde); }
.ico.redondo.alerta { background: var(--alerta-suave); color: var(--alerta); } .ico.redondo.error { background: var(--error-suave); color: var(--error); }
.ico.redondo.grad { background: var(--grad-icono); color: #fff; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--grad-icono); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 17px; letter-spacing: .02em; flex-shrink: 0; box-shadow: 0 0 0 3px #fff, 0 0 0 5px rgba(46,107,255,.25); }
.campo-texto { width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid transparent; background: var(--surface-2); font-size: 16px; transition: border-color .12s, background .12s, box-shadow .12s; }
.campo-texto:focus { outline: none; border-color: var(--electrico); background: var(--surface); box-shadow: 0 0 0 4px rgba(46,107,255,.14); }
textarea.campo-texto { min-height: 96px; resize: vertical; }
.etiqueta { font-size: 13px; font-weight: 700; color: var(--muted); }
.buscador { position: relative; }
.buscador > svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.buscador .campo-texto { padding-left: 44px; background: var(--surface); box-shadow: var(--sombra); }
.vacio { text-align: center; color: var(--muted); padding: 24px 8px; }

/* Portada: tarjeta en malla oscura con anillo de avance */
.hero { background: var(--malla-oscura); color: #fff; border-radius: var(--r); padding: 22px; display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; position: relative; overflow: hidden; box-shadow: 0 14px 36px rgba(10,21,53,.26); border: 1px solid rgba(255,255,255,.14); }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--velo-oscuro); pointer-events: none; }
.hero > * { position: relative; min-width: 0; }
.hero > div:first-child { max-width: 46ch; }
.hero h1 { color: #fff; }
.hero p { margin: 6px 0 0; font-size: 14.5px; opacity: .94; }
/* Anillo: el número va dentro; la leyenda va debajo, nunca dentro del círculo */
.anillo-caja { display: flex; flex-direction: column; align-items: center; gap: 6px; flex-shrink: 0; }
.anillo-caja .leyenda { font-size: 12.5px; font-weight: 600; opacity: .92; white-space: nowrap; }
.anillo { position: relative; width: 92px; height: 92px; flex-shrink: 0; }
.anillo svg { width: 100%; height: 100%; transform: rotate(-90deg); stroke-width: 8; overflow: visible; }
.anillo .pista { stroke: rgba(255,255,255,.22); } .anillo .avance { stroke: url(#gradLima); transition: stroke-dashoffset .4s ease; }
.anillo .texto { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.anillo .texto b { font-size: 26px; font-variant-numeric: tabular-nums; }
.cifras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cifra { background: var(--surface); border-radius: var(--r-sm); padding: 12px; box-shadow: var(--sombra); display: flex; flex-direction: column; gap: 8px; border: 1px solid rgba(255,255,255,.7); }
.cifra .ico.redondo { width: 36px; height: 36px; } .cifra .ico svg { width: 19px; height: 19px; }
.cifra b { display: block; font-size: 26px; line-height: 1.05; font-variant-numeric: tabular-nums; }
.cifra span { font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* ---------- Predios ---------- */
.pestanas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pestanas button { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; min-height: 46px; font-weight: 700; color: var(--muted); font-size: 14.5px; display: flex; align-items: center; justify-content: center; gap: 6px; position: relative; overflow: hidden; box-shadow: var(--sombra); }
.pestanas button svg { width: 18px; height: 18px; }
/* Pestaña activa: oscura con barra de luz, como en la referencia */
.pestanas button[aria-pressed="true"] { background: var(--noche); color: #fff; border-color: transparent; }
.pestanas button[aria-pressed="true"]::before { content: ""; position: absolute; left: 10px; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, #C6F35A, #19C3A6); box-shadow: 0 0 8px rgba(198,243,90,.6); }
.sectores { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sector { text-align: left; border: 1.5px solid transparent; background: var(--surface); border-radius: var(--r-sm); padding: 14px; display: flex; flex-direction: column; gap: 6px; min-height: 92px; box-shadow: var(--sombra); }
.sector[aria-pressed="true"] { border-color: var(--electrico); background: var(--azul-suave); box-shadow: 0 0 0 4px rgba(46,107,255,.12); }
.sector b { font-size: 16px; display: flex; align-items: center; gap: 6px; } .sector b svg { width: 16px; height: 16px; color: var(--electrico); } .sector span { font-size: 13px; color: var(--muted); }
.barra-mini { display: block; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 2px; }
.sector[aria-pressed="true"] .barra-mini { background: rgba(46,107,255,.14); }
.barra-mini i { display: block; height: 100%; background: linear-gradient(90deg, #19C3A6, #C6F35A); border-radius: 3px; }
.predio { display: flex; gap: 12px; align-items: center; text-align: left; width: 100%; border: 1px solid rgba(255,255,255,.7); background: var(--surface); border-radius: 18px; padding: 12px; box-shadow: var(--sombra); color: inherit; text-decoration: none; }
.predio .silueta { width: 54px; height: 54px; flex-shrink: 0; border-radius: 14px; background: radial-gradient(at 20% 20%, rgba(46,107,255,.18), rgba(46,107,255,0) 60%), radial-gradient(at 90% 90%, rgba(25,195,166,.2), rgba(25,195,166,0) 60%), var(--surface-2); display: grid; place-items: center; }
.predio .silueta svg { width: 44px; height: 44px; stroke-width: 1.6; }
.predio .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.predio .info b { font-size: 15.5px; }
.predio .info small { color: var(--muted); font-size: 13px; }
.predio .chips { display: flex; gap: 5px; flex-wrap: wrap; }
.predio .chev { color: var(--muted); width: 20px; height: 20px; }
.sugerencia { outline: 2px solid var(--lima); box-shadow: 0 0 0 6px rgba(198,243,90,.25), var(--sombra); }
#mapa { height: 62vh; min-height: 360px; border-radius: var(--r); overflow: hidden; background: var(--surface-2); box-shadow: var(--sombra); }
.lugar span { display: inline-block; transform: translate(-50%, -50%); font-size: 11px; font-weight: 700; color: var(--fg); white-space: nowrap; text-shadow: 0 0 3px var(--surface-2), 0 0 3px var(--surface-2); }
.lugar.k3 { display: none; } .zcerca .lugar.k3 { display: block; }
.leaflet-container { font-family: var(--fuente); background: var(--surface-2); }
.yo { width: 18px; height: 18px; border-radius: 50%; background: #2E6BFF; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(46,107,255,.25); }
.precarga { background: var(--surface-2); border-radius: 14px; padding: 12px 14px; display: grid; grid-template-columns: auto 1fr; gap: 7px 14px; font-size: 14.5px; align-items: baseline; }
.precarga span { color: var(--muted); }

/* ---------- Ficha ---------- */
.cab-ficha { display: flex; gap: 14px; align-items: center; background: var(--surface); border-radius: var(--r); padding: 12px 14px; box-shadow: var(--sombra); border: 1px solid rgba(255,255,255,.7); }
.cab-ficha .anillo { width: 62px; height: 62px; } .cab-ficha .anillo svg { stroke-width: 7; }
.cab-ficha .anillo .pista { stroke: var(--azul-suave); } .cab-ficha .anillo .avance { stroke: url(#gradAzul); }
.cab-ficha .anillo .texto b { font-size: 13.5px; color: var(--azul); letter-spacing: -.02em; }
.cab-ficha .seccion { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cab-ficha .seccion b { font-size: 16.5px; display: flex; align-items: center; gap: 8px; }
.cab-ficha .seccion b .ico.redondo { width: 32px; height: 32px; background: var(--grad-icono); color: #fff; } .cab-ficha .seccion b svg { width: 17px; height: 17px; }
.cab-ficha .seccion small { color: var(--muted); font-size: 13px; font-weight: 600; }
.puntos { display: flex; gap: 4px; margin-top: 4px; }
.puntos i { flex: 1; height: 5px; border-radius: 3px; background: var(--surface-2); }
.puntos i.hecho { background: linear-gradient(90deg, #19C3A6, #8FE6C9); } .puntos i.actual { background: var(--electrico); }
.pregunta { background: var(--surface); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--sombra); border: 1.5px solid rgba(255,255,255,.7); }
.pregunta.falta { border-color: var(--error); box-shadow: 0 0 0 4px rgba(180,56,42,.10), var(--sombra); }
.pregunta .nombre { font-weight: 800; font-size: 16.5px; line-height: 1.3; }
.pregunta .nombre .ob { color: var(--error); margin-left: 3px; }
.pregunta .decir { font-size: 15px; background: linear-gradient(120deg, rgba(46,107,255,.10), rgba(25,195,166,.10)); color: var(--fg); padding: 11px 13px; border-radius: 12px; display: flex; gap: 10px; align-items: flex-start; border-left: 4px solid var(--lima); }
.pregunta .decir svg { width: 18px; height: 18px; color: var(--electrico); margin-top: 2px; }
.pregunta .ayuda { font-size: 13.5px; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; }
.pregunta .error-msg { font-size: 13.5px; color: var(--error); font-weight: 700; display: flex; gap: 6px; align-items: center; }
.opciones { display: flex; flex-direction: column; gap: 8px; }
.opciones.dos { display: grid; grid-template-columns: 1fr 1fr; }
.opcion { display: flex; align-items: center; gap: 11px; min-height: 54px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); text-align: left; font-size: 15.5px; font-weight: 600; transition: transform .12s ease, background .12s, border-color .12s, box-shadow .12s; }
.opcion:active { transform: scale(.985); }
.opcion[aria-pressed="true"] { border-color: transparent; background: var(--grad-boton); color: #fff; box-shadow: var(--brillo-azul); }
.opcion .marca { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; display: grid; place-items: center; background: var(--surface); }
.opcion.multi .marca { border-radius: 7px; }
.opcion[aria-pressed="true"] .marca { border-color: var(--lima); background: var(--lima); }
.opcion[aria-pressed="true"] .marca::after { content: ""; width: 11px; height: 6px; border-left: 2.5px solid var(--lima-tinta); border-bottom: 2.5px solid var(--lima-tinta); transform: rotate(-45deg) translate(1px, -1px); }
.gps { display: flex; flex-direction: column; gap: 10px; }
.gps .estado { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.gps .punto { width: 12px; height: 12px; border-radius: 50%; background: var(--alerta); flex-shrink: 0; animation: pulso 1.6s infinite; }
.gps.bien .punto { background: var(--turquesa); }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(46,107,255,.35); } 100% { box-shadow: 0 0 0 10px rgba(46,107,255,0); } }
details summary.ayuda { cursor: pointer; font-weight: 700; color: var(--electrico); list-style: none; }
details summary.ayuda::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--azul-suave); margin-right: 6px; font-weight: 800; }
details[open] summary.ayuda::before { content: "–"; }
.firma { position: relative; height: 200px; border: 2px dashed var(--line); border-radius: 16px; background: var(--surface-2); touch-action: none; overflow: hidden; }
.firma canvas { width: 100%; height: 100%; display: block; }
.firma .linea { position: absolute; left: 10%; right: 10%; bottom: 44px; border-top: 1.5px solid var(--line); pointer-events: none; }
.firma .ph { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; font-size: 13.5px; color: var(--muted); pointer-events: none; display: flex; justify-content: center; gap: 6px; align-items: center; }
.firma .ph svg { width: 18px; height: 18px; }
.firma.hecha { border-style: solid; border-color: var(--turquesa); background: var(--verde-suave); }
.fotos { display: flex; gap: 8px; flex-wrap: wrap; }
.fotos img { width: 88px; height: 88px; object-fit: cover; border-radius: 12px; box-shadow: var(--sombra); }
.acciones { position: sticky; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px; padding: 10px 0 2px; background: linear-gradient(transparent, var(--bg) 30%); }
.resumen-fila { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.resumen-fila:last-child { border-bottom: 0; }
.resumen-fila span { color: var(--muted); display: flex; align-items: center; gap: 8px; } .resumen-fila span svg { width: 18px; height: 18px; color: var(--electrico); }
.resumen-fila b { text-align: right; }
.faltante { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 10px 0; }
.faltante:last-of-type { border-bottom: 0; }
.faltante .ico.redondo { width: 34px; height: 34px; } .faltante .ico svg { width: 17px; height: 17px; }
.faltante .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; } .faltante .txt b { font-size: 15px; } .faltante .txt small { color: var(--error); font-weight: 600; font-size: 13px; }
.listo { display: flex; gap: 12px; align-items: center; }
.listo .ico.redondo { width: 48px; height: 48px; box-shadow: 0 0 0 6px rgba(198,243,90,.25); } .listo .ico svg { width: 24px; height: 24px; }
.enlace { background: none; border: 0; padding: 10px 0 0; font: inherit; font-size: 15px; color: var(--electrico); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; }
.enlace svg { width: 18px; height: 18px; }
@media (max-width: 420px) { .hero { grid-template-columns: 1fr; } .hero .anillo { justify-self: start; } .cifra b { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { .anillo .avance, .pie .ico, .boton, .opcion { transition: none; } .gps .punto { animation: none; } }

/* v0.4.0 · avisos del predio, guía de la visita y acercamientos */
.av { display: flex; gap: 12px; align-items: flex-start; }
.av .ico.redondo { width: 34px; height: 34px; flex-shrink: 0; } .av .ico svg { width: 18px; height: 18px; }
.av p { margin: 0; font-size: 15px; line-height: 1.45; flex: 1; min-width: 0; align-self: center; }
.guia details { border-top: 1px solid var(--line); padding: 4px 0; }
.guia details:first-of-type { border-top: 0; }
.guia summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; cursor: pointer; font-weight: 700; font-size: 15.5px; list-style: none; }
.guia summary::-webkit-details-marker { display: none; }
.guia summary .chev { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; transition: transform .15s ease; }
.guia details[open] summary .chev { transform: rotate(90deg); }
.guia details p { margin: 0 0 12px; font-size: 15px; line-height: 1.5; color: var(--fg); }
.faltante .txt .cuando { color: var(--muted); font-size: 13px; font-weight: 600; }
a.faltante { text-decoration: none; color: inherit; }
.pregunta.falta .nombre { color: var(--error); }
.error-form { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--error-suave); color: var(--error); font-weight: 700; font-size: 15px; }
@media (max-width: 380px) { .pie a { font-size: 11.5px; } .pie .ico { width: 40px; height: 40px; } }
