/* ══ BUSQUEDA — Dark theme ═══════════════════════════════════════ */

body { background: #0b0d13 !important; color: #e2e8f0 !important; }

/* ── LAYOUT ─────────────────────────────────────────────────────── */
.bq-wrap {
  display: flex;
  max-width: 1380px;
  margin: 0 auto;
  padding: 24px 16px 60px;
  gap: 24px;
  align-items: flex-start;
}

/* ── SIDEBAR ─────────────────────────────────────────────────────── */
.bq-sidebar {
  flex: 0 0 270px;
  position: sticky;
  top: 210px;
  min-width: 0;
}

.bq-mobile-toggle {
  display: none;
  width: 100%;
  background: #0f1118;
  border: 1.5px solid #1a1e2b;
  color: #e2e8f0;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  text-align: left;
  margin-bottom: 10px;
}

.bq-badge {
  background: #16a34a;
  color: #fff;
  border-radius: 99px;
  padding: 1px 7px;
  font-size: .72rem;
  font-weight: 700;
  margin-left: 8px;
}

#bqForm {
  background: #0f1118;
  border: 1.5px solid #1a1e2b;
  border-radius: 16px;
  overflow: hidden;
}

.bq-section {
  padding: 16px;
}

.bq-panel-open { display: block !important; }

.bq-section-title {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 10px;
}

/* ── TIPO PILLS ──────────────────────────────────────────────────── */
.bq-tipos {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 4px;
}

.bq-tipo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  cursor: pointer;
  font-size: .85rem;
  font-weight: 500;
  color: rgba(255,255,255,.55);
  transition: background .15s, color .15s;
  position: relative;
}

.bq-tipo:hover {
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.85);
}

