/* Buscador de la cabecera (assets/js/buscador.js) · móvil: pantalla completa · escritorio: ventana centrada */
.bq { position: fixed; inset: 0; z-index: 100001; font-family: Inter, system-ui, sans-serif; color: #0a0a0c; }
.bq[hidden] { display: none; }
html.bq-abierto { overflow: hidden; }
.bq-fondo { position: absolute; inset: 0; background: rgba(10,10,12,.6); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .18s ease; }
.bq.visible .bq-fondo { opacity: 1; }
.bq-panel { position: absolute; inset: 0; display: flex; flex-direction: column; background: #f0ede6; transform: translateY(12px); opacity: 0; transition: transform .2s ease, opacity .2s ease; }
.bq.visible .bq-panel { transform: none; opacity: 1; }
.bq-cab { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; padding-top: calc(12px + env(safe-area-inset-top)); background: #0a0a0c; }
.bq-lupa { flex: 0 0 auto; color: #FFC72C; }
.bq-input { flex: 1; min-width: 0; height: 46px; border: 0; border-radius: 23px; padding: 0 16px; background: #1b1c22; color: #fff; font: 500 16px Inter, system-ui, sans-serif; outline: 0; }
.bq-input::placeholder { color: rgba(255,255,255,.45); }
.bq-input:focus { box-shadow: 0 0 0 2px #FFC72C; }
.bq-input::-webkit-search-cancel-button { filter: invert(1); }
.bq-cerrar { flex: 0 0 auto; border: 0; background: none; color: #fff; font: 700 14px Inter, sans-serif; padding: 8px 4px; cursor: pointer; }
.bq-ambito { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 16px; background: #15151a; color: rgba(255,255,255,.7); font-size: 12px; }
.bq-ambito b { color: #fff; }
.bq-ambito a { color: #FFC72C !important; font-weight: 800; text-decoration: none; }
.bq-lista { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 6px 12px 24px; transition: opacity .15s ease; }
.bq-esqueleto { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 12px; margin: 0 0 4px; border-radius: 14px; background: #fff; border: 1px solid rgba(0,0,0,.06); }
.bq-esqueleto i, .bq-esqueleto b, .bq-esqueleto small { display: block; border-radius: 8px; background: linear-gradient(90deg, #ece9e2 25%, #f6f4ef 50%, #ece9e2 75%); background-size: 200% 100%; animation: bq-brillo 1.1s linear infinite; }
.bq-esqueleto i { flex: 0 0 38px; height: 38px; border-radius: 12px; }
.bq-esqueleto span { flex: 1; }
.bq-esqueleto b { width: 60%; height: 13px; }
.bq-esqueleto small { width: 35%; height: 10px; margin-top: 8px; }
@keyframes bq-brillo { to { background-position: -200% 0; } }
.bq-grupo { display: flex; justify-content: space-between; align-items: center; margin: 16px 4px 6px; font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(0,0,0,.5); }
.bq-grupo span { padding: 2px 7px; border-radius: 8px; background: rgba(0,0,0,.07); letter-spacing: 0; }
.bq-grupo button { border: 0; background: none; color: #E4162B; font: 800 11px Inter, sans-serif; letter-spacing: 0; text-transform: none; cursor: pointer; }
.bq-fila { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 8px 12px; margin: 0 0 4px; border-radius: 14px; background: #fff; border: 1px solid rgba(0,0,0,.06); color: #0a0a0c !important; text-decoration: none !important; }
.bq-fila:hover, .bq-fila.activa { border-color: #0a0a0c; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.bq-fila.bq-mas { display: none; }
.bq-ic { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: #f0ede6; color: #0a0a0c; }
.bq-ic.t-equipo { background: #fff1f2; color: #E4162B; }
.bq-ic.t-club { background: #fde8e8; color: #b01226; }
.bq-ic.t-jugador { background: #e8f1ff; color: #1d5fd1; }
.bq-ic.t-categoria, .bq-ic.t-torneo { background: #fff6d6; color: #a37400; }
.bq-ic.t-campo { background: #e8f5e9; color: #2E7D32; }
.bq-ic.t-arbitro { background: #f1ecff; color: #6a3fd1; }
.bq-t { flex: 1; min-width: 0; }
.bq-t b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 15px; font-weight: 700; line-height: 1.25; overflow: hidden; }
.bq-t mark { background: #ffe58a; color: inherit; border-radius: 3px; padding: 0 1px; }
.bq-t small { display: block; margin-top: 2px; font-size: 12px; color: rgba(0,0,0,.55); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bq-flecha { flex: 0 0 auto; color: rgba(0,0,0,.3); }
.bq-vermas { display: block; width: 100%; margin: 2px 0 4px; padding: 10px; border: 1px dashed rgba(0,0,0,.18); border-radius: 12px; background: transparent; font: 700 13px Inter, sans-serif; color: rgba(0,0,0,.65); cursor: pointer; }
.bq-atajos { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 2px; }
.bq-atajos a { padding: 10px 14px; border-radius: 20px; background: #0a0a0c; color: #fff !important; font-size: 13px; font-weight: 700; text-decoration: none; }
.bq-atajos a:hover { background: #22222a; }
.bq-pista { margin: 22px 6px 0; font-size: 13px; line-height: 1.5; color: rgba(0,0,0,.5); text-align: center; }
.bq-vacio { margin-top: 30px; text-align: center; }
.bq-vacio b { display: block; font: 400 26px/1.1 'Bebas Neue', Impact, sans-serif; letter-spacing: .5px; }
.bq-vacio span { display: block; margin-top: 6px; font-size: 14px; color: rgba(0,0,0,.6); }
.bq-vacio a { color: #E4162B !important; font-weight: 700; }
@media (min-width: 900px) {
  .bq-panel { inset: 72px auto auto 50%; width: 680px; max-height: calc(100vh - 110px); margin-left: -340px; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
  .bq-cab { padding-top: 12px; }
  .bq-cerrar { color: rgba(255,255,255,.6); font-size: 12px; }
}

/* Secciones marcadas: cabecera con icono, nombre y número */
.bq-sec { display: flex; align-items: center; gap: 10px; margin: 18px 0 8px; padding: 0 4px 8px; border-bottom: 2px solid #0a0a0c; }
.bq-sec:first-child { margin-top: 8px; }
.bq-sec b { flex: 1; font: 400 24px/1 'Bebas Neue', Impact, sans-serif; letter-spacing: 1px; }
.bq-sec span { min-width: 26px; padding: 3px 8px; border-radius: 10px; background: #0a0a0c; color: #FFC72C; font-size: 12px; font-weight: 800; text-align: center; }
.bq-sec-ic { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #0a0a0c; color: #FFC72C; }
.bq-sec-ic svg { width: 16px; height: 16px; }
/* Federación de cada resultado: círculo con su bandera */
.bq-flag { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 54px; }
.bq-flag svg { width: 26px !important; height: 26px !important; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(0,0,0,.12); }
.bq-flag em { font-style: normal; font-size: 9px; font-weight: 700; color: rgba(0,0,0,.5); max-width: 54px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bq-flag-mini { display: inline-block; width: 18px; height: 18px; margin-right: 8px; vertical-align: -4px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px rgba(255,255,255,.25); }
.bq-flag-mini svg { width: 18px !important; height: 18px !important; }
.bq-ambito button { border: 0; background: none; color: #FFC72C; font: 800 12px Inter, sans-serif; cursor: pointer; padding: 4px 0; }
.bq-btn { display: inline-block; margin-top: 14px; padding: 12px 18px; border: 0; border-radius: 14px; background: #0a0a0c; color: #fff; font: 800 14px Inter, sans-serif; cursor: pointer; }
