/* Bayas y Abonos. Usa las variables de v-components.css; el color propio de cada baya llega como --accent. */

/* ---------- Cabecera ---------- */
.bb-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.bb-stats li { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; background: color-mix(in srgb, var(--bg) 55%, transparent); border: 1px solid var(--line-2); border-radius: 999px; font-size: 13.5px; color: var(--text-2); }
.bb-stats strong { color: var(--gold-2); font: 700 15px var(--font-mono); }
.bb-art { display: grid; place-items: center; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle at 50% 40%, var(--panel-3), var(--bg-2) 70%); box-shadow: 0 0 0 2px var(--gold-deep), 0 0 40px var(--gold-glow); }
.bb-art img { width: 72px; height: 72px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .6)); }
@media (max-width: 700px) { .bb-art { display: none; } }

/* ---------- Paneles y comunes ---------- */
.bb-panel { animation: v-rise .3s ease both; }
.bb-panel[hidden] { display: none; }
.bb-mt { margin-top: 34px; }
.bb-mt-sm { margin-top: 14px; }
.bb-muted { color: var(--muted); font-size: 14px; }
.bb-count { margin: 0; color: var(--muted); font: 600 13px var(--font-mono); }
.bb-grow { flex: 1 1 260px; min-width: 0; }
.bb-nowrap { white-space: nowrap; }
.bb-op { flex: none; color: var(--gold); font: 700 18px var(--font-mono); }
.bb-filter-label { display: block; margin-bottom: 6px; color: var(--muted); font: 700 11px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.bb-list { margin: 0; padding-left: 20px; color: var(--text-2); display: grid; gap: 8px; }
.bb-list strong { color: var(--gold-3); }
.bb-noimg { display: inline-grid; place-items: center; font-size: 14px; }
.bb-dot { display: inline-block; width: 9px; height: 9px; margin-right: 2px; border-radius: 50%; background: var(--dot); box-shadow: 0 0 0 1px rgba(0, 0, 0, .5); }

/* Enlace a una baya (abre su ficha) */
.bb-blink { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 2px 10px 2px 4px; color: var(--text); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 999px; font: 600 13.5px var(--font-body); cursor: pointer; white-space: nowrap; }
.bb-blink:hover { color: var(--gold-3); border-color: var(--gold-deep); }
.bb-blink img { flex: none; }

.bb-chiprow { display: flex; flex-wrap: wrap; gap: 6px; }
.bb-mulch-chip { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 3px; color: var(--text-2); background: var(--panel-3); border: 1px solid var(--line); border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.bb-tagchip { display: inline-flex; padding: 3px 10px; color: var(--gold-2); background: color-mix(in srgb, var(--gold) 8%, transparent); border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); border-radius: 999px; font-size: 13px; font-weight: 600; }

/* ---------- 1. Catálogo ---------- */
.bb-filters { display: grid; gap: 14px; margin-bottom: 18px; }
.bb-filter-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.bb-filter-row .v-field:not(.bb-grow) { flex: 0 1 200px; }
.bb-mut-check { min-height: 42px; }
.bb-filter-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.bb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.bb-empty { padding: 30px; text-align: center; color: var(--muted); }

.bb-card { position: relative; display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px 14px 12px; color: var(--text); text-align: left; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); font: inherit; cursor: pointer; overflow: hidden; transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.bb-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--accent); opacity: .85; }
.bb-card:hover { border-color: var(--gold-deep); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
.bb-card-top { display: flex; align-items: center; gap: 11px; min-width: 0; }
.bb-card-sprite { flex: none; display: grid; place-items: center; width: 52px; height: 52px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%), var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; }
.bb-card-name { display: grid; min-width: 0; }
.bb-card-name strong { color: var(--gold-3); font: 700 17px var(--font-display); letter-spacing: .02em; }
.bb-card-name small { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.bb-card-badge { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 28px; height: 28px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 50%; font-size: 14px; }
.bb-card-name { padding-right: 30px; }
.bb-card-effect { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--text-2); font-size: 14px; line-height: 1.45; min-height: 3.1em; }
.bb-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: auto; padding-top: 9px; border-top: 1px dashed var(--line); color: var(--text-2); font: 600 12.5px var(--font-mono); }
.bb-card-mulch { display: inline-flex; gap: 4px; margin-left: auto; }
.bb-card-mulch .bb-mulch-chip { padding: 2px; }

