/* Bierhaus Odeón — panel de grifos. Clases bh-*; todos los valores salen de tokens.css. */
.bh, .bh * { box-sizing: border-box; }
.bh { font-family: var(--font-slab); font-size: 15px; line-height: 22px; color: var(--ink); background: var(--surface-100); -webkit-font-smoothing: antialiased; }
:where(.bh) :where(button, input, select, textarea) { font: inherit; color: inherit; }
.bh :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.bh-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bh-muted { color: var(--ink-muted); }
.bh-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 500; }
.bh-nil { color: var(--ink-muted); }

/* Iconos (Bierhaus.hydrate rellena [data-icon]) */
.bh-ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; display: block; }
[data-icon] { display: inline-flex; flex: none; }
.bh-ic--sm { display: inline-flex; align-items: center; }
.bh-ic--sm .bh-ic, .bh-ic--sm.bh-ic { width: 16px; height: 16px; }
.bh-ic--lg .bh-ic { width: 24px; height: 24px; }

/* ---------- Cabecera ---------- */
.bh-header { display: flex; align-items: center; gap: var(--space-5); height: 72px; padding: 0 var(--space-6); border-bottom: 1px solid var(--line-strong); background: var(--surface-100); }
.bh-logo { display: flex; flex-direction: column; line-height: 1; text-decoration: none; color: var(--ink); }
.bh-logo__name { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.bh-logo__sub { margin-top: 3px; font-size: 10px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); }
.bh-localpicker { display: inline-flex; align-items: center; gap: var(--space-2); height: 44px; padding: 0 var(--space-3) 0 var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-0); cursor: pointer; text-align: left; }
.bh-localpicker__txt { display: flex; flex-direction: column; line-height: 1.1; min-width: 120px; }
.bh-localpicker__lbl { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.bh-localpicker__val { font-size: 15px; font-weight: 600; }
.bh-localpicker .bh-ic { color: var(--brand); }
.bh-nav { display: flex; align-self: stretch; gap: var(--space-1); }
.bh-nav a { display: flex; align-items: center; gap: var(--space-2); padding: 0 var(--space-3); color: var(--ink-muted); text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.bh-nav a:hover { color: var(--ink); }
.bh-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }
.bh-header__end { margin-left: auto; display: flex; align-items: center; gap: var(--space-3); }
.bh-me { display: flex; align-items: center; gap: var(--space-2); font-size: 13px; color: var(--ink-muted); }

/* ---------- Página ---------- */
.bh-page { max-width: 1280px; margin: 0 auto; padding: 0 var(--space-6) var(--space-7); }
.bh-pagehead { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); padding: var(--space-6) 0 var(--space-4); }
.bh-pagehead h1 { margin: 0; font-size: 28px; line-height: 36px; font-weight: 600; letter-spacing: -0.01em; }
.bh-pagehead p { margin: 2px 0 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }

/* ---------- Pestañas de sección ---------- */
.bh-tabs { display: flex; gap: var(--space-1); border-bottom: 1px solid var(--line); }
.bh-tab { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-3) var(--space-4); border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--ink-muted); font-weight: 500; cursor: pointer; }
.bh-tab:hover { color: var(--ink); }
.bh-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); }
.bh-tab__count { min-width: 22px; padding: 0 6px; border-radius: var(--radius-full); background: var(--surface-200); color: var(--ink-muted); font-size: 12px; line-height: 20px; font-weight: 600; text-align: center; font-variant-numeric: tabular-nums; }
.bh-tab[aria-selected="true"] .bh-tab__count { background: var(--brand-soft); color: var(--brand); }

/* ---------- Barra de herramientas ---------- */
.bh-toolbar { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) 0; }
.bh-toolbar__end { margin-left: auto; display: flex; gap: var(--space-3); align-items: center; }
.bh-search { position: relative; display: flex; align-items: center; width: 280px; }
.bh-search [data-icon] { position: absolute; left: 10px; color: var(--ink-muted); pointer-events: none; }
.bh-search .bh-input { padding-left: 38px; width: 100%; }

/* ---------- Botones ---------- */
.bh-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); height: var(--size-control); padding: 0 var(--space-4); border: 1px solid transparent; border-radius: var(--radius-sm); font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background-color .12s, border-color .12s; }
.bh-btn--primary { background: var(--brand); color: var(--on-brand); }
.bh-btn--primary:hover { background: var(--brand-hover); }
.bh-btn--secondary { background: var(--surface-0); color: var(--ink); border-color: var(--line-strong); }
.bh-btn--secondary:hover { background: var(--surface-200); }
.bh-btn--ghost { background: transparent; color: var(--brand); }
.bh-btn--ghost:hover { background: var(--brand-soft); }
.bh-btn--danger { background: var(--danger); color: var(--on-danger); }
.bh-btn--sm { height: var(--size-control-sm); padding: 0 var(--space-3); font-size: 13px; }
.bh-btn[disabled] { opacity: .45; cursor: not-allowed; }
.bh-iconbtn { display: inline-flex; align-items: center; justify-content: center; width: var(--size-control-sm); height: var(--size-control-sm); border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink-muted); cursor: pointer; }
.bh-iconbtn:hover { background: var(--surface-200); color: var(--ink); }
.bh-iconbtn--danger:hover { background: var(--danger-soft); color: var(--danger); }
.bh-actions { display: flex; gap: var(--space-1); justify-content: flex-end; }

