/* Bolt Services · estilos base compartidos (tokens tomados de boltservices.com.ar) */
:root {
  --ink: #2E2E2E;
  --ink-deep: #1A1B1D;
  --ink-mid: #26282B;
  --bone: #F2F2EF;
  --bone-dim: #E7E7E3;
  --paper: #FFFFFF;
  --amber: #C9962A;
  --amber-hi: #E0AE3E;
  --amber-soft: #E3C173;
  --amber-tint: #FBF5E7;
  --slate: #6E6F71;
  --slate-lt: #9A9B9D;
  --line: rgba(46, 46, 46, .13);
  --line-strong: rgba(46, 46, 46, .26);
  --line-dark: rgba(255, 255, 255, .13);
  --danger: #B4462F;
  --danger-tint: #FBEEEA;
  --ok: #3E7B4F;
  --ok-tint: #EAF3EC;
  --display: 'Archivo', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --wrap: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --r: 3px;
  --shadow: 0 1px 2px rgba(26, 27, 29, .05), 0 12px 32px -12px rgba(26, 27, 29, .16);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bone);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -.02em; line-height: 1.08; margin: 0; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--slate);
}

/* ---------- logo ---------- */
.logo { height: 30px; width: auto; }
.logo--ink { filter: invert(1) brightness(.2); }

/* ---------- botones ---------- */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 0 18px;
  font-family: var(--body); font-weight: 500; font-size: 14.5px; text-decoration: none; white-space: nowrap;
  color: var(--fg); background: var(--bg); border: 1px solid var(--bd); border-radius: 2px;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
  position: relative; overflow: hidden;
}
.btn:hover { --bd: var(--ink); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--dark { --bg: var(--ink); --fg: #fff; --bd: var(--ink); }
.btn--dark:hover { --bg: var(--ink-deep); --bd: var(--ink-deep); }
.btn--amber { --bg: var(--amber); --fg: var(--ink-deep); --bd: var(--amber); font-weight: 600; }
.btn--amber:hover { --bg: var(--amber-hi); --bd: var(--amber-hi); box-shadow: 0 8px 22px -10px rgba(201, 150, 42, .8); }
.btn--ghost { --bd: transparent; }
.btn--ghost:hover { --bg: rgba(46, 46, 46, .06); --bd: transparent; }
.btn--sm { min-height: 36px; padding: 0 12px; font-size: 13.5px; }
.btn--wa { --bg: #1FA855; --fg: #fff; --bd: #1FA855; }
.btn--wa:hover { --bg: #178F47; --bd: #178F47; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid currentColor; border-color: var(--ink-deep) var(--ink-deep) transparent transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- inputs ---------- */
.input {
  width: 100%; min-height: 46px; padding: 11px 13px;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r);
  font-size: 15.5px; line-height: 1.4;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease);
}
.input::placeholder { color: #A5A6A8; }
.input:hover { border-color: rgba(46, 46, 46, .42); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(201, 150, 42, .28); }
textarea.input { resize: vertical; min-height: 92px; }
select.input { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%232E2E2E' stroke-width='1.6'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; }
input[type="date"].input { min-height: 46px; }

/* ---------- chips (radio / checkbox) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-box {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 0 15px 0 13px;
  background: var(--paper); border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 14.5px; font-weight: 450; user-select: none;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease);
}
.chip-box .tick {
  width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-strong);
  display: grid; place-items: center; transition: all .22s var(--ease-out);
}
.chip--multi .chip-box .tick { border-radius: 3px; }
.chip-box .tick svg { width: 10px; height: 10px; stroke-dasharray: 14; stroke-dashoffset: 14; transition: stroke-dashoffset .28s var(--ease-out) .05s; }
.chip:hover .chip-box { border-color: var(--ink); }
.chip input:active + .chip-box { transform: scale(.97); }
.chip input:focus-visible + .chip-box { outline: 2px solid var(--amber); outline-offset: 2px; }
.chip input:checked + .chip-box { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:checked + .chip-box .tick { background: var(--amber); border-color: var(--amber); }
.chip input:checked + .chip-box .tick svg { stroke-dashoffset: 0; }

/* ---------- toggle ---------- */
.toggle { display: flex; align-items: center; gap: 14px; cursor: pointer; padding: 14px 16px; border: 1px dashed var(--line-strong); border-radius: var(--r); background: var(--bone); transition: background .2s var(--ease), border-color .2s var(--ease); }
.toggle:hover { border-color: var(--ink); }
.toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.toggle .track { width: 42px; height: 24px; flex: none; border-radius: 99px; background: #C9C9C5; position: relative; transition: background .25s var(--ease); }
.toggle .thumb { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .3s var(--ease-out); }
.toggle input:checked ~ .track { background: var(--amber); }
.toggle input:checked ~ .track .thumb { transform: translateX(18px); }
.toggle input:focus-visible ~ .track { outline: 2px solid var(--amber); outline-offset: 2px; }
.toggle:has(input:checked) { background: var(--amber-tint); border-color: var(--amber); border-style: solid; }
.toggle-text { font-size: 14.5px; font-weight: 500; }

/* ---------- pills de estado ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  border-radius: 999px; background: var(--bone-dim); color: var(--ink);
}
.pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.pill[data-estado="nueva"] { background: var(--amber-tint); color: #8A6413; }
.pill[data-estado="en_analisis"] { background: #EAF0F7; color: #33577D; }
.pill[data-estado="visita"] { background: #F1ECF7; color: #5E4583; }
.pill[data-estado="presupuestada"] { background: #E9F2F2; color: #2D6466; }
.pill[data-estado="aceptada"] { background: var(--ok-tint); color: var(--ok); }
.pill[data-estado="rechazada"] { background: #EFEFED; color: var(--slate); }

/* ---------- toast ---------- */
.toasts { position: fixed; z-index: 100; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast {
  display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px;
  background: var(--ink-deep); color: #fff; border-radius: var(--r); box-shadow: 0 18px 40px -16px rgba(0,0,0,.5);
  font-size: 14.5px; pointer-events: auto;
  animation: toastIn .4s var(--ease-out) both;
}
.toast.is-out { animation: toastOut .25s var(--ease) both; }
.toast--error { background: var(--danger); }
.toast svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--amber-soft); }
.toast--error svg { color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
