/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: #000;
  color: #f0f0f0;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── VARIABLES ── */
:root {
  --accent: #8B1A1A;
  --accent-hover: #A82828;
  --accent-light: #C03535;
  --wa: #25d366;
  --wa-dark: #1da850;
  --ig: #E1306C;
  --surface: #111111;
  --border: #222222;
  --border-light: #2e2e2e;
  --text-muted: #777;
  --radius: 10px;
  --radius-lg: 16px;
}

/* ── UTILITIES ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section--dark { background: var(--surface); }
.section__title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700;
  margin-bottom: 8px;
  color: #f0f0f0;
}
.section__sub { color: var(--text-muted); margin-bottom: 36px; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.95rem;
  cursor: pointer; border: none;
  transition: transform .15s, background .15s, box-shadow .15s;
  letter-spacing: .02em;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 4px 20px rgba(139,26,26,.35);
}
.btn--primary:hover { background: var(--accent-hover); }
.btn--wa {
  background: var(--wa); color: #fff;
  box-shadow: 0 4px 20px rgba(37,211,102,.3);
}
.btn--wa:hover { background: var(--wa-dark); }
.btn--ghost {
  background: transparent;
  border: 1.5px solid var(--border-light);
  color: var(--text-muted);
}
.btn--ghost:hover { border-color: #444; color: #bbb; transform: none; }
.btn--full { width: 100%; justify-content: center; }
.btn--lg { padding: 15px 30px; font-size: 1.05rem; }

/* ── HEADER ── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(0,0,0,.94); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; gap: 16px;
}
.logo { display: flex; align-items: center; }
.logo__img { height: 42px; width: auto; object-fit: contain; }
.logo__text-fallback {
  font-weight: 900; font-size: 1.2rem;
  letter-spacing: .04em; color: #fff; text-transform: uppercase;
}
.logo__text-fallback span { color: var(--accent-light); }
.nav { display: flex; gap: 28px; }
.nav a {
  font-size: .875rem; font-weight: 600;
  color: var(--text-muted); letter-spacing: .04em;
  text-transform: uppercase; transition: color .15s;
}
.nav a:hover { color: #fff; }
.cart-btn {
  background: var(--surface); border: 1.5px solid var(--border-light);
  color: #fff; border-radius: var(--radius); padding: 8px 16px;
  cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; gap: 8px;
  transition: border-color .15s; font-weight: 600;
}
.cart-btn:hover { border-color: var(--accent-light); }
.cart-count {
  background: var(--accent); color: #fff;
  font-size: .7rem; font-weight: 700;
  border-radius: 50%; width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}

/* ── HERO ── */
.hero {
  background: #000; padding: 90px 0 72px;
  border-bottom: 1px solid var(--border);
}
.hero__inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.hero__text h1 {
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  font-weight: 900; font-style: italic; line-height: 1.08;
  margin-bottom: 20px; letter-spacing: -.03em; text-transform: uppercase;
}
.hero__text h1 span { color: var(--accent-light); }
.hero__text p {
  color: var(--text-muted); font-size: 1.05rem;
  margin-bottom: 32px; max-width: 400px;
}
.hero__text .btn { margin-right: 12px; margin-bottom: 12px; }
.hero__visual { display: flex; flex-direction: column; gap: 12px; }
.hero__badge {
  background: var(--surface); border: 1px solid var(--border-light);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px; font-size: .95rem; color: #ccc;
}

/* ── CATALOG LAYOUT ── */
.catalog-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}
.catalog-main { min-width: 0; }

/* ── FILTER PANEL (desktop) ── */
.filter-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  position: sticky;
  top: 80px;
}
.filter-panel__toggle { display: none; }
.filter-panel__body { /* always visible on desktop */ }

