/* THE MAZON · panel administrativo (escala 4/8/12/16/24/32) */
:root { --hair: rgba(255, 107, 0, .18); --hair-soft: rgba(255, 255, 255, .06); --sp2: 8px; --sp3: 12px; --sp4: 16px; --sp5: 24px; --sp6: 32px; --r-sm: 12px; }
html, body { overflow-x: hidden; }
.skip { position: absolute; left: 16px; top: -48px; background: var(--neon); color: #fff; padding: 8px 16px; border-radius: 8px; z-index: 300; font-weight: 700; text-decoration: none; }
.skip:focus { top: 8px; }
.card { border-color: var(--hair); }

/* ── Topbar ── */
.topbar { border-bottom-color: var(--hair); }
.brand .brand-text strong { font-size: 15px; }
.top-links { display: flex; gap: var(--sp2); align-items: center; }
.btn .ico { width: 18px; height: 18px; }
.btn { min-height: 44px; }
.btn-sm { min-height: 36px; padding: 6px 12px; }
.btn-sm .ico { width: 16px; height: 16px; }
.btn-danger:hover { background: rgba(239, 68, 68, .1); }
.btn-danger.solid { background: var(--err); color: #fff; border-color: transparent; }
@media (max-width: 640px) { .top-links .lbl { display: none; } .top-links .btn { padding: 0; width: 40px; } .brand-text small { display: none; } }

/* ── Shell ── */
.shell { display: grid; grid-template-columns: 1fr; gap: var(--sp4); padding-top: var(--sp4); padding-bottom: 64px; }
#view { min-width: 0; outline: none; }
.nav-label { display: none; }
.tabs { display: flex; gap: var(--sp2); overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; position: sticky; top: 64px; z-index: 40; background: rgba(6, 6, 8, .9); backdrop-filter: blur(10px); margin: 0 -16px; padding: var(--sp2) 16px; border-bottom: 1px solid var(--hair-soft); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { display: inline-flex; align-items: center; gap: var(--sp2); white-space: nowrap; text-decoration: none; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--hair); color: var(--muted); font-weight: 600; font-size: 13.5px; background: var(--surface); min-height: 40px; transition: color .15s, border-color .15s; }
.tabs a .ico { width: 18px; height: 18px; }
.tabs a:hover { color: var(--text); border-color: var(--line-strong); }
.tabs a.on { background: linear-gradient(135deg, rgba(255, 95, 31, .28), rgba(255, 95, 31, .1)); color: #ff9a66; border-color: var(--neon); }
/* Escritorio: contenedor ancho y barra lateral fija. 900-1199px = solo iconos; desde 1200px = iconos + texto */
.shell.container, .topbar .container { max-width: 1560px; }
@media (min-width: 900px) {
  .shell { grid-template-columns: 68px minmax(0, 1fr); gap: var(--sp5); align-items: start; padding-top: var(--sp5); }
  .tabs { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow-y: auto; scrollbar-width: thin; flex-direction: column; gap: 4px; margin: 0; padding: var(--sp2); background: var(--surface); border: 1px solid var(--hair); border-radius: 16px; backdrop-filter: none; }
  .nav-label { display: none; }
  .tabs a { border: 0; background: none; border-radius: 10px; padding: 0; justify-content: center; font-size: 14px; min-height: 44px; position: relative; }
  .tabs a > span:not([data-icon]) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tabs a .ico { width: 20px; height: 20px; }
  .tabs a:hover { background: var(--elevated); }
  .tabs a.on { background: linear-gradient(90deg, rgba(255, 95, 31, .2), rgba(255, 95, 31, .03)); color: #ff8a4d; }
  .tabs a.on::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); box-shadow: 0 0 8px rgba(255, 95, 31, .7); }
}
@media (min-width: 1200px) {
  .shell { grid-template-columns: 216px minmax(0, 1fr); gap: var(--sp6); }
  .tabs { padding: var(--sp3); }
  .nav-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 4px 12px 8px; }
  .tabs a { justify-content: flex-start; padding: 10px 12px 10px 14px; gap: 10px; }
  .tabs a > span:not([data-icon]) { position: static; width: auto; height: auto; overflow: visible; clip: auto; white-space: normal; line-height: 1.25; }
}

/* ── Cabecera / barra ── */
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp4); flex-wrap: wrap; margin: 0 0 var(--sp5); }
.head h2 { margin-top: 4px; }
.head p { margin-top: var(--sp2); font-size: 14px; max-width: 60ch; }
.head-actions { display: flex; gap: var(--sp2); }
.bar { display: flex; gap: var(--sp3); flex-wrap: wrap; align-items: center; margin-bottom: var(--sp4); }
.bar .input { max-width: 420px; }
.bar select.input { max-width: 260px; }
.search { position: relative; flex: 1 1 280px; max-width: 420px; }
.search > .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; width: 18px; height: 18px; }
.search .input { padding-left: 42px; max-width: none; }
.chips { display: flex; gap: var(--sp2); flex-wrap: wrap; }
.chip { border: 1px solid var(--hair); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; cursor: pointer; min-height: 36px; }
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.on { background: rgba(255, 95, 31, .16); color: #ff9a66; border-color: var(--neon); }
.chip-cat { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--muted); border: 1px solid var(--hair-soft); background: rgba(255, 255, 255, .04); padding: 3px 10px; border-radius: 999px; }
.input { border-color: var(--hair); }
.pill { font-weight: 700; }
.pill-mute { background: rgba(154, 163, 174, .14); color: var(--muted); }

