/* ─── Variables — Modo claro (default) ───────────────────────────────────────── */
:root {
  --primary:      #1a5276;
  --primary-dk:   #154360;
  --primary-lt:   #d6eaf8;
  --accent:       #e67e22;
  --accent-dk:    #ca6f1e;
  --danger:       #c0392b;
  --success:      #1e8449;
  --bg:           #f0f3f4;
  --bg2:          #e8ecee;
  --surface:      #ffffff;
  --surface2:     #f8f9fa;
  --border:       #d5d8dc;
  --text:         #212529;
  --text-muted:   #6c757d;
  --shadow:       0 2px 8px rgba(0,0,0,.12);
  --shadow-lg:    0 4px 20px rgba(0,0,0,.18);
  --radius:       10px;
  --nav-h:        62px;
  --header-h:     54px;
}

/* ─── Variables — Modo oscuro ────────────────────────────────────────────────── */
[data-theme="dark"] {
  --primary:      #2e86c1;
  --primary-dk:   #2471a3;
  --primary-lt:   #1a3a52;
  --accent:       #e67e22;
  --accent-dk:    #ca6f1e;
  --danger:       #e74c3c;
  --success:      #27ae60;
  --bg:           #0f1117;
  --bg2:          #161b22;
  --surface:      #1c1f26;
  --surface2:     #22262f;
  --border:       #30363d;
  --text:         #e6edf3;
  --text-muted:   #8b949e;
  --shadow:       0 2px 8px rgba(0,0,0,.5);
  --shadow-lg:    0 4px 20px rgba(0,0,0,.6);
}

/* ─── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-tap-highlight-color: transparent; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background .25s, color .25s;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, select, textarea {
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
  transition: border-color .2s, background .25s, color .25s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46,134,193,.18);
}
select option { background: var(--surface); color: var(--text); }

/* ─── Login ──────────────────────────────────────────────────────────────────── */
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--primary);
  padding: 16px;
}
.login-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 36px 28px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
}
.login-logo  { text-align: center; margin-bottom: 12px; }
.login-logo-img {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 4px 18px rgba(0,0,0,.18);
  margin: 0 auto;
}
.login-title { text-align: center; font-size: 1.6rem; color: var(--primary); font-weight: 700; }
.login-sub   { text-align: center; color: var(--text-muted); margin-bottom: 24px; font-size: .9rem; }
.input-password-wrap { position: relative; }
.input-password-wrap input { padding-right: 42px; }
.btn-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  border-radius: 4px;
}
.btn-eye:hover { color: var(--primary); }

/* ─── Header ─────────────────────────────────────────────────────────────────── */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 0 8px 0 4px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.header-title {
  flex: 1;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Botón hamburguesa ──────────────────────────────────────────────────────── */
.btn-hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 10px;
  flex-shrink: 0;
  border-radius: 8px;
  transition: background .15s;
  background: transparent;
  border: none;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
}
.btn-hamburger:hover  { background: rgba(255,255,255,.12); }
.btn-hamburger:active { background: rgba(255,255,255,.22); }
.btn-hamburger span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.btn-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.btn-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.btn-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Botón usuario (top right) ──────────────────────────────────────────────── */
.btn-user {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: background .15s, border-color .3s;
  max-width: 160px;
  background: rgba(255,255,255,.18);
  border: 2px solid rgba(255,255,255,.30);
  cursor: pointer;
}
.btn-user:hover  { background: rgba(255,255,255,.26); }
.btn-user:active { background: rgba(255,255,255,.32); }
.btn-user.user-online  { border-color: #2ecc71; }
.btn-user.user-offline { border-color: #e74c3c; }
.user-icon { font-size: 1.15rem; line-height: 1; color: #fff; }
.user-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: none;
}
@media (min-width: 360px) { .user-name { display: block; } }

/* ─── Dropdown usuario ───────────────────────────────────────────────────────── */
.user-dropdown {
  position: fixed;
  top: calc(var(--header-h) + 8px);
  right: 10px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.22), 0 2px 8px rgba(0,0,0,.14);
  min-width: 220px;
  z-index: 250;
  overflow: hidden;
  animation: dropIn .2s cubic-bezier(.4,0,.2,1);
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-10px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)      scale(1); }
}