.filter-group { margin-bottom: 22px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group__title {
  font-size: .63rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-muted); margin-bottom: 8px;
}
.filter-group__options { display: flex; flex-direction: column; gap: 2px; }
.filter-option {
  background: none; border: none;
  color: #aaa; padding: 8px 10px;
  font-size: .85rem; font-weight: 500;
  cursor: pointer; border-radius: 8px;
  text-align: left; width: 100%;
  transition: background .12s, color .12s;
  font-family: inherit;
}
.filter-option:hover { background: rgba(255,255,255,.06); color: #ddd; }
.filter-option.active {
  background: var(--accent); color: #fff; font-weight: 600;
}

/* ── SUBCATEGORÍA ELFBAR ── */
.filter-subgroup {
  margin-top: 10px;
  padding: 10px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.filter-subgroup__title {
  font-size: .58rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: #555; margin-bottom: 6px;
}

/* ── RESULTS INFO ── */
.results-info {
  font-size: .8rem; color: var(--text-muted);
  margin-bottom: 16px; min-height: 20px;
}

/* ── PRODUCTS GRID ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  display: flex; flex-direction: column; cursor: default;
}
.product-card:hover {
  transform: translateY(-4px); border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(139,26,26,.2);
}
.product-card__img {
  background: #080808; aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  position: relative; border-bottom: 1px solid var(--border);
}
.product-card__photo {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.product-card__emoji {
  font-size: 6rem; line-height: 1; user-select: none;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,.6));
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.product-card__badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--accent); color: #fff;
  font-size: .65rem; font-weight: 700; padding: 4px 10px;
  border-radius: 4px; text-transform: uppercase; letter-spacing: .08em;
}
.product-card__badge--new { background: #166534; }
.product-card__clickable { cursor: pointer; }
.product-card__clickable:hover .product-card__name { color: var(--accent-light); }

.product-card__body {
  padding: 16px 18px 12px; flex: 1;
  display: flex; flex-direction: column; gap: 5px;
}
.product-brand {
  font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--accent-light);
}
.product-card__name { font-weight: 700; font-size: 1.05rem; line-height: 1.3; color: #fff; }
.product-card__flavor { font-size: .82rem; color: var(--text-muted); }
.product-card__desc {
  font-size: .78rem; color: #555; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__footer {
  padding: 12px 18px 18px; display: flex; flex-direction: column;
  gap: 10px; border-top: 1px solid var(--border);
}
.product-card__price { font-size: 1.5rem; font-weight: 900; color: #fff; letter-spacing: -.01em; }
.add-btn {
  background: var(--accent); color: #fff; border: none;
  border-radius: var(--radius); padding: 11px 16px;
  font-size: .88rem; font-weight: 700; cursor: pointer;
  transition: background .15s, transform .1s;
  letter-spacing: .03em; width: 100%; text-align: center;
  font-family: inherit;
}
.add-btn:hover { background: var(--accent-hover); }
.add-btn:active { transform: scale(.97); }
.add-btn--added { background: #166534 !important; }
.no-results {
  grid-column: 1 / -1; text-align: center;
  padding: 60px 20px; color: var(--text-muted); font-size: .95rem;
}

/* ── ENVÍOS ── */
.shipping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.shipping-card {
  background: #0a0a0a; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px;
  transition: border-color .2s, transform .2s;
}
.shipping-card:hover { border-color: #444; transform: translateY(-2px); }
.shipping-card--highlight {
  border-color: var(--accent);
  background: rgba(139,26,26,.07);
}
.shipping-card__icon { font-size: 1.8rem; display: block; margin-bottom: 12px; }
.shipping-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: 8px; color: #f0f0f0; }
.shipping-card p { font-size: .875rem; color: var(--text-muted); }
.shipping-card p strong { color: #fff; }

/* ── CONTACTO ── */
.contact-section {
  background: #050505;
  border-top: 1px solid var(--border);
}
.contact-title { text-align: center; }
.contact-sub { text-align: center; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  max-width: 680px;
  margin: 0 auto 52px;
}
.contact-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg); padding: 28px 24px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  cursor: pointer;
}
.contact-card:hover { transform: translateY(-3px); }
.contact-card--ig:hover {
  border-color: var(--ig);
  box-shadow: 0 8px 32px rgba(225,48,108,.15);
}
.contact-card--wa:hover {
  border-color: var(--wa);
  box-shadow: 0 8px 32px rgba(37,211,102,.15);
}
.contact-card__icon { font-size: 2.2rem; flex-shrink: 0; }
.contact-card__info { flex: 1; }
.contact-card__label {
  display: block; font-size: .63rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-muted); margin-bottom: 4px;
}
.contact-card__handle { font-size: 1.05rem; font-weight: 700; color: #fff; }
.contact-card__cta {
  font-size: .8rem; font-weight: 600;
  color: var(--text-muted); white-space: nowrap;
  transition: color .15s;
}
.contact-card--ig:hover .contact-card__cta { color: var(--ig); }
.contact-card--wa:hover .contact-card__cta { color: var(--wa); }
.contact-tagline {
  text-align: center;
  font-size: clamp(1.5rem, 4vw, 2.4rem);
  font-weight: 900; font-style: italic;
  color: #fff; letter-spacing: -.02em; text-transform: uppercase;
  padding: 40px 0 0;
  border-top: 1px solid var(--border);
  max-width: 680px;
  margin: 0 auto;
}

/* ── FOOTER ── */
.footer { background: #000; border-top: 1px solid var(--border); padding: 32px 0; text-align: center; }
.footer__inner { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.footer__logo { height: 32px; width: auto; opacity: .6; margin-bottom: 4px; }
.footer p { font-size: .82rem; color: #444; }

/* ── CART DRAWER ── */
.cart-drawer {
  position: fixed; top: 0; right: -440px;
  width: min(420px, 100vw); height: 100vh;
  background: #0a0a0a; border-left: 1px solid var(--border-light);
  z-index: 200; display: flex; flex-direction: column;
  transition: right .3s cubic-bezier(.4,0,.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,.8);
}
.cart-drawer.open { right: 0; }
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.7);
  z-index: 199; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-drawer__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.cart-drawer__header h3 { font-size: 1rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.cart-drawer__header button {
  background: none; border: none; color: var(--text-muted);
  font-size: 1.1rem; cursor: pointer; padding: 4px 8px;
  border-radius: 6px; transition: background .15s;
}
.cart-drawer__header button:hover { background: var(--border); color: #fff; }
.cart-drawer__items {
  flex: 1; overflow-y: auto; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.cart-empty { color: var(--text-muted); font-size: .9rem; text-align: center; padding: 48px 0; }
.cart-item {
  display: grid; grid-template-columns: 44px 1fr auto;
  gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 12px;
}
.cart-item__emoji { font-size: 1.8rem; text-align: center; }
.cart-item__brand { font-size: .63rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-light); }
.cart-item__name { font-size: .85rem; font-weight: 600; }
.cart-item__price { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }
.cart-item__controls { display: flex; align-items: center; gap: 6px; }
.qty-btn {
  background: var(--border-light); border: none; color: #fff;
  width: 26px; height: 26px; border-radius: 5px; cursor: pointer;
  font-size: 1rem; display: flex; align-items: center; justify-content: center;
  transition: background .15s;
}
.qty-btn:hover { background: var(--accent); }
.qty-value { font-size: .875rem; font-weight: 700; min-width: 18px; text-align: center; }
.cart-drawer__footer {
  padding: 18px 20px; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
}
.cart-total {
  font-size: 1rem; display: flex; justify-content: space-between;
  align-items: center; color: var(--text-muted);
}
.cart-total strong { font-size: 1.3rem; color: #fff; }

/* ── MODAL PRODUCTO ── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.82);
  z-index: 300;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.product-modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -46%);
  width: min(860px, 94vw);
  max-height: 88vh;
  background: #111;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  z-index: 301;
  overflow-y: auto;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.product-modal.open {
  opacity: 1; pointer-events: auto;
  transform: translate(-50%, -50%);
}
.modal-close {
  position: sticky; top: 12px;
  float: right; margin: 12px 12px 0 0;
  background: rgba(255,255,255,.08); border: none;
  color: #fff; width: 34px; height: 34px;
  border-radius: 50%; cursor: pointer; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s; z-index: 1;
}
.modal-close:hover { background: rgba(255,255,255,.18); }

.modal-product {
  display: grid; grid-template-columns: 1fr 1fr;
  clear: both;
}
.modal-product__img {
  background: #080808;
  border-radius: var(--radius-lg) 0 0 0;
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.modal-product__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-product__img .product-card__emoji {
  font-size: 8rem; display: flex;
  align-items: center; justify-content: center;
  width: 100%; height: 100%;
}
.modal-product__info {
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 10px;
  justify-content: center;
}
.modal-product__name {
  font-size: 1.5rem; font-weight: 900; line-height: 1.2; color: #fff;
}
.modal-product__flavor { font-size: 1rem; color: var(--text-muted); }
.modal-product__desc { font-size: .9rem; color: #888; line-height: 1.6; }
.modal-specs {
  display: flex; flex-wrap: wrap; gap: 7px;
  margin-top: 2px;
}
.spec-tag {
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: .75rem; color: #bbb;
  white-space: nowrap;
}
.modal-product__price {
  font-size: 2.2rem; font-weight: 900; color: #fff;
  letter-spacing: -.02em; margin: 6px 0 4px;
}
.modal-product__info .add-btn { margin-top: 4px; }

.modal-related {
  padding: 24px 28px 32px;
  border-top: 1px solid var(--border);
  clear: both;
}
.modal-related h3 {
  font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--text-muted); margin-bottom: 16px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.related-card {
  background: #0a0a0a; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.related-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.related-card__img {
  aspect-ratio: 1 / 1; background: #080808;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; font-size: 2.5rem;
}
.related-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.related-card__info { padding: 8px 10px 12px; }
.related-card__brand {
  font-size: .58rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--accent-light); margin-bottom: 2px;
}
.related-card__name { font-size: .8rem; font-weight: 700; color: #fff; line-height: 1.2; }
.related-card__flavor { font-size: .72rem; color: var(--text-muted); margin-top: 2px; }
.related-card__price { font-size: .88rem; font-weight: 900; color: #fff; margin-top: 6px; }

/* ── RESPONSIVE — tablet ── */
@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; }

  .filter-panel {
    background: transparent; border: none;
    border-radius: 0; padding: 0; position: static;
  }
  .filter-panel__toggle {
    display: flex; justify-content: space-between; align-items: center;
    width: 100%; background: var(--surface);
    border: 1.5px solid var(--border-light);
    border-radius: var(--radius);
    color: #ddd; padding: 10px 16px;
    font-size: .9rem; font-weight: 600;
    cursor: pointer; font-family: inherit;
    transition: border-color .15s;
  }
  .filter-panel__toggle:hover { border-color: #555; }
  .filter-panel__toggle[aria-expanded="true"] {
    border-radius: var(--radius) var(--radius) 0 0;
  }
  .filter-panel__toggle[aria-expanded="true"] .filter-toggle-icon {
    transform: rotate(180deg);
  }
  .filter-toggle-icon { transition: transform .2s; }

  .filter-panel__body {
    display: none;
    padding: 16px;
    background: var(--surface);
    border: 1.5px solid var(--border-light);
    border-top: none;
    border-radius: 0 0 var(--radius) var(--radius);
  }
  .filter-panel__body.open { display: block; }

  .filter-group { margin-bottom: 16px; }
  .filter-group__options { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .filter-option {
    width: auto; padding: 6px 14px;
    border: 1.5px solid var(--border-light);
    border-radius: 999px;
  }
  .filter-option.active { border-color: var(--accent); }
}

/* ── RESPONSIVE — mobile ── */
@media (max-width: 768px) {
  .nav { display: none; }
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__visual { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .hero__badge { flex: 1 1 180px; }
  .section { padding: 56px 0; }
  .contact-grid { grid-template-columns: 1fr; max-width: 400px; }
}

@media (max-width: 480px) {
  .hero { padding: 64px 0 52px; }
  .hero__text h1 { font-size: 2rem; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-card__emoji { font-size: 4rem; }
  .product-card__price { font-size: 1.2rem; }
  .contact-card { padding: 20px 16px; }
  .contact-card__handle { font-size: .9rem; }
}

@media (max-width: 640px) {
  .modal-product { grid-template-columns: 1fr; }
  .modal-product__img { border-radius: var(--radius-lg) var(--radius-lg) 0 0; aspect-ratio: 4/3; }
  .modal-product__info { padding: 20px; gap: 8px; }
  .modal-product__name { font-size: 1.2rem; }
  .modal-product__price { font-size: 1.7rem; }
}

@media (max-width: 900px) {
  .filter-subgroup .filter-group__options { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .filter-subgroup .filter-option { width: auto; padding: 5px 12px; border-radius: 999px; border: 1.5px solid var(--border-light); }
  .filter-subgroup .filter-option.active { border-color: var(--accent); }
}

/* ── STOCK — tarjetas ── */
.product-card--out { opacity: .65; }
.product-card--out .product-card__img::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0,0,0,.35);
}
.product-card__badge--out {
  background: #2a2a2a; color: #666;
  border: 1px solid #333;
}
.add-btn:disabled {
  background: #1e1e1e; color: #444;
  cursor: not-allowed; transform: none !important;
  box-shadow: none; border: 1px solid #2a2a2a;
}

/* ── ADMIN LOGIN ── */
.admin-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 600;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
}
.admin-overlay.open { opacity: 1; pointer-events: auto; }

.admin-login {
  background: #111; border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  width: min(400px, 90vw);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0,0,0,.8);
}
.admin-login__icon { font-size: 2.4rem; margin-bottom: 4px; }
.admin-login__title {
  font-size: 1.4rem; font-weight: 900;
  color: #fff; letter-spacing: -.01em;
}
.admin-login__sub { font-size: .82rem; color: var(--text-muted); margin-bottom: 8px; }

.admin-login__form {
  width: 100%; display: flex; flex-direction: column; gap: 10px;
}
.admin-login__input {
  width: 100%; background: #0a0a0a;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius); color: #fff;
  padding: 12px 16px; font-size: .95rem;
  font-family: inherit; outline: none;
  transition: border-color .15s;
}
.admin-login__input:focus { border-color: var(--accent-light); }
.admin-login__btn {
  width: 100%; background: var(--accent); color: #fff;
  border: none; border-radius: var(--radius);
  padding: 12px; font-size: .95rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: background .15s;
}
.admin-login__btn:hover { background: var(--accent-hover); }
.admin-login__error {
  font-size: .82rem; color: #e05252;
  min-height: 18px;
}
.admin-login__cancel {
  background: none; border: none; color: var(--text-muted);
  font-size: .82rem; cursor: pointer; font-family: inherit;
  margin-top: 4px;
  transition: color .15s;
}
.admin-login__cancel:hover { color: #bbb; }

/* ── ADMIN PANEL ── */
.admin-panel {
  position: fixed; inset: 0;
  background: #050505;
  z-index: 500;
  display: flex; flex-direction: column;
  opacity: 0; pointer-events: none;
  transition: opacity .25s;
  overflow: hidden;
}
.admin-panel.open { opacity: 1; pointer-events: auto; }

.admin-panel__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
  background: #080808;
  flex-shrink: 0;
}
.admin-panel__title {
  font-size: 1.2rem; font-weight: 900; color: #fff;
  letter-spacing: -.01em;
}
.admin-panel__summary {
  font-size: .8rem; color: var(--text-muted); margin-top: 2px;
}
.admin-panel__logout {
  background: transparent; border: 1.5px solid var(--border-light);
  color: var(--text-muted); border-radius: var(--radius);
  padding: 8px 18px; font-size: .85rem; font-weight: 600;
  cursor: pointer; font-family: inherit;
  transition: border-color .15s, color .15s;
}
.admin-panel__logout:hover { border-color: #555; color: #bbb; }

.admin-panel__body {
  flex: 1; overflow-y: auto;
  padding: 0 32px 40px;
  max-width: 720px; width: 100%;
  margin: 0 auto;
}

.admin-product-list { padding-top: 8px; }

.admin-product-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  gap: 16px;
  transition: opacity .15s;
}
.admin-product-row--out { opacity: .55; }

.admin-product-row__info {
  display: flex; align-items: center; gap: 14px; min-width: 0;
}
.admin-product-row__emoji { font-size: 1.8rem; flex-shrink: 0; }
.admin-product-row__text { min-width: 0; }
.admin-product-row__name {
  font-size: .9rem; font-weight: 700; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.admin-product-row__flavor { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }

/* Toggle switch */
.stock-toggle {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; flex-shrink: 0;
}
.stock-toggle input {
  position: absolute; opacity: 0; width: 0; height: 0;
}
.stock-toggle__slider {
  position: relative; width: 48px; height: 26px;
  background: #2a2a2a; border-radius: 13px;
  transition: background .2s; flex-shrink: 0;
}
.stock-toggle__slider::before {
  content: ""; position: absolute;
  width: 20px; height: 20px;
  background: #555; border-radius: 50%;
  top: 3px; left: 3px;
  transition: transform .2s, background .2s;
}
.stock-toggle input:checked + .stock-toggle__slider {
  background: #166534;
}
.stock-toggle input:checked + .stock-toggle__slider::before {
  transform: translateX(22px); background: #4ade80;
}
.stock-toggle__label {
  font-size: .8rem; font-weight: 600;
  min-width: 60px; text-align: right;
}
.stock-toggle__label--in { color: #4ade80; }
.stock-toggle__label--out { color: #555; }

@media (max-width: 600px) {
  .admin-panel__header { padding: 18px 20px 0; }
  .admin-panel__body { padding: 16px 16px 40px; }
  .admin-panel__title { font-size: 1rem; }
  .stock-toggle__label { display: none; }
}

/* ── ADMIN TABS ── */
.admin-panel__top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.admin-tabs {
  display: flex; gap: 2px;
  border-bottom: 1px solid var(--border);
  overflow-x: auto; padding-bottom: 0;
}
.admin-tabs::-webkit-scrollbar { height: 2px; background: transparent; }
.admin-tab {
  background: none; border: none; border-bottom: 2px solid transparent;
  color: #555; padding: 9px 16px;
  font-size: .8rem; font-weight: 700; font-family: inherit;
  letter-spacing: .04em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap;
  margin-bottom: -1px;
  transition: color .15s, border-color .15s;
}
.admin-tab:hover { color: #999; }
.admin-tab.active { color: #fff; border-bottom-color: var(--accent-light); }

.admin-tab-pane { display: none; padding-top: 20px; }
.admin-tab-pane.active { display: block; }

/* ── ADMIN LAYOUT ── */
.admin-two-col {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; align-items: start;
}
.admin-card {
  background: #0a0a0a; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
}
.admin-card__title {
  font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: #444; margin-bottom: 16px;
}

/* ── ADMIN FORMS ── */
.admin-form { display: flex; flex-direction: column; gap: 14px; }
.form-field { display: flex; flex-direction: column; gap: 5px; }
.form-field label {
  font-size: .68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: #555;
}
.form-field input,
.form-field select {
  background: #111; border: 1.5px solid var(--border-light);
  border-radius: var(--radius); color: #fff;
  padding: 10px 12px; font-size: .88rem; font-family: inherit;
  outline: none; transition: border-color .15s; width: 100%;
}
.form-field input:focus,
.form-field select:focus { border-color: var(--accent-light); }
.form-field select option { background: #111; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.radio-group { display: flex; gap: 14px; flex-wrap: wrap; }
.radio-opt {
  display: flex; align-items: center; gap: 6px;
  font-size: .85rem; color: #888; cursor: pointer;
  transition: color .15s;
}
.radio-opt:hover { color: #ccc; }
.radio-opt input { width: auto; accent-color: var(--accent-light); cursor: pointer; }
.admin-form__error { font-size: .78rem; color: #e05252; min-height: 16px; }

/* ── ADMIN BUTTONS ── */
.admin-btn {
  border: none; border-radius: var(--radius);
  padding: 11px 16px; font-size: .88rem; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: background .15s; width: 100%; text-align: center;
}
.admin-btn--primary { background: var(--accent); color: #fff; }
.admin-btn--primary:hover { background: var(--accent-hover); }
.admin-btn--ghost-sm {
  background: transparent; border: 1px solid var(--border-light);
  color: #777; border-radius: 6px; padding: 4px 11px;
  font-size: .73rem; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: border-color .15s, color .15s; white-space: nowrap;
}
.admin-btn--ghost-sm:hover { border-color: #555; color: #ccc; }
.admin-btn--success-sm {
  background: rgba(22,101,52,.3); color: #4ade80; border: 1px solid #166534;
  border-radius: 6px; padding: 4px 11px;
  font-size: .73rem; font-weight: 600; cursor: pointer; font-family: inherit;
  white-space: nowrap; transition: background .15s;
}
.admin-btn--success-sm:hover { background: rgba(22,101,52,.5); }

/* ── ADMIN LISTS ── */
.admin-list-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid #0f0f0f; gap: 10px;
}
.admin-list-item:last-child { border-bottom: none; }
.ali-main { flex: 1; min-width: 0; }
.ali-label { font-size: .85rem; color: #ddd; font-weight: 600; line-height: 1.3; }
.ali-sub { font-size: .73rem; color: #444; margin-top: 3px; }
.ali-amount { font-size: .9rem; font-weight: 700; color: #fff; white-space: nowrap; }
.admin-total-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0 0; margin-top: 4px; border-top: 1px solid var(--border);
  font-size: .82rem; color: var(--text-muted);
}
.admin-total-row strong { color: #fff; font-size: 1rem; }
.admin-empty {
  color: #2a2a2a; font-size: .82rem; text-align: center; padding: 24px 0;
}

/* ── STATUS BADGES ── */
.status-badge {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: .65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
}
.status-badge--pendiente   { background: #211500; color: #f59e0b; }
.status-badge--parcial     { background: #0f0f22; color: #818cf8; }
.status-badge--saldado,
.status-badge--cobrado     { background: #071507; color: #4ade80; }
.status-badge--efectivo    { background: #071507; color: #4ade80; }
.status-badge--transferencia { background: #051522; color: #38bdf8; }
.status-badge--fiado       { background: #0f0f22; color: #818cf8; }

/* ── PAGO PARCIAL ── */
.pago-row { display: flex; gap: 6px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.pago-row input {
  background: #111; border: 1px solid var(--border-light);
  border-radius: 6px; color: #fff; padding: 5px 9px;
  font-size: .8rem; font-family: inherit; width: 120px; outline: none;
  transition: border-color .15s;
}
.pago-row input:focus { border-color: var(--accent-light); }

/* ── GANANCIAS ── */
.gan-summary-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px;
}
.gan-card {
  background: #0a0a0a; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
}
.gan-card__label {
  font-size: .62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: #444; margin-bottom: 10px;
}
.gan-card__value { font-size: 1.35rem; font-weight: 900; }
.gan-card--ingreso { border-color: #0e2e1a; }
.gan-card--ingreso .gan-card__value { color: #4ade80; }
.gan-card--egreso  { border-color: #2e0e0e; }
.gan-card--egreso  .gan-card__value { color: #f87171; }
.gan-card--neto    .gan-card__value { color: #fff; }
.gan-card--acum    .gan-card__value { color: var(--accent-light); }

#gan-chart { overflow-x: auto; padding: 4px 0; }

/* ── RESPONSIVE ADMIN NEW ── */
@media (max-width: 720px) {
  .admin-two-col { grid-template-columns: 1fr; }
  .admin-panel__body { max-width: 100%; }
}
