:root {
  /* v0.12.0 — paleta navy (familia Finansys) + amber acento de marca Alquilame */
  --primary: #1a3c5e;          /* navy estructural — navbar, botones primary */
  --primary-light: #2563eb;    /* azul brillante — links, badges */
  --primary-dark: #0f2744;     /* navy profundo — sidebar */
  --brand: #f59e0b;            /* amber — color de marca, solo CTA + acentos puntuales */
  --brand-dark: #d97706;       /* amber oscuro — hover/borde del brand */
  --sidebar-width: 260px;
  --navbar-height: 56px;
  --sidebar-bg: #0f2744;
  --sidebar-text: #cbd5e1;
  --sidebar-hover: rgba(255,255,255,0.08);
  --sidebar-active: rgba(37,99,235,0.25);
  --sidebar-active-border: #3b82f6;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  background: #f5f5f5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

/* ── NAVBAR TOP ── */
.navbar-top {
  background: var(--primary) !important;
  height: var(--navbar-height);
  z-index: 1050;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ── SIDEBAR ── */
.sidebar {
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--navbar-height));
  background: var(--sidebar-bg);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 1040;
  transition: transform 0.25s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }

.sidebar-header { padding: 16px 0 8px; }

.sidebar-nav {
  list-style: none;
  padding: 0 8px 24px;
  margin: 0;
}

.nav-section {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #64748b;
  padding: 16px 12px 4px;
  text-transform: uppercase;
}

.nav-section-sub {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
  padding: 10px 16px 2px;
  text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 4px;
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--sidebar-text);
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 400;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.sidebar-nav .nav-link:hover {
  background: var(--sidebar-hover);
  color: #fff;
}

.sidebar-nav .nav-link.active {
  background: var(--sidebar-active);
  color: #93c5fd;
  border-left: 3px solid var(--sidebar-active-border);
  font-weight: 500;
}