/* ─── Backdrop dropdown usuario ─────────────────────────────────────────────── */
.user-dd-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.25);
  z-index: 240;
  -webkit-tap-highlight-color: transparent;
}
.user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 12px;
  border-bottom: 1.5px solid var(--border);
  background: var(--surface2);
}
.user-dropdown-avatar { font-size: 1.4rem; }
.user-dropdown-name   { font-weight: 700; color: var(--primary); font-size: .95rem; }
.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 16px;
  color: var(--text);
  font-size: .9rem;
  text-align: left;
  transition: background .15s;
  background: none;
  border: none;
  font: inherit;
  cursor: pointer;
}
.user-dropdown-item:hover, .user-dropdown-item:active { background: var(--bg); }
.logout-item { color: var(--danger); }
.dropdown-divider { border: none; border-top: 1.5px solid var(--border); margin: 0; }

/* ─── Drawer lateral ─────────────────────────────────────────────────────────── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 150;
  transition: opacity .25s;
}
.drawer-overlay.hidden { display: none; }
.drawer {
  position: fixed;
  top: 0; left: -290px;
  width: 280px;
  height: 100vh;
  background: var(--surface);
  z-index: 160;
  transition: left .28s cubic-bezier(.4,0,.2,1);
  box-shadow: 4px 0 24px rgba(0,0,0,.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.drawer.open { left: 0; }

.drawer-header {
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 14px;
  flex-shrink: 0;
}
.drawer-logo-img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}
.drawer-title { flex: 1; font-size: 1.1rem; font-weight: 700; }
.drawer-close { color: rgba(255,255,255,.85); font-size: 1rem; padding: 6px 8px; border-radius: 6px; }
.drawer-close:hover { background: rgba(255,255,255,.15); }

.drawer-menu { list-style: none; padding: 8px 0; flex: 1; overflow-y: auto; }
.drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  color: var(--text);
  font-size: .95rem;
  transition: background .15s;
  border-radius: 0;
}
.drawer-item:hover, .drawer-item:active { background: var(--bg); }
.drawer-item-icon { width: 20px; height: 20px; flex-shrink: 0; display: flex; align-items: center; }
.drawer-item-icon svg { width: 20px; height: 20px; display: block; }

/* ─── Main content ───────────────────────────────────────────────────────────── */
.main-content {
  margin-top: var(--header-h);
  margin-bottom: calc(var(--nav-h) + 8px);
  padding: 12px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* ─── Bottom nav ─────────────────────────────────────────────────────────────── */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: var(--surface);
  border-top: 1.5px solid var(--border);
  display: flex;
  z-index: 100;
  transition: background .25s, border-color .25s;
}
.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  gap: 3px;
  transition: color .2s, background .15s;
  padding: 6px 0;
}
.nav-item.active { color: var(--primary); }
.nav-item:active  { background: var(--bg); }
.nav-icon  { width: 22px; height: 22px; flex-shrink: 0; }
.nav-label { font-size: .65rem; font-weight: 500; }

