/* ══════════════════════════════════════════════
   BAR LM — NEON NOCTURNO THEME
   ══════════════════════════════════════════════ */
:root {
  --bg-void: #06060e;
  --bg-surface: #0c0c18;
  --bg-card: #111125;
  --bg-card-hover: #16163a;
  --neon-primary: #d946ef;
  --neon-secondary: #a855f7;
  --neon-glow: rgba(217, 70, 239, 0.5);
  --neon-glow-strong: rgba(217, 70, 239, 0.8);
  --neon-accent: #e879f9;
  --gold: #fbbf24;
  --gold-dim: rgba(251, 191, 36, 0.15);
  --text-primary: #f0e6f6;
  --text-secondary: #9b8ab0;
  --text-muted: #5e4f73;
  --danger: #ef4444;
  --success: #22c55e;
  --border-subtle: rgba(217, 70, 239, 0.12);
  --border-glow: rgba(217, 70, 239, 0.3);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-display: 'Cinzel', serif;
  --font-body: 'Outfit', sans-serif;
  --font-accent: 'Playfair Display', serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-void);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--neon-primary); border-radius: 4px; }

/* ═══ HERO HEADER ═══ */
.hero {
  position: relative;
  width: 100%;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px 30px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(217, 70, 239, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(168, 85, 247, 0.08) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-void) 0%, var(--bg-surface) 100%);
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-primary), transparent);
  box-shadow: 0 0 15px var(--neon-glow);
}

/* Decorative corners */
.hero-corner { position: absolute; z-index: 1; }
.hero-corner--tl { top: 15px; left: 15px; }
.hero-corner--tr { top: 15px; right: 15px; transform: scaleX(-1); }
.hero-corner--bl { bottom: 15px; left: 15px; transform: scaleY(-1); }
.hero-corner--br { bottom: 15px; right: 15px; transform: scale(-1); }
.hero-corner svg { width: 24px; height: 24px; }

.hero-content { position: relative; z-index: 2; text-align: center; }

/* Crown SVG glow */
.crown-logo {
  width: 260px;
  height: auto;
  margin: 0 auto 6px;
  filter: drop-shadow(0 0 18px var(--neon-glow)) drop-shadow(0 0 40px rgba(217, 70, 239, 0.25));
  animation: crownPulse 3s ease-in-out infinite;
}

@keyframes crownPulse {
  0%, 100% { filter: drop-shadow(0 0 20px var(--neon-glow)) drop-shadow(0 0 40px rgba(217, 70, 239, 0.3)); }
  50% { filter: drop-shadow(0 0 30px var(--neon-glow-strong)) drop-shadow(0 0 60px rgba(217, 70, 239, 0.4)); }
}

.brand-name {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 900;
  letter-spacing: 6px;
  background: linear-gradient(180deg, #fff 20%, var(--neon-accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
  line-height: 1;
  margin-bottom: 6px;
}

.brand-sub {
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--neon-primary);
  opacity: 0.7;
}

.hero-quote {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 18px;
  max-width: 320px;
  line-height: 1.5;
}

/* ═══ SEARCH ═══ */
.search-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 16px 6px;
  background: var(--bg-surface);
  backdrop-filter: blur(12px);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  padding: 10px 18px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-box:focus-within {
  border-color: var(--neon-primary);
  box-shadow: 0 0 20px rgba(217, 70, 239, 0.15);
}

.search-icon {
  color: var(--neon-primary);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
}

.search-box input::placeholder { color: var(--text-muted); }

/* ═══ CATEGORY FILTERS ═══ */
.filters-container {
  position: sticky;
  top: 52px;
  z-index: 99;
  padding: 6px 0 8px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

.filters {
  display: flex;
  gap: 8px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filters::-webkit-scrollbar { display: none; }

.filter-btn {
  flex-shrink: 0;
  padding: 8px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--border-glow);
  color: var(--text-primary);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  border-color: transparent;
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 20px rgba(217, 70, 239, 0.3);
}

/* ═══ MAIN CONTAINER ═══ */
.container {
  padding: 10px 0 100px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-secondary);
  text-align: center;
  padding: 10px 16px 15px;
}

