/* ============================================================
   Panel del corredor y consola de InmoBot
   Mismo sistema visual de la web: Geist, neutros zinc, acento verde mar.
   Móvil primero: barra inferior en el celular, barra lateral en la computadora.
   ============================================================ */
:root {
  --bg: #f6f6f7;
  --surface: #ffffff;
  --surface-2: #fafafa;
  --ink: #18181b;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --line: #e4e4e7;
  --line-2: #d4d4d8;
  --accent: #0f6b5a;
  --accent-ink: #0b5246;
  --accent-soft: #e6f1ee;
  --hot: #c2410c;
  --hot-soft: #fff1e8;
  --warm: #b45309;
  --warm-soft: #fef6e4;
  --mild: #4d7c0f;
  --mild-soft: #f1f8e6;
  --cold: #1d4ed8;
  --cold-soft: #eaf0fe;
  --danger: #b42318;
  --danger-soft: #fdecea;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(24, 24, 27, 0.05), 0 8px 24px -12px rgba(24, 24, 27, 0.12);
  --shadow-lg: 0 24px 64px -24px rgba(24, 24, 27, 0.35);
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --sidebar: 248px;
  --bubble-in: #ffffff;
  --bubble-out: #dcf3ec;
  --chat-bg: #efeae2;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0f0f11;
    --surface: #18181b;
    --surface-2: #1f1f23;
    --ink: #f4f4f5;
    --ink-2: #d4d4d8;
    --muted: #a1a1aa;
    --line: #2a2a2f;
    --line-2: #3a3a40;
    --accent: #3fb59b;
    --accent-ink: #7fd8c4;
    --accent-soft: #12302a;
    --hot: #fb923c;
    --hot-soft: #3a1d0e;
    --warm: #fbbf24;
    --warm-soft: #33270b;
    --mild: #a3e635;
    --mild-soft: #1f2a10;
    --cold: #93b4ff;
    --cold-soft: #16213d;
    --danger: #f87171;
    --danger-soft: #3a1414;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -12px rgba(0, 0, 0, 0.6);
    --bubble-in: #232327;
    --bubble-out: #12352d;
    --chat-bg: #141416;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.2; }
p { margin: 0; }
.mono { font-family: var(--mono); font-feature-settings: 'tnum' 1; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Estructura ---------- */
.app { min-height: 100dvh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar);
  background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 18px 12px; z-index: 30;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; font-weight: 600; letter-spacing: -0.02em; }
.brand__mark { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.brand__mark svg { width: 18px; height: 18px; }
.cuenta-sel { margin: 0 4px 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.cuenta-sel b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cuenta-sel span { font-size: 12px; color: var(--muted); }
.cuenta-sel select { width: 100%; margin-top: 6px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }
.nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px;
  color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500;
}
.nav a svg { width: 18px; height: 18px; flex: none; opacity: 0.8; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a.activo { background: var(--accent-soft); color: var(--accent-ink); }
.nav a.activo svg { opacity: 1; }
.nav .badge { margin-left: auto; }
.sidebar__pie { border-top: 1px solid var(--line); padding: 12px 8px 0; font-size: 13px; color: var(--muted); display: grid; gap: 8px; min-width: 0; }
.sidebar__pie span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__pie button { justify-self: start; }

.principal { margin-left: var(--sidebar); min-height: 100dvh; display: flex; flex-direction: column; }
.contenido { width: 100%; max-width: 1180px; margin: 0 auto; padding: 28px 32px 64px; }
.topbar { display: none; }
.tabbar { display: none; }

@media (max-width: 899px) {
  .sidebar { display: none; }
  .principal { margin-left: 0; padding-bottom: 76px; }
  .contenido { padding: 16px 16px 40px; }
  .topbar {
    display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 20;
    padding: 10px 16px; background: color-mix(in srgb, var(--surface) 92%, transparent);
    backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
  }
  .topbar .brand { padding: 0; flex: 1; min-width: 0; }
  .topbar .brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; inset: auto 0 0 0; z-index: 25;
    background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a, .tabbar button {
    display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border: 0; background: none;
    color: var(--muted); font-size: 11px; font-weight: 500; text-decoration: none; cursor: pointer; border-radius: 10px;
  }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar .activo { color: var(--accent); }
}

/* ---------- Encabezados de página ---------- */
.cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.cab h1 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); font-weight: 600; }
.cab p { color: var(--muted); margin-top: 4px; max-width: 70ch; }
.cab__acciones { display: flex; gap: 8px; flex-wrap: wrap; }
.volver { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 14px; margin-bottom: 10px; }
.volver svg { width: 16px; height: 16px; }

/* ---------- Componentes ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card__in { padding: 20px; }
.card__cab { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.card__cab h2, .card__cab h3 { font-size: 15.5px; font-weight: 600; }
.grid { display: grid; gap: 16px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 899px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.pila { display: grid; gap: 16px; }
.fila { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.espacio { flex: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); font-weight: 500; font-size: 14px;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s;
  min-height: 38px;
}
.btn:hover { background: var(--surface-2); border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn--primario { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--primario:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .btn--primario { color: #06201a; } }
.btn--oscuro { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.btn--peligro { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn--peligro:hover { background: var(--danger-soft); border-color: var(--danger); }
.btn--fantasma { border-color: transparent; background: transparent; }
.btn--chico { padding: 6px 10px; min-height: 32px; font-size: 13px; }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.btn--bloque { width: 100%; }

.campo { display: grid; gap: 6px; align-content: start; }
.campo > label, .etiqueta { font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.campo .ayuda { font-size: 12.5px; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px;
  background: var(--surface); min-height: 40px; transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 96px; resize: vertical; line-height: 1.5; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.form { display: grid; gap: 14px; }
.form-2 { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-3 { display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .form-2, .form-3 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px; border-radius: 999px;
  font-size: 12.5px; font-weight: 500; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
  white-space: nowrap;
}
.chip::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.8; }
.chip--sin::before { display: none; }
.t-caliente { background: var(--hot-soft); color: var(--hot); border-color: transparent; }
.t-tibio { background: var(--warm-soft); color: var(--warm); border-color: transparent; }
.t-templado { background: var(--mild-soft); color: var(--mild); border-color: transparent; }
.t-frio { background: var(--cold-soft); color: var(--cold); border-color: transparent; }
.t-descartado, .t-nuevo { background: var(--surface-2); color: var(--muted); }
.c-ok { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.c-aviso { background: var(--warm-soft); color: var(--warm); border-color: transparent; }
.c-error { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--hot); color: #fff; font-size: 11.5px; font-weight: 600; display: inline-grid; place-items: center; }

.alerta { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 14px; border: 1px solid transparent; }
.alerta svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.alerta a { font-weight: 600; white-space: nowrap; }
.alerta--error { background: var(--danger-soft); color: var(--danger); }
.alerta--aviso { background: var(--warm-soft); color: var(--warm); }
.alerta--info { background: var(--accent-soft); color: var(--accent-ink); }

/* KPIs */
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { padding: 16px; display: grid; gap: 4px; text-decoration: none; color: inherit; }
.kpi__n { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; font-feature-settings: 'tnum' 1; }
.kpi__t { font-size: 13px; color: var(--muted); }
a.kpi:hover { border-color: var(--line-2); }

/* Listas */
.lista { list-style: none; margin: 0; padding: 0; }
.lista > li { border-top: 1px solid var(--line); }
.lista > li:first-child { border-top: 0; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; text-decoration: none; color: inherit; }
a.item:hover, button.item:hover { background: var(--surface-2); }
button.item { width: 100%; border: 0; background: none; text-align: left; cursor: pointer; }
.item__cuerpo { flex: 1; min-width: 0; }
.item__titulo { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item__sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: 14px;
}
.vacio { padding: 36px 20px; text-align: center; color: var(--muted); display: grid; gap: 10px; justify-items: center; }
.vacio svg { width: 34px; height: 34px; opacity: 0.6; }
.vacio b { color: var(--ink); font-weight: 600; }

/* Pasos */
.pasos { counter-reset: paso; }
.paso { display: flex; gap: 12px; align-items: center; padding: 11px 20px; text-decoration: none; color: inherit; }
.paso:hover { background: var(--surface-2); }
.paso__marca { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; flex: none; }
.paso.hecho .paso__marca { background: var(--accent); border-color: var(--accent); }
.paso.hecho .paso__marca svg { width: 14px; height: 14px; color: #fff; }
.paso.hecho .paso__t { color: var(--muted); text-decoration: line-through; }
.paso > svg, .item > svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.progreso { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.progreso > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* Embudo */
.barra { display: grid; grid-template-columns: 130px 1fr 40px; gap: 10px; align-items: center; font-size: 13.5px; padding: 5px 0; }
.barra__pista { height: 10px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.barra__pista span { display: block; height: 100%; background: var(--accent); border-radius: 999px; min-width: 2px; }
.barra b { text-align: right; font-feature-settings: 'tnum' 1; }

/* Filtros */
.filtros { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filtros .input { width: auto; min-width: 150px; }
.buscador { position: relative; flex: 1; min-width: 200px; }
.buscador svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.buscador .input { padding-left: 36px; width: 100%; }
.segmentos { display: inline-flex; border: 1px solid var(--line-2); border-radius: 10px; padding: 2px; background: var(--surface); overflow-x: auto; max-width: 100%; }
.segmentos button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-size: 13.5px; color: var(--ink-2); white-space: nowrap; }
.segmentos button.activo { background: var(--ink); color: var(--surface); }

/* Ficha del cliente: conversación + columna lateral */
.detalle { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
@media (max-width: 899px) { .detalle { grid-template-columns: 1fr; } }

/* Pestañas */
.pestanas { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.pestanas button { border: 0; background: none; padding: 10px 14px; font-weight: 500; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.pestanas button.activo { color: var(--ink); border-bottom-color: var(--accent); }

/* Chat */
.chat { background: var(--chat-bg); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; }
.burbuja { max-width: min(78%, 560px); padding: 8px 12px 6px; border-radius: 12px; background: var(--bubble-in); box-shadow: 0 1px 1px rgba(0,0,0,.06); white-space: pre-wrap; word-wrap: break-word; font-size: 14.5px; }
.burbuja time { display: block; text-align: right; font-size: 11px; color: var(--muted); margin-top: 2px; }
.burbuja .quien { display: block; font-size: 11.5px; font-weight: 600; color: var(--accent); margin-bottom: 2px; }
.burbuja.der { align-self: flex-end; background: var(--bubble-out); }
.burbuja.izq { align-self: flex-start; }
.burbuja.humano .quien { color: var(--cold); }
.dia { align-self: center; font-size: 12px; background: var(--surface); color: var(--muted); padding: 2px 10px; border-radius: 8px; margin: 6px 0; }
.escribiendo { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; background: var(--bubble-in); border-radius: 12px; }
.escribiendo i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: punto 1.2s infinite ease-in-out; }
.escribiendo i:nth-child(2) { animation-delay: .15s; } .escribiendo i:nth-child(3) { animation-delay: .3s; }
@keyframes punto { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.redactor { display: flex; gap: 8px; margin-top: 10px; }
.redactor .input { flex: 1; }

/* Propiedades */
.props { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.prop { overflow: hidden; display: flex; flex-direction: column; cursor: pointer; text-align: left; padding: 0; }
.prop:hover { border-color: var(--line-2); }
.prop__foto { aspect-ratio: 4 / 3; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); position: relative; }
.prop__foto img { width: 100%; height: 100%; object-fit: cover; }
.prop__foto svg { width: 32px; height: 32px; opacity: .5; }
.prop__foto .chip { position: absolute; top: 10px; left: 10px; }
.prop__cuerpo { padding: 12px 14px 14px; display: grid; gap: 4px; }
.prop__precio { font-weight: 600; font-size: 17px; letter-spacing: -0.02em; }
.fotos { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.foto { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.foto img { width: 100%; height: 100%; object-fit: cover; }
.foto__acc { position: absolute; inset: auto 4px 4px 4px; display: flex; gap: 4px; justify-content: flex-end; }
.foto__acc button { width: 28px; height: 28px; border-radius: 8px; border: 0; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; cursor: pointer; }
.foto__acc svg { width: 14px; height: 14px; }
.foto--subir { display: grid; place-items: center; cursor: pointer; border: 1.5px dashed var(--line-2); color: var(--muted); font-size: 13px; text-align: center; padding: 8px; }
.foto--subir svg { width: 22px; height: 22px; margin: 0 auto 4px; }

/* Ventanas (modales) */
.velo { position: fixed; inset: 0; background: rgba(9, 9, 11, .45); z-index: 60; display: grid; place-items: center; padding: 16px; animation: aparecer .15s ease-out; }
.ventana { background: var(--surface); border-radius: 18px; width: min(640px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: subir .2s cubic-bezier(.16, 1, .3, 1); }
.ventana--ancha { width: min(860px, 100%); }
.ventana__cab { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.ventana__cab h2 { font-size: 17px; flex: 1; }
.ventana__cuerpo { padding: 20px; overflow-y: auto; }
.ventana__pie { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
@media (max-width: 640px) {
  .velo { place-items: end stretch; padding: 0; }
  .ventana { width: 100%; border-radius: 18px 18px 0 0; max-height: 92dvh; }
}
@keyframes aparecer { from { opacity: 0; } }
@keyframes subir { from { transform: translateY(16px); opacity: 0; } }

/* Avisos flotantes */
.toasts { position: fixed; z-index: 80; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
@media (max-width: 899px) { .toasts { bottom: 88px; } }
.toast { background: var(--ink); color: var(--surface); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 14px; animation: subir .2s ease-out; }
.toast--error { background: var(--danger); color: #fff; }

/* Cargando */
.esqueleto { background: linear-gradient(90deg, var(--surface-2) 0%, var(--line) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: brillo 1.2s infinite; border-radius: 10px; }
@keyframes brillo { to { background-position: -200% 0; } }
.cargando { display: grid; gap: 12px; }
.cargando .esqueleto { height: 64px; }

/* Entrada */
.entrada { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background:
  radial-gradient(1200px 600px at 10% -10%, var(--accent-soft), transparent 60%), var(--bg); }
.entrada .card { width: min(420px, 100%); padding: 32px 28px; display: grid; gap: 18px; }
.entrada h1 { font-size: 24px; }
.entrada p { color: var(--muted); }

/* Modo soporte */
.soporte { background: var(--warm-soft); color: var(--warm); text-align: center; padding: 8px 16px; font-size: 13.5px; font-weight: 500; }

/* Tablas (consola) */
.tabla-cont { overflow-x: auto; }
table.tabla { width: 100%; border-collapse: collapse; font-size: 14px; }
.tabla th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12.5px; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tabla td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tabla tr:last-child td { border-bottom: 0; }
.tabla tbody tr { cursor: pointer; }
.tabla tbody tr:hover td { background: var(--surface-2); }
.num { text-align: right; font-feature-settings: 'tnum' 1; }

.qr { width: 160px; height: 160px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 6px; }
.copiable { display: flex; gap: 6px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 6px 6px 10px; font-size: 13px; }
.copiable code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--mono); font-size: 12.5px; }
.resumen { white-space: pre-wrap; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; overflow-x: auto; }
.dias { display: flex; gap: 6px; flex-wrap: wrap; }
.dias label { cursor: pointer; }
.dias input { position: absolute; opacity: 0; pointer-events: none; }
.dias span { display: inline-grid; place-items: center; width: 40px; height: 36px; border-radius: 9px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; }
.dias input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.precio-card { padding: 18px; display: grid; gap: 8px; align-content: start; }
.precio-card .monto { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.sep { height: 1px; background: var(--line); margin: 4px 0; }
