/* =====================================================================
   BIOS (PRO) — chequeo y guías. Mismo lenguaje visual que Test de
   velocidad / Game Boost (paneles azul noche, métricas con icono).
   ===================================================================== */
.bs-wrap {
  --bs-panel: linear-gradient(160deg, rgba(18,18,20,.96) 0%, rgba(13,13,14,.96) 58%, rgba(10,10,11,.96) 100%);
  --bs-border: rgba(200,200,205,.13); --bs-soft: rgba(200,200,205,.08);
  --bs-text: #f2f2f3; --bs-muted: rgba(245,245,247,.78); --bs-dim: rgba(245,245,247,.55);
  --bs-accent: #f5f5f5; --bs-accent-2: #e5e5e5;
  --bs-good: #34d399; --bs-warn: #f5a623; --bs-maybe: #f5f5f5; --bs-bad: #ff6b6b; --bs-info: #e5e5e5; --bs-unknown: rgba(245,245,247,.45);
  color: var(--bs-text);
}
.bs-wrap [hidden] { display: none !important; }
.bs-pro { display: inline-flex; align-items: center; background: linear-gradient(135deg, rgba(212,212,216,.2), rgba(255,122,89,.15)); color: #d4d4d8; border: 1px solid rgba(212,212,216,.3); border-radius: 6px; padding: 3px 9px; font-size: 11px; font-weight: 700; letter-spacing: .5px; }
.bs-root { position: relative; display: flex; flex-direction: column; gap: 14px; }
.bs-hero, .bs-card {
  position: relative; background: var(--bs-panel); border: 1px solid var(--bs-border); border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), inset 0 -28px 60px rgba(0,0,0,.5), 0 18px 44px rgba(0,0,0,.5);
}
.bs-hero::before, .bs-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 1px; border-radius: 16px 16px 0 0; background: linear-gradient(90deg, transparent, rgba(245,245,245,.32), transparent); pointer-events: none; }

/* colores por estado */
.bs-tile, .bs-card, .bs-badge { --c: var(--bs-info); }
.bs-wrap .is-good { --c: var(--bs-good); } .bs-wrap .is-warn { --c: var(--bs-warn); } .bs-wrap .is-maybe { --c: var(--bs-maybe); }
.bs-wrap .is-bad { --c: var(--bs-bad); } .bs-wrap .is-info { --c: var(--bs-info); } .bs-wrap .is-unknown { --c: var(--bs-unknown); }

/* ── Bloque principal ─────────────────────────────────────────────────── */
.bs-hero { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 22px; align-items: center; padding: 18px 22px; overflow: hidden; --h: var(--bs-accent); }
.bs-hero.is-ok { --h: var(--bs-good); } .bs-hero.is-issues { --h: var(--bs-warn); }
.bs-hero::after { content: ''; position: absolute; width: 520px; height: 520px; left: -170px; top: -210px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, color-mix(in srgb, var(--h) 13%, transparent), transparent 62%); transition: background .5s ease; }
@media (max-width: 900px) { .bs-hero { grid-template-columns: minmax(0, 1fr); justify-items: center; } .bs-hero-side { width: 100%; } }

.bs-ring { position: relative; z-index: 1; width: 168px; aspect-ratio: 1; }
.bs-ring-svg { width: 100%; height: 100%; overflow: visible; }
.bs-ring-bg { fill: none; stroke: color-mix(in srgb, var(--h) 16%, rgba(200,200,205,.1)); stroke-width: 10; }
.bs-ring-arc { fill: none; stroke-width: 10; stroke-linecap: round; stroke: var(--h); filter: drop-shadow(0 0 8px color-mix(in srgb, var(--h) 60%, transparent)); transition: stroke-dasharray .6s var(--ease, ease); }
.bs-ring-arc[stroke-dasharray^="0.0 "] { opacity: 0; }
.bs-ring::before { content: ''; position: absolute; inset: 22px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, color-mix(in srgb, var(--h) 22%, transparent), rgba(10,10,11,.9) 72%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h) 35%, transparent), 0 0 34px color-mix(in srgb, var(--h) 18%, transparent); }
.bs-ring-txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.bs-ring-txt b { font-size: 38px; font-weight: 800; letter-spacing: -1px; line-height: 1; font-variant-numeric: tabular-nums; }
.bs-ring-txt b small { font-size: 17px; font-weight: 700; color: var(--bs-dim); letter-spacing: 0; }
.bs-ring-txt span { margin-top: 5px; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--bs-dim); }
.bs-hero.is-loading .bs-ring-svg { animation: bsSpin 1.2s linear infinite; }
.bs-hero.is-loading .bs-ring-arc { opacity: 1; stroke-dasharray: 70 400; }
.bs-hero.is-loading .bs-ring-txt { opacity: 0; }

