:root {
  --primary: #2E7CF6;
  --primary-dark: #1D5FD1;
  --primary-light: #EAF2FF;
  --accent: #00A650;
  --accent-dark: #007a3c;
  --bg: #F5F0E6;
  --white: #FFFFFF;
  --text: #1A1A1A;
  --text-muted: #666666;
  --text-light: #999999;
  --border: #E0E5EE;
  --danger: #D63B3B;
  --warning: #F5A623;
  --orange: var(--primary);
  --shadow-sm: 0 1px 4px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --radius: 8px;
  --radius-lg: 12px;
  /* Variables de tema personalizado (Web > Temas, en gestion) -- sin personalizacion
     guardada quedan en estos valores por defecto, iguales al look de siempre. */
  --tarjeta-fondo: #ffffff;
  --tarjeta-texto: #2b2a26;
  --tarjeta-texto-secundario: #8a8374;
  --precio-venta: #00A650;
  --precio-sugerido: #c8a000;
}
/* var(--text) sigue como esta (clara en los temas oscuros) a proposito -- la sigue usando
   el header, los inputs y botones que estan sobre var(--white), tocarla global rompe esos.
   Pero el fondo de pagina ahora es el mismo crema claro en todos los temas, asi que los
   titulos de seccion ("Rubros"/"Productos"), que se apoyan directo sobre ese fondo,
   necesitan un color fijo oscuro en vez de var(--text) -- si no, en los temas oscuros
   quedan invisibles. */
.section-title { color: #2b2a26; }

/* Tema "Estandar": sigue el sistema de cada visitante -- solo entra si el admin no forzo
   ninguno de los temas de arriba a mano (esos ganan siempre). */
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="personalizado"]) {
    --primary: #5B9BFF;
    --primary-dark: #1D5FD1;
    --primary-light: #16233A;
    --accent: #00C853;
    --accent-dark: #007a3c;
    --bg: #F5F0E6;
    --white: #1B2130;
    --text: #E8ECF1;
    --text-muted: #9AA3B2;
    --text-light: #6B7484;
    --border: #2A3242;
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.35);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.45);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.55);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { overflow-y: scroll; scrollbar-gutter: stable; }
body { font-family: Arial, sans-serif; background: var(--bg); color: var(--text); font-size: 14px; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ===== MINI BANNER ===== */
#mini-banner {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-bottom: 3px solid #cc5500;
  user-select: none;
}
#mini-banner strong { font-weight: 800; }

/* ===== HEADER ===== */
#header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}
#header-filtros { max-width: 100%; }
.busq-tab-h {
  background: none; border: 1.5px solid transparent; color: var(--text-muted);
  font-size: 13px; font-weight: 600; padding: 4px 14px;
  border-radius: 20px; cursor: pointer; transition: all 0.2s;
  white-space: nowrap;
}
/* Fondo solido (no var(--white)) -- en temas oscuros (dorado, oscuro, turbo, aurora)
   var(--white) es un tono oscuro, y el texto var(--primary) quedaba casi invisible contra
   ese fondo. Mismo criterio que .btn-ingresar/.btn-cargar-mas: color solido + texto blanco
   garantiza contraste sin importar el tema. */
