/* =====================================================
   ESTILOS GLOBALES - CATÁLOGO DE PRODUCTOS
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;1,14..32,400&display=swap');

:root {
  --primary:       #6366f1;
  --primary-dark:  #4f46e5;
  --primary-light: #818cf8;
  --secondary:     #ec4899;
  --success:       #10b981;
  --warning:       #f59e0b;
  --danger:        #ef4444;
  --info:          #06b6d4;

  --bg:            #0f0f23;
  --bg-card:       #1a1a3e;
  --bg-surface:    #252550;
  --border:        rgba(255,255,255,.1);

  --text-primary:  #f1f5f9;
  --text-secondary:#94a3b8;
  --text-muted:    #64748b;

  --radius-sm:  8px;
  --radius-md:  14px;
  --radius-lg:  20px;
  --radius-xl:  28px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,.3);
  --shadow-md:  0 8px 24px rgba(0,0,0,.4);
  --shadow-lg:  0 20px 50px rgba(0,0,0,.5);
  --shadow-glow:0 0 30px rgba(99,102,241,.25);

  --transition: .25s cubic-bezier(.4,0,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── LINKS ── */
a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary); }

/* ────────────────────────────────────────────────────
   NAVBAR
───────────────────────────────────────────────────── */
.navbar-custom {
  background: rgba(15,15,35,.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: .9rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar-custom .navbar-brand {
  font-weight: 800;
  font-size: 1.4rem;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.navbar-custom .nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
  padding: .5rem .9rem !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
  color: var(--text-primary) !important;
  background: rgba(99,102,241,.18);
}
.navbar-custom .navbar-toggler { border-color: var(--border); }
.navbar-custom .navbar-toggler-icon {
  filter: invert(1);
}

/* ── BADGE CATEGORÍAS EN NAV ── */
.nav-badge {
  font-size: .7rem;
  background: var(--primary);
  color: #fff;
  padding: 1px 7px;
  border-radius: 20px;
  margin-left: 5px;
}

/* ────────────────────────────────────────────────────
   HERO SECTION
───────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 50%, #16163a 100%);
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(99,102,241,.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(236,72,153,.12) 0%, transparent 40%);
}
.hero-content { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p { color: var(--text-secondary); font-size: 1.1rem; max-width: 540px; }

/* Decorative orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  animation: float 6s ease-in-out infinite;
}
.hero-orb-1 { width:320px; height:320px; background:var(--primary); top:-80px; right:-60px; animation-delay:0s; }
.hero-orb-2 { width:200px; height:200px; background:var(--secondary); bottom:-40px; left:10%; animation-delay:3s; }
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-20px); }
}

/* Contador de productos */
.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: .45rem 1.1rem;
  font-size: .9rem;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
}
.stat-pill strong { color: var(--text-primary); }

/* ────────────────────────────────────────────────────
   FILTRO DE CATEGORÍAS
───────────────────────────────────────────────────── */
.filter-section {
  background: rgba(26,26,62,.6);
  border-bottom: 1px solid var(--border);
  padding: 1.2rem 0;
  position: sticky;
  top: 65px;
  z-index: 900;
  backdrop-filter: blur(10px);
}
.filter-scrollable {
  display: flex;
  gap: .6rem;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.filter-scrollable::-webkit-scrollbar { display: none; }
.filter-btn {
  flex-shrink: 0;
  padding: .45rem 1.1rem;
  border-radius: 30px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.filter-btn:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
  background: rgba(99,102,241,.1);
}
.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 15px rgba(99,102,241,.35);
}

/* ────────────────────────────────────────────────────
   PRODUCT GRID & CARDS
───────────────────────────────────────────────────── */
.products-section { padding: 3rem 0 5rem; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(99,102,241,.4);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.product-card-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--bg-surface);
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

/* Badge estado */
.badge-estado {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: .3rem .75rem;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
  backdrop-filter: blur(8px);
}
.badge-disponible {
  background: rgba(16,185,129,.2);
  border: 1px solid rgba(16,185,129,.4);
  color: #34d399;
}
.badge-no-disponible {
  background: rgba(239,68,68,.2);
  border: 1px solid rgba(239,68,68,.4);
  color: #f87171;
}

/* Badge descuento */
.badge-descuento {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, var(--secondary), #db2777);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .3rem .7rem;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(236,72,153,.4);
}

.product-card-body { padding: 1.25rem; }

.product-category {
  font-size: .72rem;
  font-weight: 600;
  color: var(--primary-light);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: .4rem;
}

.product-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .5rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-description {
  font-size: .84rem;
  color: var(--text-muted);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.product-pricing { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }

.price-final {
  font-size: 1.25rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.price-original {
  font-size: .85rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.price-no-discount {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

/* Botón ver detalle */
.btn-card {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: .6rem;
  border-radius: var(--radius-sm);
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.3);
  color: var(--primary-light);
  font-size: .85rem;
  font-weight: 600;
  text-align: center;
  transition: all var(--transition);
}
.btn-card:hover {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 20px rgba(99,102,241,.35);
}

/* Estado no disponible - overlay */
.product-card.no-disponible { opacity: .65; }
.product-card.no-disponible::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15,15,35,.3);
  pointer-events: none;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: 5rem 1rem;
  color: var(--text-muted);
  grid-column: 1 / -1;
}
.empty-state i { font-size: 4rem; opacity: .3; margin-bottom: 1rem; display: block; }
.empty-state p { font-size: 1.1rem; }

/* ────────────────────────────────────────────────────
   MODAL DETALLE PRODUCTO
───────────────────────────────────────────────────── */
.modal-custom .modal-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  color: var(--text-primary);
}
.modal-custom .modal-header {
  border-bottom-color: var(--border);
  padding: 1.5rem;
}
.modal-custom .modal-footer {
  border-top-color: var(--border);
}
.modal-custom .btn-close { filter: invert(1); }

/* ────────────────────────────────────────────────────
   ADMIN LAYOUT
───────────────────────────────────────────────────── */
.admin-wrapper { display: flex; min-height: 100vh; }

/* Sidebar */
.admin-sidebar {
  width: 260px;
  background: linear-gradient(180deg, #0f0f23 0%, #1a1a3e 100%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  z-index: 100;
  transition: transform var(--transition);
}
.admin-sidebar-header {
  padding: 1.75rem 1.5rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.admin-sidebar-logo {
  font-size: 1.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary-light), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.admin-sidebar-subtitle {
  font-size: .72rem;
  color: var(--text-muted);
  margin-top: .15rem;
}
.admin-nav { flex: 1; padding: 1rem 0; overflow-y: auto; }
.admin-nav-section {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  padding: .75rem 1.5rem .35rem;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1.5rem;
  color: var(--text-secondary);
  font-size: .9rem;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
}
.admin-nav-link i { font-size: 1.05rem; width: 20px; }
.admin-nav-link:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,.05);
}
.admin-nav-link.active {
  color: var(--primary-light);
  background: rgba(99,102,241,.12);
}
.admin-nav-link.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
}
.admin-sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
}