/* ---------- Ficha (diálogo) ---------- */
.bb-dialog { width: min(820px, calc(100% - 24px)); max-height: calc(100dvh - 32px); padding: 0; color: var(--text); background: var(--panel); border: 1px solid var(--gold-deep); border-radius: 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .7); overflow: hidden; }
.bb-dialog::backdrop { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(4px); }
.bb-dialog[open] { animation: v-rise .25s ease both; }
.bb-dialog-inner { position: relative; max-height: calc(100dvh - 34px); padding: 22px 24px 24px; overflow-y: auto; overscroll-behavior: contain; }
.bb-close { position: sticky; top: 0; float: right; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; margin: -6px -8px 0 10px; color: var(--gold-2); background: var(--panel-3); border: 1px solid var(--line-2); border-radius: 50%; font-size: 16px; cursor: pointer; }
.bb-close:hover { color: var(--gold-3); border-color: var(--gold); }
.bb-d-head { display: flex; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.bb-d-sprite { flex: none; display: grid; place-items: center; width: 92px; height: 92px; background: radial-gradient(circle, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%), var(--bg-2); border: 1px solid var(--gold-deep); border-radius: 20px; }
.bb-d-head h2 { font-size: clamp(24px, 3vw, 32px); }
.bb-d-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bb-d-effect { margin: 14px 0 0; padding: 12px 14px; color: var(--gold-3); background: color-mix(in srgb, var(--gold) 7%, transparent); border-left: 3px solid var(--gold); border-radius: var(--radius-sm); font-size: 16px; font-weight: 600; }
.bb-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; }
.bb-facts div { padding: 10px 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.bb-facts dt { color: var(--muted); font: 700 10.5px var(--font-mono); letter-spacing: .1em; text-transform: uppercase; }
.bb-facts dd { margin: 4px 0 0; color: var(--gold-3); font: 700 18px var(--font-mono); }
.bb-facts small { display: block; color: var(--muted); font: 500 12px var(--font-body); }
.bb-d-sections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin-top: 16px; }
.bb-d-sections section { min-width: 0; }
.bb-d-sections .is-wide { grid-column: 1 / -1; }
.bb-d-sections h3 { margin-bottom: 8px; color: var(--gold); font: 700 11.5px var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.bb-d-sections p { color: var(--text-2); font-size: 14.5px; }
.bb-d-sections .bb-muted { margin-top: 6px; font-size: 13px; }
.bb-details { margin-top: 8px; }
.bb-details summary { color: var(--gold-2); font-size: 13.5px; font-weight: 600; cursor: pointer; }
.bb-biome-list { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 13px; }
.bb-biome-list strong { display: block; color: var(--gold-2); }
.bb-biome-list span { color: var(--muted); }
.bb-flavs { display: grid; gap: 6px; }
.bb-flav { display: grid; grid-template-columns: 96px minmax(0, 1fr) 28px; align-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.bb-flav b { color: var(--gold-3); font: 700 13px var(--font-mono); text-align: right; }
.bb-flav.is-zero { opacity: .45; }
.bb-flav-bar { height: 8px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; }
.bb-flav-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold-2)); border-radius: 99px; }
.bb-pairs { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0; padding: 0; list-style: none; }
.bb-pairs li { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--text-2); font-size: 14px; }
.bb-pairs.is-compact { display: grid; gap: 6px; }
.bb-uses { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; color: var(--text-2); font-size: 14.5px; }
.bb-uses strong { color: var(--gold-3); }
.bb-drops { display: flex; flex-wrap: wrap; gap: 6px; }
.bb-drops span { padding: 3px 10px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; font-size: 13px; }
.bb-drops b { color: var(--gold-2); font-family: var(--font-mono); font-size: 12px; }
@media (max-width: 640px) {
  .bb-dialog { width: 100%; max-width: 100%; max-height: 100dvh; margin: auto 0 0; border-radius: 18px 18px 0 0; }
  .bb-dialog-inner { max-height: calc(100dvh - 2px); padding: 18px 16px 22px; }
  .bb-d-sprite { width: 72px; height: 72px; border-radius: 16px; }
  .bb-d-sprite img { width: 48px; height: 48px; }
  .bb-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bb-d-sections { grid-template-columns: 1fr; }
}