/* ═══ CATEGORY SECTIONS ═══ */
.category-section {
  margin-bottom: 30px;
}

.category-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 3px;
  padding: 0 20px 12px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-glow), transparent);
}

.category-title .cat-icon { font-size: 1.2rem; }

.category-quote {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0 20px 14px;
}

/* ═══ HORIZONTAL SCROLL ═══ */
.horizontal-scroll {
  display: flex;
  gap: 14px;
  padding: 0 20px 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.horizontal-scroll::-webkit-scrollbar { display: none; }

/* ═══ PRODUCT CARDS ═══ */
.card {
  flex-shrink: 0;
  width: 165px;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  cursor: pointer;
  scroll-snap-align: start;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.card:hover {
  border-color: var(--neon-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(217, 70, 239, 0.15), 0 0 0 1px var(--border-glow);
}

.card-img-container {
  position: relative;
  width: 100%;
  height: 130px;
  overflow: hidden;
  background: var(--bg-surface);
}

.card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img-container img { transform: scale(1.08); }

.tag-top {
  position: absolute;
  top: 8px;
  right: 8px;
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 50px;
  letter-spacing: 1px;
  box-shadow: 0 0 10px var(--neon-glow);
}

.badge-agotado {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(6, 6, 14, 0.8);
  z-index: 2;
}

.badge-agotado span {
  background: var(--danger);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  letter-spacing: 1px;
}


.card-body {
  padding: 10px 12px 12px;
}

.card-body h3 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 3px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-body .card-weight {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-price {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--neon-accent);
  text-shadow: 0 0 10px rgba(232, 121, 249, 0.3);
}

.card-rating {
  font-size: 0.7rem;
  color: var(--gold);
}

.card.is-agotado { opacity: 0.5; pointer-events: none; }

/* ═══ DETAIL MODAL ═══ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6, 6, 14, 0.9);
  backdrop-filter: blur(8px);
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.modal-overlay.active { opacity: 1; }

.modal-card {
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  background: var(--bg-surface);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border: 1px solid var(--border-subtle);
  border-bottom: none;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
  position: relative;
}

.modal-overlay.active .modal-card { transform: translateY(0); }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border: none;
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 5;
  transition: all 0.2s;
}
.modal-close:hover { background: rgba(255,255,255,0.15); color: #fff; }

.modal-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.modal-info { padding: 20px; }

.modal-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.modal-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.modal-price {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--neon-accent);
  text-shadow: 0 0 15px rgba(232, 121, 249, 0.4);
  flex-shrink: 0;
}

.modal-desc {
  margin: 14px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.modal-rating-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.modal-rating-box:hover { border-color: var(--border-glow); }

.rating-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rating-label { color: var(--text-muted); font-size: 0.85rem; }
.rating-stars { color: var(--gold); font-weight: 700; }
.rating-link {
  text-align: right;
  font-size: 0.72rem;
  color: var(--neon-primary);
  margin-top: 4px;
}

.btn-opinion {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--neon-primary);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--neon-primary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-opinion:hover {
  background: var(--neon-primary);
  color: #fff;
  box-shadow: 0 0 25px var(--neon-glow);
}

/* ═══ OPINION MODAL ═══ */
.modal-opinion-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(6, 6, 14, 0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-opinion-overlay.active { display: flex; }

.modal-opinion-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 30px;
  text-align: center;
}

.opinion-title {
  font-family: var(--font-accent);
  font-style: italic;
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.stars-container {
  font-size: 2.5rem;
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.stars-container span {
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.15s, transform 0.15s;
}

.stars-container span:hover { transform: scale(1.2); }
.stars-container span.lit { color: var(--neon-primary); text-shadow: 0 0 10px var(--neon-glow); }

.input-lm {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  margin-bottom: 10px;
  transition: border-color 0.2s;
}

.input-lm:focus { border-color: var(--neon-primary); }
.input-lm::placeholder { color: var(--text-muted); }

textarea.input-lm { resize: vertical; min-height: 80px; }

.btn-enviar {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 10px;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(217, 70, 239, 0.2);
}

.btn-enviar:hover {
  box-shadow: 0 0 30px rgba(217, 70, 239, 0.4);
  transform: translateY(-1px);
}

/* ═══ FOOTER ═══ */
footer {
  padding: 30px 20px;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-secondary);
  letter-spacing: 2px;
}

.footer-agency {
  margin-top: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.footer-agency a {
  color: var(--neon-primary);
  text-decoration: none;
  font-weight: 600;
}

.footer-admin {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 20px;
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  color: var(--text-muted);
  font-size: 0.7rem;
  text-decoration: none;
  letter-spacing: 1px;
  transition: all 0.2s;
}
.footer-admin:hover { border-color: var(--border-glow); color: var(--text-secondary); }

/* ═══ TOAST ═══ */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-card);
  border: 1px solid var(--neon-primary);
  color: var(--text-primary);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.85rem;
  z-index: 9999;
  box-shadow: 0 0 20px var(--neon-glow);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ═══ EMPTY STATE ═══ */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.empty-state .empty-icon { font-size: 2.5rem; margin-bottom: 10px; }
.empty-state p { font-size: 0.9rem; }

/* ═══ RESPONSIVE ═══ */
@media (min-width: 768px) {
  .modal-overlay { align-items: center; }
  .modal-card { 
    border-radius: var(--radius-lg); 
    border-bottom: 1px solid var(--border-subtle);
    max-height: 85vh;
  }
  .card { width: 180px; }
}

/* ═══ NEON LINE SEPARATOR ═══ */
.neon-line {
  width: 40px;
  height: 3px;
  background: var(--neon-primary);
  margin: 0 auto;
  border-radius: 2px;
  box-shadow: 0 0 8px var(--neon-glow);
}

/* ═══ ANIMATIONS ═══ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.category-section { animation: fadeInUp 0.5s ease both; }
.category-section:nth-child(2) { animation-delay: 0.05s; }
.category-section:nth-child(3) { animation-delay: 0.1s; }
.category-section:nth-child(4) { animation-delay: 0.15s; }

/* ═══════════════════════════════════════════════════════
   ADMIN PANEL STYLES
   ═══════════════════════════════════════════════════════ */

/* ═══ FAB VOLVER ARRIBA ═══ */
.fab-top {
  position: fixed;
  bottom: 24px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 1px solid var(--neon-primary);
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--neon-primary);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 500;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px var(--neon-glow);
}

.fab-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.fab-top:hover {
  background: var(--neon-primary);
  color: #fff;
  box-shadow: 0 0 25px var(--neon-glow-strong);
}

/* ─── LOGIN PAGE ─────────────────────────────────── */

.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-void);
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

.login-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
}

.login-logo {
  width: 90px;
  height: auto;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 15px var(--neon-glow));
}

