/* ─── Mockup compartido — mismos tokens de diseño que la app real (src/index.css) ─── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 1280px;
  min-width: 1280px;
  background: #F5F7F9;
  color: #1C1C1E;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button, input, select, textarea { font-family: inherit; }

/* ─── Navbar ─── */
.navbar {
  background: #FFFFFF;
  border-bottom: 1px solid #E5E5EA;
  height: 52px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  width: 1280px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 28px;
  flex-shrink: 0;
}
.navbar-logo {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3DD6B5, #7EB8E8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}
.navbar-brand-name {
  font-size: 14px;
  font-weight: 700;
  color: #1C1C1E;
  letter-spacing: -0.2px;
}
.navbar-nav {
  display: flex;
  gap: 2px;
  flex: 1;
  align-items: center;
}
.navbar-link {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  color: #8E8E93;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.navbar-link:hover { background: #F5F7F9; color: #3A3A3C; }
.navbar-link--active, .navbar-link--active:hover {
  background: #E8FAF6;
  color: #28B99A;
  font-weight: 600;
}
.navbar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}
.navbar-avatar {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3DD6B5, #7EB8E8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.navbar-username { font-size: 11px; color: #8E8E93; white-space: nowrap; }
.navbar-logout {
  background: transparent; border: none; cursor: pointer;
  color: #8E8E93; padding: 4px; border-radius: 6px;
  display: flex; align-items: center;
}

/* ─── Layout ─── */
.page-main {
  width: 1280px;
  padding: 24px 32px 60px;
  min-height: 700px;
}
.section-title {
  font-size: 20px;
  font-weight: 600;
  color: #3DD6B5;
  letter-spacing: -0.3px;
  line-height: 1.2;
  margin: 0;
}

/* ─── Botones ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  height: 40px;
  padding: 0 16px;
  font-family: inherit;
}
.btn-primary { background: #3DD6B5; color: #fff; }
.btn-primary:hover { background: #28B99A; }
.btn-secondary {
  background: #fff; color: #8E8E93;
  border: 1.5px solid #E5E5EA;
}
.btn-secondary:hover { border-color: #3DD6B5; color: #28B99A; }
.icon-btn {
  width: 28px; height: 28px;
  background: transparent;
  border: 0.5px solid #E5E5EA;
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: #8E8E93;
}
.icon-btn:hover { background: #F5F7F9; }

/* ─── Pills de filtro ─── */
.pill {
  flex-shrink: 0;
  height: 32px;
  padding: 0 14px;
  border-radius: 99px;
  border: 0.5px solid #E5E5EA;
  background: #fff;
  color: #8E8E93;
  font-size: 12px;
  font-weight: 400;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pill--active {
  border-color: #3DD6B5;
  background: #3DD6B5;
  color: #fff;
  font-weight: 600;
}
.pill-count {
  background: #F0F0F0;
  border-radius: 99px;
  padding: 0 5px;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
}
.pill--active .pill-count { background: rgba(255,255,255,0.25); }

/* ─── Badges de estado ─── */
.badge {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 99px;
  display: inline-block;
  white-space: nowrap;
}
.badge-tipo {
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 99px;
  flex-shrink: 0;
}

/* ─── Cards ─── */
.card {
  background: #fff;
  border: 0.5px solid #E5E5EA;
  border-radius: 10px;
  padding: 14px 16px;
}
.card-label-row { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; }
.card-label {
  font-size: 10px; font-weight: 500; color: #8E8E93;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.card-value {
  font-size: 22px; font-weight: 500; color: #1C1C1E;
  letter-spacing: -0.5px; line-height: 1;
}
.card-sub { font-size: 11px; font-weight: 400; color: #8E8E93; margin-top: 4px; }

/* ─── Panel (bloques con header) ─── */
.panel {
  background: #fff;
  border: 0.5px solid #E5E5EA;
  border-radius: 10px;
  overflow: hidden;
}
.panel-header {
  padding: 12px 16px;
  border-bottom: 0.5px solid #F5F7F9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-header-title { font-size: 12px; font-weight: 500; color: #1C1C1E; letter-spacing: -0.3px; }

/* ─── Tabla ─── */
.data-table { width: 100%; border-collapse: collapse; background: #fff; }
.data-table thead tr { background: #F5F7F9; border-bottom: 0.5px solid #E5E5EA; }
.data-table th {
  padding: 8px 14px;
  font-size: 10px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.06em; color: #8E8E93; text-align: left; white-space: nowrap;
}
.data-table td {
  padding: 10px 14px;
  font-size: 13px; color: #1C1C1E;
  border-bottom: 0.5px solid #F5F7F9;
}
.data-table tbody tr:hover { background: #F9FAFB; }

/* ─── Search input ─── */
.search-wrap { position: relative; }
.search-wrap svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: #8E8E93; pointer-events: none; }
.search-input {
  height: 36px;
  padding: 0 12px 0 32px;
  border: 0.5px solid #E5E5EA;
  border-radius: 8px;
  font-size: 13px;
  outline: 0;
  background: #fff;
  box-sizing: border-box;
  font-family: inherit;
}
.search-input:focus { border-color: #7EB8E8; }

.select-input {
  height: 36px;
  padding: 0 10px;
  border: 0.5px solid #E5E5EA;
  border-radius: 8px;
  font-size: 12px;
  color: #1C1C1E;
  background: #fff;
  cursor: pointer;
  outline: 0;
  font-family: inherit;
}

/* ─── Icon helpers ─── */
.ic { display: inline-flex; flex-shrink: 0; }

/* ─── Marco de referencia (solo para revisar en local, no forma parte del diseño real) ─── */
.mockup-frame-note {
  display: none;
}
