:root {
  --bg: #eceeeb;
  --surface: #ffffff;
  --surface-2: #f4f6f4;
  --surface-3: #e6e9e6;
  --ink: #1b2227;
  --muted: #647078;
  --line: #d8ded9;
  --line-strong: #c3ccc5;
  --graphite: #20262b;
  --graphite-soft: #2c343a;
  --accent: #c47a2c;
  --accent-soft: #f7ead9;
  --green: #2c7a55;
  --green-soft: #e2f0e8;
  --amber: #a9761a;
  --amber-soft: #f8eed7;
  --red: #ad3f34;
  --red-soft: #f8e3e0;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 1px 2px rgba(20, 28, 34, .05), 0 10px 28px -18px rgba(20, 28, 34, .45);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1200px 500px at 85% -10%, #f3f4ef 0%, transparent 60%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--graphite); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 26px; letter-spacing: -.02em; }
h2 { font-size: 15px; letter-spacing: .01em; }
h3 { font-size: 15px; letter-spacing: -.01em; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--graphite);
  color: #f4f6f4;
  border-bottom: 1px solid #10151a;
}
.topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #4a565e;
  border-radius: 10px;
  color: var(--accent);
  background: #262e34;
  flex: none;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-size: 15px; font-weight: 650; letter-spacing: -.01em; }
