/* Accesos Prediales: estilos propios sobre la base de Rumas (css/app.css) */
:root { --sem-verde: #2e7d4f; --sem-ambar: #e0a100; --sem-rojo: #c62828; --sem-gris: #8a918b; }

.sync-pill { margin-left: auto; margin-right: 10px; }

/* Semáforo */
.sem { display: inline-grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; flex: none; vertical-align: -2px;
  background: var(--sem-gris); box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0,0,0,.12); font-style: normal; }
.sem.verde { background: var(--sem-verde); } .sem.ambar { background: var(--sem-ambar); } .sem.rojo { background: var(--sem-rojo); }
.sem.nuevo { background: var(--madera); color: #fff; font-size: 12px; font-weight: 700; line-height: 1; }
.rojo-txt { color: var(--sem-rojo); }

.leyenda { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.chip-sem { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 99px; border: 1px solid var(--linea);
  background: #fff; cursor: pointer; font-size: 14px; }
.chip-sem i { width: 11px; height: 11px; border-radius: 50%; background: var(--sem-gris); }
.chip-sem.verde i { background: var(--sem-verde); } .chip-sem.ambar i { background: var(--sem-ambar); } .chip-sem.rojo i { background: var(--sem-rojo); }
.chip-sem[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }

.mapa-acc { height: calc(100vh - 220px); min-height: 420px; border-radius: var(--radio); border: 1px solid var(--linea); margin-bottom: 14px; z-index: 0; }
.tip-predio { font-weight: 600; }

.barra-lista { display: flex; gap: 8px; margin-bottom: 10px; }
.barra-lista input { flex: 1; min-width: 0; }
.lista-acc { display: flex; flex-direction: column; }
.acc-item { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border: 0; border-bottom: 1px solid var(--linea); background: none;
  text-align: left; cursor: pointer; width: 100%; }
.acc-item:hover { background: var(--musgo); }
.acc-item .t { flex: 1; min-width: 0; }
.acc-item .t small { display: block; color: var(--gris); font-size: 13px; margin-top: 2px; }
.acc-item .d { font-size: 13px; color: var(--gris); white-space: nowrap; }

.cab-det { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.cab-det .sem { width: 18px; height: 18px; }
dl.det { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0 0 14px; font-size: 15px; }
dl.det dt { color: var(--gris); font-weight: 600; font-size: 13px; padding-top: 2px; }
dl.det dd { margin: 0; }

/* Registro */
.estrecho-reg { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.estrecho-reg .card h2 { font-size: 17px; margin: 0 0 12px; }
.preg { margin-bottom: 16px; }
.preg > span { display: block; font-weight: 600; margin-bottom: 7px; }
.preg > small { display: block; margin-top: 5px; font-size: 13px; }
.sub-preg { border-left: 3px solid var(--musgo); padding-left: 12px; margin: -4px 0 16px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button { flex: 1 1 auto; min-height: 46px; padding: 8px 14px; border-radius: 9px; border: 1.5px solid var(--linea); background: #fff;
  font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--bosque); border-color: var(--bosque); color: #fff; }
.lbl { font-weight: 600; margin: 12px 0 6px; }
.opc-acc { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1.5px solid var(--linea); border-radius: 9px; margin-bottom: 6px; cursor: pointer; }
.opc-acc:has(input:checked) { border-color: var(--bosque); background: #f1f6f1; }
.opc-acc span { flex: 1; min-width: 0; }
.opc-acc small { display: block; color: var(--gris); font-size: 13px; }
.opc-acc input { accent-color: var(--bosque); width: 18px; height: 18px; }
label.check { display: flex; gap: 8px; align-items: center; margin: 6px 0 12px; }
.btn-link { background: none; border: 0; color: var(--bosque-2); text-decoration: underline; cursor: pointer; padding: 0; }

.kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.acciones-fila { white-space: nowrap; }
.acciones-fila .btn + .btn { margin-left: 4px; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; }
.modal .card { max-height: 92vh; overflow: auto; }
.modal .fotos a.ph img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 760px) {
  main { padding: 12px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .filtros { grid-template-columns: 1fr 1fr; }
  .mapa-acc { height: calc(100vh - 230px); min-height: 360px; }
  .acciones-fila { white-space: normal; }
  .acciones-fila .btn { margin: 2px 0; }
  .topbar .marca span { display: none; }
}

/* Logo de Forestal Anchile */
.topbar .marca img { width: auto; height: 30px; }
.login .logo-anchile { text-align: center; margin-bottom: 22px; }
.login .logo-anchile img { width: min(280px, 78%); height: auto; margin: 0 auto; }
.login .logo img { width: 44px; height: 44px; border-radius: 10px; }