/* ─── Alertas ────────────────────────────────────────────────────────────────── */
.alert {
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: .9rem;
}
.alert-error   { background: #fdecea; color: var(--danger); border: 1px solid #f5c6cb; }
.alert-success { background: #d4edda; color: var(--success); border: 1px solid #c3e6cb; }
[data-theme="dark"] .alert-error   { background: #2d1215; border-color: #6e1c1c; }
[data-theme="dark"] .alert-success { background: #0f2518; border-color: #1a4d2e; }

/* ─── Botones ────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 20px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .95rem;
  transition: background .2s, transform .1s, box-shadow .15s;
  white-space: nowrap;
  border: none;
  cursor: pointer;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dk); }
.btn-accent  { background: var(--accent);  color: #fff; }
.btn-accent:hover  { background: var(--accent-dk); }
.btn-success { background: var(--success); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn-ghost   { background: var(--bg2);   color: var(--text-muted); }
.btn-ghost:hover { background: var(--border); }
.btn-block   { width: 100%; }
.btn-sm      { padding: 7px 14px; font-size: .85rem; }

.btn-icon {
  padding: 6px;
  border-radius: 6px;
  color: var(--text-muted);
  transition: background .15s, color .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-icon svg { width: 18px; height: 18px; display: block; }
.btn-icon:hover { background: var(--bg2); }
.btn-icon.btn-edit:hover   { color: var(--primary); }
.btn-icon.btn-delete:hover { color: var(--danger);  }

/* ─── FAB ────────────────────────────────────────────────────────────────────── */
.fab {
  position: fixed;
  bottom: calc(var(--nav-h) + 16px);
  right: 16px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 1.8rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  transition: background .2s, transform .15s;
  border: none;
  cursor: pointer;
}
.fab:active { transform: scale(.93); background: var(--accent-dk); }

/* ─── Formularios ────────────────────────────────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}
.form-group label {
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}
.form-actions .btn { flex: 1; }
.form-actions-modal {
  flex-direction: column;
  gap: 8px;
}
.form-actions-modal .btn { width: 100%; }
.btn-cancelar-red { color: #e74c3c !important; }

/* ─── Filtros / Page-top ─────────────────────────────────────────────────────── */
.filters-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.search-sort-row {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  align-items: center;
}
.search-sort-row .input-search { flex: 1; min-width: 0; }
.sort-select { width: auto; min-width: 110px; flex-shrink: 0; }
.input-search { min-width: 0; }
.input-select { min-width: 0; }
.page-top {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  align-items: center;
}
.page-top .input-search { flex: 1; }

/* ─── Lista ──────────────────────────────────────────────────────────────────── */
.list-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.list-item {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: box-shadow .15s, background .25s;
  border: 1px solid transparent;
}
.list-item:active { box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.art-borde-id-1 { border-color: #7fb3d3; }
.art-borde-id-2 { border-color: #58d68d; }
.art-borde-id-3 { border-color: #e59866; }
[data-theme="dark"] .art-borde-id-1 { border-color: #2e6e99; }
[data-theme="dark"] .art-borde-id-2 { border-color: #1e8449; }
[data-theme="dark"] .art-borde-id-3 { border-color: #a04000; }
.li-thumb-wrap {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.li-badge-estado {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  border-radius: 0 0 8px 8px;
  font-size: .42rem;
  padding: 2px 0;
  line-height: 1.3;
  white-space: nowrap;
}
.li-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.li-thumb-ph {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}
.li-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.li-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.li-sub {
  font-size: .8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.li-price {
  font-weight: 700;
  color: var(--primary);
  font-size: .95rem;
  margin-top: 2px;
}
.li-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 4px;
}
.li-actions {
  display: flex;
  gap: 4px;
}

/* ─── Link en listado (ir a artículos filtrado) ──────────────────────────────── */
.li-link {
  color: inherit;
  text-decoration: none;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.li-link:hover .li-title { color: var(--primary); }
.li-link .li-sub          { color: var(--text-muted); font-size: .78rem; }

/* ─── Items pendientes (offline queue) ──────────────────────────────────────── */
.item-pending { opacity: .82; }
.badge-pending {
  font-size: .72rem;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 1px 6px;
  vertical-align: middle;
  font-style: normal;
}
.item-delete-pending {
  opacity: .55;
  text-decoration: line-through;
  filter: grayscale(.6);
}
.badge-delete-pending {
  font-size: .72rem;
  background: #c0392b;
  color: #fff;
  border-radius: 10px;
  padding: 1px 6px;
  vertical-align: middle;
  font-style: normal;
  text-decoration: none;
  display: inline-block;
}

/* ─── Filtro de estados y publicaciones ──────────────────────────────────────── */
.filtro-chips-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  padding: 0 16px 10px;
}
.filtro-estados-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
}
.filtro-pub-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  flex-shrink: 0;
}
.pub-chip {
  display: inline-flex;
  align-items: center;
  font-size: .7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 12px;
  border: 1.5px solid #2471a3;
  background: transparent;
  color: #2471a3;
  cursor: pointer;
  opacity: .55;
  transition: opacity .15s, border-color .15s;
  user-select: none;
}
[data-theme="dark"] .pub-chip { border-color: #85c1e9; color: #85c1e9; }
.pub-chip.active { opacity: 1; }
.pub-chip.active::before { content: '✓ '; }
.estado-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  border: 1.5px solid transparent;
  opacity: .45;
  transition: opacity .15s, border-color .15s;
  user-select: none;
}
.estado-chip.active { opacity: 1; border-color: currentColor; }
.estado-chip::before { content: ''; }
.estado-chip.active::before { content: '✓ '; }

/* ─── Estado de artículo ─────────────────────────────────────────────────────── */
.badge-estado {
  display: inline-block;
  font-size: .7rem;
  font-weight: 600;
  border-radius: 10px;
  padding: 1px 5px;
  margin-bottom: 2px;
  letter-spacing: .02em;
}
.estado-id-1  { background: #d6eaf8; color: #1a5276; }
.estado-id-2  { background: #d5f5e3; color: #1e8449; }
.estado-id-3  { background: #fdebd0; color: #ca6f1e; }
[data-theme="dark"] .estado-id-1 { background: #1a3a52; color: #7fb3d3; }
[data-theme="dark"] .estado-id-2 { background: #1a3a28; color: #58d68d; }
[data-theme="dark"] .estado-id-3 { background: #3d2a14; color: #e59866; }
.li-badge-estado.estado-id-1  { background: rgba(214,234,248,.5); }
.li-badge-estado.estado-id-2  { background: rgba(213,245,227,.5); }
.li-badge-estado.estado-id-3  { background: rgba(253,235,208,.5); }
[data-theme="dark"] .li-badge-estado.estado-id-1 { background: rgba(26,58,82,.5); }
[data-theme="dark"] .li-badge-estado.estado-id-2 { background: rgba(26,58,40,.5); }
[data-theme="dark"] .li-badge-estado.estado-id-3 { background: rgba(61,42,20,.5); }

/* ─── Badge publicado ────────────────────────────────────────────────────────── */
.badge-pub-circulo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #2471a3;
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  flex-shrink: 0;
  position: absolute;
  bottom: 6px;
  right: 6px;
  z-index: 2;
  pointer-events: none;
}
.badge-pub-circulo-sm {
  position: static;
  width: 18px;
  height: 18px;
  font-size: .6rem;
}
.badge-publicado-linea {
  display: inline-block;
  font-size: .6rem;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  background: #d6eaf8;
  color: #1a5276;
  white-space: nowrap;
}
[data-theme="dark"] .badge-publicado-linea { background: #1a3a52; color: #85c1e9; }
.show-fecha-pub { font-size: .8rem; color: var(--text-muted); }

/* ─── Fecha en lista de artículos ────────────────────────────────────────────── */
.li-fecha {
  font-size: .72rem;
  color: var(--text-muted);
  text-align: right;
  white-space: nowrap;
}

/* ─── Campos datetime (date + time + icono superpuesto) ──────────────────────── */
.datetime-group {
  display: flex;
  gap: 4px;
}
.dt-wrap {
  position: relative;
  flex: 1;
  min-width: 0;
}
.dt-wrap input[type="date"],
.dt-wrap input[type="time"] {
  width: 100%;
  padding: 8px 32px 8px 10px;
}
/* Ocultar el indicador nativo (flecha en mobile, ícono en desktop)
   pero dejarlo clickeable para que abra el picker */
.dt-wrap input[type="date"]::-webkit-calendar-picker-indicator,
.dt-wrap input[type="time"]::-webkit-calendar-picker-indicator {
  opacity: 0;
  cursor: pointer;
  position: absolute;
  right: 0;
  top: 0;
  width: 40px;
  height: 100%;
}
.dt-icon {
  display: block;
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--text-muted);
  pointer-events: none;
  line-height: 1;
  user-select: none;
}

/* ─── Tom Select — estilos base ──────────────────────────────────────────────── */
.ts-wrapper { width: 100%; }
.ts-control {
  background: var(--surface) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 8px !important;
  color: var(--text) !important;
  padding: 9px 12px !important;
  box-shadow: none !important;
  min-height: 42px;
  transition: border-color .2s, background .25s !important;
}
.ts-control:focus-within,
.ts-wrapper.focus .ts-control {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(46,134,193,.18) !important;
}
.ts-control input {
  color: var(--text) !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: 100% !important;
}
.ts-dropdown {
  background: var(--surface) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 8px !important;
  box-shadow: var(--shadow-lg) !important;
  color: var(--text) !important;
  margin-top: 2px !important;
  z-index: 9999 !important;
}
.ts-dropdown .option {
  color: var(--text) !important;
  padding: 10px 14px !important;
}
.ts-dropdown .option:hover,
.ts-dropdown .option.active {
  background: var(--primary-lt) !important;
  color: var(--primary) !important;
}
.ts-dropdown .option-nuevo {
  color: var(--accent) !important;
  font-weight: 600;
  border-top: 1px solid var(--border);
}
.ts-dropdown .option-nuevo:hover,
.ts-dropdown .option-nuevo.active {
  background: #fdebd0 !important;
  color: var(--accent-dk) !important;
}
[data-theme="dark"] .ts-dropdown .option-nuevo:hover,
[data-theme="dark"] .ts-dropdown .option-nuevo.active {
  background: #3d2a14 !important;
  color: var(--accent) !important;
}
.ts-control .item {
  color: var(--text) !important;
  background: transparent !important;
}
.ts-control .placeholder { color: var(--text-muted) !important; }

/* ─── Tom Select — plugin dropdown_input ────────────────────────────────────── */
.ts-dropdown .dropdown-input-wrap {
  padding: 6px 8px;
  border-bottom: 1px solid var(--border);
}
.ts-dropdown .dropdown-input {
  width: 100%;
  background: var(--surface2) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: 6px !important;
  color: var(--text) !important;
  padding: 7px 10px !important;
  font-size: .9rem;
  box-shadow: none !important;
  outline: none;
}
.ts-dropdown .dropdown-input:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(46,134,193,.18) !important;
}
/* Con dropdown_input activo, el control ya no necesita mostrar el cursor */
.ts-wrapper.plugin-dropdown_input .ts-control input {
  width: 0 !important;
  opacity: 0 !important;
  position: absolute !important;
}

/* ─── Tom Select — modo oscuro ───────────────────────────────────────────────── */
[data-theme="dark"] .ts-control {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
[data-theme="dark"] .ts-dropdown {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
[data-theme="dark"] .ts-dropdown .option {
  color: var(--text) !important;
}
[data-theme="dark"] .ts-dropdown .option:hover,
[data-theme="dark"] .ts-dropdown .option.active {
  background: var(--primary-lt) !important;
  color: var(--primary) !important;
}

/* ─── Dashboard ──────────────────────────────────────────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}
.dashboard-grid-estados {
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  margin-bottom: 20px;
}
.dashboard-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: transform .15s, background .25s;
}
.dashboard-card-sm {
  padding: 8px 6px;
  gap: 2px;
}
.dashboard-card:active { transform: scale(.96); }
.card-icon  { font-size: 1.8rem; display: flex; align-items: center; justify-content: center; }
.card-icon svg { width: 2rem; height: 2rem; stroke: var(--primary); }
.dashboard-card-sm .card-icon svg { width: 1.1rem; height: 1.1rem; }
.card-count { font-size: 1.6rem; font-weight: 700; color: var(--primary); }
.card-count-sm { font-size: .95rem; }
.card-label { font-size: .7rem; color: var(--text-muted); text-align: center; }
.dashboard-card-sm .card-label { font-size: .6rem; }
.dashboard-card-estado { border-top: 3px solid transparent; }
.dashboard-card-estado.estado-id-1 { border-top-color: #1a5276; }
.dashboard-card-estado.estado-id-2 { border-top-color: #1e8449; }
.dashboard-card-estado.estado-id-3 { border-top-color: #ca6f1e; }
.dashboard-card-estado.estado-id-4 { border-top-color: #7d3c98; }
.dashboard-card-estado.estado-id-5 { border-top-color: #c0392b; }
[data-theme="dark"] .dashboard-card-estado.estado-id-1 { border-top-color: #7fb3d3; }
[data-theme="dark"] .dashboard-card-estado.estado-id-2 { border-top-color: #58d68d; }
[data-theme="dark"] .dashboard-card-estado.estado-id-3 { border-top-color: #e59866; }
[data-theme="dark"] .dashboard-card-estado.estado-id-4 { border-top-color: #c39bd3; }
[data-theme="dark"] .dashboard-card-estado.estado-id-5 { border-top-color: #f1948a; }
.section-title {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ─── Modal ──────────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  z-index: 200;
  display: flex;
  align-items: flex-end;
}
.modal {
  background: var(--surface);
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: background .25s;
}
.modal-sm { max-width: 480px; margin: 0 auto; border-radius: var(--radius); margin-bottom: 70px; }
.modal-header {
  display: flex;
  align-items: center;
  padding: 16px 16px 12px;
  border-bottom: 1.5px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}
.modal-header h2 { flex: 1; font-size: 1.1rem; }
.modal-header-save { margin-right: 8px; }
.modal-close {
  font-size: 1.2rem;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: 6px;
}
.modal-close:hover { background: var(--bg); }
.modal-body { padding: 16px; }
.hidden { display: none !important; }

/* ─── Fotos ──────────────────────────────────────────────────────────────────── */
.fotos-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.foto-item {
  position: relative;
  display: inline-block;
}
.foto-preview-img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  image-orientation: from-image;
}
.foto-delete {
  position: absolute;
  top: -6px; right: -6px;
  background: var(--danger);
  color: #fff;
  border-radius: 50%;
  width: 20px; height: 20px;
  font-size: .65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
}
.btn-foto   { display: inline-flex; cursor: pointer; }
.fotos-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* ─── Toast ──────────────────────────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: calc(var(--nav-h) + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #2c3e50;
  color: #fff;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: .9rem;
  z-index: 300;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,.35);
  animation: toastIn .25s ease;
}
[data-theme="dark"] .toast { background: #3d4654; }
.toast.toast-error   { background: var(--danger); }
.toast.toast-success { background: var(--success); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

/* ─── Offline banner ─────────────────────────────────────────────────────────── */
.offline-banner {
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 10px;
  font-size: .85rem;
  font-weight: 600;
  z-index: 95;
  gap: 8px;
}
.offline-banner > span { flex: 1; text-align: center; }
.offline-banner-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  opacity: .85;
  flex-shrink: 0;
}
.offline-banner-close:hover { opacity: 1; }

/* ─── Página de huella dactilar ──────────────────────────────────────────────── */
.huella-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  text-align: center;
}
.huella-icon { font-size: 4rem; margin-bottom: 12px; }
.huella-card h2 { font-size: 1.2rem; margin-bottom: 8px; }
.huella-card p  { color: var(--text-muted); font-size: .9rem; margin-bottom: 20px; line-height: 1.5; }
.huella-estado {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg2);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: .9rem;
}
.huella-estado-icon { font-size: 1.4rem; }

/* ─── Login — divisor con texto ──────────────────────────────────────────────── */
.divider-texto {
  text-align: center;
  color: var(--text-muted);
  font-size: .8rem;
  margin: 10px 0 16px;
  position: relative;
}
.divider-texto::before, .divider-texto::after {
  content: '';
  position: absolute;
  top: 50%; width: 28%;
  height: 1px;
  background: var(--border);
}
.divider-texto::before { left: 0; }
.divider-texto::after  { right: 0; }

/* ─── Utilidades ─────────────────────────────────────────────────────────────── */
.loading      { text-align: center; color: var(--text-muted); padding: 40px; font-size: .95rem; }
.empty-msg    { text-align: center; color: var(--text-muted); padding: 40px 16px; }
.offline-msg  { color: var(--accent); }
.articulo-item { align-items: stretch; cursor: pointer; }
.articulo-item .li-right  { cursor: default; }

/* ─── Vista toggles ──────────────────────────────────────────────────────── */
.vista-toggles {
  display: flex;
  gap: 2px;
  flex-shrink: 0;
}
.btn-vista {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  padding: 5px 7px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .15s, color .15s;
}
.btn-vista:hover { background: var(--hover); color: var(--text); }
.btn-vista.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-vista svg { display: block; }

/* ─── Vista lineas ───────────────────────────────────────────────────────── */
.vista-lineas { gap: 4px; }
.vista-linea-item {
  display: flex;
  align-items: center;
  padding: 6px 10px;
  gap: 8px;
  cursor: pointer;
  border-left: 3px solid transparent;
}
.vista-linea-item .li-info { flex: 1; min-width: 0; gap: 0; }
.vista-linea-item .li-title { font-size: .85rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.vista-linea-item .li-sub   { font-size: .68rem; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.li-right-linea {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-shrink: 0;
}
.li-right-linea-badges { display: flex; flex-direction: row; align-items: center; gap: 3px; justify-content: flex-end; }
.li-right-linea .badge-estado { font-size: .6rem; padding: 1px 5px; }
.li-right-linea .li-price,
.li-right-linea .li-price-oferta { font-size: .8rem; font-weight: 700; }
.li-right-linea .li-price-orig { font-size: .68rem; }

/* ─── Vista grid ─────────────────────────────────────────────────────────── */
.vista-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex-direction: unset;
}
.articulo-grid-card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transition: transform .12s;
}
.articulo-grid-card:active { transform: scale(.97); }
.grid-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: var(--hover);
  overflow: hidden;
  flex-shrink: 0;
}
.grid-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.grid-thumb-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-muted);
}
.grid-badge-estado {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  border-radius: 0;
  font-size: .6rem;
  padding: 2px 4px;
  backdrop-filter: blur(2px);
}
.grid-info {
  padding: 5px 7px 7px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.grid-nombre {
  font-size: .75rem;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}
.grid-sub {
  font-size: .62rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.grid-precio .li-price,
.grid-precio .li-price-oferta { font-size: .78rem; font-weight: 700; }
.grid-precio .li-price-orig   { font-size: .65rem; }

.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }

/* ─── Modal show (solo lectura) ──────────────────────────────────────────────── */
.show-fotos {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 16px;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.show-foto-img {
  height: 130px;
  width: auto;
  max-width: 180px;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  object-fit: cover;
  border: 1.5px solid var(--border);
  transition: opacity .15s;
}
.show-foto-img:hover { opacity: .85; }
.show-foto-ph {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.show-dl {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 16px;
}
.show-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
}
.show-row:last-child { border-bottom: none; }
.show-row dt {
  flex: 0 0 130px;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.show-row dd {
  flex: 1;
  font-weight: 500;
  word-break: break-word;
}
@media (max-width: 400px) {
  .show-row dt { flex: 0 0 100px; }
}
/* ─── Lightbox carruél ────────────────────────────────────────────────────────── */

/* Backdrop: degradado según tema */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;

  /* modo claro: degradado blanco → gris suave */
  background: linear-gradient(160deg, rgba(210,225,240,.97) 0%, rgba(240,243,244,.97) 100%);
  animation: lbFadeIn .22s ease;
}
[data-theme="dark"] .lightbox {
  /* modo oscuro: degradado negro azulado */
  background: linear-gradient(160deg, rgba(10,15,25,.97) 0%, rgba(20,26,38,.97) 100%);
}
@keyframes lbFadeIn {
  from { opacity: 0; }
}

/* Contenedor interno: card flotante con la imagen */
.lb-inner {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 780px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  margin: auto;
}

/* Botón cerrar — SIEMPRE arriba a la derecha, sobre todo */
.lb-close {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 510;
  background: rgba(0,0,0,.38);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, transform .15s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lb-close:hover { background: rgba(0,0,0,.58); transform: scale(1.1); }

.lb-rotate {
  position: fixed;
  top: 12px;
  right: 58px;
  z-index: 510;
  background: rgba(0,0,0,.38);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s, transform .2s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lb-rotate:hover { background: rgba(0,0,0,.58); transform: rotate(90deg) scale(1.1); }

.lb-download {
  position: fixed;
  top: 12px;
  right: 104px;
  z-index: 510;
  background: rgba(0,0,0,.38);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.25);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.3rem;
  font-weight: bold;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .15s;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lb-download:hover { background: rgba(0,0,0,.58); transform: scale(1.1); }

/* Contador centrado encima de la imagen */
.lb-header {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 56px 8px;   /* hueco a la derecha para el botón cerrar */
  flex-shrink: 0;
}
.lb-counter {
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: 3px 12px;
  border-radius: 20px;
  background: rgba(0,0,0,.18);
  color: #fff;
}
[data-theme="dark"] .lb-counter { background: rgba(255,255,255,.12); }

/* Stage: área de la imagen */
.lb-stage {
  flex: 1;
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
  min-height: 0;
}
.lb-track {
  display: flex;
  height: 100%;
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  will-change: transform;
  cursor: grab;
}
.lb-track.is-dragging {
  transition: none;
  cursor: grabbing;
}
.lb-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
}
.lb-slide img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  border-radius: 10px;
  transition: transform .3s ease;
  box-shadow: 0 8px 40px rgba(0,0,0,.28);
}

/* Flechas navegación */
.lb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.28);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 12px;
  padding: 14px 9px;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: background .15s;
  z-index: 5;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.lb-arrow:hover { background: rgba(0,0,0,.50); }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }

/* Puntos indicadores */
.lb-dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding: 10px 0 20px;
  flex-shrink: 0;
}
.lb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0,0,0,.22);
  transition: background .2s, transform .2s;
  flex-shrink: 0;
}
[data-theme="dark"] .lb-dot { background: rgba(255,255,255,.25); }
.lb-dot.active {
  background: var(--primary);
  transform: scale(1.35);
}
[data-theme="dark"] .lb-dot.active { background: #fff; }

/* Thumbnail clickeable → zoom */
.li-thumb { cursor: zoom-in; }
/* ─── Botón QR en bottom nav ─────────────────────────────────────────────────── */
.nav-qr-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  color: var(--text-muted);
  font-size: .65rem;
  padding: 6px 2px;
  border: none;
  background: none;
  cursor: pointer;
  transition: color .15s;
}
.nav-qr-btn:active, .nav-qr-btn:hover { color: var(--primary); }
.nav-qr-btn .nav-icon { width: 22px; height: 22px; }

/* ─── QR Scanner Modal ───────────────────────────────────────────────────────── */
.qr-modal { max-width: 440px; }
.qr-video-wrap {
  position: relative;
  background: #000;
  width: 100%;
  overflow: hidden;
  border-radius: 0 0 0 0;
  line-height: 0;
}
#qr-video {
  width: 100%;
  max-height: 60vh;
  object-fit: cover;
  display: block;
}
.qr-scan-line {
  position: absolute;
  left: 12%;
  right: 12%;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  box-shadow: 0 0 6px var(--primary);
  animation: qr-sweep 2s ease-in-out infinite;
  top: 15%;
}
@keyframes qr-sweep {
  0%   { top: 15%; opacity: 1; }
  50%  { top: 80%; opacity: 1; }
  100% { top: 15%; opacity: 1; }
}
.qr-status {
  text-align: center;
  padding: 14px 16px;
  font-size: .9rem;
  color: var(--text-muted);
}

/* ─── Etiquetas PDF ──────────────────────────────────────────────────────────── */
.etq-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0 10px;
  margin-bottom: 10px;
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: var(--bg);
}
.etq-count {
  font-size: .85rem;
  color: var(--text-muted);
  font-weight: 500;
}
.etq-sel-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  align-items: center;
}
/* Checkbox al inicio de cada fila */
.li-check-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding-right: 2px;
}
.li-check {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--primary);
  flex-shrink: 0;
}
/* Fila seleccionada */
.etq-lista .etq-item {
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background .15s, border-color .15s, box-shadow .15s;
}
.etq-lista .etq-item.selected {
  background: var(--primary-lt);
  border-color: var(--primary);
}
[data-theme="dark"] .etq-lista .etq-item.selected {
  background: var(--primary-lt);
  border-color: var(--primary);
}
/* Precios con oferta */
.li-price-orig {
  text-decoration: line-through;
  color: var(--text-muted);
  font-weight: 400;
  font-size: .82rem;
  margin-right: 4px;
}
.li-price-oferta {
  color: var(--danger);
  font-weight: 700;
}

/* ─── Responsive tablet ──────────────────────────────────────────────────────── */
@media (min-width: 600px) {
  .main-content { padding: 20px; }
  .modal { border-radius: var(--radius); max-width: 560px; margin: auto; }
  .modal-overlay { align-items: center; }
  .dashboard-grid { gap: 16px; }
}