.busq-tab-h.active { background: var(--primary); color: #fff; border: 1.5px solid var(--primary); font-weight: 700; }
.header-inner {
  width: 100%;
  padding: 16px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
.header-logo {
  flex-shrink: 0;
  width: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  user-select: none;
}
.header-logo-circle {
  flex-shrink: 0; width: 115px; height: 115px; display: flex; align-items: center; justify-content: center;
}
.header-logo-circle img { width: 100%; height: 100%; object-fit: contain; }
.header-logo .logo-text {
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.header-logo .logo-text-linea1,
.header-logo .logo-text-linea2 {
  font-weight: 800; line-height: 1.15; white-space: nowrap;
  background: linear-gradient(90deg, var(--text) 0%, var(--text) 35%, var(--primary) 50%, var(--text) 65%, var(--text) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: logoShine 5s linear infinite;
}
.header-logo .logo-text-linea1,
.header-logo .logo-text-linea2 { font-size: 31px; }
@keyframes logoShine {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.header-search { width: 621px; max-width: 100%; flex: 1 1 260px; min-width: 260px; display: flex; flex-direction: column; align-items: center; gap: 0; margin-top: 8px; }
.search-box {
  display: flex;
  width: 100%; max-width: 900px;
  border: 1.5px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  background: #f5f6f8;
  border-color: var(--primary);
  box-shadow: 0 4px 18px rgba(46,124,246,0.3);
}
.search-box select {
  border: none; outline: none;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text-muted);
  background: var(--white);
  border-right: 1px solid var(--border);
  cursor: pointer;
  min-width: 130px;
}
.search-box input {
  flex: 1; border: none; outline: none;
  padding: 10px 16px;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
}
.search-box button {
  background: var(--primary-dark);
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  /* --white en este proyecto es la superficie de tarjeta (no un blanco real): en 8 de 12
     temas queda tan oscura como --primary-dark y el icono (currentColor) desaparecia.
     Blanco fijo porque el proposito aca es "icono claro sobre boton oscuro". */
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter 0.2s;
}
.search-box button:hover { filter: brightness(1.15); }
.search-box button svg { width: 20px; height: 20px; }

/* ACCIONES HEADER */
.header-actions { display: flex; align-items: center; gap: 42px; flex-shrink: 0; margin-top: 8px; }

/* PERFIL USUARIO - estilo Google */
.user-profile {
  display: flex; align-items: center; gap: 10px;
  height: 46px;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: var(--shadow-sm);
  border-radius: 28px;
  padding: 5px 16px 5px 5px;
  cursor: pointer;
  min-width: 200px;
}
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: #fff;
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
  flex-shrink: 0;
}
.user-names { display: flex; flex-direction: column; }
.user-names .fantasia { font-size: 13px; font-weight: 700; color: #fff; line-height: 1.2; }
.user-names .razon   { font-size: 11px; color: rgba(255,255,255,0.85); line-height: 1.2; }

.header-action-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  cursor: pointer; text-decoration: none;
  font-size: 11px; color: var(--text-muted);
  transition: color 0.15s;
}
.header-action-btn svg { width: 22px; height: 22px; color: var(--primary); }
.header-action-btn:hover { color: var(--primary); }
.header-action-btn:hover svg { color: var(--primary); }

.cart-wrap { position: relative; }
.cart-badge {
  position: absolute; top: -5px; right: -7px;
  background: var(--primary); color: #fff;
  border-radius: 50%; width: 18px; height: 18px;
  font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid #fff;
  /* JS controla display: none / flex */
}
/* ===== USER DROPDOWN MENU ===== */
.user-menu-wrap { position: relative; }
.user-profile { cursor: pointer; user-select: none; }
.user-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  padding-top: 8px;
  background: transparent;
  min-width: 230px;
  z-index: 300;
}
.user-dropdown-inner {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.user-menu-wrap:hover .user-dropdown { display: block; }
.user-dropdown-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--primary-light);
}
.user-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}
.user-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s;
  cursor: pointer;
}
.user-dropdown-item svg { width: 19px; height: 19px; color: var(--text-muted); flex-shrink: 0; }
.user-dropdown-item:hover { background: var(--bg); }
.user-dropdown-item:hover svg { color: var(--primary); }
.user-dropdown-item--danger { color: var(--danger); }
.user-dropdown-item--danger svg { color: var(--danger); }
.user-dropdown-item--danger:hover { background: #fff5f5; }

/* LOGIN BTN -- solido a proposito: antes era "vidrio" blanco translucido pensado para
   un header oscuro, pero el header real es claro (var(--white)), asi que quedaba
   blanco sobre blanco = invisible. Con fondo solido el contraste queda garantizado
   sin importar el tema (var(--primary-dark) no cambia entre claro/oscuro). */
.btn-ingresar {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 187px;
  height: 46px;
  flex-shrink: 0;
  background: var(--primary-dark);
  border: 2px solid var(--primary-dark);
  border-radius: 24px;
  padding: 0 32px;
  color: #fff; font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: background 0.2s;
}
.btn-ingresar:hover { background: #0A1830; border-color: #0A1830; }
.btn-ingresar svg { width: 20px; height: 20px; }

/* ===== MAIN ===== */
#main { max-width: 100%; margin: 0 auto; padding: 24px 16px; }

/* ===== BANNER CARRUSEL ===== */
.banner-wrap {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f5f6f8;
  height: 126px; width: 100%; max-width: 1382px; margin: 24px auto 32px;
}
.banner-slides { display: flex; height: 100%; transition: transform 0.5s ease; }
.banner-slide {
  min-width: 100%; height: 100%;
  position: relative; display: flex;
  align-items: center; justify-content: center;
  padding: 12px 60px;
  background: linear-gradient(135deg, #2E7CF6 0%, #1D5FD1 100%);
  overflow: hidden;
}
.banner-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 0; }
.banner-slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.15) 55%, rgba(0,0,0,0) 75%); z-index: 1; }
.banner-content { position: relative; z-index: 2; max-width: none; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; user-select: none; }
.banner-content h2 { font-size: 26px; font-weight: 800; color: #fff; margin-bottom: 6px; line-height: 1.2; white-space: nowrap; }
.banner-content p  { font-size: 15px; color: rgba(255,255,255,0.88); margin-bottom: 10px; white-space: nowrap; }
.banner-content a  { display: inline-block; background: #ffffff; color: var(--primary); font-weight: 700; padding: 12px 28px; border-radius: 28px; font-size: 15px; transition: all 0.2s; }
.banner-content a:hover { background: var(--primary-light); }
.banner-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; flex-direction: column; gap: 12px; color: var(--primary); opacity: 0.5; }
.banner-placeholder svg { width: 48px; height: 48px; }
.banner-nav { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; }
.banner-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.45); cursor: pointer; transition: background 0.2s; }
.banner-dot.active { background: #fff; }
.banner-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.22); border: 1.5px solid rgba(255,255,255,0.5); cursor: pointer; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; transition: background 0.2s; z-index: 2; }
.banner-arrow:hover { background: rgba(255,255,255,0.42); }
.banner-arrow.prev { left: 14px; }
.banner-arrow.next { right: 14px; }
.banner-arrow svg { width: 22px; height: 22px; }