.login-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.login-error {
  color: var(--danger);
  font-size: 0.8rem;
  min-height: 20px;
  margin: 4px 0;
}

.btn-login {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(217, 70, 239, 0.2);
}

.btn-login:hover {
  box-shadow: 0 0 30px rgba(217, 70, 239, 0.4);
  transform: translateY(-1px);
}

.btn-login:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.login-back {
  display: inline-block;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s;
}

.login-back:hover { color: var(--neon-primary); }

/* ─── ADMIN LAYOUT ───────────────────────────────── */

.admin-body {
  background: var(--bg-void);
  min-height: 100vh;
}

.admin-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
}

.admin-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--text-primary);
}

.admin-badge {
  padding: 3px 10px;
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  border-radius: 50px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
}

.admin-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-link {
  color: var(--text-secondary);
  font-size: 0.8rem;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: 50px;
  transition: all 0.2s;
}

.admin-link:hover { border-color: var(--neon-primary); color: var(--neon-primary); }

.admin-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-subtle);
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.admin-logout:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.admin-logout .material-icons { font-size: 18px; }

/* ─── DASHBOARD GRID ─────────────────────────────── */

.dashboard-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 20px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── UPLOAD / FORM ZONE ─────────────────────────── */

.upload-zone, .inventory-zone {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.upload-zone {
  position: sticky;
  top: 80px;
  align-self: start;
}

@media (max-width: 860px) {
  .upload-zone { position: static; }
}

.zone-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.field-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
  margin-top: 12px;
}