/* Main content */
.admin-main {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Topbar */
.admin-topbar {
  background: rgba(15,15,35,.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 99;
}
.admin-page-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
}
.admin-user-pill {
  display: flex;
  align-items: center;
  gap: .6rem;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: .4rem .9rem;
  font-size: .85rem;
  color: var(--text-secondary);
}
.admin-user-pill .avatar {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; color: #fff;
}

/* Admin body */
.admin-body { padding: 2rem; flex: 1; }

/* ── STAT CARDS (DASHBOARD) ── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: all var(--transition);
}
.stat-card:hover {
  border-color: rgba(99,102,241,.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.stat-icon {
  width: 54px; height: 54px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-icon-primary { background: rgba(99,102,241,.15); color: var(--primary-light); }
.stat-icon-success { background: rgba(16,185,129,.15); color: #34d399; }
.stat-icon-warning { background: rgba(245,158,11,.15); color: #fcd34d; }
.stat-icon-danger  { background: rgba(239,68,68,.15);  color: #f87171; }
.stat-info h3 { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.stat-info p  { font-size: .8rem; color: var(--text-muted); margin: .25rem 0 0; }

/* ── TABLE ── */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.table-card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.table-card-header h5 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}
.table-custom { 
  margin: 0; 
  --bs-table-bg: transparent;
  --bs-table-color: var(--text-secondary);
  color: var(--text-secondary);
  background-color: transparent !important;
}
.table-custom thead th {
  background: rgba(255,255,255,.04);
  color: var(--text-muted);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  border-bottom: 1px solid var(--border);
  padding: .9rem 1.2rem;
  white-space: nowrap;
}
.table-custom tbody td {
  border-bottom: 1px solid rgba(255,255,255,.05);
  padding: .85rem 1.2rem;
  vertical-align: middle;
  color: var(--text-secondary);
  font-size: .88rem;
}
.table-custom tbody tr:last-child td { border-bottom: none; }
.table-custom tbody tr:hover td { background: rgba(255,255,255,.025); }