/* ===== SECCIONES ===== */
.section-title { font-size: 21px; font-weight: 700; color: var(--text); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.section-title::after { content: ''; flex: 1; height: 2px; background: var(--border); display: block; }

/* ===== RUBROS ===== */
/* overflow-x:auto sin overflow-y explicito fuerza overflow-y:auto tambien (regla del spec) --
   sin padding-top, el translateY y el box-shadow del hover de .rubro-card se recortaban arriba. */
.rubros-grid { display: flex; gap: 12px; flex-wrap: nowrap; overflow-x: auto; margin-bottom: 32px; padding-top: 6px; padding-bottom: 4px; padding-left: 4px; padding-right: 4px; scrollbar-width: none; -ms-overflow-style: none; }
.rubros-grid::-webkit-scrollbar { display: none; }
/* Tarjetas blancas fijas (no var(--white), esa la sigue usando el header) en los 12 temas,
   mismo borde que .art-card (1px solid var(--border)) para que ambos tipos de tarjeta
   se vean iguales. El hover NUNCA cambia border-width -- con alto automatico, un borde mas
   grueso suma altura real y empuja/reflowea el resto de la fila (bug real, encontrado en
   "dorado": ver box-shadow de abajo, que da el mismo efecto de foco sin tocar el tamano). */
.rubro-card { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; padding: 12px 8px; background: var(--tarjeta-fondo); border: 1px solid var(--border); border-radius: var(--radius-lg); width: 100px; flex-shrink: 0; transition: all 0.2s; text-align: center; }
.rubro-card:hover, .rubro-card.active { border-color: var(--primary); background: var(--primary-light); box-shadow: var(--shadow-md), 0 0 0 2px var(--primary); }
.rubro-card img { width: 64px; height: 64px; object-fit: contain; background: var(--tarjeta-fondo); border-radius: 50%; border: 2px solid var(--border); }
.rubro-card .rubro-img-placeholder { width: 64px; height: 64px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; border: 2px solid var(--border); }
.rubro-card .rubro-img-placeholder svg { width: 28px; height: 28px; color: var(--primary); }
/* Color fijo (no var(--text)) -- la tarjeta ahora es blanca en todos los temas, y en los
   temas oscuros var(--text) es claro (pensado para fondo oscuro), quedaria invisible. */
.rubro-card span { font-size: 12px; font-weight: 600; color: var(--tarjeta-texto); line-height: 1.2; }
.rubro-card:hover span, .rubro-card.active span { color: var(--primary); }

/* ===== ARTICULOS ===== */
.articulos-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.articulos-count { font-size: 13px; color: var(--text-muted); }
.articulos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 18px; margin-bottom: 24px; }