.field-label:first-of-type { margin-top: 0; }

select.input-lm {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%239b8ab0'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.input-sm { font-size: 0.8rem; padding: 8px 12px; }

.file-upload-wrapper {
  border: 2px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  margin-bottom: 10px;
}

.file-upload-wrapper:hover,
.file-upload-wrapper.drag-over {
  border-color: var(--neon-primary);
  background: rgba(217, 70, 239, 0.04);
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.upload-icon {
  font-size: 2rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 6px;
}

.upload-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.preview-thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-top: 10px;
  border: 1px solid var(--border-subtle);
}

.field-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.field-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--neon-primary);
  cursor: pointer;
}

.btn-guardar {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--neon-primary), var(--neon-secondary));
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 0 20px rgba(217, 70, 239, 0.2);
}

.btn-guardar:hover {
  box-shadow: 0 0 30px rgba(217, 70, 239, 0.4);
  transform: translateY(-1px);
}

.btn-guardar:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-cancelar {
  width: 100%;
  padding: 12px;
  margin-top: 8px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cancelar:hover {
  border-color: var(--danger);
  color: var(--danger);
}

/* ─── INVENTORY ZONE ─────────────────────────────── */

.inventory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.inventory-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.inventory-filters .input-sm { flex: 1; min-width: 0; }

.inventory-count {
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.inventory-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
  padding-right: 4px;
}

.inventory-list::-webkit-scrollbar { width: 4px; }
.inventory-list::-webkit-scrollbar-track { background: transparent; }
.inventory-list::-webkit-scrollbar-thumb { background: var(--border-subtle); border-radius: 4px; }

.loading-msg {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 40px 0;
}

.inventory-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s;
}

.inventory-item:hover { border-color: var(--border-glow); }

.inv-thumb {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.inv-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.inv-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inv-price {
  font-size: 0.75rem;
  color: var(--neon-accent);
  font-weight: 700;
}

.inv-badge {
  padding: 3px 8px;
  border-radius: 50px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge-dispo {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge-agot {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.inv-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
}

.icon-btn:hover {
  border-color: var(--neon-primary);
  color: var(--neon-primary);
}

.icon-btn--danger:hover {
  border-color: var(--danger);
  color: var(--danger);
}

.icon-btn .material-icons { font-size: 16px; }

/* ─── ADMIN RESPONSIVE ───────────────────────────── */

@media (max-width: 600px) {
  .dashboard-grid { padding: 12px; gap: 12px; }
  .upload-zone, .inventory-zone { padding: 16px; }
  .inventory-item { flex-wrap: wrap; }
  .inv-actions { width: 100%; justify-content: flex-end; margin-top: 4px; }
  .admin-header { padding: 10px 14px; }
  .admin-link { display: none; }
}

/* ─── CROPPER MODAL ──────────────────────────────── */

.modal-cropper-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(6, 6, 14, 0.95);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-cropper-overlay.active { display: flex; }

.modal-cropper-card {
  width: 100%;
  max-width: 600px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.cropper-container-wrapper {
  width: 100%;
  max-height: 400px;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: #000;
  margin-bottom: 16px;
}

.cropper-container-wrapper img {
  display: block;
  max-width: 100%;
}

.cropper-actions {
  display: flex;
  gap: 10px;
}