.bs-hero-side { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.bs-hero-top { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.bs-hero-main { flex: 1; min-width: 220px; }
.bs-hero-kicker { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--h); }
.bs-hero-title { font-size: 19px; font-weight: 750; margin-top: 4px; }
.bs-hero-sub { font-size: 12.5px; color: var(--bs-muted); margin-top: 3px; }
.bs-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.bs-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 9px; font: 650 12.5px var(--font); color: var(--bs-text); background: rgba(200,200,205,.08); border: 1px solid var(--bs-border); cursor: pointer; white-space: nowrap; transition: all .15s ease; }
.bs-btn:hover { border-color: rgba(245,245,245,.4); background: rgba(245,245,245,.12); }
.bs-btn:disabled { opacity: .5; cursor: default; }
.bs-btn-primary { background: linear-gradient(135deg, var(--bs-accent), #d4d4d8); border-color: transparent; color: #fff; box-shadow: 0 4px 14px rgba(245,245,245,.3); }
.bs-btn-primary:hover { filter: brightness(1.1); background: linear-gradient(135deg, var(--bs-accent), #d4d4d8); }

/* Métricas */
.bs-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 760px) { .bs-tiles { grid-template-columns: minmax(0, 1fr); } }
.bs-tile { position: relative; padding: 11px 13px 12px; border-radius: 13px; overflow: hidden; min-height: 96px; background: rgba(0,0,0,.45); border: 1px solid var(--bs-soft); animation: bsIn .35s var(--ease, ease) both; }
.bs-tile:nth-child(2) { animation-delay: .05s; } .bs-tile:nth-child(3) { animation-delay: .1s; }
.bs-tile.is-warn, .bs-tile.is-maybe { border-color: color-mix(in srgb, var(--c) 40%, transparent); background: color-mix(in srgb, var(--c) 6%, rgba(0,0,0,.45)); }
.bs-tile-head { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; color: var(--bs-muted); }
.bs-tile-head span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-tile-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); flex-shrink: 0; }
.bs-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); flex-shrink: 0; }
.bs-tile-val { display: flex; align-items: baseline; gap: 5px; margin-top: 8px; }
.bs-tile-val b { font-size: 22px; font-weight: 800; letter-spacing: -.4px; font-variant-numeric: tabular-nums; color: #fff; white-space: nowrap; }
.bs-tile-val small { font-size: 11.5px; font-weight: 600; color: var(--bs-dim); }
.bs-tile-sub { font-size: 11.5px; color: var(--bs-dim); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bs-tile-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--c); opacity: .85; box-shadow: 0 0 10px var(--c); }
.bs-tile.is-skel { display: flex; flex-direction: column; gap: 12px; justify-content: center; animation: none; }
.bs-tile.is-skel .skeleton { display: block; height: 12px; border-radius: 5px; width: 55%; }
.bs-tile.is-skel .skeleton + .skeleton { width: 80%; height: 18px; }
@media (max-width: 1100px) { .bs-tile-val b { font-size: 19px; } }

