/* markmelo-visualizador — visualizador.css v3.7.0 */

.mm-viz {
  --vp: #6401B5;
  --vpl: #f5f3ff;
  --vb: #e5e7eb;
  --vy: #D97706;   /* amarillo quemado corporativo */
  --vr: 12px;
  font-family: inherit;
  container-type: inline-size;
}
.mm-viz * { box-sizing: border-box; }

/* ── HEADER ──────────────────────────────────── */
.mm-viz-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 0 0 16px;
  border-bottom: 2px solid var(--vb);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.mm-viz-heading { font-size: 1.5rem; font-weight: 800; color: #1a0435; margin: 0; }
.mm-viz-count {
  font-size: .8rem;
  color: #999;
  background: #f5f5f5;
  padding: 3px 12px;
  border-radius: 999px;
}

/* ── LAYOUT ──────────────────────────────────── */
.mm-viz-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 860px) {
  .mm-viz-layout { grid-template-columns: 1fr; }
}

/* ── SIDEBAR ─────────────────────────────────── */
.mm-viz-sidebar { position: sticky; top: 20px; }

.mm-viz-sidebar-toggle {
  display: none;
  width: 100%;
  padding: 10px 16px;
  background: #fff;
  border: 1.5px solid var(--vb);
  border-radius: 10px;
  font-size: .85rem;
  font-weight: 700;
  color: #444;
  cursor: pointer;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.mm-viz-sidebar-toggle:hover { border-color: var(--vp); color: var(--vp); }

.mm-filter-badge {
  background: var(--vp);
  color: #fff;
  font-size: .65rem;
  padding: 1px 6px;
  border-radius: 999px;
  font-weight: 800;
}

@media (max-width: 860px) {
  .mm-viz-sidebar-toggle { display: flex; }
  .mm-viz-sidebar-inner { display: none; }
  .mm-viz-sidebar-inner.is-open { display: block; }
}

.mm-viz-sb-section { margin-bottom: 16px; }

.mm-viz-sb-label {
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: #aaa;
  margin-bottom: 8px;
}

/* Search label */
.mm-viz-search-label {
  font-size: .82rem;
  font-weight: 700;
  color: #1a0435;
  margin: 0 0 8px;
  line-height: 1.3;
}

/* Search */
.mm-viz-search-wrap { position: relative; display: flex; align-items: center; }
.mm-viz-search-wrap svg {
  position: absolute;
  left: 10px;
  color: #bbb;
  pointer-events: none;
  flex-shrink: 0;
}
.mm-viz-search {
  width: 100%;
  padding: 9px 12px 9px 32px;
  border: 1.5px solid var(--vb);
  border-radius: 10px;
  font-size: .85rem;
  outline: none;
  background: #fff;
  transition: border .18s;
}
.mm-viz-search:focus { border-color: var(--vp); }

/* ── DUAL PRICE RANGE ──────────────────────── */
.mm-viz-price-vals {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .75rem;
  color: #777;
  margin-bottom: 10px;
}
.mm-viz-price-vals span { font-weight: 700; color: var(--vp); }
.mm-viz-dual-wrap {
  position: relative;
  height: 28px;
  margin-bottom: 10px;
}
.mm-viz-range-track {
  position: absolute;
  width: 100%;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 0;
}
.mm-viz-range-fill {
  position: absolute;
  height: 100%;
  background: var(--vp);
  border-radius: 2px;
  left: 0;
  width: 100%;
}
.mm-viz-rng {
  position: absolute;
  width: 100%;
  height: 4px;
  background: none;
  pointer-events: none;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  margin: 0;
}
.mm-viz-rng::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--vp);
  cursor: pointer;
  pointer-events: auto;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
  position: relative;
  z-index: 2;
}
.mm-viz-rng::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--vp);
  cursor: pointer;
  pointer-events: auto;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.mm-viz-price-reset {
  font-size: .72rem;
  color: #aaa;
  background: none;
  border: 1px dashed #ddd;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all .18s;
  width: 100%;
}
.mm-viz-price-reset:hover { border-color: #c00; color: #c00; border-style: solid; }

/* ── ACCORDION headers — morado por defecto, amarillo en hover ─ */
.mm-viz-acc-head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  border: none;
  border-bottom: 1px solid var(--vb);
  background: none;
  font-size: .82rem;
  font-weight: 700;
  color: var(--vp);
  cursor: pointer;
  transition: color .18s;
  text-align: left;
}
.mm-viz-acc-head:hover { color: var(--vy); }
.mm-viz-acc-head.is-open { color: var(--vp); }
.mm-viz-acc-head svg { transition: transform .25s; flex-shrink: 0; stroke: currentColor; }
.mm-viz-acc-head.is-open svg { transform: rotate(180deg); }
.mm-viz-acc-body { padding: 8px 0 0; }