.thumb-table {
  width: 44px; height: 44px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* Badges */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .3rem .75rem;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
}
.badge-success-pill { background:rgba(16,185,129,.15); color:#34d399; border:1px solid rgba(16,185,129,.3); }
.badge-danger-pill  { background:rgba(239,68,68,.15);  color:#f87171; border:1px solid rgba(239,68,68,.3); }
.badge-warning-pill { background:rgba(245,158,11,.15); color:#fcd34d; border:1px solid rgba(245,158,11,.3); }
.badge-info-pill    { background:rgba(6,182,212,.15);  color:#67e8f9; border:1px solid rgba(6,182,212,.3); }

/* Action buttons */
.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: .85rem;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-edit  { background:rgba(99,102,241,.15); color:var(--primary-light); }
.btn-edit:hover  { background:var(--primary); color:#fff; }
.btn-delete{ background:rgba(239,68,68,.15);  color:#f87171; }
.btn-delete:hover{ background:var(--danger);  color:#fff; }

/* ── FORMS ── */
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.75rem;
}
.form-label-custom {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: .45rem;
}
.form-control-custom, .form-select-custom {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: .65rem 1rem;
  font-size: .9rem;
  font-family: inherit;
  transition: all var(--transition);
  outline: none;
}
.form-control-custom:focus, .form-select-custom:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.2);
}
.form-control-custom::placeholder { color: var(--text-muted); }
textarea.form-control-custom { resize: vertical; min-height: 100px; }
.form-select-custom option { background: var(--bg-card); }

/* ── BUTTONS ── */
.btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.4rem;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99,102,241,.4);
  color: #fff;
}
.btn-secondary-custom {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.4rem;
  background: rgba(255,255,255,.07);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.btn-secondary-custom:hover {
  background: rgba(255,255,255,.12);
  color: var(--text-primary);
}
.btn-danger-custom {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .65rem 1.4rem;
  background: rgba(239,68,68,.15);
  color: #f87171;
  border: 1px solid rgba(239,68,68,.3);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}
.btn-danger-custom:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

/* ── ALERTS ── */
.alert-custom {
  padding: .9rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1.25rem;
}
.alert-success-custom { background:rgba(16,185,129,.12); border:1px solid rgba(16,185,129,.3); color:#34d399; }
.alert-danger-custom  { background:rgba(239,68,68,.12);  border:1px solid rgba(239,68,68,.3);  color:#f87171; }

/* ── IMAGE UPLOAD ── */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--primary);
  background: rgba(99,102,241,.06);
}
.upload-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.upload-icon { font-size: 2.5rem; color: var(--text-muted); margin-bottom: .75rem; }
.upload-preview {
  max-width: 180px;
  max-height: 180px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-top: 1rem;
  border: 1px solid var(--border);
}

/* ── LOGIN ── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a3e 40%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}
.login-page::before {
  content:'';
  position:absolute; inset:0;
  background:
    radial-gradient(circle at 25% 40%, rgba(99,102,241,.18) 0%, transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(236,72,153,.13) 0%, transparent 40%);
}
.login-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
}
.login-logo {
  width: 64px; height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1.5rem;
  box-shadow: 0 10px 30px rgba(99,102,241,.4);
}

/* ── SEARCH BAR ── */
.search-wrapper {
  position: relative;
  max-width: 340px;
}
.search-wrapper i {
  position: absolute;
  left: .9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: .9rem;
  pointer-events: none;
}
.search-input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 30px;
  color: var(--text-primary);
  padding: .55rem 1rem .55rem 2.5rem;
  font-size: .875rem;
  font-family: inherit;
  outline: none;
  transition: all var(--transition);
}
.search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,.2);
}
.search-input::placeholder { color: var(--text-muted); }

/* ── SIDEBAR TOGGLE (MOBILE) ── */
.sidebar-toggle-btn {
  display: none;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: .4rem .7rem;
  cursor: pointer;
  font-size: 1.1rem;
}

/* ── FOOTER CATÁLOGO ── */
.catalog-footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: .84rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 991.98px) {
  .admin-sidebar {
    transform: translateX(-100%);
  }
  .admin-sidebar.open {
    transform: translateX(0);
  }
  .admin-main {
    margin-left: 0;
  }
  .sidebar-toggle-btn { display: block; }
  .sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 99;
    backdrop-filter: blur(2px);
  }
  .sidebar-overlay.show { display: block; }
}

@media (max-width: 575.98px) {
  .hero { padding: 3rem 0 2.5rem; }
  .admin-body { padding: 1.25rem; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
}