/* ── Tarjetas de detalle ─────────────────────────────────────────────── */
.bs-grid { display: flex; flex-direction: column; gap: 10px; }
.bs-grid:empty { display: none; }
.bs-sec { margin: 6px 2px 0; font-size: 11px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: var(--bs-dim); }
.bs-fix { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 14px; align-items: start; }
.bs-rest { display: flex; flex-direction: column; gap: 10px; }
.bs-card { padding: 16px; display: flex; flex-direction: column; gap: 10px; animation: bsIn .35s var(--ease, ease) both; overflow: hidden; }
.bs-fix .bs-card { border-color: color-mix(in srgb, var(--c) 28%, var(--bs-border)); }
.bs-fix .bs-card::after { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); box-shadow: 0 0 12px var(--c); }
.bs-card.is-skel { min-height: 130px; gap: 12px; }
.bs-card.is-skel .skeleton { display: block; height: 14px; border-radius: 5px; width: 60%; }
.bs-card.is-skel .skeleton + .skeleton { width: 85%; }
.bs-card-head { display: flex; align-items: flex-start; gap: 12px; }
.bs-card-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); flex-shrink: 0; }
.bs-card-txt { flex: 1; min-width: 0; }
.bs-card-title { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 1.1px; text-transform: uppercase; color: var(--bs-dim); }
.bs-headline { font-size: 14.5px; font-weight: 700; line-height: 1.4; margin-top: 3px; }
.bs-headline:empty { display: none; }
.bs-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .4px; padding: 4px 10px; border-radius: 999px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 28%, transparent); white-space: nowrap; flex-shrink: 0; }
.bs-badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); }
.bs-body { padding-left: 50px; }
.bs-body p { margin: 0 0 6px; font-size: 12.5px; color: var(--bs-muted); line-height: 1.55; }
.bs-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.bs-facts span { font-size: 11.5px; padding: 4px 9px; border-radius: 8px; background: rgba(0,0,0,.5); border: 1px solid var(--bs-soft); color: var(--bs-muted); }
.bs-facts b { color: var(--bs-text); font-variant-numeric: tabular-nums; }
.bs-dim { color: var(--bs-dim) !important; font-family: var(--font-mono); }
.bs-alert { margin-top: 8px; font-size: 12px; line-height: 1.5; color: #ffd5d5; background: rgba(255,107,107,.08); border: 1px solid rgba(255,107,107,.3); border-radius: 10px; padding: 9px 11px; }

/* filas compactas (lo que ya está bien o no se puede cambiar) */
.bs-rest .bs-card { padding: 12px 16px; gap: 6px; }
.bs-rest .bs-card-ic { width: 32px; height: 32px; border-radius: 9px; }
.bs-rest .bs-card-head { align-items: center; }
.bs-rest .bs-headline { font-size: 13px; font-weight: 650; }
.bs-rest .bs-body { padding-left: 44px; }
.bs-rest .bs-body p { font-size: 12px; }
.bs-rest .bs-guide { margin-left: 44px; }

/* Guía paso a paso */
.bs-guide { margin-left: 50px; border-radius: 12px; background: rgba(0,0,0,.42); border: 1px solid var(--bs-soft); transition: border-color .15s ease; }
.bs-guide:hover, .bs-guide[open] { border-color: rgba(245,245,245,.3); }
.bs-guide summary { cursor: pointer; list-style: none; padding: 10px 13px; font-size: 12.5px; font-weight: 700; color: var(--bs-accent-2); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bs-guide summary::-webkit-details-marker { display: none; }
.bs-guide summary svg { transition: transform .2s ease; flex-shrink: 0; }
.bs-guide[open] summary svg { transform: rotate(180deg); }
.bs-guide-in { padding: 2px 13px 12px; }
.bs-steps { counter-reset: bs; list-style: none; margin: 4px 0 10px; padding: 0; display: flex; flex-direction: column; }
.bs-steps li { counter-increment: bs; position: relative; padding: 0 0 12px 34px; font-size: 12.5px; color: var(--bs-muted); line-height: 1.5; }
.bs-steps li::before { content: counter(bs); position: absolute; left: 0; top: -1px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--bs-accent), #d4d4d8); box-shadow: 0 0 10px rgba(245,245,245,.35); }
.bs-steps li:not(:last-child)::after { content: ''; position: absolute; left: 10.5px; top: 23px; bottom: 1px; width: 1px; background: rgba(229,229,229,.3); }
.bs-steps li:last-child { padding-bottom: 2px; }
.bs-note { margin: 0 0 10px; font-size: 11.5px; color: var(--bs-dim); line-height: 1.5; }
.bs-guide-in > .bs-note:last-child { margin: 8px 0 0; padding: 9px 11px; border-radius: 10px; background: rgba(245,166,35,.06); border: 1px solid rgba(245,166,35,.2); color: rgba(255,226,180,.85); }

/* ── Versión gratuita ────────────────────────────────────────────────── */
.bs-wrap.is-demo .bs-root > :not(.bs-lock) { filter: saturate(.85); }
.bs-lock { display: grid; place-items: center; border-radius: 16px; background: rgba(8,8,8,.3); backdrop-filter: blur(1.5px); }
.bs-lock-card { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; max-width: 360px; padding: 22px 26px; border-radius: 16px; background: var(--bs-panel); border: 1px solid rgba(212,212,216,.3); box-shadow: 0 24px 60px rgba(0,0,0,.6); }
.bs-lock-card svg { width: 34px; height: 34px; color: #d4d4d8; }
.bs-lock-card b { font-size: 15px; }
.bs-lock-card span { font-size: 12.5px; color: var(--bs-muted); }
.bs-lock-card em { font-style: normal; margin-top: 4px; padding: 8px 16px; border-radius: 9px; font-weight: 700; font-size: 12.5px; color: #1a1204; background: linear-gradient(135deg, #d4d4d8, #ff9a3c); }
@keyframes bsIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes bsSpin { to { transform: rotate(360deg); } }