/* ---------- Paneles y tablas ---------- */
.bh-panel { background: var(--surface-0); border: 1px solid var(--line); border-radius: var(--radius-md); }
.bh-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.bh-table th { padding: var(--space-3) var(--space-4); text-align: left; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.bh-table th.bh-num { text-align: right; }
.bh-table td { padding: var(--space-2) var(--space-4); height: var(--size-row); border-bottom: 1px solid var(--line); vertical-align: middle; }
.bh-table tbody tr:last-child td { border-bottom: 0; }
.bh-table tbody tr:hover td { background: var(--surface-200); }
.bh-table tbody tr[aria-selected="true"] td { background: var(--brand-soft); }
.bh-table .bh-actions { opacity: .55; transition: opacity .12s; }
.bh-table tr:hover .bh-actions, .bh-table tr:focus-within .bh-actions { opacity: 1; }

/* Chapa de número de grifo */
.bh-tapno { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-full); border: 1.5px solid var(--line-strong); font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bh-tapno--empty { border-style: dashed; color: var(--ink-muted); }

/* Celda cerveza */
.bh-beer { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.bh-thumb { width: var(--size-thumb); height: var(--size-thumb); flex: none; border-radius: var(--radius-sm); background: var(--surface-200); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.bh-thumb img { width: 100%; height: 100%; object-fit: contain; }
.bh-thumb svg { width: 24px; height: 30px; }
.bh-beer__name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bh-beer__meta { font-size: 13px; line-height: 18px; color: var(--ink-muted); white-space: nowrap; }
.bh-flag { display: inline-flex; align-items: center; gap: 4px; margin-left: var(--space-2); font-size: 12px; font-weight: 600; color: var(--gold-ink); }
.bh-flag::before { content: ""; width: 6px; height: 6px; border-radius: var(--radius-full); background: var(--gold); }

/* Chips, muestras SRM, especificaciones */
.bh-chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: var(--radius-full); background: var(--surface-200); font-size: 13px; font-weight: 500; white-space: nowrap; }
.bh-swatch { width: 12px; height: 12px; flex: none; border-radius: var(--radius-full); box-shadow: 0 0 0 1px var(--line-strong); }
.bh-srm--amarillo { background: var(--srm-amarillo); fill: var(--srm-amarillo); }
.bh-srm--dorado { background: var(--srm-dorado); fill: var(--srm-dorado); }
.bh-srm--naranja { background: var(--srm-naranja); fill: var(--srm-naranja); }
.bh-srm--rojo { background: var(--srm-rojo); fill: var(--srm-rojo); }
.bh-srm--marron { background: var(--srm-marron); fill: var(--srm-marron); }
.bh-srm--negro { background: var(--srm-negro); fill: var(--srm-negro); }
.bh-specs { display: flex; align-items: center; gap: var(--space-2); flex-wrap: nowrap; }
.bh-spec { font-size: 13px; color: var(--ink-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bh-spec b { color: var(--ink); font-weight: 600; }

/* Imagen móvil / TV */
.bh-media { display: flex; gap: var(--space-2); }
.bh-media__i { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--success); }
.bh-media__i--off { color: var(--ink-muted); font-weight: 400; text-decoration: line-through; }

/* Badges */
.bh-badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: var(--radius-full); font-size: 12px; font-weight: 600; white-space: nowrap; }
.bh-badge--neutral { background: var(--surface-200); color: var(--ink-muted); }
.bh-badge--brand { background: var(--brand-soft); color: var(--brand); }
.bh-badge--gold { background: var(--gold); color: var(--on-gold); }
.bh-badge--success { background: var(--success-soft); color: var(--success); }
.bh-badge--danger { background: var(--danger-soft); color: var(--danger); }

/* Avatar */
.bh-avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: var(--radius-full); background: var(--brand-soft); color: var(--brand); font-size: 13px; font-weight: 700; text-transform: uppercase; }

/* Toggle */
.bh-toggle { position: relative; display: inline-flex; align-items: center; gap: var(--space-2); font-size: 13px; font-weight: 500; cursor: pointer; }
.bh-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bh-toggle__track { width: 36px; height: 20px; border-radius: var(--radius-full); background: var(--surface-200); box-shadow: inset 0 0 0 1px var(--line-strong); position: relative; transition: background-color .15s; }
.bh-toggle__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: var(--radius-full); background: var(--line-strong); transition: transform .15s, background-color .15s; }
.bh-toggle input:checked + .bh-toggle__track { background: var(--brand); box-shadow: none; }
.bh-toggle input:checked + .bh-toggle__track::after { transform: translateX(16px); background: var(--on-brand); }
.bh-toggle input:focus-visible + .bh-toggle__track { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ---------- Ofertas ---------- */
.bh-offers { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: var(--space-4); }
.bh-offer { display: grid; grid-template-columns: 96px 1fr; gap: var(--space-4); padding: var(--space-4); background: var(--surface-0); border: 1px solid var(--line); border-radius: var(--radius-md); }
.bh-offer--off { background: var(--surface-100); }
.bh-offer--off .bh-offer__poster, .bh-offer--off .bh-offer__body > :not(.bh-offer__foot) { opacity: .55; }
.bh-offer__poster { width: 96px; height: 128px; border-radius: var(--radius-sm); background: var(--logo-ground); color: var(--gold); display: grid; place-items: center; overflow: hidden; }
.bh-offer__poster img { width: 100%; height: 100%; object-fit: cover; }
.bh-offer__body { display: flex; flex-direction: column; min-width: 0; }
.bh-offer__top { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); }
.bh-offer__title { margin: 0; font-size: 17px; line-height: 24px; font-weight: 600; }
.bh-offer__price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bh-offer__desc { margin: var(--space-1) 0 var(--space-2); font-size: 13px; line-height: 18px; color: var(--ink-muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bh-offer__when { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.bh-offer__foot { margin-top: auto; padding-top: var(--space-3); display: flex; align-items: center; justify-content: space-between; }

/* ---------- Locales ---------- */
.bh-locals { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: var(--space-4); }
.bh-local { display: flex; flex-direction: column; background: var(--surface-0); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.bh-local__logo { height: 88px; background: var(--logo-ground); display: grid; place-items: center; color: var(--gold); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.bh-local__logo img { max-height: 56px; max-width: 70%; }
.bh-local__body { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.bh-local__head { display: flex; align-items: center; justify-content: space-between; }
.bh-local__name { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; }
.bh-stats { display: flex; gap: var(--space-5); }
.bh-stat { display: flex; flex-direction: column; }
.bh-stat b { font-size: 20px; line-height: 24px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bh-stat span { font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.bh-code { display: flex; align-items: center; gap: var(--space-2); padding: 4px 4px 4px var(--space-3); border-radius: var(--radius-sm); background: var(--surface-200); }
.bh-code__lbl { flex: none; width: 48px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.bh-code code { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 12px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bh-code .bh-iconbtn { width: 28px; height: 28px; }
.bh-code .is-copied { color: var(--success); }
.bh-local__foot { display: flex; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-top: 1px solid var(--line); }

/* ---------- Formularios ---------- */
.bh-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bh-label { font-size: 13px; line-height: 18px; font-weight: 500; }
.bh-label em { font-style: normal; color: var(--ink-muted); font-weight: 400; }
.bh-input, .bh-select { height: var(--size-control); width: 100%; padding: 0 var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-0); color: var(--ink); font-size: 15px; }
.bh-input::placeholder { color: var(--ink-muted); }
.bh-textarea { height: auto; min-height: 88px; padding: var(--space-2) var(--space-3); resize: vertical; line-height: 22px; }
.bh-affix { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-0); }
.bh-affix .bh-input { border: 0; background: transparent; text-align: right; font-variant-numeric: tabular-nums; }
.bh-affix .bh-input:focus-visible { outline: none; }
.bh-affix:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.bh-affix__unit { white-space: nowrap; display: grid; place-items: center; padding: 0 var(--space-3); font-size: 13px; color: var(--ink-muted); border-left: 1px solid var(--line); }
.bh-help { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.bh-field--error .bh-input, .bh-field--error .bh-affix { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.bh-error { display: flex; gap: 4px; align-items: center; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--danger); }
.bh-grid { display: grid; gap: var(--space-4); }
.bh-grid--2 { grid-template-columns: 1fr 1fr; }
.bh-grid--3 { grid-template-columns: 1fr 1fr 1fr; }
.bh-fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-4); }
.bh-fieldset legend { padding: 0; margin-bottom: var(--space-3); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.bh-srmpick { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.bh-srmpick label { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-full); font-size: 13px; cursor: pointer; }
.bh-srmpick input { position: absolute; opacity: 0; }
.bh-srmpick input:checked + label { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-soft); font-weight: 600; }
.bh-srmpick input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.bh-upload { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); border: 1px dashed var(--line-strong); border-radius: var(--radius-md); }
.bh-upload__txt { flex: 1; min-width: 0; font-size: 13px; line-height: 18px; }
.bh-upload__txt b { display: block; font-weight: 600; }

/* ---------- Capas: drawer, diálogo, toast ---------- */
.bh-scrim { position: absolute; inset: 0; background: var(--scrim); }
.bh-drawer { position: relative; display: flex; flex-direction: column; width: var(--size-drawer); max-width: 100%; height: 100%; background: var(--surface-0); border-left: 1px solid var(--line); box-shadow: var(--shadow-overlay); }
.bh-drawer__head { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--line); }
.bh-drawer__head h2 { margin: 0; flex: 1; font-size: 20px; line-height: 28px; font-weight: 600; }
.bh-drawer__body { flex: 1; overflow: auto; padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-5); }
.bh-drawer__foot { display: flex; justify-content: flex-end; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-top: 1px solid var(--line); }
.bh-dialog { width: 420px; max-width: 100%; padding: var(--space-5); background: var(--surface-0); border-radius: var(--radius-md); box-shadow: var(--shadow-overlay); }
.bh-dialog h2 { margin: 0 0 var(--space-2); font-size: 20px; line-height: 28px; font-weight: 600; }
.bh-dialog p { margin: 0; color: var(--ink-muted); }
.bh-dialog__foot { display: flex; justify-content: flex-end; gap: var(--space-3); margin-top: var(--space-5); }
.bh-toast { display: inline-flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--ink); color: var(--surface-0); box-shadow: var(--shadow-overlay); font-size: 15px; }
.bh-toast button { border: 0; background: none; color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 0; }
.bh-toast :focus-visible { outline-color: var(--surface-0); }

/* ---------- Estado vacío ---------- */
.bh-emptystate { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--space-7) var(--space-5); gap: var(--space-2); }
.bh-emptystate__ic { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--space-2); border-radius: var(--radius-full); background: var(--brand-soft); color: var(--brand); }
.bh-emptystate h3 { margin: 0; font-size: 17px; line-height: 24px; font-weight: 600; }
.bh-emptystate p { margin: 0 0 var(--space-3); max-width: 360px; color: var(--ink-muted); font-size: 13px; line-height: 18px; }

/* ---------- Logotipo ---------- */
.bh-logo-img { display: block; height: 44px; width: auto; }
[data-theme="dark"] .bh-logo-img { filter: brightness(0) invert(.93); }

/* ---------- Acceso (login) ---------- */
.bh-login { display: grid; grid-template-columns: minmax(0, 1fr) minmax(440px, 560px); min-height: 100vh; background: var(--surface-100); }
.bh-login__brand { position: relative; overflow: hidden; background: var(--logo-ground); color: var(--gold); display: flex; flex-direction: column; justify-content: flex-end; padding: var(--space-7); }
.bh-login__brand svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bh-login__claim { position: relative; margin: 0; max-width: 420px; font-size: 32px; line-height: 40px; font-weight: 600; letter-spacing: -0.01em; color: #F3ECE3; }
.bh-login__sub { position: relative; margin: var(--space-2) 0 0; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.bh-login__side { display: flex; align-items: center; justify-content: center; padding: var(--space-6); }
.bh-auth { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: var(--space-5); }
.bh-auth__logo { height: 64px; width: auto; align-self: flex-start; }
.bh-auth__head h1 { margin: 0; font-size: 28px; line-height: 36px; font-weight: 600; letter-spacing: -0.01em; }
.bh-auth__head p { margin: var(--space-1) 0 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.bh-auth form { display: flex; flex-direction: column; gap: var(--space-4); }
.bh-auth .bh-btn { width: 100%; height: 44px; }
.bh-auth__help { margin: 0; padding-top: var(--space-4); border-top: 1px solid var(--line); font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.bh-pass { display: flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-0); padding-right: 4px; }
.bh-pass .bh-input { border: 0; background: transparent; }
.bh-pass .bh-input:focus-visible { outline: none; }
.bh-pass:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.bh-field--error .bh-pass { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.bh-check { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 13px; line-height: 18px; cursor: pointer; }
.bh-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--brand); }
.bh-alert { display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-3); border-radius: var(--radius-sm); background: var(--danger-soft); color: var(--danger); font-size: 13px; line-height: 18px; font-weight: 500; }
.bh-alert b { display: block; font-weight: 700; }
.bh-hint { display: flex; gap: 4px; align-items: center; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--gold-ink); }
.bh-spinner { width: 16px; height: 16px; border-radius: var(--radius-full); border: 2px solid currentColor; border-right-color: transparent; animation: bh-spin .8s linear infinite; }
@keyframes bh-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bh-spinner { animation-duration: 2.4s; } }