.sidebar-nav .nav-link i:first-child {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.arrow { font-size: 11px !important; transition: transform 0.2s; }
.nav-link:not(.collapsed) .arrow { transform: rotate(180deg); }

.submenu {
  list-style: none;
  padding: 2px 0 4px 32px;
  margin: 0;
}

.submenu .nav-link.sub {
  font-size: 13px;
  padding: 6px 10px;
  color: #94a3b8;
}
.submenu .nav-link.sub:hover { color: #e2e8f0; background: var(--sidebar-hover); }
.submenu .nav-link.sub.active { color: #93c5fd; }

/* ── MAIN CONTENT ── */
.main-content {
  margin-left: var(--sidebar-width);
  margin-top: var(--navbar-height);
  /* Scroll vertical libre: +200px garantiza pista de aterrizaje en páginas cortas */
  min-height: calc(100vh + 200px - var(--navbar-height));
  padding-bottom: 2rem;
  transition: margin-left 0.25s ease;
}

/* Scroll horizontal de tablas no secuestra el scroll vertical de la página */
.table-responsive {
  overscroll-behavior-x: contain;
}

.sidebar.collapsed { transform: translateX(calc(-1 * var(--sidebar-width))); }
.main-content.expanded { margin-left: 0; }

/* ── BREADCRUMB BAR ── */
.breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 10px 24px;
  position: sticky;
  top: var(--navbar-height);
  z-index: 100;
}

.breadcrumb-item + .breadcrumb-item::before { color: #94a3b8; }
.breadcrumb-item a { color: #f59e0b; text-decoration: none; }
.breadcrumb-item.active { color: #64748b; }

/* ── CONTENT WRAPPER ── */
.content-wrapper { padding: 24px; }

/* ── CARDS ── */
.card {
  border: none;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.card-header {
  background: transparent;
  border-bottom: 1px solid #f1f5f9;
  font-weight: 600;
  padding: 16px 20px;
}

/* ── STATS CARDS ── */
.stat-card {
  border-radius: 12px;
  padding: 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stat-card .stat-icon {
  font-size: 48px;
  opacity: 0.2;
  position: absolute;
  right: 12px;
  bottom: 4px;
}
.stat-card .stat-value { font-size: 28px; font-weight: 700; line-height: 1; }
.stat-card .stat-label { font-size: 12px; opacity: 0.85; margin-top: 4px; }

.bg-gradient-blue   { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.bg-gradient-green  { background: linear-gradient(135deg, #059669, #10b981); }
.bg-gradient-orange { background: linear-gradient(135deg, #d97706, #f59e0b); }
.bg-gradient-red    { background: linear-gradient(135deg, #dc2626, #ef4444); }
.bg-gradient-purple { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.bg-gradient-teal   { background: linear-gradient(135deg, #0e7490, #06b6d4); }
.bg-gradient-navy   { background: linear-gradient(135deg, #0f2744, #1a3c5e); }

/* ── TABLE ── */
.table-alquilame th {
  background: #f8fafc;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #64748b;
  border-bottom: 2px solid #e2e8f0;
  padding: 10px 14px;
}
.table-alquilame td {
  vertical-align: middle;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13.5px;
}
.table-alquilame tbody tr:hover { background: #f8fafc; }

/* ── BUTTONS ── */
.btn-primary { background: var(--primary-light); border-color: var(--primary-light); }
.btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; }

/* ── LOGIN ── */
.login-bg {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-dark);
  position: relative;
  overflow: hidden;
  padding: 24px 16px;
}

/* Círculos decorativos de fondo */
.login-bg::before,
.login-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.login-bg::before {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -150px;
  background: radial-gradient(circle, rgba(245,158,11,0.25) 0%, transparent 70%);
}
.login-bg::after {
  width: 500px;
  height: 500px;
  bottom: -180px;
  left: -120px;
  background: radial-gradient(circle, rgba(99,102,241,0.2) 0%, transparent 70%);
}

/* Card central */
.login-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 20px;
  padding: 44px 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
}
@media (max-width: 480px) {
  .login-card { padding: 32px 24px 28px; }
}

/* Logo icon */
.login-icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  color: #fff;
  margin: 0 auto 20px;
  box-shadow: 0 8px 24px rgba(37,99,235,0.35);
}

/* Campos */
.login-field {
  position: relative;
  margin-bottom: 16px;
}
.login-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 6px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.login-field-wrap {
  position: relative;
}
.login-field-wrap .field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 16px;
  pointer-events: none;
  z-index: 2;
}
.login-field-wrap input {
  width: 100%;
  height: 48px;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0 44px 0 42px;
  font-size: 14px;
  color: #1e293b;
  background: #f8fafc;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  outline: none;
}
.login-field-wrap input:focus {
  border-color: var(--primary-light);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}
.login-field-wrap input.is-invalid {
  border-color: #ef4444;
  background: #fff8f8;
}
.btn-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  color: #94a3b8;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  z-index: 2;
  transition: color 0.15s;
}
.btn-eye:hover { color: var(--primary-light); }

/* Botón ingresar */
.login-submit {
  width: 100%;
  height: 50px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(37,99,235,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.login-submit:hover {
  opacity: 0.93;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.40);
}
.login-submit:active { transform: translateY(0); }

/* ── PAGE HEADER ── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.page-title { font-size: 20px; font-weight: 700; color: #1e293b; margin: 0; }
.page-subtitle { font-size: 13px; color: #64748b; margin: 0; }

/* v0.16.0 — PAGE HERO (header consistente estilo Finansys) */
.page-hero {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 20px 24px; margin-bottom: 20px; border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  color: #fff; box-shadow: 0 6px 20px rgba(15,39,68,0.18);
}
.page-hero-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.20);
  color: #fff; font-size: 26px; flex-shrink: 0;
}
.page-hero-text { flex-grow: 1; min-width: 200px; }
.page-hero h1, .page-hero h2, .page-hero h3 {
  margin: 0; font-weight: 700; color: #fff; line-height: 1.2;
  font-size: 22px;
}
.page-hero-subtitle {
  font-size: 13px; color: rgba(255,255,255,0.78); margin-top: 4px;
}
.page-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.page-hero .btn-light { background: #fff; color: var(--primary); font-weight: 600; }
.page-hero .btn-light:hover { background: #f8fafc; color: var(--primary-light); }
.page-hero .btn-warning { box-shadow: 0 4px 12px rgba(245,158,11,0.4); }
.page-hero .btn-outline-light { border: 1px solid rgba(255,255,255,0.5); }
.page-hero .btn-outline-light:hover { background: rgba(255,255,255,0.18); border-color: #fff; color: #fff; }

/* Filtros/búsqueda card */
.filter-card { border-radius: 12px !important; border: 1px solid #e2e8f0; }
.filter-card .card-body { padding: 14px 18px; }

/* KPI mini-tile reutilizable */
.kpi-tile {
  background: #fff; border-radius: 12px; padding: 14px 16px;
  border: 1px solid #e5e7eb; border-left-width: 4px !important;
  height: 100%; transition: transform .15s, box-shadow .15s;
}
.kpi-tile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.kpi-tile .kpi-label { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: #64748b; font-weight: 600; }
.kpi-tile .kpi-value { font-size: 22px; font-weight: 700; color: #0f172a; line-height: 1.2; margin-top: 4px; }
.kpi-tile .kpi-delta { font-size: 11px; color: #64748b; margin-top: 4px; }
.kpi-blue   { border-left-color: #3b82f6; background: linear-gradient(180deg, #eff6ff 0%, #fff 60%); }
.kpi-green  { border-left-color: #16a34a; background: linear-gradient(180deg, #f0fdf4 0%, #fff 60%); }
.kpi-amber  { border-left-color: #f59e0b; background: linear-gradient(180deg, #fff7ed 0%, #fff 60%); }
.kpi-red    { border-left-color: #ef4444; background: linear-gradient(180deg, #fef2f2 0%, #fff 60%); }
.kpi-purple { border-left-color: #8b5cf6; background: linear-gradient(180deg, #f5f3ff 0%, #fff 60%); }
.kpi-cyan   { border-left-color: #06b6d4; background: linear-gradient(180deg, #ecfeff 0%, #fff 60%); }

/* v0.21.0 — Wizard stepper visual (cliente y alquiler) */
.wizard-stepper-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 18px 22px; }
.wizard-stepper { display: flex; align-items: center; justify-content: space-between; list-style: none; margin: 0; padding: 0; gap: 4px; flex-wrap: nowrap; }
.wizard-stepper .step { display: flex; flex-direction: column; align-items: center; min-width: 60px; flex: 0 0 auto; }
.wizard-stepper .step-circle {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: #e5e7eb; color: #94a3b8; font-size: 18px; transition: all .2s; border: 3px solid transparent;
}
.wizard-stepper .step.active .step-circle {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff; transform: scale(1.1); box-shadow: 0 6px 16px rgba(37,99,235,0.35);
}
.wizard-stepper .step.done .step-circle {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%); color: #fff;
}
.wizard-stepper .step-label { font-size: 12px; font-weight: 600; color: #94a3b8; margin-top: 6px; white-space: nowrap; }
.wizard-stepper .step.active .step-label { color: var(--primary); }
.wizard-stepper .step.done .step-label { color: #16a34a; }
.wizard-stepper .step-bar { flex: 1 1 auto; min-width: 16px; height: 3px; background: #e5e7eb; border-radius: 2px; max-width: 120px; }
.wizard-stepper .step-bar.done { background: linear-gradient(90deg, #16a34a, #22c55e); }
@media (max-width: 768px) {
  .wizard-stepper { gap: 2px; }
  .wizard-stepper .step { min-width: 44px; }
  .wizard-stepper .step-circle { width: 36px; height: 36px; font-size: 14px; }
  .wizard-stepper .step-label { font-size: 10px; }
  .wizard-stepper .step-bar { min-width: 8px; height: 2px; }
}

/* v0.21.0 — Activos cards estilo Urbania */
.urbania-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: transform .15s, box-shadow .15s;
  position: relative;
  display: flex;
  flex-direction: column;
}
.urbania-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,0.08); }
.urbania-card-photo { position: relative; height: 200px; background: #f1f5f9; overflow: hidden; }
.urbania-card-photo img { width: 100%; height: 100%; object-fit: cover; }
.urbania-card-photo .placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: #fff; font-size: 64px; background: linear-gradient(135deg, #1a3c5e, #2563eb); }
.urbania-badge-estado { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; }
.urbania-badge-estado.disponible { background: #16a34a; color: #fff; }
.urbania-badge-estado.alquilado { background: #2563eb; color: #fff; }
.urbania-badge-estado.mantenimiento { background: #f59e0b; color: #1f2937; }
.urbania-badge-estado.inactivo { background: #6b7280; color: #fff; }
.urbania-badge-cat { position: absolute; bottom: 12px; left: 12px; background: rgba(15,39,68,0.85); color: #fff; padding: 3px 9px; border-radius: 6px; font-size: 11px; backdrop-filter: blur(4px); }
.urbania-ref { position: absolute; top: 12px; right: 12px; background: rgba(255,255,255,0.85); color: #6b7280; padding: 3px 8px; border-radius: 5px; font-size: 10px; font-weight: 600; letter-spacing: 0.4px; backdrop-filter: blur(4px); }
.urbania-body { padding: 16px; flex-grow: 1; display: flex; flex-direction: column; }
.urbania-precio { color: #16a34a; font-size: 22px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.urbania-precio small { color: #6b7280; font-size: 13px; font-weight: 500; }
.urbania-nombre { font-size: 15px; font-weight: 700; color: #0f172a; line-height: 1.3; margin-bottom: 6px; min-height: 38px; }
.urbania-loc { color: #64748b; font-size: 12.5px; margin-bottom: 12px; display: flex; align-items: center; gap: 6px; }
.urbania-attrs { display: flex; flex-wrap: wrap; gap: 12px; padding: 10px 0; border-top: 1px solid #f1f5f9; border-bottom: 1px solid #f1f5f9; margin-bottom: 12px; font-size: 12.5px; color: #475569; }
.urbania-attrs .attr { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.urbania-attrs .attr i { color: #2563eb; font-size: 14px; }
.urbania-actions { display: flex; gap: 8px; margin-top: auto; }
.urbania-btn-outline { flex: 1; padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; text-align: center; border: 1.5px solid #2563eb; color: #2563eb; background: transparent; transition: all .15s; }
.urbania-btn-outline:hover { background: #eff6ff; color: #1d4ed8; }
.urbania-btn-fill { flex: 1; padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; text-align: center; background: #2563eb; color: #fff; border: 1.5px solid #2563eb; transition: all .15s; }
.urbania-btn-fill:hover { background: #1d4ed8; color: #fff; }

/* v0.21.0 — Dashboard Finansys-style */
.fn-period-tabs { display: flex; gap: 0; background: #fff; border-radius: 10px; border: 1px solid #e5e7eb; padding: 4px; flex-wrap: wrap; }
.fn-period-tabs .tab { padding: 7px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #64748b; cursor: pointer; user-select: none; transition: all .15s; border: none; background: transparent; }
.fn-period-tabs .tab:hover { color: #1a3c5e; background: #f8fafc; }
.fn-period-tabs .tab.active { background: linear-gradient(135deg, #1a3c5e, #2563eb); color: #fff; box-shadow: 0 2px 6px rgba(37,99,235,0.25); }
.fn-metric-tile { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 18px 20px; height: 100%; }
.fn-metric-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.5px; color: #6b7280; font-weight: 600; }
.fn-metric-value { font-size: 28px; font-weight: 800; color: #0f172a; line-height: 1.1; margin-top: 6px; }
.fn-metric-trend { font-size: 12.5px; margin-top: 6px; font-weight: 600; }
.fn-metric-trend.up { color: #16a34a; }
.fn-metric-trend.down { color: #dc2626; }
.fn-metric-trend.flat { color: #6b7280; }
.fn-bar-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13px; }
.fn-bar-row .label { width: 130px; flex-shrink: 0; color: #475569; font-weight: 500; }
.fn-bar-row .bar-track { flex-grow: 1; height: 10px; background: #f1f5f9; border-radius: 5px; overflow: hidden; }
.fn-bar-row .bar-fill { height: 100%; border-radius: 5px; background: linear-gradient(90deg, #2563eb, #3b82f6); }
.fn-bar-row .value { width: 100px; flex-shrink: 0; text-align: right; font-weight: 700; color: #0f172a; }
.fn-pipeline-list { display: flex; flex-direction: column; gap: 6px; }
.fn-pipeline-item { display: flex; align-items: center; padding: 10px 14px; background: #f8fafc; border-radius: 8px; border-left: 4px solid #2563eb; transition: all .15s; }
.fn-pipeline-item:hover { background: #eff6ff; transform: translateX(2px); }
.fn-pipeline-item .pip-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: #2563eb; color: #fff; font-size: 16px; flex-shrink: 0; margin-right: 12px; }
.fn-pipeline-item .pip-label { flex-grow: 1; font-weight: 600; color: #0f172a; }
.fn-pipeline-item .pip-value { font-weight: 800; color: #1a3c5e; font-size: 16px; }
.fn-pipeline-item.t-success { border-left-color: #16a34a; }
.fn-pipeline-item.t-success .pip-icon { background: #16a34a; }
.fn-pipeline-item.t-warning { border-left-color: #f59e0b; }
.fn-pipeline-item.t-warning .pip-icon { background: #f59e0b; color: #1f2937; }
.fn-pipeline-item.t-danger { border-left-color: #dc2626; }
.fn-pipeline-item.t-danger .pip-icon { background: #dc2626; }

body.bg-gray { background: #f5f5f5; }

/* Tabla sutil v0.16 */
.table-modern thead th {
  background: #f8fafc; font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: #475569;
  border-bottom: 2px solid #e2e8f0;
}
.table-modern tbody tr { transition: background .12s; }
.table-modern tbody tr:hover { background: #f1f5f9; }
.table-modern td { vertical-align: middle; }

/* ── SEARCH BAR ── */
.search-bar { position: relative; }
.search-bar input { padding-left: 36px; border-radius: 8px; border: 1px solid #e2e8f0; }
.search-bar .bi-search { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #94a3b8; }

/* ── PAGINATION ── */
.pagination .page-link { color: var(--primary-light); border-color: #e2e8f0; font-size: 13px; }
.pagination .page-item.active .page-link { background: var(--primary-light); border-color: var(--primary-light); }

/* ── BADGES ── */
.badge-estado { font-size: 11px; padding: 4px 8px; border-radius: 20px; }

/* ── FORM (global, v0.23.1) ── */
.form-label { font-weight: 500; font-size: 13px; color: #374151; }

/* Selectores amplios: cubre inputs sin clase explícita además de form-control/form-select */
.form-control,
.form-select,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="search"],
input[type="date"],
input[type="datetime-local"],
input[type="time"],
input[type="month"],
select,
textarea {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13.5px;
  padding: 8px 12px;
  color: #0f172a;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.03), 0 1px 2px rgba(15,23,42,0.04);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.form-control:hover:not(:focus),
.form-select:hover:not(:focus),
input[type="text"]:hover:not(:focus),
input[type="email"]:hover:not(:focus),
input[type="url"]:hover:not(:focus),
input[type="tel"]:hover:not(:focus),
input[type="password"]:hover:not(:focus),
input[type="number"]:hover:not(:focus),
input[type="search"]:hover:not(:focus),
input[type="date"]:hover:not(:focus),
select:hover:not(:focus),
textarea:hover:not(:focus) {
  border-color: #cbd5e1;
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.03), 0 2px 6px rgba(15,23,42,0.06);
}
.form-control:focus,
.form-select:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="search"]:focus,
input[type="date"]:focus,
input[type="datetime-local"]:focus,
input[type="time"]:focus,
select:focus,
textarea:focus {
  border-color: var(--primary-light);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.13), 0 2px 8px rgba(37,99,235,0.10);
  outline: none;
}
.form-control:disabled,
.form-control[readonly],
input[readonly], input:disabled,
select:disabled, textarea:disabled {
  background: #f1f5f9; color: #64748b; cursor: not-allowed;
}

/* Selects sin clase form-select: forzar flecha SVG custom (sino sale la fea del navegador) */
select:not([multiple]) {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5l3 3 3-3' stroke='%2364748b' stroke-width='1.6' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* File inputs con dashed style */
input[type="file"] {
  background: #fff;
  border: 1.5px dashed #cbd5e1;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .15s;
}
input[type="file"]:hover { border-color: var(--primary-light); }
input[type="file"]::file-selector-button {
  background: #eff6ff;
  color: var(--primary);
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  margin-right: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
}

/* Form-control-sm conserva tamaño pero hereda sombra */
.form-control-sm, .form-select-sm {
  font-size: 13px;
  padding: 6px 10px;
}

/* Checkbox/radio quedan con bootstrap default (no tienen "recuadro" para llenar) */
input[type="checkbox"], input[type="radio"] { box-shadow: none !important; }

/* ── CARD GLOBAL IMPROVEMENTS ── */
/* Todos los card-header con bg-white reciben gradiente sutil */
.card-header.bg-white {
  background: linear-gradient(90deg, #f8fafc, #fff) !important;
}
/* Bordes de card más suaves */
.card {
  border: 1px solid #e9ecef;
  border-radius: 10px !important;
}
.card.shadow-sm {
  box-shadow: 0 1px 6px rgba(0,0,0,.07), 0 0 0 1px rgba(0,0,0,.03) !important;
}
.card-header {
  border-bottom: 1px solid rgba(0,0,0,.06);
  border-radius: 10px 10px 0 0 !important;
}
/* Tables inside cards */
.card .table thead th {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6b7280;
  border-bottom-width: 1px;
}
.card .table-hover tbody tr:hover {
  background: #f8fafc;
}
/* KPI cards con border-left */
.card[style*="border-left"] {
  border-radius: 10px !important;
  border-top: none !important;
  border-right: none !important;
  border-bottom: none !important;
  overflow: hidden;
}
/* Badges */
.badge { border-radius: 6px !important; font-weight: 600; }
.badge.rounded-pill { border-radius: 20px !important; }
/* List group inside cards */
.card .list-group-item {
  border-left: none;
  border-right: none;
  font-size: 13px;
}
.card .list-group-item:first-child { border-top: none; }
/* Botones */
.btn { border-radius: 8px !important; font-size: 13px; font-weight: 500; }
.btn-lg { border-radius: 10px !important; font-size: 15px; }
.btn-sm { border-radius: 6px !important; font-size: 12px; }
/* Inputs */
.input-group > .form-control,
.input-group > .form-select,
.input-group > .input-group-text {
  border-radius: 0 !important;
}
.input-group > .form-control:first-child,
.input-group > .input-group-text:first-child {
  border-radius: 8px 0 0 8px !important;
}
.input-group > .form-control:last-child,
.input-group > .btn:last-child,
.input-group > .input-group-text:last-child {
  border-radius: 0 8px 8px 0 !important;
}

/* v0.12.0 — CTA Alquilame en sidebar (logo estrella + amber) */
.cta-alquilame {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 14px 12px 18px; padding: 12px 14px;
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
  color: #fff !important; font-weight: 700; text-decoration: none;
  border-radius: 10px; box-shadow: 0 4px 12px rgba(217,119,6,0.35);
  font-size: 14px; letter-spacing: 0.5px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.cta-alquilame:hover {
  transform: translateY(-2px); box-shadow: 0 6px 18px rgba(217,119,6,0.55);
  color: #fff !important;
}
.cta-logo {
  width: 28px; height: 28px;
  background: #fff;
  border-radius: 7px;
  padding: 3px;
  flex-shrink: 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}
.cta-text { letter-spacing: 1px; }