.brand-text small { font-size: 11.5px; color: #9caab2; letter-spacing: .04em; text-transform: uppercase; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.user-pick { display: flex; align-items: center; gap: 8px; }
.user-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: #93a1a9; }
.user-pick select {
  background: #2a3238;
  color: #eef2f0;
  border: 1px solid #46525a;
  border-radius: 9px;
  padding: 7px 10px;
  font-size: 13.5px;
  outline: none;
  max-width: 150px;
}
.user-pick select:focus-visible { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(196, 122, 44, .25); }

.wrap { max-width: 1320px; margin: 0 auto; padding: 22px 20px 72px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 10px;
  border: 1px solid transparent;
  padding: 9px 15px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .05s;
  min-height: 40px;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: #b26d24; }
.btn.ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.dark { background: var(--graphite); color: #fff; }
.btn.dark:hover { background: var(--graphite-soft); }
.btn.small { min-height: 34px; padding: 6px 11px; font-size: 13px; border-radius: 8px; }
.btn:focus-visible, .icon-btn:focus-visible, .card:focus-visible { outline: 3px solid rgba(196, 122, 44, .45); outline-offset: 2px; }
.topbar .btn.primary { background: var(--accent); }
.plus { font-size: 17px; line-height: 1; margin-top: -1px; }

.icon-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
  padding: 0;
}
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

/* ---------- Toolbar ---------- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.search {
  position: relative;
  flex: 1 1 280px;
  max-width: 420px;
}
.search svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--muted);
  pointer-events: none;
}
.search input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  outline: none;
  font-size: 14px;
}
.search input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(196, 122, 44, .16); }
.toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.summary { font-size: 13px; color: var(--muted); }
.summary b { color: var(--ink); font-weight: 650; }
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  padding: 7px 11px;
  border-radius: 999px;
  cursor: pointer;
}
.toggle input { accent-color: var(--accent); margin: 0; }
.toggle.on { color: var(--ink); border-color: var(--ink); }

.demo-note {
  font-size: 12.5px;
  color: var(--muted);
  background: #f6f2e9;
  border: 1px dashed #ddcba9;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 18px;
}

/* ---------- Board ---------- */
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.col {
  background: var(--surface-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  min-height: 120px;
}
.col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 10px;
}
.col-head h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #46525a;
  font-weight: 700;
}
.col-count {
  font-size: 11.5px;
  font-weight: 700;
  color: #46525a;
  background: #f7f8f6;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 1px 8px;
}
.col-body { display: flex; flex-direction: column; gap: 9px; }
.col-empty {
  font-size: 12.5px;
  color: #7d898f;
  padding: 10px 8px 14px;
  text-align: center;
}

.card {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px 11px;
  cursor: pointer;
  box-shadow: 0 1px 1px rgba(20, 28, 34, .04);
  transition: transform .12s, box-shadow .12s, border-color .12s;
  font: inherit;
  color: inherit;
}
.card:hover { transform: translateY(-1px); box-shadow: var(--shadow); border-color: #c6cec7; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 5px; }
.card-num { font-size: 11px; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
.card-title { display: block; font-size: 14.5px; font-weight: 650; letter-spacing: -.01em; margin-bottom: 2px; }
.card-dir {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid #edf0ec;
  font-size: 12px;
  color: var(--muted);
}
.card-foot .monto { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex: none;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .05);
}
.dot.verde { background: var(--green); }
.dot.amarillo { background: var(--amber); }
.dot.rojo { background: var(--red); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: #4c585f;
  max-width: 100%;
}
.chip.etapa { background: #eef1ee; border-color: #d5dcd6; }
.chip.rojo { background: var(--red-soft); border-color: #ecc9c4; color: #8d322a; }
.chip.amarillo { background: var(--amber-soft); border-color: #e8d6ac; color: #87600f; }
.chip.verde { background: var(--green-soft); border-color: #c8e0d4; color: #256346; }
.chip.confirmada { background: #eaf0f4; border-color: #cfdbe3; color: #3c5464; }

/* ---------- Obra ---------- */
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 2px;
  margin-bottom: 12px;
}
.back:hover { color: var(--ink); }
.obra-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.obra-eyebrow {
  font-size: 11.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 4px;
}
.obra-head h1 { margin-bottom: 3px; }
.obra-head .obra-dir { color: var(--muted); font-size: 13.5px; }
.obra-status {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  box-shadow: 0 1px 2px rgba(20, 28, 34, .04);
  font-size: 13px;
  font-weight: 600;
}
.obra-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, 1fr);
  gap: 16px;
  align-items: start;
}
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack.narrow { max-width: 720px; margin: 0 auto; }

.panel-desc {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 10px;
}
.prov-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eef1ed;
}
.prov-row:last-child { border-bottom: 0; padding-bottom: 0; }
.prov-row strong { display: block; font-size: 13.5px; font-weight: 620; }
.prov-row small { color: var(--muted); font-size: 12px; }
.prov-actions { display: flex; gap: 6px; flex: none; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 1px 2px rgba(20, 28, 34, .035);
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.panel-head h2 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #5a666d;
  font-weight: 700;
}
.panel-sub { font-size: 12.5px; color: var(--muted); }

/* Stepper */
.stepper { list-style: none; margin: 0 0 16px; padding: 0; }
.step {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  position: relative;
  padding-bottom: 13px;
}
.step:last-child { padding-bottom: 0; }
.step::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 16px;
  bottom: -2px;
  width: 1.5px;
  background: #e3e8e3;
}
.step:last-child::before { display: none; }
.step-dot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.5px solid #cfd7d0;
  background: var(--surface);
  margin-top: 1px;
  z-index: 1;
  display: grid;
  place-items: center;
  font-size: 9px;
  color: transparent;
}
.step.done .step-dot { background: var(--green); border-color: var(--green); color: #fff; }
.step.done::before { background: #cfe3d8; }
.step.current .step-dot {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(196, 122, 44, .16);
  color: transparent;
}
.step-name { font-size: 13.5px; color: #6c777d; }
.step.done .step-name { color: #4d585e; }
.step.current .step-name { color: var(--ink); font-weight: 700; }
.step-tag {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  font-weight: 700;
  margin-left: 7px;
}

.accion-box {
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 12px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.accion-box p { font-size: 12.5px; color: var(--muted); }
.accion-box strong { display: block; font-size: 13.5px; color: var(--ink); }

.lock {
  border: 1px solid #e8d6ac;
  background: var(--amber-soft);
  border-radius: 12px;
  padding: 13px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.lock strong { display: block; font-size: 13.5px; color: #6f4e10; }
.lock p { font-size: 12.5px; color: #7f5c19; }

/* Cliente */
.kv { display: grid; grid-template-columns: 108px 1fr; gap: 8px 12px; font-size: 13.5px; }
.kv dt { color: var(--muted); font-size: 12.5px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.kv dd a { color: var(--ink); text-decoration-color: #c3ccc5; text-underline-offset: 2px; }
.map-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-weight: 600;
  color: #3c5464;
  text-decoration: none;
  margin-top: 3px;
}
.map-link:hover { text-decoration: underline; }

/* Pagos */
.pago {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #eef1ed;
}
.pago:last-of-type { border-bottom: 0; }
.pago-info strong { display: block; font-size: 13px; }
.pago-info span { font-size: 12px; color: var(--muted); }
.pago-monto { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; }
.pago-monto.pendiente { color: var(--muted); font-weight: 600; }
.barra {
  height: 6px;
  border-radius: 99px;
  background: #e7ebe6;
  overflow: hidden;
  margin: 10px 0 4px;
}
.barra span { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.barra-label { font-size: 11.5px; color: var(--muted); display: flex; justify-content: space-between; }

/* Medidas */
.medida {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #eef1ed;
  font-size: 13.5px;
}
.medida:last-child { border-bottom: 0; }
.medida strong { font-weight: 600; }
.medida small { display: block; color: var(--muted); font-size: 12px; }
.medida .cant { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.medidas-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.corrob {
  font-size: 12.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}
.corrob.ok { color: var(--green); }
.corrob.pend { color: var(--amber); }

/* Fotos */
.galeria { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; }
.foto {
  position: relative;
  aspect-ratio: 1;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto .icon-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  font-size: 12px;
  background: rgba(255, 255, 255, .92);
}
.adjunto {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 13px;
  margin-top: 8px;
}
.adjunto svg { width: 17px; height: 17px; color: var(--muted); flex: none; }

/* Subprocesos */
.sub {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
  background: var(--surface-2);
}
.sub + .sub { margin-top: 10px; }
.sub-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.sub-title { font-size: 13px; font-weight: 700; }
.sub-line { font-size: 12.5px; color: var(--muted); }
.sub-actions { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }

/* Historial */
.hist { list-style: none; margin: 0; padding: 0; }
.hist li {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 10px;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid #eef1ed;
}
.hist li:last-child { border-bottom: 0; }
.hist time { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.hist .quien { color: var(--muted); font-size: 11.5px; }

.foot {
  margin-top: 34px;
  font-size: 12px;
  color: #7d898f;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.linkish {
  border: 0;
  background: none;
  padding: 0;
  margin-left: 8px;
  color: #6a767d;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.linkish:hover { color: var(--ink); }

/* ---------- Modal ---------- */
.scrim {
  position: fixed;
  inset: 0;
  background: rgba(16, 22, 27, .52);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
  animation: fade .14s ease-out;
}
.modal {
  background: var(--surface);
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .5);
  animation: rise .18s ease-out;
}
.modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px 0;
}
.modal header h2 { font-size: 17px; font-weight: 700; letter-spacing: -.01em; text-transform: none; }
.modal form { display: flex; flex-direction: column; min-height: 0; }
.modal-body { padding: 16px 20px 4px; overflow-y: auto; }
.modal footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 14px 20px 18px;
  border-top: 1px solid #eef1ed;
  margin-top: 12px;
}
.field { margin-bottom: 13px; }
.field label {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 5px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  outline: none;
  font-size: 14px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(196, 122, 44, .16);
}
.field textarea { resize: vertical; min-height: 64px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.hint { font-size: 12px; color: var(--muted); margin-top: -4px; margin-bottom: 12px; }

@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translate(-50%, 20px);
  background: var(--graphite);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 13.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
  z-index: 200;
  max-width: calc(100vw - 32px);
  text-align: center;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .obra-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wrap { padding: 16px 14px 60px; }
  .topbar-inner { padding: 9px 14px; }
  .brand-text small { display: none; }
  .user-label { display: none; }
  .user-pick select { max-width: 112px; padding: 7px 8px; }
  .topbar .btn.primary { padding: 8px; width: 40px; min-height: 40px; flex: none; }
  .topbar .btn.primary .btn-label { display: none; }
  .topbar .plus { font-size: 20px; margin: 0; }
  .board { grid-template-columns: 1fr; gap: 10px; }
  .col { padding: 8px; }
  .toolbar { gap: 10px; }
  .search { max-width: none; }
  h1 { font-size: 22px; }
  .panel { padding: 15px; }
  .obra-head { gap: 10px; margin-bottom: 14px; }
  .obra-status { font-size: 12.5px; padding: 7px 12px; }
  .scrim { padding: 0; align-items: flex-end; }
  .modal {
    max-width: none;
    border-radius: 18px 18px 0 0;
    max-height: 92vh;
    padding-bottom: env(safe-area-inset-bottom);
    animation: sheet .2s ease-out;
  }
  @keyframes sheet { from { transform: translateY(30px); opacity: .6; } }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .kv { grid-template-columns: 96px 1fr; }
  .hist li { grid-template-columns: 62px 1fr; }
}
@media (max-width: 430px) {
  .brand-text { display: none; }
}

/* ---------- Acceso y conexión ---------- */
.sin-acceso .topbar-actions { display: none; }

.acceso {
  max-width: 420px;
  margin: 7vh auto 0;
  padding: 0 4px;
}
.acceso-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 2px rgba(20, 28, 34, .04);
}
.acceso-card h1 { font-size: 22px; margin: 2px 0 6px; }
.acceso-card .obra-dir { color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.acceso-card form { margin-top: 18px; }
.acceso-card .field input { text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.btn.block { width: 100%; justify-content: center; margin-top: 8px; }
.acceso-error { color: var(--red); }

.cargando {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16vh 0;
  color: var(--muted);
  font-size: 13px;
}
.spinner {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  border-top-color: var(--graphite);
  animation: girar .8s linear infinite;
}
@keyframes girar { to { transform: rotate(360deg); } }

.aviso-offline {
  background: var(--amber-soft);
  border: 1px solid #efd9b4;
  color: #7a5a22;
  font-size: 12.5px;
  padding: 9px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.panel.vacio { text-align: center; margin-bottom: 16px; }
.vacio-titulo { font-size: 15px; font-weight: 650; margin-bottom: 6px; }
.panel.vacio .sub-actions { justify-content: center; }