/* ---------- Estadísticas (solo superadmin) ---------- */
.bh-filters { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4) 0; }
.bh-filters .bh-select { width: auto; min-width: 180px; }
.bh-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.bh-kpi { padding: var(--space-4) var(--space-5); background: var(--surface-0); border: 1px solid var(--line); border-radius: var(--radius-md); display: flex; flex-direction: column; gap: 2px; }
.bh-kpi__label { font-size: 13px; line-height: 18px; font-weight: 500; color: var(--ink-muted); }
.bh-kpi__value { font-size: 32px; line-height: 40px; font-weight: 600; letter-spacing: -0.01em; }
.bh-kpi__value small { font-size: 17px; font-weight: 500; color: var(--ink-muted); margin-left: 2px; }
.bh-kpi__sub { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.bh-dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-4); }
.bh-span-4 { grid-column: span 4; } .bh-span-5 { grid-column: span 5; } .bh-span-6 { grid-column: span 6; } .bh-span-7 { grid-column: span 7; } .bh-span-8 { grid-column: span 8; } .bh-span-12 { grid-column: span 12; }
.bh-card { background: var(--surface-0); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5) var(--space-5); min-width: 0; }
.bh-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.bh-card__head h2 { margin: 0; font-size: 17px; line-height: 24px; font-weight: 600; }
.bh-card__head p { margin: 0; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.bh-card__cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.bh-card__sub { margin: 0 0 var(--space-2); font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }

/* Barras horizontales (una serie, un color) */
.bh-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.bh-bar { position: relative; display: grid; grid-template-columns: var(--bh-bar-label, 120px) 1fr 64px; align-items: center; gap: var(--space-3); min-height: 32px; padding: 0 var(--space-2); margin: 0 calc(var(--space-2) * -1); border-radius: var(--radius-sm); outline-offset: 0; }
.bh-bar:hover, .bh-bar:focus-visible { background: var(--surface-200); }
.bh-bar__label { font-size: 13px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bh-bar__track { height: 16px; display: flex; align-items: center; }
.bh-bar__fill { height: 16px; min-width: 2px; background: var(--brand); border-radius: 0 4px 4px 0; }
.bh-bar__value { font-size: 13px; line-height: 18px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.bh-bar[data-tip]:hover::after, .bh-bar[data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; z-index: 2; right: 72px; bottom: calc(100% + 4px); padding: 6px 10px; border-radius: var(--radius-sm); background: var(--ink); color: var(--surface-0); font-size: 12px; line-height: 16px; white-space: nowrap; box-shadow: var(--shadow-overlay); pointer-events: none; }

/* Salud de la carta */
.bh-health { list-style: none; margin: 0; padding: 0; }
.bh-health li { display: grid; grid-template-columns: 24px 1fr auto; gap: var(--space-3); align-items: center; padding: var(--space-3) 0; border-bottom: 1px solid var(--line); }
.bh-health li:last-child { border-bottom: 0; padding-bottom: 0; }
.bh-health__txt { font-size: 15px; line-height: 20px; }
.bh-health__txt span { display: block; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.bh-health__ic { display: grid; place-items: center; }
.bh-health__ic--crit { color: var(--danger); }
.bh-health__ic--warn { color: var(--gold-ink); }
.bh-health__ic--info { color: var(--ink-muted); }
.bh-health__ic--ok { color: var(--success); }

/* Actividad */
.bh-feed { list-style: none; margin: 0; padding: 0; }
.bh-feed li { display: grid; grid-template-columns: 32px 1fr auto; gap: var(--space-3); align-items: center; padding: var(--space-2) 0; }
.bh-feed__txt { font-size: 13px; line-height: 18px; min-width: 0; }
.bh-feed__txt b { font-weight: 600; }
.bh-feed__time { font-size: 12px; line-height: 16px; color: var(--ink-muted); white-space: nowrap; }
.bh-restricted { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: var(--radius-full); background: var(--gold); color: var(--on-gold); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.bh-nav__lock { display: inline-flex; color: var(--gold-ink); }

/* ---------- URLs públicas del local ---------- */
.bh-urls { display: flex; flex-direction: column; gap: var(--space-2); }
.bh-url { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-2) var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: var(--surface-200); }
.bh-url__ic { color: var(--ink-muted); display: grid; place-items: center; }
.bh-url__txt { display: flex; flex-direction: column; min-width: 0; }
.bh-url__lbl { font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.bh-url__link { font-family: var(--font-mono); font-size: 13px; line-height: 20px; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bh-url__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.bh-url__dom { color: var(--ink-muted); }
.bh-url .bh-actions { gap: 0; }
.bh-url .is-copied { color: var(--success); }
.bh-affix--prefix .bh-affix__unit { border-left: 0; border-right: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; background: var(--surface-200); border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.bh-affix--prefix .bh-input { text-align: left; font-family: var(--font-mono); font-size: 14px; }
.bh-alert--warn { background: var(--surface-200); color: var(--ink); }
.bh-alert--warn > [data-icon] { color: var(--gold-ink); }

/* ---------- Configuración general ---------- */
.bh-settings { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-6); align-items: start; padding-top: var(--space-2); }
.bh-subnav { position: sticky; top: var(--space-4); }
.bh-subnav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.bh-subnav a { display: block; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); color: var(--ink-muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.bh-subnav a:hover { background: var(--surface-200); color: var(--ink); }
.bh-subnav a[aria-current] { background: var(--brand-soft); color: var(--ink); font-weight: 600; }
.bh-settings__main { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; padding-bottom: 96px; }
.bh-setcard { padding: var(--space-5); scroll-margin-top: var(--space-4); }
.bh-setcard__head { margin-bottom: var(--space-2); }
.bh-setcard__head h2 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; }
.bh-setcard__head p { margin: 2px 0 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.bh-setrow { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-6); padding: var(--space-4) 0; border-top: 1px solid var(--line); }
.bh-setrow:first-of-type { border-top: 0; }
.bh-setrow__txt { display: flex; flex-direction: column; gap: 2px; }
.bh-setrow__title { font-size: 15px; line-height: 22px; font-weight: 600; }
.bh-setrow__desc { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.bh-setrow__ctl { display: flex; flex-direction: column; gap: 6px; min-width: 0; align-items: flex-start; }
.bh-setrow__ctl > .bh-input, .bh-setrow__ctl > .bh-select, .bh-setrow__ctl > .bh-affix--prefix, .bh-setrow__ctl > .bh-grid { width: 100%; }
.bh-seg { display: inline-flex; padding: 2px; gap: 2px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-0); }
.bh-seg button { height: 34px; padding: 0 var(--space-4); border: 0; border-radius: 2px; background: transparent; color: var(--ink-muted); font-weight: 500; cursor: pointer; }
.bh-seg button:hover { color: var(--ink); background: var(--surface-200); }
.bh-seg button[aria-checked="true"] { background: var(--brand); color: var(--on-brand); font-weight: 600; }
.bh-colorpick { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.bh-colorpick input { position: absolute; opacity: 0; }
.bh-colorpick label { display: inline-flex; align-items: center; gap: var(--space-2); height: 36px; padding: 0 12px 0 6px; border: 1px solid var(--line); border-radius: var(--radius-full); font-size: 13px; cursor: pointer; }
.bh-colorpick__sw { width: 24px; height: 24px; border-radius: var(--radius-full); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2); }
.bh-colorpick input:checked + label { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-soft); font-weight: 600; }
.bh-colorpick input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.bh-imgpick { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: var(--space-4); align-items: center; width: 100%; }
.bh-imgpick__prev { width: 160px; display: grid; place-items: center; overflow: hidden; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-100); color: var(--ink-muted); }
.bh-imgpick__prev--dark { background: var(--logo-ground); border-color: var(--logo-ground); }
.bh-imgpick__prev img, .bh-imgpick__prev svg { display: block; }
.bh-imgpick__meta { display: flex; flex-direction: column; gap: 2px; font-size: 13px; line-height: 18px; min-width: 0; }
.bh-imgpick__meta b { font-weight: 600; }
.bh-imgpick__meta span { color: var(--ink-muted); }
.bh-imgpick__act { display: flex; gap: var(--space-2); margin-top: var(--space-2); }
.bh-checks { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2) var(--space-5); }
.bh-savebar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-3) var(--space-6); background: var(--surface-0); border-top: 1px solid var(--line-strong); box-shadow: var(--shadow-overlay); font-size: 15px; }
.bh-savebar > span:first-child { display: flex; align-items: center; gap: var(--space-2); }
.bh-savebar > span:first-child [data-icon] { color: var(--gold-ink); }
.bh-savebar b { font-weight: 600; }

/* Configuración como centro: índice agrupado + subpáginas */
.bh-subnav__group { margin: var(--space-5) 0 var(--space-2) var(--space-3); font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.bh-subnav__group:first-child { margin-top: 0; }
.bh-subnav a { display: flex; align-items: center; gap: var(--space-2); }
.bh-subnav a .bh-tab__count { margin-left: auto; }
.bh-subnav a[aria-current] .bh-tab__count { background: var(--surface-0); color: var(--brand); }
.bh-cfghead { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); }
.bh-cfghead h2 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; }
.bh-cfghead p { margin: 2px 0 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }

