/* ══ Extraído de app/Views/catalogo/show.php ══ */
@keyframes guiaFade { from { opacity: 0 } to { opacity: 1 } }
        @keyframes guiaPop  { from { opacity: 0; transform: translateY(22px) scale(.9) } to { opacity: 1; transform: none } }
        @keyframes guiaImg  { from { opacity: 0 } to { opacity: 1 } }

/* ── Tabla de precios por cantidad (baremos) ── */
.brm-tabla-wrap { border: 1px solid var(--line); background: #fff; margin-bottom: 16px; overflow-x: auto; }
.brm-tabla { width: 100%; border-collapse: collapse; font-size: 12px; min-width: 560px; }
.brm-tabla th {
  font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--muted); padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: center;
}
.brm-tabla th:first-child { text-align: left; padding-left: 12px; }
.brm-tabla td { padding: 7px 8px; border-bottom: 1px solid #f1ede6; text-align: center; }
.brm-talla { font-weight: 800; text-align: left !important; padding-left: 12px !important; }
.brm-precio { color: var(--muted); font-variant-numeric: tabular-nums; }
.brm-col.brm-activo { background: rgba(239, 184, 20, .16); color: var(--text); font-weight: 700; }
th.brm-col.brm-activo { color: var(--gold-ink, #8a5b00); }
.brm-qty {
  width: 58px; border: 1px solid var(--line); padding: 6px 6px; text-align: center;
  font-family: inherit; font-size: 13px; font-weight: 700; outline: none;
  -moz-appearance: textfield;
}
.brm-qty::-webkit-outer-spin-button, .brm-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.brm-qty:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(239,184,20,.18); }
.brm-pie {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-top: 1px solid var(--line); font-size: 13px; flex-wrap: wrap;
}
.brm-pie #brm-total { color: var(--gold-ink, #8a5b00); font-size: 15px; }
#brm-tramo-txt { font-size: 11px; color: var(--muted); }


/* ── Orden visual v2: precios en una línea, stepper −/+ ── */
.brm-tabla { table-layout: fixed; }
.brm-tabla th:first-child { width: 52px; }
.brm-tabla th:last-child { width: 108px; }
.brm-precio { white-space: nowrap; font-size: 11.5px; padding: 9px 4px; }
.brm-col:not(.brm-activo) .brm-precio, td.brm-precio:not(.brm-activo) { color: #9a9a9a; }
td.brm-precio.brm-activo { color: var(--text); font-size: 12.5px; }
.brm-tabla tbody tr:hover td { background: rgba(0,0,0,.02); }
.brm-tabla tbody tr:hover td.brm-activo { background: rgba(239,184,20,.22); }

.brm-qty-celda { padding: 5px 6px !important; }
.brm-step { display: inline-flex; align-items: stretch; border: 1px solid var(--line); background: #fff; }
.brm-step-btn {
  width: 26px; border: none; background: #faf8f4; cursor: pointer;
  font-size: 15px; font-weight: 700; color: var(--text-2); font-family: inherit;
  display: flex; align-items: center; justify-content: center; user-select: none;
}
.brm-step-btn:hover { background: var(--gold); color: #000; }
.brm-step .brm-qty { width: 40px; border: none; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.brm-step .brm-qty:focus { box-shadow: inset 0 0 0 2px rgba(239,184,20,.5); border-color: var(--line); }

/* ── v3: título compacto con baremos + tabla aireada por columnas ── */
.titulo-compacto {
  font-size: 17px !important;
  line-height: 1.25 !important;
  letter-spacing: .01em !important;
  font-style: normal !important;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 4px !important;
}

/* columnas separadas y con aire: se acabó el apelotonamiento */
.brm-tabla { table-layout: auto; min-width: 0; }
.brm-tabla th, .brm-tabla td { border-left: 1px solid #f1ede6; }
.brm-tabla th:first-child, .brm-tabla td:first-child { border-left: none; }
.brm-precio { padding: 10px 10px; font-size: 12px; letter-spacing: .01em; }
th.brm-col { padding: 10px 10px; }
.brm-talla { padding-right: 6px !important; }
.brm-qty-celda { min-width: 104px; }
td.brm-precio.brm-activo { font-size: 13px; }
.brm-leyenda { font-size: 10.5px; color: var(--muted); letter-spacing: .02em; }
@media (max-width: 480px) {
  .brm-precio, th.brm-col { padding: 8px 6px; }
}
