/* ─── 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  { font-size: 3rem; text-align: center; margin-bottom: 8px; }
.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; }

/* ─── 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 .15s;
  max-width: 160px;
  background: rgba(255,255,255,.18);
  border: 1.5px 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); }
.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  { font-size: 1.5rem; }
.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 { font-size: 1.2rem; width: 24px; text-align: center; }

/* ─── 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  { font-size: 1.3rem; line-height: 1; }
.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 {
  font-size: 1.1rem;
  padding: 6px;
  border-radius: 6px;
  color: var(--text-muted);
  transition: background .15s;
}
.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; }

/* ─── Filtros / Page-top ─────────────────────────────────────────────────────── */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.input-search { flex: 1 1 140px; min-width: 0; }
.input-select { flex: 1 1 120px; 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: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: box-shadow .15s, background .25s;
}
.list-item:active { box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.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;
}
.li-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

/* ─── 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; }

/* ─── Dashboard ──────────────────────────────────────────────────────────────── */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  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:active { transform: scale(.96); }
.card-icon  { font-size: 1.8rem; }
.card-count { font-size: 1.6rem; font-weight: 700; color: var(--primary); }
.card-label { font-size: .7rem; color: var(--text-muted); text-align: center; }
.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-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);
}
.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;
  text-align: center;
  padding: 6px;
  font-size: .85rem;
  font-weight: 600;
  z-index: 95;
}

/* ─── 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: flex-start; }
.mt-12 { margin-top: 12px; }
.mt-20 { margin-top: 20px; }
/* ─── 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); }

/* 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;
  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; }
/* ─── 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; }
}
