@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ===== VARIABLES ===== */
:root {
  --bg: #090909;
  --card: #141414;
  --card2: #1b1b1b;
  --gold: #d9b66f;
  --gold2: #b58b34;
  --text: #ffffff;
  --text2: #b9b9b9;
  --border: #2d2d2d;
  --radius: 18px;
  --shadow: 0 10px 25px rgba(0,0,0,.35);
  --shadow-gold: 0 0 12px rgba(217,182,111,.20);
  --transition: .25s ease;
}

/* ===== RESET ===== */
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}
body.bg-dark { display:block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width:100%; display:block; }
input, select, textarea, button { font-family:inherit; font-size:inherit; }
button { cursor:pointer; transition:var(--transition); }
button:focus, input:focus, textarea:focus, select:focus { outline:none; }
.hidden { display:none !important; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width:6px; }
::-webkit-scrollbar-thumb { background:#3a3a3a; border-radius:20px; }
::-webkit-scrollbar-track { background:transparent; }

/* ===== TOP BAR ===== */
.top-bar {
  position: sticky;
  top: 0; z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: #101010;
  border-bottom: 1px solid #242424;
}
.top-title {
  font-size: 20px;
  font-weight: 700;
  color: #c0c0c0; text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.nav-link {
  color: #c0c0c0; text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  font-size: 18px;
  padding: 6px 10px;
  border-radius: 10px;
  transition: var(--transition);
}
.nav-link:hover { background: rgba(217,182,111,.1); text-decoration: none; }
.btn-icon {
  background: none; border: none;
  color: var(--gold); font-size: 20px;
  width: 44px; height: 44px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  position: relative;
  transition: var(--transition);
}
.btn-icon:hover { background: rgba(217,182,111,.1); }
#cartBtn { position: relative; }
.cart-badge {
  position: absolute;
  top: -4px; right: -6px;
  background: #e74c3c;
  color: white;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px; height: 20px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}

/* ===== CARTA PAGE ===== */
.page-carta {
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 120px;
}
.carta-header {
  text-align: center;
  padding: 20px 16px 8px;
}
.carta-header h1 { font-size: 24px; color: var(--gold); }
.carta-sub { color: var(--text2); margin-top: 2px; font-size: 13px; }
.lang-btns { display:flex; justify-content:center; gap:4px; margin-top:0px; }
.lang-btn { width:28px; height:20px; border-radius:3px; border:1px solid #555; background:var(--card); cursor:pointer; display:flex; align-items:center; justify-content:center; transition:var(--transition); padding:0; line-height:1; }
.lang-btn:hover { transform:translateY(-2px); }
.lang-btn.active { border-color:var(--gold); box-shadow:var(--shadow-gold); }
.lang-btn img { width:22px; height:16px; border-radius:3px; object-fit:cover; }

.categoria-tabs {
  overflow-x: auto;
  padding: 8px 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.categoria-tabs::-webkit-scrollbar { display:none; }
.cat-tab {
  min-width: 72px; height: 72px;
  border-radius: 16px;
  border: 1px solid #333;
  background: var(--card);
  color: var(--text2);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 12px;
  margin-right: 8px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 11px;
  white-space: nowrap;
}
.cat-tab:hover { transform: translateY(-2px); }
.cat-tab.active {
  border-color: #c0c0c0; text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  box-shadow: var(--shadow-gold);
  background: var(--card);
  color: var(--text);
}
.cat-tab i { font-size: 22px; }

/* Productos grid */
.productos-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 14px 100px;
}
.subcat-header {
  font-size: 15px;
  font-weight: 700;
  color: #c0c0c0; text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  padding: 20px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.subcat-header:first-child { padding-top: 0; }
.prod-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  transition: var(--transition);
  cursor: pointer;
}
.prod-card:hover {
  border-color: #c0c0c0; text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  box-shadow: var(--shadow-gold);
}
.prod-card-img {
  width: 72px; height: 72px;
  border-radius: 12px;
  background: #202020;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #c0c0c0; text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  flex-shrink: 0;
  overflow: hidden;
}
.prod-card-img-real {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 12px;
}
.prod-card-body {
  flex: 1;
  display: flex;
  gap: 8px;
  min-width: 0;
}
.prod-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.prod-card-nombre {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.prod-card-desc {
  font-size: 11px;
  color: var(--text2);
  line-height: 1.3;
  margin-bottom: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.prod-card-desc em {
  color: #c0c0c0; text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  font-size: 10px;
}
.prod-card-precio {
  font-size: 16px;
  color: #c0c0c0; text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  font-weight: 700;
}
.prod-card-add {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
}
.btn-add {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  background: transparent;
  color: #c0c0c0; text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  font-size: 22px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
  padding: 0;
}
.btn-add:hover { background: rgba(217,182,111,.15); transform: scale(1.05); }
.btn-add:active { transform: scale(.9); }

/* Quantity selector inline */
.qty-selector {
  display: flex;
  align-items: center;
  gap: 4px;
}
.qty-btn-round {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  line-height: 1;
}
.qty-minus { background: #2b2b2b; color: white; }
.qty-plus { background: var(--gold); color: #111; }
.qty-btn-round:hover { transform: scale(1.08); }
.qty-selector span {
  min-width: 18px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

/* ===== BOTTOM BAR (fixed cart) ===== */
.bar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 480px;
  height: 92px;
  background: #101010;
  border-top: 1px solid #2b2b2b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  z-index: 900;
  backdrop-filter: blur(20px);
}
.bar-l { display:flex; align-items:center; gap:14px; cursor:pointer; }
.bar-cart {
  position:relative;
  width:52px; height:52px;
  border-radius:50%;
  background:#1b1b1b;
  border:1px solid var(--gold);
  display:flex; justify-content:center; align-items:center;
  color:var(--gold);
}
.bar-badge {
  position:absolute;
  top:-6px; right:-6px;
  width:22px; height:22px;
  border-radius:50%;
  background:var(--gold);
  color:#111;
  font-size:12px; font-weight:700;
  display:flex; justify-content:center; align-items:center;
}
.bar-info { display:flex; flex-direction:column; }
.bar-ver { font-size:15px; font-weight:700; color:white; }
.bar-cnt { font-size:12px; color:#9f9f9f; }
.bar-c { flex:1; display:flex; justify-content:center; }
.bar-tot { color:var(--gold); font-size:26px; font-weight:700; }
.bar-go {
  border:none; border-radius:16px;
  background:var(--gold); color:#111;
  padding:14px 20px;
  display:flex; align-items:center; gap:8px;
  font-weight:700; cursor:pointer;
  transition:var(--transition);
}
.bar-go:hover { transform:translateY(-2px); }

/* Overlay */
.overlay {
  position:fixed; inset:0;
  background:rgba(0,0,0,.55);
  opacity:0; visibility:hidden;
  transition:.30s; z-index:950;
}
.overlay.show { opacity:1; visibility:visible; }

/* Slide-up cart panel */
.pan {
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  bottom:-100%;
  width:100%;
  max-width:480px;
  background:#141414;
  border-radius:30px 30px 0 0;
  transition:.35s ease;
  z-index:1000;
  max-height:88vh;
  display:flex; flex-direction:column;
  box-shadow:0 -20px 50px rgba(0,0,0,.45);
}
.pan.show { bottom:0; }
.pan-bar { display:flex; justify-content:center; padding:12px; }
.pan-hdl { width:70px; height:6px; border-radius:20px; background:#555; }
.pan-head { display:flex; justify-content:space-between; align-items:center; padding:0 24px 18px; }
.pan-tit { font-size:24px; font-weight:700; }
.pan-num { color:var(--gold); font-weight:700; }
.pan-body { flex:1; overflow:auto; padding:0 24px; }
.pan-body::-webkit-scrollbar { width:6px; }
.pan-body::-webkit-scrollbar-thumb { background:#3a3a3a; border-radius:20px; }
.pan-item {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:16px 0;
  border-bottom:1px solid #262626;
}
.pan-item:last-child { border-bottom:none; }
.pan-name { font-size:16px; font-weight:600; }
.pan-price { color:var(--gold); font-weight:700; margin-top:0px; }
.pan-qty { margin-top:6px; }
.pan-obs {
  font-size:12px;
  color:#ff8d8d;
  margin-top:0px;
}
.pan-foot {
  padding:24px;
  border-top:1px solid #292929;
  background:#151515;
}
.pan-foot .pan-flds {
  display:flex; flex-direction:column; gap:12px;
  margin-bottom:18px;
}
.pan-inp {
  width:100%;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid #555;
  background:#202020;
  color:white;
  font-size:14px;
  transition:var(--transition);
}
.pan-inp:focus { border-color:var(--gold); box-shadow:0 0 12px rgba(217,182,111,.18); }
.pan-inp::placeholder { color:#777; }
.pan-pago-label {
  font-size:13px;
  color:var(--text2);
  margin-bottom:10px;
}
.pan-pago-btns {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:18px;
}
.pan-pago-btn {
  flex:1;
  min-width:100px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:12px 14px;
  border-radius:14px;
  border:1.5px solid #333;
  background:var(--card);
  color:var(--text2);
  font-size:13px;
  cursor:pointer;
  transition:var(--transition);
}
.pan-pago-btn.selected {
  border-color:var(--gold);
  background:var(--card2);
  color:var(--text);
}
.pan-pago-btn i { font-size:16px; }
.pan-row {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:18px;
  font-size:18px;
}
.pan-val { color:var(--gold); font-size:28px; font-weight:700; }
.pan-go {
  width:100%;
  border:none;
  border-radius:18px;
  background:var(--gold);
  color:#111;
  padding:18px;
  font-size:18px;
  font-weight:700;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:12px;
  cursor:pointer;
  transition:var(--transition);
}
.pan-go:hover { transform:translateY(-2px); box-shadow:0 10px 24px rgba(217,182,111,.30); }
.pan-go:active { transform:scale(.98); }
.pan-empty { text-align:center; padding:40px 0; color:#666; }
.pan-empty i { font-size:60px; margin-bottom:12px; color:#444; }
.pan-empty p { font-size:16px; }

/* ===== ACCESO PAGE ===== */
.acceso-wrap {
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  background: radial-gradient(ellipse at center, #1a1508 0%, #090909 70%);
}
.acceso-box {
  width:100%;
  max-width:420px;
  background:var(--card);
  border-radius:30px;
  padding:35px;
  border:1px solid #3a2d11;
  box-shadow:0 0 40px rgba(0,0,0,.55);
}
.acceso-box .logo {
  width:120px;
  display:block;
  margin:0 auto 20px;
}
.acceso-box .marca {
  text-align:center;
  color:var(--gold);
  font-size:16px;
  font-weight:700;
  margin-bottom:16px;
  letter-spacing:2px;
  text-transform:uppercase;
}
.acceso-box h1 {
  text-align:center;
  color:var(--gold);
  font-size:28px;
  margin-bottom:8px;
}
.acceso-box .direccion {
  text-align:center;
  color:var(--text2);
  margin-bottom:16px;
  font-size:14px;
}
.acceso-box .mesa-box {
  text-align:center;
  background:#202020;
  border:1px solid #3a2d11;
  border-radius:16px;
  padding:14px;
  margin-bottom:20px;
}
.acceso-box .mesa-box span {
  display:block;
  font-size:13px;
  color:#888;
  letter-spacing:2px;
}
.acceso-box .mesa-box strong {
  display:block;
  font-size:44px;
  color:var(--gold);
  line-height:1.1;
}
.acceso-box .texto {
  text-align:center;
  color:#d5d5d5;
  line-height:26px;
  margin-bottom:28px;
  font-size:16px;
}
.acceso-box label {
  display:block;
  margin-bottom:8px;
  color:var(--gold);
  font-size:14px;
}
.acceso-box input[type=text],
.acceso-box input[type=tel] {
  width:100%;
  padding:14px 16px;
  border-radius:16px;
  border:1px solid #444;
  background:#202020;
  color:white;
  font-size:16px;
  margin-bottom:18px;
  transition:.30s;
}
.acceso-box input:focus {
  border-color:var(--gold);
  box-shadow:0 0 10px rgba(217,182,111,.4);
}
.acceso-box .check {
  display:flex;
  align-items:flex-start;
  gap:10px;
  margin-bottom:24px;
}
.acceso-box .check input { margin-top:0px; }
.acceso-box .check label {
  margin:0;
  color:#cfcfcf;
  font-size:13px;
  line-height:20px;
}
.acceso-box button {
  width:100%;
  padding:16px;
  border:none;
  border-radius:18px;
  cursor:pointer;
  background:linear-gradient(180deg,#e5c26a,#c8972b);
  color:#111;
  font-size:18px;
  font-weight:700;
  transition:var(--transition);
}
.acceso-box button:hover { transform:scale(1.02); }
.acceso-box button:active { transform:scale(.98); }
.acceso-box .error-msg {
  color:#EB5757;
  font-size:13px;
  margin-bottom:12px;
  text-align:center;
}

/* ===== CARRITO PAGE (fallback) ===== */
.page-carrito {
  max-width:500px;
  margin:0 auto;
  padding:16px 18px 120px;
}
.carrito-item {
  display:flex;
  align-items:center;
  gap:10px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:16px;
  padding:14px;
  margin-bottom:10px;
  flex-wrap:wrap;
}
.ci-info { flex:1; min-width:120px; }
.ci-info h4 { font-size:15px; margin-bottom:2px; }
.ci-notas { font-size:12px; color:#999; }
.ci-precio { font-size:13px; color:var(--gold); margin-top:2px; }
.ci-acciones { display:flex; align-items:center; gap:8px; }
.ci-acciones .qty-btn-round { width:30px; height:30px; font-size:14px; }
.ci-acciones span { min-width:18px; text-align:center; font-size:14px; font-weight:700; }
.ci-remove {
  background:none; border:none;
  color:#EB5757; cursor:pointer;
  font-size:16px; padding:4px;
}
.ci-subtotal {
  font-weight:700;
  color:var(--gold);
  font-size:14px;
  width:100%;
  text-align:right;
}
.ci-notas-wrap { width:100%; margin-top:6px; }
.ci-notas-input {
  width:100%;
  padding:8px 10px;
  border-radius:8px;
  border:1px solid #555;
  background:#1a1a1a;
  color:#ccc;
  font-size:12px;
  font-family:inherit;
  resize:vertical;
  min-height:34px;
  transition:border-color .15s;
}
.ci-notas-input:focus { border-color:var(--gold); outline:none; }
.carrito-total {
  display:flex;
  justify-content:space-between;
  padding:16px 0;
  font-size:20px;
  border-top:1px solid var(--border);
  margin-top:0px;
}
.carrito-total strong { color:var(--gold); }

/* ===== PAGO / PEDIDO OK ===== */
.pedido-ok, .pago-screen {
  text-align:center;
  padding:40px 20px;
}
.pedido-ok i, .pago-ok-icon {
  font-size:64px;
  color:#27ae60;
  margin-bottom:12px;
}
.pedido-ok h2 { font-size:24px; margin-bottom:8px; }
.pedido-ok p { color:var(--text2); margin-bottom:6px; }
.pago-screen-icon { font-size:52px; color:var(--gold); margin-bottom:12px; }
.pago-screen-title { font-size:22px; margin-bottom:8px; }
.pago-screen-total { font-size:36px; font-weight:700; color:var(--gold); margin-bottom:4px; }
.pago-screen-num { font-size:14px; color:#888; margin-bottom:30px; }
.pago-screen-nota { font-size:11px; color:#555; margin-top:16px; }
.pago-screen-ok-text { color:#27ae60; font-weight:700; }

/* ===== TICKET ===== */
.ticket {
  background:var(--card);
  border:1.5px solid var(--gold);
  border-radius:16px;
  padding:20px;
  margin-bottom:16px;
  font-family:monospace;
  font-size:13px;
  color:#eee;
}
.ticket-header { text-align:center; margin-bottom:16px; }
.ticket-header h2 { color:var(--gold); margin-bottom:4px; }
.ticket-header p { font-size:13px; color:var(--text2); }
.ticket-fecha { font-size:11px !important; color:#666 !important; }
.ticket-lineas { border-top:1px dashed #444; border-bottom:1px dashed #444; padding:8px 0; }
.ticket-item { display:flex; gap:8px; padding:4px 0; }
.ti-qty { width:24px; text-align:right; color:var(--gold); font-weight:700; }
.ti-nombre { flex:1; }
.ti-precio { text-align:right; min-width:60px; color:#ccc; }
.ticket-notas { font-size:11px; color:#999; padding-left:32px; margin-bottom:4px; }
.ticket-iva-line {
  display:flex;
  justify-content:space-between;
  padding:2px 0;
  color:#888;
  font-size:11px;
  color:#888;
}
.ticket-iva-total-line { display:flex; justify-content:space-between; padding:2px 0; font-size:12px; font-weight:700; color:#333; border-top:1px dashed #999; margin-top:0px; }
.ticket-total { display:flex; justify-content:space-between; font-weight:700; padding-top:10px; margin-top:0px; font-size:15px; }
.ticket-total strong { color:var(--gold); }
.ticket-pago { text-align:center; margin-top:10px; color:var(--gold); font-size:13px; display:flex; align-items:center; justify-content:center; gap:4px; }
.ticket-estado { text-align:center; margin-top:6px; font-size:13px; color:#f39c12; font-weight:700; text-transform:uppercase; }

/* ===== PEDIDO ACTIVO INFO ===== */
.pedido-activo-info {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1a2a1a;
  border: 1px solid #2a5a2a;
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 16px;
  color: #7d7;
  font-size: 14px;
  flex-wrap: wrap;
}
.pedido-activo-info i { font-size: 20px; }
.pedido-activo-info span { flex: 1; min-width: 100px; }

/* ===== BUTTONS ===== */
.btn-primary {
  width:100%;
  padding:16px;
  border:none;
  border-radius:14px;
  background:linear-gradient(180deg,#e5c26a,#c8972b);
  color:#111;
  font-size:16px;
  font-weight:700;
  cursor:pointer;
  transition:var(--transition);
  text-align:center;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.btn-primary:hover { transform:scale(1.02); }
.btn-primary:active { transform:scale(.98); }
.btn-danger {
  width:100%;
  padding:14px;
  border:1.5px solid #c0392b;
  border-radius:14px;
  background:transparent;
  color:#c0392b;
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  transition:var(--transition);
  margin-top:0px;
}
.btn-danger:hover { background:#c0392b; color:white; }
.btn-outline {
  width:100%;
  padding:14px;
  border:1.5px solid var(--gold);
  border-radius:14px;
  background:transparent;
  color:var(--gold);
  font-size:14px;
  font-weight:700;
  cursor:pointer;
  transition:var(--transition);
  margin-top:0px;
}
.btn-outline:hover { background:var(--gold); color:#111; }
.btn-lg { padding:18px; }
.btn-small {
  padding:8px 16px;
  border-radius:10px;
  border:none;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  transition:var(--transition);
}
.btn-dorado { background:var(--gold); color:#111; }
.btn-azul { background:#2a6aff; color:white; }
.btn-verde { background:#27ae60; color:white; }
.btn-rojo { background:#c0392b; color:white; }
.btn-small:hover { filter:brightness(1.15); }
.btn-link {
  display:inline-block;
  margin-top:12px;
  color:var(--gold);
  text-decoration:underline;
  font-size:14px;
}

/* ===== HISTORIAL ===== */
.hist-card {
  padding:14px;
  margin-bottom:10px;
  border-radius:16px;
  background:var(--card);
  border:1px solid var(--border);
}
.hist-header { display:flex; gap:8px; align-items:center; margin-bottom:4px; font-size:14px; }
.hist-num { font-weight:700; color:var(--gold); }
.hist-mesa { color:var(--text2); }
.hist-fecha { font-size:12px; color:#666; margin-bottom:8px; }
.hist-productos { list-style:none; font-size:13px; color:#bbb; }
.hist-productos li { padding:2px 0; }
.hist-cant { color:var(--gold); font-weight:700; min-width:24px; display:inline-block; }
.hist-footer { display:flex; justify-content:space-between; margin-top:0px; padding-top:8px; border-top:1px solid var(--border); font-size:14px; }
.hist-pago { color:#888; display:flex; align-items:center; gap:4px; }
.hist-footer strong { color:var(--gold); }

/* ===== ESTADOS ===== */
.estado-pendiente { color:#f39c12; font-weight:700; }
.estado-en_preparacion { color:#2a6aff; font-weight:700; }
.estado-listo { color:#27ae60; font-weight:700; }
.estado-entregado { color:#888; }
.estado-cancelado { color:#EB5757; }

/* ===== COCINA / BARRA ===== */
.page-cocina {
  max-width:420px;
  margin:0 auto;
  padding:12px;
}
.cocina-header { margin-bottom:12px; text-align:center; }
.cocina-header h1 { font-size:22px; color:var(--gold); }
.cocina-sub { color:var(--text2); font-size:13px; }
.cocina-hora { font-size:13px; color:var(--text2); margin-top:0px; }

.pedidos-lista {
  display:flex;
  flex-direction:column;
  gap:12px;
}
.pedido-card {
  background:white;
  color:#111;
  border:1px solid #ccc;
  border-radius:0;
  padding:14px;
  font-family:'Courier New', Courier, monospace;
  font-size:12px;
  position:relative;
  box-shadow:0 2px 8px rgba(0,0,0,.15);
}
.pedido-card::after {
  content:'';
  position:absolute;
  bottom:-6px;
  left:0;
  right:0;
  height:6px;
  background:repeating-linear-gradient(90deg, #ccc 0, #ccc 4px, transparent 4px, transparent 8px);
}
.pedido-card.atencion { border-color:#f39c12; }
.pedido-card.urgente { border-color:#c0392b; }
.pedido-card.en_preparacion { border-left:4px solid #2a6aff; }
.pedido-card.pendiente { border-left:4px solid #e74c3c; }

.pc-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:8px;
  padding-bottom:6px;
  border-bottom:1px dashed #ccc;
}
.pc-mesa {
  font-size:20px;
  font-weight:700;
  color:#111;
}
.pc-hora { font-size:11px; color:#888; }
.pc-tiempo {
  font-size:12px;
  color:#666;
  display:flex;
  align-items:center;
  gap:4px;
}
.pc-tiempo-val {
  font-variant-numeric:tabular-nums;
  min-width:36px;
  display:inline-block;
}
.urgente .pc-tiempo { color:#c0392b; font-weight:700; }
.atencion .pc-tiempo { color:#e67e22; }

.pc-productos { list-style:none; margin-bottom:8px; }
.pc-productos li {
  padding:3px 0;
  font-size:13px;
  display:flex;
  flex-wrap:wrap;
  gap:4px;
  align-items:center;
}
.pc-cant {
  font-weight:700;
  color:#111;
  margin-right:2px;
  min-width:20px;
  text-align:right;
}
.pc-notas {
  font-size:11px;
  color:#e74c3c;
  width:100%;
  padding-left:22px;
  font-style:italic;
}
.pc-pago {
  font-size:11px;
  color:#666;
  margin-bottom:6px;
  display:flex;
  align-items:center;
  gap:4px;
}
.pc-tipo-label {
  font-size:10px;
  margin-left:4px;
  color:#888;
}
.pc-precio-unit { color:#888; font-size:11px; margin-left:auto; }
.pc-total-pedido {
  text-align:right;
  font-size:14px;
  font-weight:700;
  color:#111;
  margin-bottom:6px;
  padding-top:4px;
  border-top:1px dashed #ccc;
}
.pc-acciones {
  display:flex;
  gap:4px;
  margin-top:0px;
}
.pc-acciones .btn { flex:1; justify-content:center; }

.btn-cocina {
  flex:1;
  border:none;
  border-radius:4px;
  padding:10px;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  font-family:'Courier New', Courier, monospace;
  transition:var(--transition);
}
.btn-cocina.empezar { background:#f39c12; color:white; }
.btn-cocina.listo { background:#27ae60; color:white; }
.btn-cocina:hover { filter:brightness(1.1); }

.pc-whatsapp { margin-top:6px; }
.btn-whatsapp {
  width:100%;
  border:none;
  border-radius:4px;
  padding:8px;
  font-size:12px;
  font-weight:700;
  cursor:pointer;
  font-family:'Courier New', Courier, monospace;
  background:#25D366;
  color:white;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  transition:var(--transition);
}
.btn-whatsapp:hover { filter:brightness(1.1); }
.btn-whatsapp i { font-size:14px; }

.pc-grupo { margin-bottom:12px; }
.pc-grupo-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:6px 10px;
  margin-bottom:6px;
  background:#eee;
  font-size:13px;
  font-weight:700;
  color:#333;
  font-family:'Courier New', Courier, monospace;
}
.pc-grupo-total { color:#111; font-size:14px; }
.total-acumulado {
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:8px 12px;
  margin-bottom:10px;
  background:white;
  border:1px solid #ccc;
  font-size:13px;
  color:#333;
  font-family:'Courier New', Courier, monospace;
}
.total-acumulado strong { font-size:16px; color:#111; }

/* ===== ADMIN ===== */
.page-admin {
  max-width:960px;
  margin:0 auto;
  padding:16px;
}
.admin-tabs {
  display:flex;
  gap:8px;
  margin-bottom:20px;
  border-bottom:1px solid var(--border);
  padding-bottom:8px;
  overflow-x:auto;
  scrollbar-width:none;
}
.admin-tabs::-webkit-scrollbar { display:none; }
.admin-tab {
  padding:10px 20px;
  border:none;
  background:none;
  color:#888;
  font-size:14px;
  cursor:pointer;
  border-radius:10px 10px 0 0;
  transition:var(--transition);
  white-space:nowrap;
  display:flex;
  align-items:center;
  gap:4px;
}
.admin-tab i { font-size:16px; }
.admin-tab.active {
  background:var(--gold);
  color:#111;
  font-weight:700;
}
.admin-tab:hover:not(.active) { color:var(--gold); }
.admin-panel { display:none; }
.admin-panel.active { display:block; }
.admin-toolbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:12px;
  flex-wrap:wrap;
  gap:8px;
}
.admin-toolbar h2 { font-size:20px; color:var(--gold); }
.admin-selector {
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:16px;
  padding:12px 16px;
  background:var(--card);
  border:1px solid var(--border);
  border-radius:14px;
  flex-wrap:wrap;
}
.admin-selector label {
  color:var(--gold);
  font-weight:700;
  font-size:14px;
  white-space:nowrap;
}
.admin-selector select {
  flex:1;
  min-width:120px;
  padding:8px 12px;
  border-radius:10px;
  border:1px solid #444;
  background:#202020;
  color:white;
  font-size:14px;
  cursor:pointer;
}
.admin-selector select:focus { border-color:var(--gold); }
.admin-table-wrap { overflow-x:auto; }
.admin-table {
  width:100%;
  border-collapse:collapse;
  font-size:13px;
}
.admin-table th {
  text-align:left;
  padding:10px 8px;
  background:var(--card);
  color:var(--gold);
  border-bottom:1px solid var(--border);
  white-space:nowrap;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:0.5px;
}
.admin-table td {
  padding:10px 8px;
  border-bottom:1px solid #222;
  color:#ccc;
}
.admin-table tr:hover td { background:var(--card); }
.admin-table .acciones {
  white-space:nowrap;
  display:flex;
  gap:4px;
}
.btn-icon-small {
  background:none;
  border:none;
  color:var(--gold);
  cursor:pointer;
  padding:6px 8px;
  border-radius:6px;
  font-size:14px;
  transition:var(--transition);
}
.btn-icon-small:hover { background:rgba(217,182,111,.15); }
.btn-icon-small .fa-trash { color:#EB5757; }

/* Modal */
.modal-overlay {
  position:fixed;
  top:0; left:0;
  width:100%; height:100%;
  background:rgba(0,0,0,.7);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:1000;
  padding:20px;
}
.modal {
  background:var(--card);
  border:1px solid var(--border);
  border-radius:20px;
  padding:24px;
  width:100%;
  max-width:440px;
  max-height:90vh;
  overflow-y:auto;
}
.modal h3 { font-size:20px; color:var(--gold); margin-bottom:16px; }
.modal label {
  display:block;
  margin-bottom:4px;
  color:var(--text2);
  font-size:13px;
}
.modal input[type=text],
.modal input[type=number],
.modal textarea,
.modal select {
  width:100%;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid #444;
  background:#202020;
  color:white;
  font-size:14px;
  margin-bottom:12px;
}
.modal select { cursor:pointer; }
.modal input:focus,
.modal textarea:focus,
.modal select:focus { border-color:var(--gold); }
.modal input[type=checkbox] { margin-bottom:12px; transform:scale(1.2); margin-left:4px; }
.modal-acciones {
  display:flex;
  gap:10px;
  justify-content:flex-end;
  margin-top:0px;
}

/* Image upload */
.img-upload-row {
  display:flex;
  gap:8px;
  margin-bottom:12px;
}
.img-upload-row input[type=text] { flex:1; margin-bottom:0; }
.file-input {
  font-size:13px;
  color:#aaa;
  padding:8px;
  border-radius:10px;
  border:1px solid #444;
  background:#202020;
  max-width:120px;
}
.file-input::-webkit-file-upload-button {
  background:var(--gold);
  color:#111;
  border:none;
  padding:6px 12px;
  border-radius:8px;
  font-weight:700;
  cursor:pointer;
}
.img-preview {
  margin-bottom:12px;
  display:flex;
  align-items:center;
  gap:10px;
}
.img-preview img {
  width:60px; height:60px;
  object-fit:cover;
  border-radius:8px;
  border:1px solid #444;
}
.img-preview .btn-small { font-size:12px; padding:4px 10px; }
.mini-img {
  width:28px; height:28px;
  object-fit:cover;
  border-radius:6px;
  vertical-align:middle;
  margin-right:4px;
}

/* Staff select */
.staff-select {
  background:#202020;
  color:white;
  border:1px solid var(--gold);
  border-radius:10px;
  padding:6px 10px;
  font-size:13px;
  cursor:pointer;
  max-width:160px;
}
.staff-select:focus { border-color:#e8c86a; }
.staff-select option { background:var(--card); }

/* Nav grid */
.nav-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(160px,1fr));
  gap:12px;
  margin-bottom:24px;
}
.nav-card {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:24px 16px;
  border-radius:18px;
  background:var(--card);
  border:1px solid var(--border);
  color:var(--text);
  text-decoration:none;
  transition:var(--transition);
  text-align:center;
  cursor:pointer;
}
.nav-card:hover {
  border-color:var(--nav-clr,#d9b66f);
  box-shadow:0 0 20px rgba(var(--nav-clr,#d9b66f),.15);
  transform:translateY(-3px);
  text-decoration:none;
}
.nav-card i {
  font-size:32px;
  color:var(--nav-clr,#d9b66f);
}
.nav-card span {
  font-weight:700;
  font-size:14px;
}
.nav-card small {
  font-size:11px;
  color:var(--text2);
}

/* Dashboard */
.dash-resumen { display:flex; gap:12px; margin-bottom:20px; flex-wrap:wrap; }
.dash-stat {
  flex:1; min-width:120px; text-align:center;
  padding:20px; border-radius:16px;
  background:var(--card); border:1px solid var(--border);
}
.dash-stat-num { display:block; font-size:28px; font-weight:700; color:var(--gold); }
.dash-stat-label { display:block; font-size:13px; color:#888; margin-top:0px; }
.dash-section { margin-bottom:20px; }
.dash-section h3 { font-size:16px; color:#ccc; margin-bottom:10px; }
.dash-top-item {
  display:flex; gap:8px; align-items:center;
  padding:8px 10px; border-radius:10px;
  background:var(--card); margin-bottom:4px; font-size:13px;
}
.dash-top-pos { width:20px; font-weight:700; color:var(--gold); }
.dash-top-nombre { flex:1; color:#ddd; }
.dash-top-cant { color:#888; min-width:40px; text-align:right; }
.dash-top-ingresos { color:var(--gold); font-weight:700; min-width:70px; text-align:right; }
.dash-pago-item {
  padding:10px; margin-bottom:6px;
  border-radius:12px; background:var(--card); border:1px solid var(--border);
}
.dpi-header { display:flex; gap:8px; align-items:center; font-size:13px; }
.dpi-header i { color:var(--gold); width:18px; }
.dpi-pedidos { color:#666; margin-left:auto; }
.dpi-header strong { color:var(--gold); min-width:70px; text-align:right; }
.dpi-bar { height:4px; background:#2a2a2a; border-radius:2px; margin-top:6px; }
.dpi-bar-fill { height:100%; background:var(--gold); border-radius:2px; transition:width .4s; }

/* Cobrar */
.cobrar-card {
  padding:16px;
  margin-bottom:12px;
  border-radius:16px;
  background:var(--card);
  border:1.5px solid var(--gold);
}
.cobrar-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.cobrar-mesa { font-size:22px; font-weight:700; color:var(--gold); }
.cobrar-pago { font-size:13px; color:#888; display:flex; align-items:center; gap:4px; }
.cobrar-pedidos { margin-bottom:10px; }
.cobrar-pedido { padding:6px 0; border-bottom:1px solid var(--border); }
.cobrar-pedido:last-child { border-bottom:none; }
.cobrar-pedido-num { font-size:13px; font-weight:700; color:#ddd; margin-right:8px; }
.cobrar-prods { list-style:none; margin-top:0px; font-size:13px; color:var(--text2); padding-left:20px; }
.cobrar-prods li { display:flex; gap:4px; align-items:center; padding:2px 0; }
.cobrar-cant { color:var(--gold); font-weight:700; min-width:24px; }
.cobrar-nom { flex:1; color:#ddd; }
.cobrar-precio-unit { color:#666; min-width:40px; text-align:right; }
.cobrar-subtot { color:var(--gold); font-weight:700; min-width:60px; text-align:right; }
.cobrar-total { display:flex; justify-content:space-between; margin-bottom:10px; padding-top:8px; border-top:1px solid var(--border); }
.cobrar-total strong { color:var(--gold); }

/* Caja */
.caja-resumen { display:flex; gap:12px; margin-bottom:16px; flex-wrap:wrap; }
.caja-stat {
  flex:1; min-width:120px; text-align:center;
  padding:20px; border-radius:16px;
  background:var(--card); border:1px solid var(--border);
}
.caja-stat-num { display:block; font-size:28px; font-weight:700; color:var(--gold); }
.caja-stat-label { display:block; font-size:13px; color:#888; margin-top:0px; }
.caja-desglose { margin-bottom:20px; }
.caja-pago-item {
  padding:12px; margin-bottom:8px;
  border-radius:12px; background:var(--card); border:1px solid var(--border);
}
.cpi-header { display:flex; align-items:center; gap:8px; font-size:14px; }
.cpi-header i { width:20px; color:var(--gold); }
.cpi-header strong { margin-left:auto; color:var(--gold); }
.cpi-bar { height:4px; background:#2a2a2a; border-radius:2px; margin-top:0px; }
.cpi-bar-fill { height:100%; background:var(--gold); border-radius:2px; transition:width .4s; }
.caja-pedidos { display:flex; flex-direction:column; gap:8px; }
.caja-pedido-card {
  padding:12px; border-radius:12px;
  background:var(--card); border:1px solid var(--border);
}
.caja-pedido-header { display:flex; gap:8px; align-items:center; font-size:13px; margin-bottom:6px; }
.caja-hora { color:#666; }
.caja-productos { list-style:none; font-size:13px; color:#bbb; }
.caja-productos li { display:flex; gap:4px; padding:2px 0; }
.caja-cant { color:var(--gold); font-weight:700; min-width:24px; }
.caja-subtot { margin-left:auto; color:#888; }
.caja-pedido-footer { display:flex; justify-content:space-between; margin-top:6px; padding-top:6px; border-top:1px solid var(--border); font-size:14px; }
.caja-pedido-footer strong { color:var(--gold); }

/* Producto page */
.page-producto { max-width:500px; margin:0 auto; }
.prod-imagen {
  width:100%; height:220px;
  background:var(--card);
  display:flex; align-items:center; justify-content:center;
  font-size:60px; color:#444;
}
.prod-img-full {
  width:100%; height:100%;
  object-fit:cover;
}
.prod-body { padding:20px; }
.prod-categoria { font-size:13px; color:var(--gold); text-transform:uppercase; letter-spacing:1px; }
.prod-body h1 { font-size:24px; margin:6px 0 10px; }
.prod-descripcion { color:var(--text2); line-height:1.6; margin-bottom:14px; font-size:14px; }
.prod-descripcion em { color:#888; font-size:13px; }
.prod-precio { font-size:28px; font-weight:700; color:var(--gold); margin-bottom:24px; }
.prod-acciones { display:flex; flex-direction:column; gap:16px; }
.cantidad-selector {
  display:flex; align-items:center;
  gap:16px; justify-content:center;
}
.qty-btn {
  width:44px; height:44px;
  border-radius:12px;
  border:1px solid #444;
  background:#202020;
  color:white;
  font-size:22px;
  cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.qty-btn:hover { border-color:var(--gold); }
#qtyValue { font-size:24px; font-weight:700; min-width:30px; text-align:center; }
#notas {
  width:100%;
  padding:12px;
  border-radius:12px;
  border:1px solid #444;
  background:#202020;
  color:white;
  font-size:14px;
  resize:vertical;
  min-height:60px;
}
#notas:focus { border-color:var(--gold); }

/* Empty state */
.empty-state {
  text-align:center;
  padding:60px 20px;
  color:#666;
}
.empty-state i { font-size:60px; margin-bottom:16px; color:#444; }
.empty-state h2 { font-size:20px; color:var(--text2); margin-bottom:8px; }
.empty-state p { margin-bottom:20px; }
.empty-msg { text-align:center; color:#666; padding:40px 0; }

/* ===== RESPONSIVE ===== */

.btn-nfc {
    background: #202020;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 4px 12px;
    color: #ccc;
    cursor: pointer;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.btn-nfc:hover { border-color: #d4a853; color: #d4a853; }

/* === Stock badges for digital menu === */






/* === PRODUCT CARD — IMAGE LEFT, INTEGRATED === */
.carta-body { background: #0A0A0A; }

.prod-card {
  position: relative;
  display: flex;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid #222;
  background: #141414;
  min-height: 120px;
}

.prod-card-img-wrap {
  width: 40%;
  min-width: 100px;
  flex-shrink: 0;
  overflow: hidden;
  background: #1a1a1a;
  position: relative;
}

.prod-card-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #c0c0c0; text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.prod-card-img img,
.prod-card-img .prod-card-img-real {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* Gradient fade on the right edge of the image */
.prod-card-img-wrap::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  background: linear-gradient(to right, rgba(20,20,20,0) 60%, rgba(20,20,20,0.95) 100%);
  pointer-events: none;
}

.prod-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 16px 14px 14px;
  min-width: 0;
}

.prod-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 2px;
}

.prod-card-nombre {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  flex: 1;
  margin: 0;
}

.prod-card-precio {
  font-size: 16px;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  margin-left: 8px;
}

.prod-card-desc {
  font-size: 12px;
  color: #c0c0c0; text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  line-height: 1.35;
  margin: 2px 0 8px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.prod-card-add { display: flex; align-items: center; }

.btn-add {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: none;
  background: var(--gold);
  color: #111;
  font-size: 22px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
  padding: 0;
  line-height: 1;
}

.btn-add:hover { transform: scale(1.08); }
.btn-add:active { transform: scale(0.92); }
.btn-add:disabled { opacity: 0.35; cursor: not-allowed; }

.qty-selector { display: flex; align-items: center; gap: 4px; }
.qty-btn-round {
  width: 30px; height: 30px;
  border-radius: 8px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
  line-height: 1;
}
.qty-minus { background: rgba(255,255,255,0.12); color: #fff; }
.qty-plus { background: var(--gold); color: #111; }
.qty-btn-round:hover { transform: scale(1.08); }
.qty-selector span { min-width: 20px; text-align: center; font-size: 14px; font-weight: 700; color: #fff; }

/* Stock badges */
.prod-card-stock { margin: 0; }
.stock-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 8px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.stock-agotado { background: rgba(198,40,40,0.5); color: #ff8a80; }
.stock-pocas { background: rgba(245,127,23,0.4); color: #ffd54f; }

@media(max-width:480px) {
  .prod-card-img-wrap { width: 35%; min-width: 80px; }
  .prod-card-body { padding: 10px 12px; }
  .prod-card-nombre { font-size: 14px; }
  .prod-card-precio { font-size: 14px; }
  .prod-card-desc { font-size: 11px; }
  .prod-card { min-height: 100px; }
  .btn-add { width: 32px; height: 32px; font-size: 20px; }
}
@media(max-width:600px) {
  .acceso-box { padding:28px; border-radius:25px; }
  .acceso-box .logo { width:100px; }
  .acceso-box h1 { font-size:24px; }
}
@media(max-width:480px) {
  .page-carta, .page-cocina, .page-admin, .page-carrito { padding:0 0 100px; }

  .btn-add { width:34px; height:34px; }
  .cat-tab { min-width:68px; height:68px; font-size:11px; }
  .cat-tab i { font-size:20px; }
  .admin-table { font-size:12px; }
  .admin-table th, .admin-table td { padding:8px 6px; }
  .pan { border-radius:24px 24px 0 0; }
  .pan-head { padding:0 18px 14px; }
  .pan-tit { font-size:20px; }
  .pan-body { padding:0 18px; }
  .pan-foot { padding:18px; }
  .pan-go { padding:16px; font-size:16px; }
  .bar { height:82px; padding:0 14px; }
  .bar-cart { width:46px; height:46px; }
  .bar-tot { font-size:22px; }
  .bar-go { padding:12px 16px; font-size:14px; }
}

/* ALMACEN SUBTABS */
.admin-subtabs { display:flex;gap:4px;overflow-x:auto;padding-bottom:8px;margin-bottom:12px;border-bottom:1px solid #333;flex-wrap:wrap; }
.admin-subtab { background:none;border:1px solid #444;color:#aaa;padding:6px 14px;border-radius:20px;cursor:pointer;font-size:13px;white-space:nowrap;transition:all .2s; }
.admin-subtab.active { background:var(--gold);color:#090909;border-color:var(--gold);font-weight:600; }
.admin-subtab:hover:not(.active) { border-color:var(--gold);color:var(--gold); }
.admin-subpanel { display:none; }
.admin-subpanel.active { display:block; }
.stat-card { background:var(--card);border:1px solid #333;border-radius:12px;padding:16px;text-align:center; }
.stat-card .stat-num { font-size:28px;font-weight:bold;color:var(--gold); }
.stat-card .stat-label { font-size:13px;color:#888;margin-top:4px; }
.linea-pedido { display:flex;align-items:center;gap:8px;padding:6px 10px;background:#202020;border-radius:8px;margin-bottom:4px;font-size:13px; }
.linea-pedido span:first-child { flex:1; }