.bh-setcard > .bh-setrow:first-child { padding-top: 0; }

/* =========================================================
   PÚBLICO — carta web (móvil / escritorio) y TV. Siempre oscuro:
   el contenedor lleva data-theme="dark".
   ========================================================= */
.bh-on-srm--amarillo, .bh-on-srm--dorado, .bh-on-srm--naranja { color: #1A120C; }
.bh-on-srm--rojo, .bh-on-srm--marron, .bh-on-srm--negro { color: #F3ECE3; }

.bh-pub { min-height: 100%; background: var(--surface-100); color: var(--ink); font-family: var(--font-slab); }
.bh-pub__wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--space-4) var(--space-7); }
.bh-pub__head { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--space-6) 0 var(--space-4); gap: var(--space-2); }
.bh-pub__logo { height: 72px; width: auto; }
.bh-pub__head h1 { margin: var(--space-2) 0 0; font-size: 28px; line-height: 34px; font-weight: 700; color: var(--gold); letter-spacing: -0.01em; }
.bh-live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.bh-live::before { content: ""; width: 8px; height: 8px; border-radius: var(--radius-full); background: var(--success); box-shadow: 0 0 0 3px var(--success-soft); }
.bh-pub__nav { position: sticky; top: 0; z-index: 3; background: var(--surface-100); padding: var(--space-3) 0; display: flex; flex-direction: column; gap: var(--space-3); border-bottom: 1px solid var(--line); }
.bh-pill-tabs { display: flex; gap: 4px; padding: 4px; margin: 0 auto; border-radius: var(--radius-full); background: var(--surface-0); border: 1px solid var(--line); }
.bh-pill-tabs button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 var(--space-4); border: 0; border-radius: var(--radius-full); background: transparent; color: var(--ink-muted); font: 500 15px/1 var(--font-slab); cursor: pointer; }
.bh-pill-tabs button[aria-selected="true"] { background: var(--gold); color: var(--on-gold); font-weight: 700; }
.bh-chips { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; padding: 0 2px; }
.bh-chips button { flex: none; height: 32px; padding: 0 var(--space-3); border-radius: var(--radius-full); border: 1px solid var(--line); background: transparent; color: var(--ink); font: 500 13px/1 var(--font-slab); cursor: pointer; }
.bh-chips button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--surface-100); }
.bh-pub__legend { font-size: 12px; line-height: 16px; color: var(--ink-muted); text-align: center; }
.bh-taps { display: grid; grid-template-columns: 1fr; gap: var(--space-3); margin-top: var(--space-4); }
.bh-pub--wide .bh-taps { grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.bh-tapcard { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--space-3) var(--space-4); padding: var(--space-4); background: var(--surface-0); border: 1px solid var(--line); border-radius: var(--radius-md); }
.bh-tapcard__img { position: relative; width: 64px; height: 64px; border-radius: var(--radius-sm); background: var(--surface-200); display: grid; place-items: center; overflow: hidden; }
.bh-tapcard__img img { width: 100%; height: 100%; object-fit: contain; }
.bh-tapcard__img svg { width: 30px; height: 38px; }
.bh-tapcard__no { font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.bh-tapcard__name { margin: 2px 0 0; font-size: 20px; line-height: 26px; font-weight: 700; }
.bh-tapcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 4px; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.bh-tapcard__meta .bh-swatch { box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.bh-tapcard__style { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 500; }
.bh-prices { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); padding-top: var(--space-3); }
.bh-price { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); padding: 0 var(--space-3); }
.bh-price:first-child { padding-left: 0; border-right: 1px solid var(--line); }
.bh-price:last-child { padding-right: 0; }
.bh-price span { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.bh-price b { font-size: 22px; line-height: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bh-pub__foot { margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--line); text-align: center; font-size: 12px; line-height: 18px; color: var(--ink-muted); }

/* ---------- TV 1920 × 1080 ---------- */
.bh-tv { position: relative; width: 1920px; height: 1080px; overflow: hidden; background: var(--surface-100); color: var(--ink); font-family: var(--font-slab); display: flex; flex-direction: column; }
.bh-tv__top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 150px; padding: 0 56px; border-bottom: 2px solid var(--line); }
.bh-tv__logo { height: 96px; width: auto; }
.bh-tv__title { font-size: 56px; line-height: 64px; font-weight: 700; color: var(--gold); letter-spacing: -0.01em; text-align: center; }
.bh-tv__meta { justify-self: end; text-align: right; }
.bh-tv__clock { font-size: 48px; line-height: 56px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bh-tv__legend { font-size: 22px; line-height: 30px; color: var(--ink-muted); }
.bh-tv__grid { flex: 1; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(5, 1fr); gap: 16px 24px; padding: 28px 56px 56px; }
.bh-tvcard { display: grid; grid-template-columns: 124px 124px minmax(0, 1fr) auto; align-items: center; gap: 24px; padding-right: 32px; background: var(--surface-0); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.bh-tvcard__no { align-self: stretch; display: grid; place-items: center; font-size: 56px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bh-tvcard__img { width: 124px; height: 124px; border-radius: var(--radius-sm); background: var(--surface-200); display: grid; place-items: center; overflow: hidden; }
.bh-tvcard__img svg { width: 56px; height: 72px; }
.bh-tvcard__name { font-size: 40px; line-height: 48px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bh-tvcard__meta { font-size: 24px; line-height: 32px; color: var(--ink-muted); white-space: nowrap; }
.bh-tvcard__prices { display: grid; grid-template-columns: auto auto; gap: 0 16px; align-items: baseline; text-align: right; }
.bh-tvcard__prices span { font-size: 22px; color: var(--ink-muted); }
.bh-tvcard__prices b { font-size: 42px; line-height: 52px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bh-tv__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--surface-200); }
.bh-tv__progress i { display: block; height: 100%; background: var(--gold); }
.bh-tv__dots { position: absolute; right: 56px; bottom: 20px; display: flex; gap: 10px; }
.bh-tv__dots i { width: 12px; height: 12px; border-radius: var(--radius-full); background: var(--line-strong); }
.bh-tv__dots i.on { background: var(--gold); width: 36px; }
.bh-tv__page { position: absolute; left: 56px; bottom: 16px; font-size: 20px; color: var(--ink-muted); }
.bh-tv--media { align-items: center; justify-content: center; background: #000; }

/* ---------- Editor de diapositivas (panel) ---------- */
.bh-pl { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-5); align-items: start; }
.bh-pl__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.bh-slide { display: grid; grid-template-columns: 20px 20px 112px minmax(0, 1fr) auto; align-items: center; gap: var(--space-3); padding: var(--space-2) var(--space-3) var(--space-2) var(--space-2); background: var(--surface-0); border: 1px solid var(--line); border-radius: var(--radius-md); cursor: pointer; }
.bh-slide:hover { border-color: var(--line-strong); }
.bh-slide[aria-selected="true"] { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-soft); }
.bh-slide--off { opacity: .6; }
.bh-slide__grip { color: var(--ink-muted); cursor: grab; display: grid; place-items: center; }
.bh-slide__idx { font-size: 13px; font-weight: 700; color: var(--ink-muted); text-align: center; font-variant-numeric: tabular-nums; }
.bh-slide__thumb { width: 112px; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: var(--logo-ground); display: grid; place-items: center; color: var(--gold); }
.bh-slide__txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bh-slide__title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bh-slide__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.bh-slide__meta .bh-badge { height: 20px; }
.bh-pl__total { display: flex; justify-content: space-between; align-items: center; margin-top: var(--space-3); font-size: 13px; color: var(--ink-muted); }
.bh-pl__edit { display: flex; flex-direction: column; gap: var(--space-5); padding: var(--space-5); background: var(--surface-0); border: 1px solid var(--line); border-radius: var(--radius-md); }
.bh-pl__edit h2 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; }
.bh-screen { position: relative; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-md); overflow: hidden; background: #000; border: 6px solid #0E0B08; }
.bh-screen__scale { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.bh-screen__tag { position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: var(--radius-full); background: rgba(0,0,0,.6); color: #F3ECE3; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.bh-effects { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-2); }
.bh-effects input { position: absolute; opacity: 0; }
.bh-effects label { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: var(--space-2) 4px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 12px; line-height: 16px; text-align: center; cursor: pointer; }
.bh-effects label svg { width: 64px; height: 36px; }
.bh-effects input:checked + label { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-soft); font-weight: 600; }
.bh-effects input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 2px; }
.bh-fx-frame { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.bh-fx-new { fill: var(--gold); }
.bh-fx-old { fill: var(--surface-200); }
.bh-fx-arrow { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.bh-days { display: flex; gap: 4px; }
.bh-days input { position: absolute; opacity: 0; }
.bh-days label { display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-full); border: 1px solid var(--line); font-size: 13px; font-weight: 600; cursor: pointer; }
.bh-days input:checked + label { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.bh-types { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.bh-type { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-0); text-align: left; cursor: pointer; }
.bh-type:hover { border-color: var(--brand); background: var(--brand-soft); }
.bh-type__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-full); background: var(--brand-soft); color: var(--brand); }
.bh-type b { font-size: 17px; line-height: 24px; }
.bh-type span { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.bh-field > .bh-seg, .bh-field > .bh-effects + .bh-seg { align-self: flex-start; }
.bh-tapcard__brew { margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--ink-muted); }

/* Iconos de caña y pinta, rellenos del color de la cerveza */
.bh-glass { flex: none; display: block; overflow: visible; }
.bh-glass--cana { width: 18px; height: 22px; }
.bh-glass--pinta { width: 18px; height: 29px; }
.bh-glass__foam { fill: #F3ECE3; }
.bh-glass__rim { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-linejoin: round; }
.bh-price { align-items: flex-end; justify-content: flex-start; }
.bh-price > span { display: flex; flex-direction: column; margin-right: auto; font-size: 13px; line-height: 16px; color: var(--ink); font-weight: 600; }
.bh-price > span small { font-size: 12px; font-weight: 400; color: var(--ink-muted); }
.bh-price .bh-glass { margin-right: var(--space-2); }
.bh-tapcard__img img { object-fit: cover; }
.bh-tvcard__img img { width: 100%; height: 100%; object-fit: cover; }
.bh-tvcard__prices span { display: inline-flex; align-items: flex-end; gap: 10px; justify-content: flex-end; }
.bh-tvcard__prices .bh-glass--cana { width: 26px; height: 32px; }
.bh-tvcard__prices .bh-glass--pinta { width: 26px; height: 42px; }

/* =========================================================
   RESPONSIVE DEL PANEL
   Escritorio > 1024 · Tablet 641–1024 · Móvil ≤ 640
   ========================================================= */
.bh-pagehead__actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.bh-bottomnav { display: none; }
.bh-tabs { overflow-x: auto; scrollbar-width: none; }
.bh-tabs::-webkit-scrollbar { display: none; }
.bh-tab { flex: none; white-space: nowrap; }

/* Pantallas táctiles: objetivos de 44 px y acciones siempre visibles */
@media (pointer: coarse) {
  .bh-iconbtn { width: 44px; height: 44px; }
  .bh-table .bh-actions { opacity: 1; }
  .bh-btn { min-height: 44px; }
  .bh-input, .bh-select { font-size: 16px; } /* evita el zoom automático de iOS */
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .bh-header { gap: var(--space-3); padding: 0 var(--space-5); }
  .bh-nav a { padding: 0 var(--space-2); }
  .bh-nav a [data-icon] { display: none; }
  .bh-localpicker__txt { min-width: 96px; }
  .bh-page { padding: 0 var(--space-5) var(--space-7); }
  .bh-col-opt { display: none; }
  .bh-panel:has(> .bh-table) { overflow-x: auto; }
  .bh-flag { display: flex; margin: 2px 0 0; }
  .bh-me span:not(.bh-avatar) { display: none; }
  .bh-table th, .bh-table td { padding-left: var(--space-3); padding-right: var(--space-3); }
  .bh-table .bh-actions { opacity: 1; }
  .bh-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bh-dash > .bh-card { grid-column: span 12; }
  .bh-offers { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
  .bh-locals, .bh-settings__main .bh-locals { grid-template-columns: 1fr !important; }
  .bh-settings { grid-template-columns: 1fr; gap: var(--space-4); }
  .bh-subnav { position: static; display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--space-5) * -1); padding: 0 var(--space-5) var(--space-1); }
  .bh-subnav::-webkit-scrollbar { display: none; }
  .bh-subnav__group { display: none; }
  .bh-subnav ul { flex-direction: row; gap: var(--space-2); }
  .bh-subnav a { white-space: nowrap; border: 1px solid var(--line); background: var(--surface-0); }
  .bh-pl { grid-template-columns: 1fr; }
  .bh-drawer { width: min(var(--size-drawer), 100%); }
  .bh-setrow { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: var(--space-4); }
  .bh-savebar { padding: var(--space-3) var(--space-5); }
  .bh-savebar > span:first-child .bh-muted { display: none; }
  .bh-login { grid-template-columns: 1fr; }
  .bh-login__brand { display: none; }
}

/* ---------- Móvil ---------- */
@media (max-width: 640px) {
  .bh-hide-sm { display: none; }
  .bh-app { padding-bottom: 72px; }
  /* Cabecera compacta; la navegación baja a una barra inferior */
  .bh-header { height: 60px; padding: 0 var(--space-4); gap: var(--space-2); position: sticky; top: 0; z-index: 6; }
  .bh-logo-img { height: 32px; }
  .bh-nav, .bh-me span:not(.bh-avatar) { display: none; }
  .bh-me { display: none; }
  .bh-localpicker { flex: 1; min-width: 0; height: 40px; padding: 0 var(--space-2); }
  .bh-localpicker__lbl { display: none; }
  .bh-localpicker__txt { min-width: 0; }
  .bh-localpicker__val { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .bh-bottomnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; height: 64px; padding-bottom: env(safe-area-inset-bottom); background: var(--surface-0); border-top: 1px solid var(--line-strong); }
  .bh-bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; line-height: 14px; font-weight: 600; color: var(--ink-muted); text-decoration: none; }
  .bh-bottomnav a[aria-current] { color: var(--brand); }
  .bh-bottomnav a[aria-current]::before { content: ""; position: absolute; top: 0; width: 32px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
  .bh-bottomnav a { position: relative; }

  .bh-page { padding: 0 var(--space-4) var(--space-6); }
  .bh-pagehead { flex-direction: column; align-items: stretch; gap: var(--space-3); padding: var(--space-4) 0 var(--space-3); }
  .bh-pagehead h1 { font-size: 22px; line-height: 28px; flex-wrap: wrap; }
  .bh-pagehead__actions, .bh-pagehead > div:not(:first-child) { display: flex; gap: var(--space-2); }
  .bh-pagehead__actions .bh-btn--primary { flex: 1; }
  .bh-tabs { margin: 0 calc(var(--space-4) * -1); padding: 0 var(--space-4); }
  .bh-tab { padding: var(--space-3); }
  .bh-toolbar, .bh-filters { flex-wrap: wrap; }
  .bh-search { width: 100%; }
  .bh-toolbar .bh-select, .bh-filters .bh-select { flex: 1; width: auto; min-width: 0; }
  .bh-toolbar__end { display: none; }

  /* Tablas → tarjetas */
  .bh-table thead { display: none; }
  .bh-table, .bh-table tbody { display: block; }
  .bh-table tbody tr { display: grid; gap: var(--space-1) var(--space-3); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); }
  .bh-table tbody tr:last-child { border-bottom: 0; }
  .bh-table td { display: block; height: auto; padding: 0; border: 0; background: none !important; }
  .bh-table tbody tr:hover { background: var(--surface-200); }
  .bh-table td[data-label]::before { content: attr(data-label); display: block; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
  .bh-table td.bh-num { text-align: left; }
  .bh-table td.bh-col-opt { display: none; }
  .bh-table .c-act { align-self: start; }
  .bh-table .bh-actions { gap: 0; }
  .bh-table .c-no, .bh-table .c-beer, .bh-table .c-style, .bh-table .c-abv, .bh-table .c-cana, .bh-table .c-pinta, .bh-table .c-act { grid-row: auto; }
  .bh-table--taps tbody tr { grid-template-columns: 44px 1fr 1fr 1fr auto; grid-template-areas: "no beer beer beer act" "no style style style style" "no abv cana pinta pinta"; }
  .bh-table--taps .c-no { grid-area: no; } .bh-table--taps .c-no .bh-tapno { width: 36px; height: 36px; font-size: 15px; }
  .bh-table--taps .c-beer { grid-area: beer; } .bh-table--taps .c-act { grid-area: act; }
  .bh-table--taps .c-style { grid-area: style; } .bh-table--taps .c-abv { grid-area: abv; }
  .bh-table--taps .c-cana { grid-area: cana; } .bh-table--taps .c-pinta { grid-area: pinta; }
  .bh-table--taps .bh-thumb { display: none; }
  .bh-table--beers tbody tr { grid-template-columns: 1fr 1fr auto; grid-template-areas: "beer beer act" "style style style" "abv cana cana"; }
  .bh-table--beers .c-beer { grid-area: beer; } .bh-table--beers .c-act { grid-area: act; } .bh-table--beers .c-style { grid-area: style; } .bh-table--beers .c-abv { grid-area: abv; } .bh-table--beers .c-cana { grid-area: cana; }
  .bh-table--people tbody tr { grid-template-columns: auto 1fr auto; grid-template-areas: "beer beer act" "style abv abv"; align-items: center; }
  .bh-table--people .c-beer { grid-area: beer; } .bh-table--people .c-act { grid-area: act; } .bh-table--people .c-style { grid-area: style; } .bh-table--people .c-abv { grid-area: abv; }
  .bh-beer__name { white-space: normal; }
  .bh-flag { display: flex; margin: 2px 0 0; }

  /* Formularios y capas */
  .bh-grid--2, .bh-grid--3 { grid-template-columns: 1fr; }
  .bh-drawer { width: 100%; border-left: 0; }
  .bh-drawer__body { padding: var(--space-4); }
  .bh-drawer__foot { padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom)); }
  .bh-drawer__foot .bh-btn { flex: 1; }
  .bh-dialog { width: calc(100% - var(--space-6)); }
  .bh-dialog__foot { flex-direction: column-reverse; }
  .bh-dialog__foot .bh-btn { width: 100%; }
  .bh-srmpick label { height: 40px; }

  /* Tarjetas y ajustes */
  .bh-offers { grid-template-columns: 1fr; }
  .bh-offer { grid-template-columns: 72px 1fr; gap: var(--space-3); padding: var(--space-3); }
  .bh-offer__poster { width: 72px; height: 96px; }
  .bh-kpis { gap: var(--space-2); }
  .bh-kpi { padding: var(--space-3); }
  .bh-kpi__value { font-size: 26px; line-height: 32px; }
  .bh-card { padding: var(--space-4); }
  .bh-card__head { flex-direction: column; gap: 2px; }
  .bh-card__cols { grid-template-columns: 1fr; }
  .bh-bar { --bh-bar-label: 110px !important; grid-template-columns: var(--bh-bar-label) 1fr 52px; }
  .bh-health li { grid-template-columns: 24px 1fr; }
  .bh-health li > .bh-btn { grid-column: 2; justify-self: start; padding-left: 0; }
  .bh-subnav { margin: 0 calc(var(--space-4) * -1); padding: 0 var(--space-4) var(--space-1); }
  .bh-cfghead { flex-direction: column; align-items: stretch; gap: var(--space-3); }
  .bh-setcard { padding: var(--space-4); }
  .bh-setrow { grid-template-columns: 1fr; gap: var(--space-3); }
  .bh-imgpick { grid-template-columns: 112px 1fr; }
  .bh-imgpick__prev { width: 112px; }
  .bh-checks { grid-template-columns: 1fr; }
  .bh-seg { flex-wrap: wrap; }
  .bh-effects { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bh-slide { grid-template-columns: 20px 72px minmax(0, 1fr); grid-template-areas: "grip thumb txt" "grip act act"; row-gap: var(--space-2); }
  .bh-slide__grip { grid-area: grip; } .bh-slide__idx { display: none; } .bh-slide__thumb { grid-area: thumb; width: 72px; } .bh-slide__txt { grid-area: txt; } .bh-slide > .bh-actions { grid-area: act; justify-content: flex-start; }
  .bh-pl__edit { padding: var(--space-4); }
  .bh-pl__total { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .bh-savebar { position: fixed; left: 0; right: 0; bottom: 64px; flex-direction: column; align-items: stretch; gap: var(--space-2); padding: var(--space-3) var(--space-4); }
  .bh-savebar > span:last-child { display: flex; }
  .bh-savebar > span:last-child .bh-btn { flex: 1; }
  .bh-login__side { padding: var(--space-5) var(--space-4); align-items: flex-start; }
  .bh-types { grid-template-columns: 1fr; }
}

/* ---------- TV: botellas ---------- */
.bh-tv__grid--bottles { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(4, 1fr); gap: 16px 24px; }
.bh-tvbottle { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 0 32px 0 24px; background: var(--surface-0); border: 1px solid var(--line); border-radius: var(--radius-md); }
.bh-tvbottle__img { display: grid; place-items: center; height: 100%; }
.bh-bottle { width: 40px; height: 108px; display: block; overflow: visible; }
.bh-bottle__label { fill: #F3ECE3; opacity: .9; }
.bh-bottle__cap { fill: var(--gold); }
.bh-tvbottle__name { font-size: 36px; line-height: 44px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bh-tvbottle__meta { font-size: 22px; line-height: 30px; color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bh-tvbottle__price { font-size: 42px; line-height: 52px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- TV: ofertas ---------- */
.bh-tv__offers { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding: 36px 56px 64px; }
.bh-tvoffer { display: flex; flex-direction: column; background: var(--surface-0); border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; }
.bh-tvoffer__poster, .bh-tvfeature__poster { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: var(--logo-ground); color: var(--gold); font-size: 20px; }
.bh-tvoffer__poster { height: 420px; border-bottom: 1px solid var(--line); }
.bh-tvoffer__poster .bh-ic, .bh-tvfeature__poster .bh-ic { width: 64px; height: 64px; stroke-width: 1.2; }
.bh-tvoffer__poster span, .bh-tvfeature__poster span { color: var(--ink-muted); }
.bh-tvoffer__body { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 28px 32px 32px; }
.bh-tvoffer__when { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 6px 16px 6px 12px; border-radius: var(--radius-full); background: var(--surface-200); font-size: 22px; line-height: 30px; font-weight: 600; color: var(--ink); }
.bh-tvoffer__when .bh-ic { width: 24px; height: 24px; color: var(--gold); }
.bh-tvoffer__title { margin: 4px 0 0; font-size: 44px; line-height: 52px; font-weight: 700; }
.bh-tvoffer__desc { margin: 0; font-size: 24px; line-height: 34px; color: var(--ink-muted); }
.bh-tvoffer__price { margin-top: auto; font-size: 52px; line-height: 60px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.bh-tv__feature { flex: 1; display: grid; grid-template-columns: 640px 1fr; gap: 72px; align-items: center; padding: 40px 120px 72px 56px; }
.bh-tvfeature__poster { height: 800px; border-radius: var(--radius-md); border: 1px solid var(--line); }
.bh-tvfeature__body { display: flex; flex-direction: column; gap: 24px; }
.bh-tvfeature__body .bh-tvoffer__when { font-size: 28px; line-height: 38px; }
.bh-tvfeature__title { margin: 0; font-size: 104px; line-height: 108px; font-weight: 700; letter-spacing: -0.01em; }
.bh-tvfeature__desc { margin: 0; font-size: 36px; line-height: 50px; color: var(--ink-muted); max-width: 900px; }
.bh-tvfeature__price { display: flex; align-items: baseline; gap: 16px; margin-top: 16px; font-size: 120px; line-height: 120px; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.bh-tvfeature__price span { font-size: 32px; line-height: 40px; font-weight: 500; color: var(--ink-muted); }

/* ---------- Estadísticas v2 ---------- */
.bh-statsec { margin-top: var(--space-6); }
.bh-statsec__head { display: flex; align-items: flex-start; gap: var(--space-3); margin-bottom: var(--space-4); padding-top: var(--space-5); border-top: 1px solid var(--line); }
.bh-statsec__n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin-top: 1px; border-radius: var(--radius-full); border: 1.5px solid var(--line-strong); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.bh-statsec__head h2 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; }
.bh-statsec__head p { margin: 2px 0 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.bh-statsec .bh-dash { margin-top: 0; }
.bh-kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: var(--space-4); }
.bh-kpi--alert { border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.bh-delta { font-weight: 700; }
.bh-delta--up { color: var(--success); }
.bh-delta--crit { color: var(--danger); }

/* Columnas (una serie; la destacada en brand, el resto atenuado) */
.bh-cols { position: relative; padding-left: 40px; }
.bh-cols__grid { position: absolute; left: 0; right: 0; top: 0; height: var(--bh-cols-h); pointer-events: none; }
.bh-cols__grid span { position: absolute; left: 40px; right: 0; border-top: 1px dashed var(--line); }
.bh-cols__grid span:first-child { border-top: 1px solid var(--line-strong); }
.bh-cols__grid i { position: absolute; right: 100%; top: -8px; margin-right: 8px; font-style: normal; font-size: 11px; line-height: 16px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.bh-cols__plot { display: flex; align-items: stretch; gap: 2px; }
.bh-col { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; outline-offset: 2px; border-radius: 2px; }
.bh-col__bar-wrap { position: relative; height: var(--bh-cols-h); display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bh-col__bar { width: 100%; max-width: 32px; min-height: 2px; background: var(--brand); opacity: .45; border-radius: 3px 3px 0 0; }
.bh-cols:not(:has(.bh-col--peak)) .bh-col__bar { opacity: 1; }
.bh-col--peak .bh-col__bar { opacity: 1; }
.bh-col:hover .bh-col__bar, .bh-col:focus-visible .bh-col__bar { opacity: 1; }
.bh-col:hover, .bh-col:focus-visible { background: var(--surface-200); }
.bh-col__val { font-size: 12px; line-height: 16px; font-weight: 700; margin-bottom: 4px; white-space: nowrap; }
.bh-col__x { height: 20px; padding-top: 4px; font-size: 11px; line-height: 16px; color: var(--ink-muted); text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bh-col--peak .bh-col__x { color: var(--ink); font-weight: 700; }
.bh-col[data-tip]:hover::after, .bh-col[data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; z-index: 3; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%); padding: 6px 10px; border-radius: var(--radius-sm); background: var(--ink); color: var(--surface-0); font-size: 12px; line-height: 16px; white-space: nowrap; box-shadow: var(--shadow-overlay); pointer-events: none; }
@media (max-width: 1024px) { .bh-kpis--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .bh-kpis--3 { grid-template-columns: 1fr 1fr; }
  .bh-kpis--3 .bh-kpi:last-child { grid-column: 1 / -1; }
  .bh-statsec { margin-top: var(--space-5); }
  .bh-cols { padding-left: 32px; }
  .bh-cols__grid span { left: 32px; }
  .bh-cols__plot { gap: 1px; }
  .bh-col__val { font-size: 11px; }
}
.bh-span-12 > .bh-bars { max-width: 760px; }

/* TV en claro y oscuro: los textos dorados usan gold-ink (legible en ambos) */
.bh-tv__title, .bh-tvoffer__price, .bh-tvfeature__price, .bh-tvoffer__when .bh-ic { color: var(--gold-ink); }
.bh-tv[data-theme="light"] .bh-tvoffer__poster, .bh-tv[data-theme="light"] .bh-tvfeature__poster { background: var(--surface-200); color: var(--gold-ink); }
.bh-tv[data-theme="light"] .bh-tvcard, .bh-tv[data-theme="light"] .bh-tvbottle, .bh-tv[data-theme="light"] .bh-tvoffer { border-color: var(--line); box-shadow: 0 1px 0 var(--line); }
.bh-tv[data-theme="light"] .bh-glass__foam, .bh-tv[data-theme="light"] .bh-bottle__label { fill: #FFFFFF; }

/* ---------- Historial de cambios ---------- */
.bh-log__day th { padding: var(--space-4) var(--space-4) var(--space-2); background: var(--surface-100); font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); text-align: left; border-bottom: 1px solid var(--line); }
.bh-table--log tbody tr.bh-log__day:hover th { background: var(--surface-100); }
.bh-log__time { width: 96px; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.bh-log__time small { display: block; font-size: 12px; line-height: 16px; font-weight: 400; color: var(--ink-muted); }
.bh-table--log td b { font-weight: 600; }
.bh-log__det { white-space: nowrap; }
.bh-log__old { color: var(--ink-muted); text-decoration: line-through; }
.bh-log__arrow { margin: 0 var(--space-2); color: var(--ink-muted); }
.bh-log__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding-top: var(--space-4); font-size: 13px; }
@media (max-width: 640px) {
  .bh-table--log tbody tr { grid-template-columns: auto 1fr; grid-template-areas: "beer no" "abv abv" "cana cana" "style style"; }
  .bh-table--log tbody tr.bh-log__day { display: block; padding: 0; }
  .bh-table--log tbody tr.bh-log__day th { display: block; }
  .bh-table--log .c-no { grid-area: no; text-align: right; } .bh-table--log .c-beer { grid-area: beer; } .bh-table--log .c-abv { grid-area: abv; } .bh-table--log .c-cana { grid-area: cana; } .bh-table--log .c-style { grid-area: style; }
  .bh-log__det { white-space: normal; }
  .bh-log__foot { flex-direction: column; align-items: stretch; }
  .bh-filters .bh-select { flex: 1 1 45%; }
}

/* ---------- TV: tipografía sans (Roboto) para leer a distancia ---------- */
.bh-tv { font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
.bh-tv__title { font-weight: 700; letter-spacing: 0; }
.bh-tv__clock { font-weight: 700; }
.bh-tv__legend, .bh-tv__page { font-weight: 500; }
.bh-tvcard__no { font-size: 56px; font-weight: 900; letter-spacing: -0.01em; }
.bh-tvcard__name { font-size: 42px; line-height: 48px; font-weight: 700; letter-spacing: -0.005em; }
.bh-tvcard__meta { font-size: 26px; line-height: 34px; font-weight: 500; }
.bh-tvcard__prices span { font-size: 22px; font-weight: 500; }
.bh-tvcard__prices b { font-size: 44px; line-height: 52px; font-weight: 700; }
.bh-tvbottle__name { font-size: 38px; line-height: 44px; font-weight: 700; }
.bh-tvbottle__meta { font-size: 24px; font-weight: 500; }
.bh-tvbottle__price { font-size: 44px; font-weight: 700; }
.bh-tvoffer__title { font-size: 46px; line-height: 52px; font-weight: 700; }
.bh-tvoffer__desc { font-size: 26px; line-height: 36px; font-weight: 400; }
.bh-tvoffer__when { font-weight: 500; }
.bh-tvoffer__price { font-weight: 900; }
.bh-tvfeature__title { font-weight: 900; letter-spacing: -0.015em; }
.bh-tvfeature__desc { font-weight: 400; }
.bh-tvfeature__price { font-weight: 900; }
.bh-tvcard { grid-template-columns: 112px 112px minmax(0, 1fr) auto; gap: 20px; padding-right: 28px; }
.bh-tvcard__img { width: 112px; height: 112px; }
.bh-tvcard__name { font-size: 40px; line-height: 46px; }
.bh-tvcard__prices { gap: 0 12px; }
.bh-tvcard__prices b { font-size: 42px; }
.bh-tvbottle { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 20px; padding: 0 28px 0 20px; }
.bh-tvbottle__name { font-size: 34px; line-height: 40px; }
.bh-tvbottle__price { font-size: 40px; }
.bh-tvcard__name { font-size: 34px; line-height: 40px; }
.bh-tvcard__name { font-size: 30px; line-height: 36px; }
.bh-tvcard__meta { font-size: 22px; line-height: 30px; }
.bh-tvcard__prices { gap: 2px 12px; }
.bh-tvcard__prices span { font-size: 18px; }
.bh-tvcard__prices b { font-size: 28px; line-height: 36px; }

/* ---------- Etiquetas y grifo destacado ---------- */
.bh-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 8px; margin-left: var(--space-2); border-radius: var(--radius-full); background: var(--gold); color: var(--on-gold); font-family: var(--font-sans, inherit); font-size: 11px; line-height: 20px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; vertical-align: 2px; }
.bh-tapcard__no .bh-tag { vertical-align: 1px; }
.bh-tapcard--feat { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
/* TV */
.bh-tvcard__meta .bh-tag { height: 32px; padding: 0 14px; margin: 0 14px 0 0; font-size: 18px; line-height: 32px; vertical-align: 3px; }
.bh-tvcard--feat { border: 3px solid var(--gold); background: var(--surface-200); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 25%, transparent); }
.bh-tvcard--feat .bh-tvcard__name { color: var(--ink); }
.bh-tv[data-theme="light"] .bh-tvcard--feat { background: #FFF8E8; }

/* =========================================================
   TV v2 — inspirada en la pantalla original de Bierhaus:
   logo centrado, tarjetas con degradado del color de la cerveza,
   chapa dorada con el número y filete dorado.
   ========================================================= */
.bh-beer--amarillo { --beer: var(--srm-amarillo); } .bh-beer--dorado { --beer: var(--srm-dorado); } .bh-beer--naranja { --beer: var(--srm-naranja); }
.bh-beer--rojo { --beer: var(--srm-rojo); } .bh-beer--marron { --beer: var(--srm-marron); } .bh-beer--negro { --beer: var(--srm-negro); }
.bh-tv { background: radial-gradient(120% 60% at 50% 0%, #1E1712 0%, #0B0806 70%); }
.bh-tv[data-theme="light"] { background: var(--surface-100); }
.bh-tv__top { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; height: 176px; padding: 12px 56px 0; border-bottom: 0; }
.bh-tv__logo { height: 104px; }
.bh-tv__title { font-size: 34px; line-height: 40px; font-weight: 700; font-style: italic; color: var(--ink); letter-spacing: .01em; }
.bh-tv__meta { position: absolute; right: 40px; top: 36px; }
.bh-tv__clock { font-size: 36px; line-height: 40px; }
.bh-tv__legend { font-size: 18px; line-height: 26px; }
.bh-tv__grid { gap: 14px 18px; padding: 8px 32px 44px; }
.bh-tvcard { position: relative; grid-template-columns: 96px 108px minmax(0, 1fr) auto; gap: 20px; padding: 0 28px 0 24px; border: 2px solid color-mix(in srgb, var(--gold) 70%, transparent); border-radius: 8px; overflow: hidden;
  background: linear-gradient(90deg, color-mix(in srgb, var(--beer, var(--brand)) 62%, #000) 0%, color-mix(in srgb, var(--beer, var(--brand)) 30%, #0B0806) 45%, #120D09 100%); color: #FFFFFF; }
.bh-tvcard__no { align-self: center; background: none; display: grid; place-items: center; }
.bh-tvcard__no span { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 8px; background: var(--gold); color: var(--on-gold); font-size: 38px; line-height: 1; font-weight: 700; box-shadow: 0 2px 0 rgba(0,0,0,.35); }
.bh-tvcard__img { width: 108px; height: 108px; border-radius: 6px; background: #FFFFFF; }
.bh-tvcard__name { color: #FFFFFF; font-size: 32px; line-height: 38px; }
.bh-tvcard__meta { color: rgba(255,255,255,.88); font-size: 22px; font-weight: 600; }
.bh-tvcard__prices span { color: rgba(255,255,255,.85); font-size: 18px; font-weight: 600; }
.bh-tvcard__prices b { color: #FFFFFF; font-size: 30px; line-height: 38px; }
.bh-tvcard--feat { border: 3px solid var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 30%, transparent), 0 0 28px color-mix(in srgb, var(--gold) 35%, transparent); background: linear-gradient(90deg, color-mix(in srgb, var(--beer, var(--brand)) 62%, #000) 0%, color-mix(in srgb, var(--beer, var(--brand)) 36%, #0B0806) 50%, #1A130D 100%); }
.bh-tvcard--feat .bh-tvcard__name { color: #FFFFFF; }
/* Claro: degradado del color de la cerveza hacia papel, texto oscuro */
.bh-tv[data-theme="light"] .bh-tvcard { color: var(--ink); border-color: color-mix(in srgb, var(--gold) 80%, transparent); background: linear-gradient(90deg, color-mix(in srgb, var(--beer, var(--brand)) 55%, #FFFFFF) 0%, color-mix(in srgb, var(--beer, var(--brand)) 18%, #FFFFFF) 45%, #FFFDFA 100%); box-shadow: none; }
.bh-tv[data-theme="light"] .bh-tvcard__name, .bh-tv[data-theme="light"] .bh-tvcard__prices b { color: var(--ink); }
.bh-tv[data-theme="light"] .bh-tvcard__meta, .bh-tv[data-theme="light"] .bh-tvcard__prices span { color: #3E2E22; }
.bh-tv[data-theme="light"] .bh-tvcard--feat { border: 3px solid var(--gold); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 25%, transparent); }
.bh-tv[data-theme="light"] .bh-tvcard__img { box-shadow: 0 0 0 1px var(--line); }

/* TV: más aire bajo el logo y frase de venta en el pie */
.bh-tv__top { height: 200px; padding-top: 16px; gap: 10px; }
.bh-tv__grid { padding: 28px 32px 8px; }
.bh-tv__foot { display: flex; align-items: center; justify-content: center; height: 64px; padding: 0 160px 12px; }
.bh-tv__phrase { font-size: 28px; line-height: 36px; font-weight: 600; font-style: italic; color: var(--gold-ink); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bh-tv__dots { bottom: 24px; }

/* ---------- Pestaña de etiqueta colgada del filete (TV y carta pública) ---------- */
.bh-tagtab { position: absolute; top: 0; z-index: 2; display: inline-flex; align-items: center; padding: 2px 14px 5px; border-radius: 0 0 8px 8px; background: var(--gold); color: var(--on-gold); font-family: var(--font-sans); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.bh-tvcard .bh-tagtab { left: 268px; font-size: 16px; line-height: 22px; }
.bh-tapcard .bh-tagtab { left: 118px; font-size: 10px; line-height: 14px; padding: 1px 10px 3px; border-radius: 0 0 6px 6px; }
.bh-pub--wide .bh-tapcard .bh-tagtab { left: 146px; font-size: 11px; }

/* =========================================================
   CARTA PÚBLICA v2 — misma identidad que la TV
   ========================================================= */
.bh-pub { font-family: var(--font-sans); background: radial-gradient(140% 40% at 50% 0%, #1E1712 0%, #0B0806 70%); color: #FFFFFF; -webkit-font-smoothing: antialiased; }
.bh-pub__wrap { padding: 0 var(--space-3) var(--space-6); }
.bh-pub__head { padding: var(--space-6) 0 var(--space-4); gap: 6px; }
.bh-pub__logo { height: 76px; }
.bh-pub__head h1 { margin: 6px 0 0; font-size: 22px; line-height: 28px; font-weight: 700; font-style: italic; color: #FFFFFF; letter-spacing: .01em; }
.bh-live { font-size: 12px; color: rgba(255,255,255,.7); }
.bh-pub__nav { background: #0B0806; border-bottom: 1px solid rgba(217,170,69,.25); padding: var(--space-3) 0; }
.bh-pill-tabs { background: #16110C; border-color: rgba(217,170,69,.35); }
.bh-pill-tabs button { font-family: var(--font-sans); color: rgba(255,255,255,.75); font-weight: 600; }
.bh-pill-tabs button[aria-selected="true"] { background: var(--gold); color: var(--on-gold); }
.bh-chips button { font-family: var(--font-sans); border-color: rgba(217,170,69,.35); color: #FFFFFF; font-weight: 500; }
.bh-chips button[aria-pressed="true"] { background: #FFFFFF; color: #0B0806; border-color: #FFFFFF; }
.bh-taps { gap: 10px; margin-top: var(--space-4); }
.bh-pub--wide .bh-taps { gap: 12px 16px; }
.bh-tapcard { position: relative; display: grid; grid-template-columns: 40px 60px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 92px; padding: 14px 14px 14px 12px; border: 1.5px solid color-mix(in srgb, var(--gold) 70%, transparent); border-radius: 8px; overflow: hidden;
  background: linear-gradient(90deg, color-mix(in srgb, var(--beer, var(--brand)) 62%, #000) 0%, color-mix(in srgb, var(--beer, var(--brand)) 30%, #0B0806) 50%, #120D09 100%); color: #FFFFFF; }
.bh-tapcard__no span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 6px; background: var(--gold); color: var(--on-gold); font-size: 18px; font-weight: 700; }
.bh-tapcard__img { width: 60px; height: 60px; border-radius: 6px; background: #FFFFFF; }
.bh-tapcard__img img { object-fit: cover; }
.bh-tapcard__txt { min-width: 0; }
.bh-tapcard__name { margin: 0; font-size: 17px; line-height: 21px; font-weight: 700; color: #FFFFFF; }
.bh-tapcard__meta { margin-top: 3px; font-size: 12px; line-height: 16px; font-weight: 500; color: rgba(255,255,255,.85); }
.bh-tapcard__prices { display: grid; grid-template-columns: auto auto; align-items: center; gap: 2px 8px; text-align: right; }
.bh-tapcard__prices span { display: inline-flex; align-items: center; justify-content: flex-end; gap: 5px; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.85); }
.bh-tapcard__prices b { font-size: 17px; line-height: 22px; font-weight: 700; font-variant-numeric: tabular-nums; color: #FFFFFF; white-space: nowrap; }
.bh-tapcard__prices .bh-glass--cana { width: 11px; height: 14px; }
.bh-tapcard__prices .bh-glass--pinta { width: 11px; height: 18px; }
.bh-tapcard--feat { border: 2.5px solid var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 30%, transparent), 0 0 18px color-mix(in srgb, var(--gold) 30%, transparent); }
.bh-pub--wide .bh-tapcard { grid-template-columns: 56px 80px minmax(0, 1fr) auto; gap: 16px; min-height: 112px; padding: 16px 22px 16px 16px; }
.bh-pub--wide .bh-tapcard__no span { width: 52px; height: 52px; font-size: 24px; }
.bh-pub--wide .bh-tapcard__img { width: 80px; height: 80px; }
.bh-pub--wide .bh-tapcard__name { font-size: 22px; line-height: 28px; }
.bh-pub--wide .bh-tapcard__meta { font-size: 15px; line-height: 20px; }
.bh-pub--wide .bh-tapcard__prices span { font-size: 13px; }
.bh-pub--wide .bh-tapcard__prices b { font-size: 22px; line-height: 28px; }
.bh-pub__phrase { margin: var(--space-5) 0 0; text-align: center; font-size: 16px; line-height: 22px; font-weight: 600; font-style: italic; color: var(--gold-ink); }
.bh-pub--wide .bh-pub__phrase { font-size: 20px; line-height: 28px; }
.bh-pub__foot { border-top-color: rgba(217,170,69,.25); color: rgba(255,255,255,.6); font-family: var(--font-sans); }
.bh-tapcard:has(.bh-tagtab) { padding-top: 24px; }
.bh-pub--wide .bh-tapcard:has(.bh-tagtab) { padding-top: 26px; }
/* TV: más aire entre logo y título */
.bh-tv__top { height: 228px; padding-top: 20px; gap: 26px; }
.bh-tv__grid { padding-top: 24px; }