/* ===== SKELETON (placeholders mientras carga) ===== */
@keyframes skeleton-shimmer { 0% { background-position: -300px 0; } 100% { background-position: 300px 0; } }
.skeleton-block {
  background: linear-gradient(90deg, var(--border) 25%, #eef1f6 37%, var(--border) 63%);
  background-size: 600px 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
.skeleton-card { height: 300px; border-radius: var(--radius-lg); }
/* Fondo de tarjeta fijo color hueso claro (no sigue el tema oscuro/claro), a proposito --
   por eso el texto de adentro tambien usa colores fijos oscuros en vez de var(--text)/
   var(--text-muted), que en temas oscuros son claros y quedarian invisibles sobre hueso. */
.art-card { background: var(--tarjeta-fondo); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; display: flex; flex-direction: column; }
.art-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.art-card-img { width: 100%; height: 170px; background: var(--tarjeta-fondo); display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.art-card-img img { width: 100%; height: 100%; object-fit: contain; }
.art-card-img .img-placeholder { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--tarjeta-texto-secundario); }
.art-card-img .img-placeholder svg { width: 36px; height: 36px; }
.art-card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.art-card-marca { font-size: 11px; color: var(--tarjeta-texto-secundario); text-transform: uppercase; font-weight: 600; }
.art-card-desc { font-size: 13px; font-weight: normal; color: var(--tarjeta-texto); line-height: 1.3; flex: 1; }
.art-card-cod { font-size: 13px; color: var(--tarjeta-texto-secundario); }
.art-card-codint { font-size: 15px; font-weight: 700; color: var(--tarjeta-texto); margin-bottom: 4px; }
.art-card-precio { font-size: 20px; font-weight: 800; color: var(--precio-venta); margin-top: 6px; }
.art-card-noprecio { display: block; margin-top: 8px; color: var(--danger); font-size: 14px; font-weight: 800; }
.art-card-footer { padding: 10px 12px; border-top: 1px solid var(--border); }
.btn-carrito { width: 100%; background: var(--primary); color: #fff; border: 2px solid rgba(0,0,0,0.3); border-radius: 6px; padding: 9px; font-size: 13px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: filter 0.2s; }
.btn-carrito:hover { filter: brightness(1.08); }
.btn-carrito-oferta { background: #c0392b; border-color: rgba(0,0,0,0.3); }
.btn-carrito-oferta:hover { background: #a5311f; }

/* ===== TARJETA DE OFERTA DESTACADA (misma tarjeta de Productos, version compacta) ===== */
.tarjeta-oferta-compacta .art-card-img { height: 90px; }
.tarjeta-oferta-compacta .art-card-body { padding: 8px; gap: 3px; }
.tarjeta-oferta-compacta .art-card-codint { font-size: 12px; margin-bottom: 0; }
.tarjeta-oferta-compacta .art-card-desc { font-size: 11px; }
.tarjeta-oferta-compacta .art-card-cod { font-size: 9px; }
.tarjeta-oferta-compacta .art-precios { margin: 6px 0 2px; gap: 2px; }
.tarjeta-oferta-compacta .precio-label { font-size: 9px; }
.tarjeta-oferta-compacta .precio-valor { font-size: 12px; }
.tarjeta-oferta-compacta .art-card-footer { padding: 6px 8px; }
.tarjeta-oferta-compacta .art-cantidad-wrap { margin-bottom: 6px; gap: 8px; }
.tarjeta-oferta-compacta .btn-cant { width: 26px; height: 26px; font-size: 16px; }
.tarjeta-oferta-compacta .art-cantidad { font-size: 14px; min-width: 20px; }
.tarjeta-oferta-compacta .btn-carrito { padding: 6px; font-size: 11px; }
.btn-ver-dist { width: 100%; background: var(--primary); color: #fff; border: 2px solid rgba(0,0,0,0.3); border-radius: 6px; padding: 9px; font-size: 13px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: filter 0.2s; }
.btn-ver-dist:hover { filter: brightness(1.08); }

/* ===== LOADER ===== */
#loader { text-align: center; padding: 24px; color: var(--text-muted); font-size: 13px; display: none; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--primary); border-radius: 50%; animation: spin 0.7s linear infinite; margin: 0 auto 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
#fin-resultados { text-align: center; padding: 20px; color: var(--text-light); font-size: 13px; display: none; }

/* ===== FOOTER ===== */
/* Texto solido: con el 0.8 original varios temas (oscuro 2.30, turbo 2.60, dorado 2.05)
   quedaban muy por debajo de AA. Incluso al 100% de opacidad esos temas (--primary
   claro/celeste/dorado) no llegan a 4.5:1 -- ver reporte, requeriria tocar --primary. */
#footer { background: var(--primary-dark); color: #ffffff; margin-top: 48px; }
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 36px 24px 20px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-logo-area { display: flex; flex-direction: column; gap: 12px; user-select: none; }
.footer-logo img { height: 72px; object-fit: contain; }
.footer-logo .logo-text { font-size: 18px; font-weight: 700; color: #fff; }
.footer-desc { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.6); }
.footer-contact { display: flex; flex-direction: column; gap: 8px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: rgba(255,255,255,0.7); }
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; color: rgba(255,255,255,0.7); }
.footer-social h4 { font-size: 14px; font-weight: 600; color: #fff; margin-bottom: 12px; }
.social-icons { display: flex; gap: 10px; }
.social-icon { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,0.16); border: 1px solid rgba(255,255,255,0.25); display: flex; align-items: center; justify-content: center; transition: background 0.2s; color: #fff; }
.social-icon:hover { background: var(--primary); }
.social-icon svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding: 14px 24px; text-align: center; font-size: 12px; color: rgba(255,255,255,0.4); max-width: 1280px; margin: 0 auto; }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 0; }

/* ===== WHATSAPP ===== */
#whatsapp-btn { position: fixed; bottom: 24px; right: 24px; z-index: 200; width: 56px; height: 56px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(37,211,102,0.45); transition: transform 0.2s; }
#whatsapp-btn:hover { transform: scale(1.09); }
#whatsapp-btn svg { width: 32px; height: 32px; fill: #fff; }

/* ===== SIN RESULTADOS ===== */
.no-results { text-align: center; padding: 48px 20px; color: var(--text-muted); grid-column: 1/-1; }
.no-results svg { width: 48px; height: 48px; opacity: 0.3; margin: 0 auto 12px; }
.no-results p { font-size: 15px; }

/* ===== MODAL DISTRIBUIDORES ===== */
#modal-dist { display: none; }
#mapa-dist { z-index: 1; }
.leaflet-container { font-family: inherit; }

/* ===== MODAL DISTRIBUIDORES ===== */
#modal-dist { display:none; }

/* PEDIDOS */
.btn-qty { width:32px;height:32px;border:2px solid var(--border);border-radius:7px;background:var(--white);cursor:pointer;font-size:18px;font-weight:700;display:flex;align-items:center;justify-content:center;transition:all 0.15s;color:var(--text); }
.btn-qty:hover { border-color:var(--primary);color:var(--primary);background:var(--primary-light); }
.btn-quitar { font-size:12px;color:var(--danger);background:none;border:none;cursor:pointer;margin-top:4px;font-weight:600;text-decoration:underline; }
.btn-quitar:hover { color:#b00; }

/* ===== FILTROS BUSQUEDA (combos bajo el header) ===== */
#filtros-busqueda select {
    padding:8px 12px; border:1.5px solid #d1d5db; border-radius:8px;
    font-size:13px; background:var(--white); color:var(--text); outline:none; cursor:pointer; min-width:160px;
}
#filtros-busqueda select:focus { border-color:#2E7CF6; }
.btn-limpiar-busqueda {
    padding:7px 14px; background:#fff; border:1.5px solid #dc2626; color:#dc2626;
    border-radius:6px; font-size:12px; font-weight:600; cursor:pointer; box-shadow:0 1px 4px rgba(0,0,0,0.15);
}
.btn-limpiar-busqueda:hover { background:#fef2f2; }

/* ===== ARTICULOS HEADER ===== */
.articulos-header { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin:16px 0 8px; }
.articulos-header .section-title { margin:0; }

/* ===== PRECIOS ===== */
.art-precios { margin:10px 0 6px; display:flex; flex-direction:column; gap:4px; }
.art-precio-row { display:flex; flex-direction:column; }
.precio-label { font-size:10px; color:var(--tarjeta-texto-secundario); text-transform:uppercase; letter-spacing:0.5px; }
.precio-valor { font-size:15px; font-weight:bold; line-height:1.2; }
.precio-valor.lista    { color:var(--precio-venta); }
.precio-valor.sugerido { color:var(--precio-sugerido); }
.mad-precio-row { display:flex; flex-direction:column; margin-bottom:6px; }

/* ===== CANTIDAD ===== */
.art-cantidad-wrap {
    display:flex; align-items:center; gap:12px; margin-bottom:10px;
    justify-content:center;
}
.btn-cant {
    width:38px; height:38px; border:2px solid var(--border); background:var(--white);
    font-size:22px; font-weight:300; cursor:pointer; color:var(--text);
    border-radius:50%; display:flex; align-items:center; justify-content:center;
    line-height:1; transition:all .15s;
}
.btn-cant:hover { border-color:var(--primary); color:var(--primary); background:var(--primary-light); }
.art-cantidad {
    min-width:32px; text-align:center; font-size:20px; font-weight:700;
    color:var(--tarjeta-texto); user-select:none;
}

/* ===== BOTON CARGAR MAS ===== */
.btn-cargar-mas {
    display:inline-flex; align-items:center; gap:6px;
    padding:14px 60px; background:var(--primary); color:#fff;
    border:2px solid rgba(0,0,0,0.3); border-radius:50px; font-size:15px; font-weight:700;
    cursor:pointer; box-shadow:0 4px 16px rgba(123,92,224,0.3);
    transition:all .2s;
}
.btn-cargar-mas:hover {
    filter:brightness(1.08); box-shadow:0 6px 20px rgba(123,92,224,0.4);
    transform:translateY(-1px);
}

/* ===== TABS BUSQUEDA ===== */
#busqueda-panel { margin: 12px 0 4px; }
.busq-tabs { display:flex; align-items:center; gap:6px; flex-wrap:wrap; margin-bottom:10px; }
.busq-tab {
    padding:8px 20px; border:2px solid #d1d5db; border-radius:50px;
    background:#fff; font-size:13px; font-weight:600; color:#555; cursor:pointer; transition:all .15s;
}
.busq-tab.active { border-color:#2E7CF6; background:#fff; color:#2E7CF6; font-weight:700; }
.busq-tab:hover:not(.active) { border-color:#2E7CF6; color:#2E7CF6; }
.busq-form {
    display:flex; gap:10px; flex-wrap:wrap; align-items:center; padding:6px 0;
}
.busq-form select {
    padding:8px 12px; border:1.5px solid #d1d5db; border-radius:8px;
    font-size:13px; background:var(--white); color:var(--text); outline:none; cursor:pointer; min-width:160px;
}
.busq-form select:focus { border-color:#2E7CF6; }