/* Category list */
.mm-viz-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mm-viz-cat-item { display: flex; align-items: center; gap: 0; }
.mm-viz-cat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 6px 10px;
  border-radius: 8px;
  background: none;
  border: none;
  font-size: .8rem;
  color: #555;
  cursor: pointer;
  text-align: left;
  transition: all .18s;
  gap: 6px;
}
.mm-viz-cat-btn:hover { background: var(--vp) !important; color: #fff !important; }
.mm-viz-cat-btn:hover .mm-viz-cat-name,
.mm-viz-cat-btn:hover .mm-viz-cat-count { color: #fff !important; }
.mm-viz-cat-btn.is-active { background: var(--vp); color: #fff !important; font-weight: 700; }
.mm-viz-cat-btn.is-active .mm-viz-cat-name { color: #fff !important; }
.mm-viz-cat-btn.is-active .mm-viz-cat-count { background: rgba(255,255,255,.25); color: #fff !important; }
.mm-viz-cat-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mm-viz-cat-count {
  font-size: .68rem;
  background: #f0ecff;
  color: #8b5cf6;
  border-radius: 999px;
  padding: 1px 7px;
  font-weight: 700;
  flex-shrink: 0;
}

/* Reset all — morado por defecto, amarillo en hover */
.mm-viz-reset-all {
  width: 100%;
  padding: 10px;
  background: var(--vp);
  border: none;
  border-radius: 9px;
  font-size: .82rem;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  transition: background .18s;
  letter-spacing: .01em;
}
.mm-viz-reset-all:hover { background: var(--vy); }

/* ── MAIN AREA ────────────────────────────────── */
.mm-viz-main { min-width: 0; }
.mm-viz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  padding-bottom: 24px;
}
.mm-viz-grid.few-results {
  grid-template-columns: repeat(auto-fit, minmax(190px, 220px));
  justify-content: center;
}
@container (max-width: 480px) {
  .mm-viz-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .mm-viz-grid.few-results { grid-template-columns: repeat(2, 1fr); justify-content: initial; }
}

/* Spinner */
.mm-viz-spinner {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 16px;
  gap: 12px;
  color: #aaa;
}
.mm-viz-spin {
  width: 36px;
  height: 36px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--vp);
  border-radius: 50%;
  animation: viz-spin .7s linear infinite;
}
@keyframes viz-spin { to { transform: rotate(360deg); } }

/* ── PRODUCT CARD ────────────────────────────── */
.mm-viz-card {
  background: #fff;
  border: 1.5px solid var(--vb);
  border-radius: 0;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, border-color .2s;
  display: flex;
  flex-direction: column;
}
.mm-viz-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(100,1,181,.14);
  border-color: var(--vp);
}
.mm-viz-card-img {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #f7f5ff;
  position: relative;
}
.mm-viz-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.mm-viz-card:hover .mm-viz-card-img img { transform: scale(1.07); }
.mm-viz-card-noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ddd;
  font-size: 2.5rem;
}
.mm-viz-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(100,1,181,.90);
  color: #fff;
  font-size: .58rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
  max-width: calc(100% - 16px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mm-viz-card-body { padding: 10px 12px 6px; flex: 1; }
.mm-viz-card-name {
  font-size: .82rem;
  font-weight: 800;
  color: #1a0435;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mm-viz-card-price { font-size: .75rem; color: #555; margin-bottom: 2px; }
.mm-viz-card-price strong { color: var(--vp); font-weight: 800; }
.mm-viz-card-min { font-size: .65rem; color: #ccc; }

/* 3-button card footer */
.mm-viz-card-foot {
  padding: 8px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mm-viz-card-cta {
  display: block;
  padding: 8px;
  text-align: center;
  background: var(--vp);
  border-radius: 0;
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  transition: background .18s;
  border: none;
  cursor: pointer;
  width: 100%;
}
.mm-viz-card-cta:hover { background: var(--vy); }
.mm-viz-card-foot-row {
  display: flex;
  gap: 6px;
}
.mm-viz-card-btn2 {
  flex: 1;
  padding: 7px 6px;
  background: var(--vpl);
  border: 1.5px solid var(--vp);
  border-radius: 0;
  color: var(--vp);
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all .18s;
  text-align: center;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
}
.mm-viz-card-btn2:hover { background: var(--vp); color: #fff; border-color: var(--vp); }

/* Load more */
.mm-viz-loadmore {
  grid-column: 1 / -1;
  display: block;
  margin: 0 auto;
  padding: 11px 32px;
  background: var(--vpl);
  border: 1.5px solid var(--vp);
  border-radius: 10px;
  color: var(--vp);
  font-weight: 700;
  font-size: .9rem;
  cursor: pointer;
  transition: all .18s;
}
.mm-viz-loadmore:hover { background: var(--vp); color: #fff; }

/* No results */
.mm-viz-nores {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 60px 16px;
  gap: 10px;
  color: #888;
}
.mm-viz-nores strong { color: #333; font-size: 1.1rem; }

/* ── SHARED BUTTON STYLES (usados en el modal) ── */
.mm-viz-btn {
  display: block;
  padding: 12px 18px;
  border-radius: 11px;
  font-size: .86rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: all .2s;
  border: none;
  cursor: pointer;
}
.mm-viz-btn--primary { background: var(--vp); color: #fff; }
.mm-viz-btn--primary:hover { background: #4d0189; color: #fff; }
.mm-viz-btn--wa { background: #25D366; color: #fff; }
.mm-viz-btn--wa:hover { background: #1ebe5d; color: #fff; }
.mm-viz-btn--outline { background: #fff; border: 1.5px solid var(--vb); color: #333; }
.mm-viz-btn--outline:hover { border-color: var(--vp); color: var(--vp); }
.mm-viz-btn--urgent {
  background: linear-gradient(135deg, #F97316, #ea580c);
  color: #fff;
  border: none;
}
.mm-viz-btn--urgent:hover { background: linear-gradient(135deg, #ea580c, #c2410c); color: #fff; }
.mm-viz-nav-btn {
  flex: 1;
  padding: 9px;
  background: #f5f3ff;
  border: none;
  border-radius: 9px;
  font-size: .82rem;
  font-weight: 700;
  color: var(--vp);
  cursor: pointer;
  transition: all .18s;
}
.mm-viz-nav-btn:hover { background: var(--vp); color: #fff; }

/* ── TOAST ────────────────────────────────────── */
.mm-viz-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10002;
  background: #1a0435;
  color: #fff;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: .88rem;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,0,0,.3);
  animation: toast-in .3s ease;
  max-width: 360px;
  line-height: 1.55;
}
.mm-viz-toast a { color: #a78bfa; }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ══════════════════════════════════════════════════════
   MODAL UNIFICADO
══════════════════════════════════════════════════════ */
.mm-uni-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10,0,20,.68);
  z-index: 9998;
  backdrop-filter: blur(3px);
}
.mm-uni-backdrop.open { display: block; }

.mm-uni-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(1200px, 97vw);
  max-height: 96vh;
  background: #fff;
  border-radius: 20px;
  z-index: 9999;
  overflow: hidden;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,.38);
}
.mm-uni-modal.open { display: block; }

.mm-uni-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  min-width: 36px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  background: #1a0435;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  color: #fff;
  transition: background .18s;
  z-index: 2;
}
.mm-uni-close:hover { background: #6401B5; }

/* Grid 2 columnas */
.mm-uni-inner {
  display: grid;
  grid-template-columns: 50% 50%;
  min-height: 600px;
}
@media (max-width: 720px) {
  .mm-uni-inner { grid-template-columns: 1fr; }
}

/* ── Columna izquierda ──────────────────── */
.mm-uni-left {
  background: #f7f5ff;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}

.mm-uni-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(100,1,181,.12);
  perspective: 800px;
}
.mm-uni-prod-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}
.mm-uni-logo-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  max-width: 50%;
  max-height: 50%;
  object-fit: contain;
  transform-origin: center center;
  cursor: grab;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: auto;
}
.mm-uni-logo-overlay:active { cursor: grabbing; }

/* Gallery thumbnails */
.mm-uni-gallery {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.mm-uni-thumb {
  width: 54px;
  height: 54px;
  border: 2px solid var(--vb);
  border-radius: 8px;
  object-fit: cover;
  cursor: pointer;
  transition: border-color .18s;
  flex-shrink: 0;
}
.mm-uni-thumb.is-active,
.mm-uni-thumb:hover { border-color: var(--vp); }

/* Upload row */
.mm-uni-upload-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mm-uni-upload-btn {
  padding: 10px 18px;
  background: var(--vp);
  color: #fff;
  border: none;
  border-radius: 9px;
  font-size: .85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .18s;
  text-align: center;
}
.mm-uni-upload-btn:hover { background: #4d0189; }
.mm-uni-upload-hint { font-size: .7rem; color: #bbb; }

/* Logo controls */
.mm-uni-logo-controls {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1.5px solid #ede9fe;
}
.mm-uni-ctrl-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.mm-uni-ctrl-label {
  font-size: .68rem;
  font-weight: 700;
  color: #777;
  min-width: 88px;
  flex-shrink: 0;
}
.mm-uni-ctrl-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.mm-uni-step {
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1.5px solid var(--vb);
  border-radius: 6px;
  background: #f5f3ff;
  color: var(--vp);
  font-size: .72rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .15s;
  line-height: 1;
}
.mm-uni-step:hover { background: var(--vp); color: #fff; border-color: var(--vp); }
.mm-uni-ctrl-inner input[type=range] {
  flex: 1;
  accent-color: var(--vp);
  cursor: pointer;
  height: 4px;
}
.mm-uni-drag-tip {
  font-size: .7rem;
  color: #bbb;
  margin: 2px 0 0;
  padding-top: 8px;
  border-top: 1px solid #f0ecff;
}

/* ── Columna derecha ────────────────────── */
.mm-uni-right {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
}

.mm-uni-cat {
  display: inline-block;
  font-size: .67rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--vp);
  background: var(--vpl);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  align-self: flex-start;
}
.mm-uni-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1a0435;
  line-height: 1.3;
  margin: 0 0 8px;
}
.mm-uni-price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.mm-uni-price { font-size: 1.05rem; font-weight: 800; color: var(--vp); }
.mm-uni-min {
  font-size: .75rem;
  color: #aaa;
  background: #f8f7ff;
  padding: 3px 10px;
  border-radius: 6px;
}
.mm-uni-desc {
  font-size: .82rem;
  color: #555;
  line-height: 1.65;
  margin-bottom: 12px;
  max-height: 80px;
  overflow-y: auto;
}

/* Técnica selector */
.mm-uni-tecnica-wrap { margin-bottom: 12px; }
.mm-uni-field-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: #1a0435;
  margin-bottom: 5px;
}
.mm-uni-select,
.mm-uni-input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--vb);
  border-radius: 9px;
  font-size: .84rem;
  outline: none;
  transition: border .18s;
  background: #fff;
}
.mm-uni-select:focus,
.mm-uni-input:focus { border-color: var(--vp); }

/* Order fields */
.mm-uni-order-fields {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}
.mm-uni-order-row { display: flex; flex-direction: column; gap: 4px; }

/* Real-time pricing block */
.mm-uni-pricing {
  background: #f8f7ff;
  border: 1.5px solid #e0d9ff;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.mm-uni-pricing-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
  color: #555;
  padding: 4px 0;
  border-bottom: 1px solid #ede9fe;
}
.mm-uni-pricing-row:last-of-type { border-bottom: none; }
.mm-uni-consultar { font-style: italic; color: #999; font-size: .73rem; }
.mm-uni-pricing-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .92rem;
  font-weight: 800;
  color: var(--vp);
  padding-top: 8px;
  margin-top: 4px;
  border-top: 2px solid #c4b5fd;
}
.mm-uni-pricing-note {
  font-size: .68rem;
  color: #aaa;
  margin: 8px 0 0;
  font-style: italic;
}

/* CTAs */
.mm-uni-ctas {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: auto;
}

/* Botón "Subir mi logo" con glow amarillo-quemado */
@keyframes mm-glow {
  0%, 100% { box-shadow: 0 0 6px 2px rgba(217,119,6,.4); }
  50%       { box-shadow: 0 0 22px 8px rgba(217,119,6,.75); }
}
.mm-uni-upload-glow {
  display: block;
  padding: 12px 18px;
  border-radius: 11px;
  font-size: .86rem;
  font-weight: 700;
  text-align: center;
  border: none;
  cursor: pointer;
  background: var(--vy);
  color: #fff;
  animation: mm-glow 2s ease-in-out infinite;
  transition: background .18s;
}
.mm-uni-upload-glow:hover { background: #b45309; animation: none; }

/* Botón "Descargar en JPG" */
.mm-uni-download-jpg {
  display: none;
  width: 100%;
  padding: 9px 14px;
  border-radius: 9px;
  font-size: .82rem;
  font-weight: 700;
  text-align: center;
  border: none;
  cursor: pointer;
  background: var(--vp);
  color: #fff;
  margin-top: 8px;
  transition: background .18s;
}
.mm-uni-download-jpg:hover { background: #4d0189; }

/* Navigation prev/next */
.mm-uni-nav {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

/* Novedades & filter buttons */
.mm-viz-novedades-btn{width:100%;padding:9px 14px;background:linear-gradient(135deg,#6401B5,#9b13d4);color:#fff;border:none;border-radius:8px;font-weight:700;font-size:.82rem;cursor:pointer;transition:opacity .2s,transform .2s;text-align:left;display:flex;align-items:center;gap:6px;}
.mm-viz-novedades-btn:hover{opacity:.88;transform:translateY(-1px);}
.mm-viz-novedades-btn.is-active{outline:2px solid #fbbf24;outline-offset:2px;}

/* Técnica de marcación badges */
.mm-tecnica-head{font-size:.72rem;font-weight:700;color:#6401B5;text-transform:uppercase;letter-spacing:.06em;margin-bottom:7px;}
.mm-tecnica-chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px;}
.mm-tecnica-chip{display:inline-flex;align-items:center;gap:4px;background:linear-gradient(135deg,#f3e8ff,#ede0ff);border:1px solid #d8b4fe;border-radius:20px;padding:4px 10px;font-size:.75rem;color:#4a0189;white-space:nowrap;opacity:0;transform:translateY(8px);animation:mmChipIn .35s ease forwards;}
@keyframes mmChipIn{to{opacity:1;transform:none;}}
.mm-tecnica-area{font-size:.72rem;color:#888;margin-top:4px;}

/* ── Sort select ─────────────────────────── */
.mm-viz-header{flex-wrap:wrap;align-items:center;}
.mm-viz-sort-wrap{display:flex;align-items:center;gap:8px;margin-left:auto;}
.mm-viz-sort-label{font-size:.78rem;color:#888;white-space:nowrap;}
.mm-viz-sort-select{font-size:.82rem;border:1.5px solid #e5e7eb;border-radius:8px;padding:6px 28px 6px 10px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236401B5' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center;-webkit-appearance:none;appearance:none;cursor:pointer;color:#1f2937;transition:border-color .2s;}
.mm-viz-sort-select:focus{outline:none;border-color:#6401B5;box-shadow:0 0 0 3px rgba(100,1,181,.12);}
@container(max-width:600px){.mm-viz-sort-wrap{width:100%;justify-content:flex-end;margin-top:6px;}}
/* ── Bloque A/B overrides ─────────────────── */
/* Add button: solid purple fill, black on active */
.mm-card-add {
  background: var(--vp) !important;
  color: #fff !important;
  border-color: var(--vp) !important;
  width: 100%;
  flex: none;
}
.mm-card-add:hover { background: #4d0189 !important; border-color: #4d0189 !important; }
.mm-card-add:active { background: #000 !important; border-color: #000 !important; color: #fff !important; }

/* Category badge as link */
a.mm-viz-card-badge {
  text-decoration: none;
  display: block;
  pointer-events: auto;
}
a.mm-viz-card-badge:hover { background: rgba(100,1,181,1); }

/* Sidebar: floating panel */
.mm-viz-sidebar-inner {
  background: #fff;
  border: 1.5px solid var(--vb);
  border-radius: var(--vr);
  padding: 16px;
  box-shadow: 0 4px 24px rgba(0,0,0,.09);
}
@media (max-width: 860px) {
  .mm-viz-sidebar-inner { box-shadow: none; border-radius: 8px; }
}