.bq-tipo.active {
  background: rgba(var(--tc-rgb, 22,163,74), .15);
  color: var(--tc, #16a34a);
  font-weight: 600;
}

.bq-tipo.active::before {
  content: '';
  position: absolute;
  left: 0; top: 20%; bottom: 20%;
  width: 3px;
  background: var(--tc, #16a34a);
  border-radius: 2px;
}

.bq-tipo input { display: none; }

.bq-tipo i {
  width: 16px;
  text-align: center;
  font-size: .9rem;
}

/* ── FILTROS ─────────────────────────────────────────────────────── */
.bq-filters { margin-top: 4px; }
.bq-hidden  { display: none; }

.bq-filter-divider {
  font-size: .63rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
  border-top: 1px solid #1a1e2b;
  padding-top: 12px;
  margin: 8px 0 10px;
}

.bq-fg { margin-bottom: 14px; }

.bq-fg label:first-child {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 6px;
}

.bq-select {
  width: 100%;
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  border-radius: 8px;
  color: #e2e8f0 !important;
  padding: 8px 10px;
  font-family: 'Poppins', sans-serif;
  font-size: .82rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color .15s;
}
.bq-select:focus { border-color: rgba(255,255,255,.3) !important; }
.bq-select option { background: #0f1118 !important; color: #e2e8f0; }

.bq-age-row .bq-age-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}
.bq-age-input {
  flex: 1;
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  border-radius: 8px;
  color: #e2e8f0 !important;
  padding: 8px 10px;
  font-family: 'Poppins', sans-serif;
  font-size: .82rem;
  outline: none;
  width: 0;
  transition: border-color .15s;
}
.bq-age-input:focus { border-color: rgba(255,255,255,.3) !important; }
.bq-age-inputs span { color: rgba(255,255,255,.3); font-size: .8rem; }

/* Pills pie dominante */
.bq-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.bq-pill {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 99px;
  color: rgba(255,255,255,.55);
  font-size: .78rem;
  font-weight: 500;
  padding: 5px 13px;
  cursor: pointer;
  transition: all .15s;
}
.bq-pill:hover { background: rgba(255,255,255,.11); color: #fff; }
.bq-pill.active {
  background: rgba(22,163,74,.18);
  border-color: #16a34a;
  color: #16a34a;
  font-weight: 600;
}
.bq-pill input { display: none; }

/* País */
.bq-pais-block { border-top: 1px solid #1a1e2b; padding-top: 12px; margin-top: 4px; }
.bq-pais-input {
  width: 100%;
  background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  border-radius: 8px;
  color: #e2e8f0 !important;
  padding: 7px 10px;
  font-family: 'Poppins', sans-serif;
  font-size: .8rem;
  outline: none;
  margin-bottom: 6px;
}
.bq-pais-list {
  max-height: 150px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #1a1e2b transparent;
}
.bq-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 4px;
  border-radius: 6px;
  cursor: pointer;
  font-size: .8rem;
  color: rgba(255,255,255,.55);
  transition: background .1s, color .1s;
}
.bq-check:hover { background: rgba(255,255,255,.06); color: #fff; }
.bq-check.active { color: #16a34a; }
.bq-check input { accent-color: #16a34a; }

/* Botones */
.bq-apply {
  display: block;
  width: 100%;
  background: var(--tc, #16a34a);
  color: #000;
  font-weight: 700;
  font-size: .85rem;
  padding: 11px;
  border-radius: 9px;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  text-align: center;
  text-decoration: none;
  transition: opacity .15s, transform .15s;
  margin-top: 12px;
}
.bq-apply:hover { opacity: .88; transform: translateY(-1px); color: #000; }

.bq-reset {
  display: block;
  text-align: center;
  color: rgba(255,255,255,.3);
  font-size: .75rem;
  margin-top: 10px;
  text-decoration: none;
  transition: color .15s;
}
.bq-reset:hover { color: rgba(255,255,255,.6); }

/* ── MAIN ───────────────────────────────────────────────────────── */
.bq-main { flex: 1; min-width: 0; }

/* Search bar */
.bq-searchbar {
  display: flex;
  align-items: center;
  background: #0f1118;
  border: 1.5px solid #1a1e2b;
  border-radius: 12px;
  padding: 0 16px;
  margin-bottom: 20px;
  gap: 10px;
  transition: border-color .2s;
}
.bq-searchbar:focus-within { border-color: rgba(255,255,255,.25); }
.bq-search-ico { color: rgba(255,255,255,.3); font-size: .9rem; }
.bq-search-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #e2e8f0;
  font-family: 'Poppins', sans-serif;
  font-size: .9rem;
  padding: 14px 0;
}
.bq-search-input::placeholder { color: rgba(255,255,255,.25); }
.bq-search-btn {
  background: #16a34a;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 18px;
  font-weight: 600;
  font-size: .82rem;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  transition: background .15s;
}
.bq-search-btn:hover { background: #15803d; }

/* Results bar */
.bq-results-bar {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}
.bq-count {
  font-size: .85rem;
  color: rgba(255,255,255,.5);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bq-count strong { color: #fff; font-size: 1rem; }
.bq-tipo-badge {
  background: rgba(22,163,74,.15);
  color: var(--tc, #16a34a);
  border-radius: 99px;
  padding: 3px 10px;
  font-size: .75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ── GRID ───────────────────────────────────────────────────────── */
.bq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

/* ── CARD ───────────────────────────────────────────────────────── */
.bq-card {
  background: #0f1118;
  border: 1.5px solid #1a1e2b;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  position: relative;
}
.bq-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.12);
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.bq-card-hidden { display: none; }

.bq-card-star {
  background: linear-gradient(90deg, #854d0e, #92400e);
  color: #fbbf24;
  font-size: .68rem;
  font-weight: 700;
  padding: 4px 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.bq-card-star i { margin-right: 4px; }

.bq-card-avatar-wrap {
  padding: 20px 20px 0;
  display: flex;
  justify-content: center;
}
.bq-card-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #1a1e2b;
}

.bq-card-body {
  padding: 12px 14px 8px;
  flex: 1;
  text-align: center;
}
.bq-card-name {
  font-weight: 600;
  font-size: .88rem;
  color: #fff;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bq-card-rol {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 99px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: .06em;
}
/* Role colors */
.bq-rol-jugador              { background: rgba(0,255,133,.12); color: #00ff85; }
.bq-rol-club                 { background: rgba(96,165,250,.12); color: #60a5fa; }
.bq-rol-agente               { background: rgba(167,139,250,.12); color: #a78bfa; }
.bq-rol-ojeador-scout,
.bq-rol-scout                { background: rgba(52,211,153,.12); color: #34d399; }
.bq-rol-entrenador           { background: rgba(245,158,11,.12); color: #f59e0b; }
.bq-rol-director-deportivo,
.bq-rol-director-ejecutivo   { background: rgba(251,146,60,.12); color: #fb923c; }
.bq-rol-analista,
.bq-rol-analista-rendimiento { background: rgba(148,163,184,.12); color: #94a3b8; }
.bq-rol-coordinador,
.bq-rol-coordinador-juveniles{ background: rgba(251,191,36,.12); color: #fbbf24; }
.bq-rol-medico,
.bq-rol-fisioterapeuta,
.bq-rol-nutricionista,
.bq-rol-preparador-fisico    { background: rgba(34,211,238,.12); color: #22d3ee; }

.bq-card-sub, .bq-card-pais {
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  margin-bottom: 3px;
}

.bq-card-actions {
  display: flex;
  gap: 6px;
  padding: 10px 14px 14px;
}
.bq-btn-ver {
  flex: 1;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  color: #e2e8f0;
  font-size: .78rem;
  font-weight: 600;
  padding: 7px;
  text-align: center;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.bq-btn-ver:hover { background: rgba(255,255,255,.13); color: #fff; }

.bq-btn-fav {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  color: rgba(255,255,255,.35);
  font-size: .82rem;
  padding: 7px 10px;
  cursor: pointer;
  transition: all .15s;
}
.bq-btn-fav:hover { color: #ef4444; border-color: rgba(239,68,68,.3); }
.bq-btn-fav.active { color: #ef4444; background: rgba(239,68,68,.1); border-color: rgba(239,68,68,.3); }

/* ── EMPTY STATE ────────────────────────────────────────────────── */
.bq-empty-state {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255,255,255,.4);
}
.bq-empty-icon {
  width: 72px;
  height: 72px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}
.bq-empty-state h3 { color: rgba(255,255,255,.7); font-size: 1.2rem; margin-bottom: 8px; }
.bq-empty-state p  { font-size: .88rem; margin-bottom: 24px; }

.bq-shortcut-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.bq-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 99px;
  color: var(--tc, #16a34a);
  font-size: .82rem;
  font-weight: 600;
  padding: 8px 18px;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.bq-shortcut:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }

/* ── LOAD MORE ──────────────────────────────────────────────────── */
.bq-load-more-wrap { text-align: center; margin-top: 28px; }
.bq-load-more {
  background: rgba(255,255,255,.06);
  border: 1.5px solid #1a1e2b;
  border-radius: 10px;
  color: #e2e8f0;
  font-family: 'Poppins', sans-serif;
  font-size: .85rem;
  font-weight: 600;
  padding: 12px 32px;
  cursor: pointer;
  transition: background .15s;
}
.bq-load-more:hover { background: rgba(255,255,255,.1); }
.bq-load-count {
  background: #1a1e2b;
  border-radius: 99px;
  padding: 2px 8px;
  font-size: .72rem;
  margin-left: 8px;
  color: rgba(255,255,255,.5);
}

/* ── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .bq-wrap { flex-direction: column; padding: 12px; }
  .bq-sidebar { flex: none; width: 100%; position: static; top: auto; }
  .bq-mobile-toggle { display: block; }
  #bqSidebarPanel { display: none; }
  #bqSidebarPanel.bq-panel-open { display: block; }
}

@media (max-width: 500px) {
  .bq-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
}