/* ---------- 2. Mutaciones ---------- */
.bb-mut-tools { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.bb-mut-card { display: grid; gap: 12px; }
.bb-mut-card h3 { margin: 0; }
.bb-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bb-two h4 { margin-bottom: 6px; color: var(--gold-2); font: 700 12px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.bb-target-head { display: flex; align-items: center; gap: 10px; color: var(--text-2); }
.bb-target-head strong { color: var(--gold-3); }
.bb-recipes { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.bb-recipe { padding: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.bb-recipe-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.bb-recipe-parent { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.bb-recipe-tip { margin-top: 9px; color: var(--muted); font-size: 13.5px; }
.bb-recipe-tip strong { color: var(--gold-2); }
.bb-src { display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px; border-radius: 999px; font: 700 11px var(--font-mono); letter-spacing: .04em; text-transform: uppercase; }
.bb-src.is-wild { color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); }
.bb-src.is-mut { color: var(--gold-2); background: transparent; border: 1px solid var(--line-2); cursor: pointer; }
.bb-src.is-mut:hover { border-color: var(--gold); color: var(--gold-3); }
.bb-pair-hit { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; background: color-mix(in srgb, var(--ok) 6%, transparent); border: 1px solid color-mix(in srgb, var(--ok) 30%, transparent); border-radius: var(--radius-sm); }
.bb-layout { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; margin-top: 14px; }
.bb-layout h3 { margin-bottom: 10px; }
.bb-layout-grid { display: grid; grid-template-columns: repeat(5, 36px); grid-auto-rows: 36px; gap: 3px; padding: 8px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; }
.bb-cell { display: grid; place-items: center; border-radius: 6px; }
.bb-cell.is-a { background: color-mix(in srgb, var(--gold) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 35%, transparent); }
.bb-cell.is-b { background: var(--panel-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.bb-table-tools, .bb-mulch-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 12px; }
.bb-table-tools .v-field:not(.bb-grow) { flex: 0 1 220px; }
.bb-table-tools .v-check { min-height: 42px; }
.bb-scroll { max-height: 70vh; overflow: auto; }
.bb-mut-table td { padding: 7px 12px; }
@media (max-width: 900px) {
  .bb-mut-tools { grid-template-columns: 1fr; }
  .bb-layout { grid-template-columns: 1fr; justify-items: start; }
}
@media (max-width: 480px) {
  .bb-two { grid-template-columns: 1fr; }
  .bb-layout-grid { grid-template-columns: repeat(5, 30px); grid-auto-rows: 30px; }
}

/* ---------- 3. Abonos ---------- */
.bb-mulch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.bb-mulch { display: flex; flex-direction: column; gap: 10px; }
.bb-mulch.is-special { border-color: var(--gold-deep); }
.bb-mulch-head { display: flex; align-items: center; gap: 12px; }
.bb-mulch-head h3 { margin-bottom: 4px; }
.bb-mulch-sprite { flex: none; display: grid; place-items: center; width: 58px; height: 58px; background: radial-gradient(circle, color-mix(in srgb, var(--gold) 16%, transparent), transparent 70%), var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px; }
.bb-mulch-effect { color: var(--gold-3); font-weight: 600; }
.bb-mulch .bb-muted { font-size: 13.5px; }
.bb-recipe-line { color: var(--text-2); font-size: 13.5px; }
.bb-recipe-line span { color: var(--muted); font: 700 11px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; }
.bb-fav { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.bb-fav-list { display: flex; flex-wrap: wrap; gap: 5px; }
.bb-fav-list .bb-blink { min-height: 28px; font-size: 12.5px; padding-right: 8px; }

/* ---------- 4. Tabla ---------- */
.bb-big-table { min-width: 1180px; font-size: 13.5px; }
.bb-big-table th { padding: 0; white-space: nowrap; }
.bb-sort { display: inline-flex; align-items: center; gap: 6px; width: 100%; padding: 11px 12px; color: inherit; background: none; border: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: left; cursor: pointer; }
.bb-sort:hover { color: var(--gold-3); }
.bb-sort-ico { color: var(--faint); font-size: 10px; }
th[aria-sort="ascending"] .bb-sort-ico, th[aria-sort="descending"] .bb-sort-ico { color: var(--gold-2); }
.bb-big-table td { padding: 8px 12px; }
.bb-td-own { width: 44px; text-align: center; }
.bb-own { width: 18px; height: 18px; accent-color: var(--gold); cursor: pointer; }
.bb-td-effect { min-width: 260px; max-width: 340px; color: var(--text-2); }
.bb-td-obtain { min-width: 170px; color: var(--text-2); font-size: 13px; }
.bb-num { font-family: var(--font-mono); white-space: nowrap; color: var(--gold-3); }
.bb-big-table tr.is-owned td { background: color-mix(in srgb, var(--ok) 5%, transparent); }
.bb-big-table tr.is-owned .bb-td-name .bb-blink { border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
.bb-th-own .bb-sort { justify-content: center; }

/* ---------- 5. Cómo cultivar ---------- */
.bb-stages { margin-bottom: 18px; }
.bb-stages h3 { margin-bottom: 14px; }
.bb-stage-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.bb-stage-list li { position: relative; display: grid; gap: 4px; align-content: start; padding: 12px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.bb-stage-list li.is-key { border-color: var(--gold-deep); background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 9%, transparent), var(--bg-2)); }
.bb-stage-list strong { color: var(--gold-3); font-size: 15px; }
.bb-stage-list small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.bb-stage-n { justify-self: start; padding: 1px 9px; color: #140e05; background: var(--gold); border-radius: 999px; font: 700 12px var(--font-mono); }
.bb-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.bb-steps li { position: relative; padding-left: 64px; counter-increment: step; }
.bb-steps li::before { content: counter(step); position: absolute; left: 18px; top: 18px; display: grid; place-items: center; width: 32px; height: 32px; color: #140e05; background: linear-gradient(180deg, var(--gold-2), var(--gold-deep)); border-radius: 50%; font: 800 15px var(--font-display); }
.bb-steps p { color: var(--text-2); font-size: 14.5px; }
.bb-steps strong { color: var(--gold-3); }
.bb-panel .v-grid .v-card p { color: var(--text-2); font-size: 14.5px; }
.bb-panel .v-grid .v-card strong { color: var(--gold-3); }
@media (max-width: 900px) {
  .bb-stage-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bb-steps { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .bb-stage-list { grid-template-columns: 1fr; }
  .bb-steps li { padding-left: 56px; }
  .bb-steps li::before { left: 14px; }
  .bb-grid { grid-template-columns: 1fr; }
}

/* Bayas reductoras de EVs (Catálogo) */
.bb-ev { margin-bottom: 16px; padding: 16px 18px; border-color: #ff8c8c55; }
.bb-ev-head h3 { margin: 0 0 4px; font-size: 18px; }
.bb-ev-head p { margin: 0 0 12px; color: var(--text-2, #d8e3f6); line-height: 1.5; }
.bb-ev-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 8px; }
.bb-ev-item { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; color: inherit; text-align: left; background: var(--panel-2, #16233c); border: 1px solid var(--line, #2b3d5c); border-radius: 12px; font: inherit; cursor: pointer; }
.bb-ev-item:hover { border-color: var(--gold, #ffd442); }
.bb-ev-item span { display: grid; }
.bb-ev-item small { color: #ff9a9a; font-size: 12.5px; }
.bb-ev-foot { margin: 12px 0 0; font-size: 14px; color: var(--muted, #9aa9c4); }

/* ==========================================================================
   Rediseño 2026-11: cabecera con cifras, pestañas que bajan de línea, reductoras plegables, barra con usos
   en píldoras y panel de filtros, tarjetas con el color de la baya y ficha con secciones plegables.
   ========================================================================== */

/* --- Cabecera en recuadro con las cifras dentro --- */
.bbx-page .sec-hero { margin-bottom: 16px; padding: 26px 28px; background: radial-gradient(circle at 85% 40%, #36b98a26, transparent 45%), linear-gradient(120deg, #172a4a, #121d32 60%); border: 1px solid var(--line); border-radius: 18px; }
.bbx-page .bb-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; max-width: 820px; margin-top: 16px; padding: 0; }
.bbx-page .bb-stats li { display: grid; gap: 2px; padding: 10px 14px; color: var(--muted); background: #0b1426b3; border: 1px solid #ffffff17; border-radius: 12px; font-size: 13px; }
.bbx-page .bb-stats strong { color: #fff; font-size: 24px; line-height: 1.1; }

/* --- Pestañas: bajan de línea, sin desplazarse hacia el lado; activa en azul --- */
.bbx-page .v-tabs { position: static; flex-wrap: wrap; overflow: visible; padding: 8px; background: var(--panel); border-radius: 22px; backdrop-filter: none; }
.bbx-page .v-tab { min-height: 42px; background: var(--bg-2); border-color: var(--line); }
.bbx-page .v-tab:hover { color: #fff; border-color: #4bb6ff88; }
.bbx-page .v-tab[aria-selected="true"] { color: #fff; background: linear-gradient(135deg, #2f6fd6, #3fa2ec); border-color: #6cc4ff; box-shadow: 0 4px 14px #2f8ae055; }

/* --- Bayas reductoras de EVs: plegable --- */
.bbx-ev { margin: 0 0 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; }
.bbx-ev[open] { border-color: #8932b866; }
.bbx-ev > summary { display: flex; align-items: center; gap: 12px; padding: 12px 16px; cursor: pointer; list-style: none; border-radius: 16px; }
.bbx-ev > summary::-webkit-details-marker { display: none; }
.bbx-ev > summary:hover { background: #ffffff08; }
.bbx-ev > summary > span:nth-child(2) { display: grid; }
.bbx-ev > summary b { color: #fff; font-size: 16px; }
.bbx-ev > summary small { color: var(--muted); font-size: 13px; }
.bbx-ev-icon { display: grid; place-items: center; width: 36px; height: 36px; flex: none; background: #2a1b3d; border-radius: 10px; font-size: 18px; }
.bbx-ev-body { padding: 0 16px 16px; }
.bbx-ev-body > p:first-child { margin: 0 0 12px; color: var(--text-2); font-size: 14px; }
.bbx-chevron { width: 10px; height: 10px; flex: none; margin: 0 4px 4px auto; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
details[open] > summary .bbx-chevron { transform: rotate(-135deg); margin-bottom: -4px; }

/* --- Barra de búsqueda y filtros --- */
.bbx-toolbar { margin-bottom: 10px; padding: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; }
.bbx-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bbx-search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 18px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; }
.bbx-search:focus-within { border-color: #4bb6ff; box-shadow: 0 0 0 3px #4bb6ff2e; }
.bbx-search > span:first-child { color: var(--muted); font-size: 22px; line-height: .7; }
.bbx-search input { width: 100%; min-width: 0; color: #fff; background: none; border: 0; outline: 0; font: inherit; font-size: 15px; }
.bbx-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.bbx-filter-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; color: var(--text-2); background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; }
.bbx-filter-toggle:hover, .bbx-filter-toggle[aria-expanded="true"], .bbx-filter-toggle.has-active { color: #fff; border-color: #4bb6ff; }
.bbx-count { padding: 1px 8px; color: #fff; background: #2f8ae0; border-radius: 999px; font-size: 12px; }
.bbx-use-toggle { display: none; }
.bbx-uses { order: 3; flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 6px; }
.bbx-use { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 13px; color: var(--text-2); background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: transform .15s, border-color .15s; }
.bbx-use span, .bbx-chip span { padding: 1px 7px; color: var(--muted); background: #ffffff10; border-radius: 999px; font-size: 12px; }
.bbx-use:hover { transform: translateY(-1px); border-color: #4bb6ff88; }
.bbx-use[aria-pressed="true"] { color: #fff; background: linear-gradient(135deg, #2f6fd6, #3fa2ec); border-color: #6cc4ff; box-shadow: 0 4px 14px #2f8ae055; }
.bbx-use[aria-pressed="true"] span, .bbx-chip[aria-pressed="true"] span { color: #fff; background: #ffffff2e; }
.bbx-panel { display: grid; gap: 14px; margin-top: 12px; padding: 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; }
.bbx-panel[hidden] { display: none; }
.bbx-group { display: grid; gap: 8px; }
.bbx-group > span { color: var(--text-2); font-size: 14px; font-weight: 600; }
.bbx-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.bbx-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; color: var(--text-2); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.bbx-chip:hover { border-color: #4bb6ff88; }
.bbx-chip[aria-pressed="true"] { color: #fff; background: linear-gradient(135deg, #2f6fd6, #3fa2ec); border-color: #6cc4ff; }
.bbx-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.bbx-switch { display: inline-flex; align-items: center; gap: 9px; color: var(--text-2); font-weight: 600; cursor: pointer; }
.bbx-switch input { position: absolute; opacity: 0; pointer-events: none; }
.bbx-switch i { position: relative; width: 36px; height: 20px; flex: none; background: #2a3a55; border-radius: 999px; transition: background .2s; }
.bbx-switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; background: #c9d6ea; border-radius: 50%; transition: transform .2s; }
.bbx-switch input:checked + i { background: #2fbf7d; }
.bbx-switch input:checked + i::after { background: #fff; transform: translateX(16px); }
.bbx-switch input:focus-visible + i { outline: 2px solid #4bb6ff; outline-offset: 2px; }
.bbx-clear { height: 40px; padding: 0 18px; color: #ff9aaa; background: none; border: 1px solid #743043; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; }
.bbx-clear:hover { color: #fff; background: #8b1732; }
.bbx-catcount { margin: 0 0 10px; }

/* --- Tarjetas con el color de la baya --- */
.bbx-page .bb-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.bbx-page .bb-card { background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 24%, #121d32), #0f1a2e 70%); border-color: color-mix(in srgb, var(--accent) 40%, #263752); border-radius: 18px; }
.bbx-page .bb-card::before { display: none; }
.bbx-page .bb-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: none; }
.bbx-page .bb-card-sprite { width: 58px; height: 58px; background: radial-gradient(circle, #ffffff24, transparent 70%), #0b1424; border-color: color-mix(in srgb, var(--accent) 45%, #3a5378); border-radius: 16px; }
.bbx-page .bb-card-name strong { color: #fff; font-size: 17px; }
.bbx-page .bb-card-meta { padding: 7px 10px; background: #0b142699; border: 0; border-radius: 10px; font-size: 12.5px; }

/* --- Ficha de la baya --- */
.bb-dialog { --accent: #36b98a; border-color: color-mix(in srgb, var(--accent) 55%, #2b3d5c); border-radius: 20px; }
.bb-dialog::backdrop { backdrop-filter: none; background: #030812e0; }
.bb-dialog-inner { padding: 0 0 20px; }
#bb-dialog-body > :not(.bb-d-head) { margin-inline: 24px; }
.bb-dialog .bb-d-head { margin: 0; padding: 24px 60px 22px 24px; background: radial-gradient(circle at 12% 50%, color-mix(in srgb, var(--accent) 50%, transparent), transparent 55%), linear-gradient(120deg, color-mix(in srgb, var(--accent) 35%, #0d1729), #121d32 70%); border-bottom: 1px solid color-mix(in srgb, var(--accent) 45%, #2b3d5c); }
.bb-dialog .bb-d-sprite { background: radial-gradient(circle, #ffffff2a, transparent 68%); border: 0; }
.bb-dialog .bb-d-sprite img { filter: drop-shadow(0 8px 6px #0008); }
.bb-dialog .bb-d-effect { margin-top: 16px; }
.bb-dialog .bb-facts { margin-top: 12px; }
.bbx-secs { display: grid; gap: 10px; margin-top: 14px; }
.bbx-sec { background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; }
.bbx-sec[open] { border-color: color-mix(in srgb, var(--accent) 55%, #2b3d5c); }
.bbx-sec > summary { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; list-style: none; border-radius: 14px; }
.bbx-sec > summary::-webkit-details-marker { display: none; }
.bbx-sec > summary:hover { background: #ffffff08; }
.bbx-sec > summary h3 { margin: 0; font-size: 17px; }
.bbx-sec-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: none; background: color-mix(in srgb, var(--accent) 30%, #121d32); border-radius: 10px; font-size: 17px; }
.bbx-sec-hint { margin-left: auto; color: var(--muted); font-size: 13px; text-align: right; }
.bbx-sec > summary .bbx-chevron { margin-left: 6px; }
.bbx-sec-body { padding: 2px 14px 14px; }
.bbx-sec-body h4 { margin: 10px 0 6px; color: #fff; font-size: 14px; }
.bbx-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 18px; }
.bbx-grid2 section:last-child { grid-column: 1 / -1; }

@media (max-width: 760px) {
  .bbx-page .sec-hero { padding: 18px 16px; }
  .bbx-page .bb-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bbx-page .v-tabs { gap: 5px; padding: 6px; border-radius: 18px; }
  .bbx-page .v-tab { min-height: 36px; padding: 0 12px; font-size: 13px; }
  .bbx-toolbar { padding: 8px; border-radius: 18px; }
  .bbx-search { flex-basis: calc(100% - 130px); height: 42px; }
  .bbx-filter-toggle { min-height: 42px; padding: 0 14px; }
  .bbx-uses { display: none; gap: 5px; }
  .bbx-uses.is-open { display: flex; }
  .bbx-use { min-height: 34px; padding: 0 10px; font-size: 12.5px; }
  .bbx-use-toggle { order: 2; flex: 1 1 100%; display: flex; align-items: center; min-height: 42px; padding: 0 16px; color: #fff; background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
  .bbx-use-toggle::before { content: "Uso:"; margin-right: 6px; color: var(--muted); font-weight: 500; }
  .bbx-use-toggle span { margin-right: auto; }
  .bbx-use-toggle i { width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s; }
  .bbx-use-toggle[aria-expanded="true"] { border-color: #4bb6ff; }
  .bbx-use-toggle[aria-expanded="true"] i { transform: rotate(-135deg); }
  .bbx-panel { max-height: 55vh; overflow-y: auto; }
  .bbx-page .bb-grid { grid-template-columns: minmax(0, 1fr); }
  .bb-dialog .bb-d-head { padding: 20px 52px 18px 16px; }
  #bb-dialog-body > :not(.bb-d-head) { margin-inline: 16px; }
  .bbx-sec-hint { display: none; }
  .bbx-sec > summary .bbx-chevron { margin-left: auto; }
  .bbx-grid2 { grid-template-columns: minmax(0, 1fr); }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