/* ── Estadísticas ── */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--sp4); }
.stat { text-align: left; display: block; width: 100%; padding: var(--sp5); }
.stat-ic { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 95, 31, .12); border: 1px solid var(--hair); color: var(--neon); margin-bottom: var(--sp4); }
.stat .n { font-family: 'Sora', 'Inter', sans-serif; font-size: 32px; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.stat .l { color: #c3c9d1; font-size: 13.5px; font-weight: 600; margin-top: 4px; }
.stat .s { color: var(--muted); font-size: 12px; margin-top: 4px; }
button.stat { cursor: pointer; font: inherit; color: inherit; transition: border-color .15s, transform .15s; }
button.stat:hover { border-color: var(--neon); transform: translateY(-2px); }
.stat.alert .n { color: var(--amber); }
.stat.alert .stat-ic { background: rgba(245, 158, 11, .14); color: var(--amber); }

/* ── Tablas ── */
.tbl-wrap { background: var(--surface); border: 1px solid var(--hair); border-radius: 16px; overflow-x: auto; }
.acts-ic { flex-wrap: nowrap; }
.acts-ic .btn { padding: 0; width: 36px; }
.acts-ic .btn span { display: none; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { position: sticky; top: 0; text-align: left; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: var(--sp3) var(--sp4); font-weight: 700; background: var(--elevated); border-bottom: 1px solid var(--hair); white-space: nowrap; }
.tbl td { padding: var(--sp3) var(--sp4); vertical-align: middle; border-bottom: 1px solid var(--hair-soft); min-width: 0; }
.tbl tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .015); }
.tbl tbody tr:hover td { background: rgba(255, 95, 31, .05); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tr.off td { opacity: .5; }
.thumb { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; border: 1px solid var(--hair); background: #0b0b0b; flex: none; }
.thumb.lg { width: 72px; height: 72px; border-radius: 16px; }
.cellname { display: flex; align-items: center; gap: var(--sp3); font-weight: 600; min-width: 150px; }
.cellname span { overflow-wrap: anywhere; }
.price-in { width: 116px; min-height: 36px; padding: 6px 10px; font-variant-numeric: tabular-nums; font-size: 13.5px; border-radius: 10px; background: var(--bg); }
.acts { display: flex; gap: 6px; flex-wrap: wrap; }
.sel-sm { min-height: 36px; padding: 6px 36px 6px 10px; width: auto; font-size: 13.5px; border-radius: 10px; }
.small { font-size: 12px; }
.wrap-any { overflow-wrap: anywhere; word-break: break-word; }

/* ── Interruptor ── */
.switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; background: var(--elevated); border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; transition: background .15s, border-color .15s; }
.switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #8b94a0; transition: transform .15s, background .15s; }
.switch input:checked + i { background: rgba(255, 95, 31, .28); border-color: var(--neon); }
.switch input:checked + i::after { transform: translateX(20px); background: var(--neon); box-shadow: 0 0 8px rgba(255, 95, 31, .8); }
.switch input:focus-visible + i { box-shadow: 0 0 0 3px rgba(255, 95, 31, .4); }
.switch input:disabled { cursor: not-allowed; } .switch input:disabled + i { opacity: .5; }

/* ── Modal ── */
.modal-back { background: rgba(0, 0, 0, .72); backdrop-filter: blur(4px); }
.modal { padding: var(--sp5); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: 0 24px 60px rgba(0, 0, 0, .7), 0 0 30px rgba(255, 95, 31, .1); }
.modal h3 { margin-bottom: var(--sp4); padding-bottom: var(--sp3); border-bottom: 1px solid var(--hair); }
.modal-foot { display: flex; gap: var(--sp3); justify-content: flex-end; flex-wrap: wrap; margin-top: var(--sp4); padding-top: var(--sp4); border-top: 1px solid var(--hair-soft); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp3); }
.img-edit { display: flex; gap: var(--sp4); align-items: flex-start; }
.img-fields { flex: 1; min-width: 0; }
.img-fields .field { margin-bottom: var(--sp3); }
.check { position: relative; display: flex; align-items: center; gap: var(--sp3); margin-bottom: var(--sp4); font-size: 14px; font-weight: 600; cursor: pointer; }
.check input, .plist input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid rgba(255, 255, 255, .3); display: grid; place-items: center; flex: none; color: transparent; transition: all .15s; }
.box .ico { width: 13px; height: 13px; stroke-width: 3; }
input:checked ~ .box { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 0 8px rgba(255, 95, 31, .5); }
input:focus-visible ~ .box { outline: 2px solid var(--neon); outline-offset: 2px; }
.plist { max-height: 220px; overflow: auto; border: 1px solid var(--hair); border-radius: var(--r-sm); padding: 6px; background: var(--elevated); }
.plist label { position: relative; display: flex; align-items: center; gap: var(--sp3); padding: 8px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 600; }
.plist label:hover { background: rgba(255, 95, 31, .08); }
.plist .pr { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; font-weight: 500; }
.helper { font-size: 13px; margin: var(--sp3) 0 var(--sp4); padding: var(--sp3); border-radius: var(--r-sm); background: rgba(255, 95, 31, .08); border: 1px dashed var(--line-strong); }

/* ── Pedidos ── */
.items-list { margin: 0; padding-left: 16px; font-size: 13px; }
.totals { font-size: 13px; line-height: 1.6; }
.totals b { font-size: 15px; }
textarea.notes { min-height: 64px; font-size: 13px; resize: vertical; background: var(--bg); }

/* ── Vacíos / ajustes ── */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: var(--sp2); text-align: center; padding: 48px var(--sp4); color: var(--muted); font-size: 14px; }
.empty-state .ico { width: 36px; height: 36px; color: var(--neon); opacity: .8; margin-bottom: var(--sp2); }
.empty-state strong { color: var(--text); font-size: 16px; }
.empty-state .btn { margin-top: var(--sp3); }
.settings-card { max-width: 640px; padding: var(--sp5); }

@media (max-width: 1099px) {
  .tbl-wrap { background: none; border: 0; border-radius: 0; overflow: visible; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl thead { display: none; }
  .tbl tr { background: var(--surface); border: 1px solid var(--hair); border-radius: 16px; margin-bottom: var(--sp3); padding: var(--sp2) 0; overflow: hidden; }
  .tbl td, .tbl tbody tr:nth-child(even) td, .tbl tbody tr:hover td { background: transparent; border: 0; padding: 7px var(--sp4); display: flex; align-items: center; justify-content: space-between; gap: var(--sp3); }
  .tbl td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 600; flex: none; }
  .tbl td.nolabel::before { content: none; }
  .tbl td > * { min-width: 0; }
  .tbl td .acts { justify-content: flex-end; }
  .acts-ic { flex-wrap: wrap; }
  .acts-ic .btn { width: auto; padding: 6px 12px; } .acts-ic .btn span { display: inline; }
  .cellname { min-width: 0; }
  .tbl td.stack { flex-direction: column; align-items: stretch; }
  .tbl td.stack::before { margin-bottom: 4px; }
}
@media (max-width: 720px) {
  .row2 { grid-template-columns: 1fr; }
  .bar .input, .bar select.input, .search { max-width: none; flex: 1 1 100%; }
  .stats { grid-template-columns: 1fr 1fr; gap: var(--sp3); }
  .stat { padding: var(--sp4); }
  .stat .n { font-size: 26px; }
  .modal-back { padding: 8px; }
  .modal { padding: var(--sp4); }
  .img-edit { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { button.stat:hover { transform: none; } }

/* Ajustes de tienda (toggles) */
.store-card { margin-bottom: var(--sp5); display: flex; flex-direction: column; gap: 4px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid rgba(var(--ink), .08); }
.set-row > div { display: flex; flex-direction: column; gap: 4px; max-width: 60ch; }
.hl-sel { min-height: 36px; padding: 6px 10px; font-size: 13px; width: auto; }

/* Facturación y saldo */
.bar .field { margin: 0; min-width: 150px; }
.bar .field.grow { flex: 1 1 220px; }
.bar .field .input { max-width: none; }
.bar .field label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.bar button[type=submit] { align-self: flex-end; }
.bill-sec { margin-bottom: var(--sp5); }
.bill-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp3); flex-wrap: wrap; margin-bottom: var(--sp3); }
.bill-head h3 { margin: 0; }
.bill-head .acts { align-items: center; }
.neg { color: var(--amber, #f59e0b); }
@media (max-width: 720px) { .bar .field { flex: 1 1 100%; } .bar button[type=submit] { width: 100%; } .bill-head .acts { width: 100%; } .bill-head .acts .btn { flex: 1; } }

/* Verificar comprobantes */
.vfy-acts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp3); margin-bottom: var(--sp3); }
.vfy-acts .btn-lg, .vfy-acts label.btn { min-height: 56px; font-size: 15px; width: 100%; cursor: pointer; }
.vcam { position: relative; margin: var(--sp3) 0; border-radius: 16px; overflow: hidden; background: #000; max-width: 480px; }
.vcam video { width: 100%; display: block; max-height: 60vh; object-fit: cover; }
.vcam .btn { position: absolute; right: 8px; top: 8px; }
.vcam-frame { position: absolute; inset: 18% 18%; border: 3px solid var(--neon); border-radius: 16px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .35); pointer-events: none; }
.vfy-manual { display: flex; gap: var(--sp3); align-items: flex-end; flex-wrap: wrap; margin-top: var(--sp3); }
.vfy-manual .field { margin: 0; flex: 1 1 220px; }
.vres { margin-top: var(--sp5); border-width: 2px; }
.vres-head { display: flex; align-items: center; gap: var(--sp4); margin-bottom: var(--sp4); }
.vres-mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font-size: 36px; font-weight: 800; color: #fff; flex: none; }
.vres-label { font: 800 26px 'Sora', 'Inter', sans-serif; letter-spacing: .02em; }
.vres.ok { border-color: #22c55e; } .vres.ok .vres-mark { background: #16a34a; } .vres.ok .vres-label { color: #4ade80; }
.vres.bad { border-color: #ef4444; } .vres.bad .vres-mark { background: #dc2626; } .vres.bad .vres-label { color: #f87171; }
.vres.warn { border-color: #f97316; } .vres.warn .vres-mark { background: #ea580c; } .vres.warn .vres-label { color: #fb923c; }
.vres.yellow { border-color: #eab308; } .vres.yellow .vres-mark { background: #ca8a04; } .vres.yellow .vres-label { color: #facc15; }
.vwarn { background: rgba(245, 158, 11, .14); border: 1px solid #f59e0b; border-radius: 12px; padding: 10px 12px; margin-bottom: var(--sp3); font-weight: 600; font-size: 13.5px; }
.vnote { color: var(--muted); font-size: 13px; margin-bottom: var(--sp3); }
.vdl { margin: 0; } .vdl > div { display: flex; justify-content: space-between; gap: var(--sp3); padding: 8px 0; border-bottom: 1px dashed var(--hair-soft); }
.vdl dt { color: var(--muted); font-size: 12.5px; flex: none; } .vdl dd { margin: 0; text-align: right; font-weight: 600; min-width: 0; }
@media (max-width: 720px) { .vfy-acts { grid-template-columns: 1fr; } .vres-label { font-size: 22px; } }

/* Distribuidores y ranking */
.prize-strip { display: flex; align-items: center; gap: var(--sp2); flex-wrap: wrap; margin-bottom: var(--sp4); }
.podium { list-style: none; margin: 0 0 var(--sp5); padding: 0; display: grid; grid-template-columns: 1fr; gap: var(--sp3); }
.pod { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: var(--sp5) var(--sp4); background: var(--surface); border: 1px solid var(--hair); border-radius: 16px; min-width: 0; }
.pod-pos { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font: 800 17px 'Sora', 'Inter', sans-serif; color: var(--pc, var(--text)); border: 2px solid currentColor; margin-bottom: var(--sp2); }
.pod-name { font-weight: 700; font-size: 16px; }
.pod-units b { font: 800 28px 'Sora', 'Inter', sans-serif; letter-spacing: -.02em; }
.pod-prize { font-weight: 800; font-size: 18px; margin-top: var(--sp2); font-variant-numeric: tabular-nums; }
.pod-1 { --pc: var(--neon); border-color: var(--neon); background: linear-gradient(180deg, rgba(255, 95, 31, .18), rgba(255, 95, 31, .04)); box-shadow: 0 0 28px rgba(255, 95, 31, .25); }
.pod-1 .pod-pos { background: rgba(255, 95, 31, .18); box-shadow: 0 0 12px rgba(255, 95, 31, .6); }
.pod-2 { --pc: #c3c9d1; }
.pod-3 { --pc: #d9955a; }
.pod-1 .pod-prize { color: #ff9a66; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 721px) {
  .podium { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
  .pod-1 { order: 2; padding-top: 40px; padding-bottom: 40px; }
  .pod-2 { order: 1; }
  .pod-3 { order: 3; }
}

/* v10 móvil: filas de Ajustes con selector se apilan; el texto no queda en una columna angosta */
.set-row { flex-wrap: wrap; }
.set-row > div { flex: 1 1 220px; }
@media (max-width: 560px) { .set-row > select.input { width: 100% !important; } }

/* ───── Inicio, proveedores, universidades y garantías ───── */
.sec-h { margin: var(--sp5) 0 var(--sp3); font-size: 16px; }
.hblocks { list-style: none; margin: var(--sp3) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--sp2); }
.hblock { display: flex; align-items: center; justify-content: space-between; gap: var(--sp3); flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--hair); border-radius: 12px; background: var(--elevated); }
.hblock.off { opacity: .6; }
.hblock .check { margin: 0; flex: 1 1 180px; }
.prov-bulk { display: flex; gap: var(--sp4); align-items: flex-end; flex-wrap: wrap; padding: var(--sp4); margin-bottom: var(--sp4); }
.prov-bulk .field { margin: 0; flex: 0 1 260px; }
.price-in::placeholder { font-size: 12px; }
.gtk { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp4); }
@media (min-width: 900px) { .gtk { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); align-items: start; } }
.gtk-item { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; padding: 12px 14px; margin-bottom: var(--sp2); border: 1px solid var(--hair); border-radius: 12px; background: var(--surface); color: var(--text); cursor: pointer; min-height: 44px; font: inherit; }
.gtk-item small { color: var(--muted); font-size: 12px; }
.gtk-item:hover { border-color: var(--line-strong); }
.gtk-item.on { border-color: var(--neon); background: rgba(255, 95, 31, .08); }
.gtk-thread { padding: var(--sp4); }
.gtk-thread h3 { margin-bottom: 4px; }
.msgs { display: flex; flex-direction: column; gap: var(--sp2); margin: var(--sp3) 0; max-height: 360px; overflow: auto; }
.msg { padding: 10px 12px; border-radius: 12px; background: var(--elevated); border: 1px solid var(--hair-soft); max-width: 92%; }
.msg.staff { align-self: flex-end; background: rgba(255, 95, 31, .1); border-color: var(--line-strong); }
.msg small { color: var(--muted); font-size: 11.5px; }
.msg p { margin: 4px 0 0; white-space: pre-wrap; }
@media (max-width: 560px) { .hidden-sm { display: none; } .hblock .acts { width: 100%; } }

/* ── Selector de mes propio ── */
.mp, .bar .mp { margin-bottom: 0; min-width: 0; flex: 0 0 auto; max-width: 100%; width: auto; }
.mp-cap { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.mp-row { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.mp-b { width: 40px; height: 44px; border-radius: 12px; border: 1px solid var(--hair); background: var(--surface); color: var(--text); font-size: 22px; line-height: 1; cursor: pointer; }
.mp-b:hover:not(:disabled) { border-color: var(--neon); color: var(--neon); }
.mp-b:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }
.mp-b:disabled { opacity: .35; cursor: not-allowed; }
.mp-lab { min-width: 132px; white-space: nowrap; text-align: center; font-weight: 800; font-size: 15px; padding: 0 6px; }
.mp-sel { width: auto; flex: 0 1 140px; min-width: 0; }
.mp-sel.mp-y { flex-basis: 100px; }
.linkbtn { background: none; border: 0; padding: 0; color: inherit; text-align: left; cursor: pointer; overflow-wrap: anywhere; }
.linkbtn:hover b, .linkbtn:focus-visible b { color: var(--neon); text-decoration: underline; }
.cell-contact { min-width: 0; max-width: 240px; }
.cell-contact .trunc { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
@media (max-width: 1099px) { .cell-contact { max-width: none; } .cell-contact .trunc { text-align: right; max-width: 60vw; } }
@media (max-width: 720px) { .mp-row { width: 100%; flex-wrap: wrap; } .mp-lab { flex: 1; min-width: 0; } .mp-sel { flex: 1 1 40%; } .mp-sel.mp-y { flex: 1 1 28%; } }

/* ── Tickets de soporte y garantías / Stock ── */
.tk-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--sp3); margin-bottom: var(--sp4); }
.tk-cat { display: flex; align-items: flex-start; gap: 12px; text-align: left; padding: var(--sp4); cursor: pointer; font: inherit; color: var(--text); border: 1px solid var(--hair); transition: border-color .15s, box-shadow .15s, transform .15s; }
.tk-cat:hover { transform: translateY(-1px); border-color: var(--neon); }
.tk-cat.on { border-color: var(--neon); box-shadow: 0 0 0 1px var(--neon), 0 8px 28px rgba(255,95,31,.18); }
.tk-cat-t { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.tk-cat-t strong { font-family: 'Sora', 'Inter', sans-serif; font-size: 15px; }
.tk-cat-t small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.tk-cat-n { font-family: 'Sora', 'Inter', sans-serif; font-weight: 800; font-size: 22px; color: var(--neon); }
.tk-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: var(--sp3) 0 var(--sp4); font-size: 14px; }
.tk-dl dt { color: var(--muted); font-weight: 600; }
.tk-dl dd { margin: 0; }
.tk-h { font-size: 14px; margin: var(--sp3) 0 var(--sp2); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tk-evidence { display: block; max-width: min(100%, 360px); max-height: 280px; border-radius: 10px; border: 1px solid var(--hair); object-fit: contain; background: #000; }
.stat-btn { cursor: pointer; font: inherit; color: var(--text); border: 1px solid var(--hair); }
.stat-btn.on { border-color: var(--neon); box-shadow: 0 0 0 1px var(--neon); }
@media (max-width: 560px) { .tk-dl { grid-template-columns: 1fr; gap: 2px; } .tk-dl dd { margin-bottom: 8px; } }
