:root {
  --sidebar-w: 260px;
  --dark: #0f111a;
  --dark-2: #1a1d2e;
  --gold: #f59e0b;
  --gold-dark: #d97706;
  --gold-soft: rgba(245, 158, 11, 0.1);
  --rosa: #f43f5e;
  --rosa-dark: #e11d48;
  --rosa-soft: rgba(244, 63, 94, 0.1);
  --bg: #e2e8f0;
  --ink: #0f172a;
  --muted: #64748b;
  --border: rgba(15, 23, 42, 0.08);
  --radius: 16px;
  --glass-bg: rgba(255, 255, 255, 0.75);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  margin: 0;
}

h1, h2, h3, h4, .brand-title, .login-title, .ticket h2 {
  font-family: 'Playfair Display', Georgia, serif;
}

a { text-decoration: none; }

.btn-gold {
  background: linear-gradient(135deg, var(--rosa), var(--rosa-dark));
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 10px;
}
.btn-gold:hover, .btn-gold:focus { color: #fff; filter: brightness(1.05); }

.btn-outline-gold {
  border: 1px solid var(--rosa);
  color: var(--rosa-dark);
  font-weight: 600;
  border-radius: 10px;
}
.btn-outline-gold:hover { background: var(--rosa); color: #fff; }

.gold-text { color: var(--rosa); }

.btn-icon {
  background: transparent;
  border: none;
  color: var(--ink);
  font-size: 1.4rem;
  padding: 6px 10px;
  border-radius: 8px;
  display: none;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  max-width: 86vw;
  background: #2b2f36;
  display: flex;
  flex-direction: column;
  z-index: 1040;
  transition: transform .25s ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.brand-logo { width: 48px; height: 48px; border-radius: 12px; }

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-title { color: #fff; font-size: 1.02rem; font-weight: 700; letter-spacing: .2px; }
.brand-sub { color: var(--gold); font-size: .72rem; letter-spacing: .6px; text-transform: uppercase; }

.sidebar-nav { padding: 14px 12px; display: flex; flex-direction: column; gap: 4px; overflow-y: auto; flex: 1; }

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #a9aecb;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: .93rem;
  font-weight: 500;
  transition: background .15s, color .15s;
}
.sidebar-nav a i { font-size: 1.05rem; width: 20px; text-align: center; }
.sidebar-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar-nav a.active {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  font-weight: 600;
}

.sidebar-sep { height: 1px; background: rgba(255,255,255,.08); margin: 10px 8px; }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,17,29,.55);
  z-index: 1035;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}

.main-wrap {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1020;
}

.page-title { font-size: 1.3rem; font-weight: 700; margin: 0; }

.topbar-acciones { display: flex; align-items: center; gap: 8px; }
.topbar-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: .85rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.topbar-shortcut i { font-size: 1.05rem; }
.topbar-shortcut:hover { color: #fff; }

.ts-caja { color: #15803d; background: #f0fdf4; border-color: #bbf7d0; }
.ts-caja:hover { background: #16a34a; border-color: #16a34a; }

.ts-pos { color: var(--gold-dark); background: var(--gold-soft); border-color: #ecd9a6; }
.ts-pos:hover { background: var(--gold); border-color: var(--gold); }

.ts-cuentas { color: #6d28d9; background: #f5f3ff; border-color: #ddd6fe; }
.ts-cuentas:hover { background: #7c3aed; border-color: #7c3aed; }

.user-box { display: flex; align-items: center; gap: 10px; }

.local-switch .form-select {
  min-width: 180px;
  padding: 6px 32px 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: .82rem;
  font-weight: 600;
}
.badge.text-bg-gold { background: var(--gold-soft); color: var(--gold-dark); border: 1px solid #ecd9a6; font-weight: 600; }
.user-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.user-info { display: flex; flex-direction: column; line-height: 1.2; }
.user-info small { color: var(--muted); text-transform: capitalize; }

.content { flex: 1; padding: 24px 26px; }

.footer {
  padding: 14px 26px;
  text-align: center;
  color: var(--muted);
  font-size: .82rem;
  border-top: 1px solid var(--border);
  background: #fff;
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 2px 10px rgba(23,26,38,.04);
  overflow: hidden;
}
.card-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 18px;
}

.table thead th {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: #fafbfe;
  white-space: nowrap;
}
.table tbody td { font-size: .9rem; }

.btn-edit { background: #B82155; color: #fff; }
.btn-edit:hover { background: #B82155; color: #fff; }
.btn-delete { background: #fdecec; color: #c0392b; }
.btn-delete:hover { background: #c0392b; color: #fff; }
.btn-confirm { background: #e4f5ec; color: #1e8e5a; }
.btn-confirm:hover { background: #1e8e5a; color: #fff; }
.btn-pago { background: #fdf3e0; color: #b7791f; }
.btn-pago:hover { background: #b7791f; color: #fff; }
.btn-cancel { background: #fdecec; color: #c0392b; }
.btn-cancel:hover { background: #c0392b; color: #fff; }
.btn-atender { background: #e8f0fe; color: #2f6fd0; }
.btn-atender:hover { background: #2f6fd0; color: #fff; }
.btn-view { background: #eaf1fe; color: #2f6fd0; }
.btn-view:hover { background: #2f6fd0; color: #fff; }

.pos-stock { font-size: .78rem; font-weight: 600; color: #1e8e5a; margin-top: 4px; }
.pos-stock-bajo { color: #b7791f; }
.pos-stock-agotado { color: #c0392b; }
.btn-add:disabled { opacity: .5; cursor: not-allowed; }

.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 10px rgba(23,26,38,.04);
  height: 100%;
  position: relative;
}
.stat-card.gold { background: linear-gradient(135deg, var(--dark), var(--dark-2)); }
.stat-card.gold .stat-label { color: #a9aecb; }
.stat-card.gold .stat-value { color: #fff; }
.stat-card.gold .stat-icon { background: rgba(201,162,39,.18); color: var(--gold); }

.stat-card.rosa { background: linear-gradient(135deg, var(--rosa), var(--rosa-dark)); }
.stat-card.rosa .stat-label { color: #ffdbe7; }
.stat-card.rosa .stat-value { color: #fff; }
.stat-card.rosa .stat-icon { background: rgba(255,255,255,.22); color: #fff; }

.stat-card.violeta { background: linear-gradient(135deg, #7c3aed, #5b21b6); }
.stat-card.violeta .stat-label { color: #e4d9ff; }
.stat-card.violeta .stat-value { color: #fff; }
.stat-card.violeta .stat-icon { background: rgba(255,255,255,.22); color: #fff; }

.stat-card.verde { background: linear-gradient(135deg, #10b981, #047857); }
.stat-card.verde .stat-label { color: #d1fae5; }
.stat-card.verde .stat-value { color: #fff; }
.stat-card.verde .stat-icon { background: rgba(255,255,255,.22); color: #fff; }
.stat-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: var(--gold-soft);
  color: var(--gold-dark);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-label { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.stat-value { display: block; font-size: 1.5rem; font-weight: 700; margin-top: 2px; }

.stat-add {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 0;
  background: rgba(0,0,0,.08);
  color: inherit;
  display: grid;
  place-items: center;
  font-size: 1rem;
  line-height: 1;
  transition: background .15s ease, transform .15s ease;
}
.stat-add:hover { background: rgba(0,0,0,.16); }
.stat-add:active { transform: scale(.94); }
.caja-dark .stat-add { background: rgba(255,255,255,.14); color: #fff; }
.caja-dark .stat-add:hover { background: rgba(255,255,255,.26); }

.table-img { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; border: 1px solid var(--border); }
.table-img-ph {
  background: var(--gold-soft);
  color: var(--gold-dark);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.pos-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: stretch;
}
.pos-cart { order: -1; }

.pos-products { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.cat-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-pill {
  border: 1px solid #4a505c;
  background: #343944;
  border-radius: 50px;
  padding: 8px 16px;
  font-size: .85rem;
  font-weight: 600;
  color: #e6e9ef;
  transition: all .15s;
}
.cat-pill:hover { border-color: var(--rosa); color: #ffb3c8; }
.cat-pill.active { background: linear-gradient(135deg, var(--rosa), var(--rosa-dark)); color: #fff; border-color: transparent; }

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.producto-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}
.producto-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }

.producto-img { height: 110px; background-size: cover; background-position: center; }
.producto-img-btn {
  display: block;
  width: 100%;
  border: none;
  padding: 0;
  position: relative;
  cursor: zoom-in;
}
.producto-fotos-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.producto-img-ph {
  background: linear-gradient(135deg, #3a5680, #324E78);
  color: #c9d6ee;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
}

.foto-preview { height: 56px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.foto-preview img { width: 100%; height: 100%; object-fit: cover; }

.modal-fotos { background: #23262c; }
.foto-grande {
  border-radius: 10px;
  overflow: hidden;
  background: #1b1e23;
  display: grid;
  place-items: center;
  min-height: 260px;
}
.foto-grande img { max-width: 100%; max-height: 420px; object-fit: contain; }
.foto-minis { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.foto-mini {
  width: 62px;
  height: 62px;
  border-radius: 8px;
  border: 2px solid transparent;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  opacity: .6;
  transition: opacity .15s, border-color .15s;
}
.foto-mini:hover { opacity: .9; }
.foto-mini.active { opacity: 1; border-color: var(--rosa); }

.caja-dark {
  background: #23262c;
  border: 1px solid #3a3f47;
  border-radius: var(--radius);
  padding: 18px;
  --bs-body-color: #e9ebf0;
  --bs-body-bg: #23262c;
}
.caja-dark .card { background: #2b2f36; border-color: #3a3f47; }
.caja-dark .card-header { background: #2b2f36; border-color: #3a3f47; color: #fff; }
.caja-dark .stat-card { background: #2b2f36; border-color: #3a3f47; }
.caja-dark .stat-card.gold { background: linear-gradient(135deg, #171a26, #20243a); }
.caja-dark .stat-label { color: #a9aecb; }
.caja-dark .stat-value { color: #fff; }
.caja-dark .table-light { --bs-table-bg: #31363e; --bs-table-color: #fff; --bs-table-border-color: #3a3f47; }
.caja-dark a { color: #ff9fae; }

.menu-shortcut {
  background: #2b2f36;
  border: 1px solid #3a3f47;
  border-radius: var(--radius);
}
.menu-shortcut .card-body { padding: 16px 14px; }
.menu-shortcut .card-icon { color: var(--gold); }
.menu-shortcut h5 { color: #fff; font-size: .95rem; margin-top: 6px !important; }
.menu-shortcut .text-muted { color: #a9aecb !important; }

.producto-info { padding: 12px; }
.producto-nombre { color: var(--ink); font-weight: 700; font-size: 1.05rem; line-height: 1.25; min-height: 2.4em; }
.producto-cat { color: var(--muted); font-size: .8rem; margin-top: 2px; }
.producto-precio { color: var(--rosa); font-weight: 800; font-size: 1.1rem; }

.btn-add {
  height: 34px;
  padding: 0 14px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--rosa), var(--rosa-dark));
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: transform .12s, filter .12s;
}
.btn-add:hover { transform: scale(1.06); filter: brightness(1.08); }

.pos-cart {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}
.pos-cart form { display: flex; flex-direction: column; max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: thin; }
.pos-cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  z-index: 2;
}
.pos-cart-header > span { font-size: .9rem; line-height: 1.1; }
.pos-cart-header #btnVaciar { padding: .25rem .6rem; font-size: .75rem; }
.pos-cart form > div:not(.pos-cart-header):not(.pos-cart-foot) { padding-left: 16px; padding-right: 16px; }

.pos-cart-config { flex: 0 0 auto; max-height: 34vh; min-height: 0; overflow-y: auto; scrollbar-width: thin; padding-top: 10px; }

.btn-tipo {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--ink);
  font-weight: 600;
}
.btn-check:checked + .btn-tipo {
  background: linear-gradient(135deg, var(--rosa), var(--rosa-dark));
  border-color: transparent;
  color: #fff;
}

.pos-pagos {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pos-pagos .btn-tipo {
  flex: 1 1 30%;
  min-width: 88px;
  white-space: nowrap;
  padding: .38rem .35rem;
  font-size: .78rem;
}
.pos-pagos .btn-tipo i { margin-right: 2px; }

.pos-cart-items { flex: 1 1 auto; min-height: 80px; max-height: 32vh; overflow-y: auto; margin: 4px 16px; padding: 0 !important; scrollbar-width: thin; }

.pos-cart-foot {
  margin-top: auto;
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: #fff;
  box-shadow: 0 -4px 12px rgba(23,26,38,.06);
}

.empty-cart {
  text-align: center;
  color: var(--muted);
  padding: 34px 10px;
}
.empty-cart i { font-size: 2.4rem; opacity: .5; }
.empty-cart p { font-size: .85rem; margin: 10px 0 0; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info strong { display: block; font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-info small { color: var(--muted); }
.cart-qty { display: flex; align-items: center; gap: 6px; }
.cart-qty button {
  width: 26px; height: 26px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 7px;
  font-weight: 700;
  line-height: 1;
}
.cart-qty span { min-width: 20px; text-align: center; font-weight: 600; }
.cart-item-remove { border: none; background: transparent; color: #c0392b; font-size: .95rem; padding: 4px; }
.cart-item-total { font-weight: 700; font-size: .85rem; min-width: 66px; text-align: right; }

.pos-cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px !important;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fafbfe;
  font-weight: 600;
}
.pos-cart-total strong { font-size: 1.05rem; color: var(--rosa); font-family: 'Playfair Display', serif; }
#btnRegistrar { border-radius: 0; }

.pos-cart-vuelto {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px !important;
  border-bottom: 1px solid var(--border);
  background: #fff;
  font-size: .9rem;
}
.pos-cart-vuelto strong { color: #1e8e5a; }

.pos-cart-monto { padding: 8px 16px; }
.pos-cart-monto label { font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.pos-cart-monto input { width: 100%; padding: .4rem .55rem; }

.mesa-card {
  background: #2b2f36;
  border: 1px solid #3a3f47;
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  transition: transform .15s;
}
.mesa-card:hover { transform: translateY(-3px); }
.mesa-card.mesa-disponible { border-top: 4px solid var(--gold); }
.mesa-card.mesa-inactiva { opacity: .6; }
.mesa-card.mesa-reservada { border-top: 4px solid #b7791f; }
.mesa-numero { font-family: 'Playfair Display', serif; font-size: 1.4rem; font-weight: 700; color: #fff; }
.mesa-capacidad { color: #9aa2af; font-size: .85rem; }
.mesa-reserva {
  background: #fdf3e0;
  border: 1px solid #f3e0b0;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: .8rem;
  margin-top: 10px;
}
.mesa-reserva-item { display: flex; align-items: center; justify-content: center; gap: 6px; color: #7a5a1a; }
.mesa-reserva-item .bi-bell-fill { color: #b7791f; }
.mesa-reserva-item strong { color: #5a3f10; }

.login-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--dark) 0%, #2a2f4a 60%, var(--dark-2) 100%);
  padding: 20px;
}

.login-wrap { width: 100%; max-width: 420px; }
.reserva-wrap { max-width: 560px; }
.reserva-wrap .login-title { font-size: 1.35rem; }

.login-card {
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.login-brand { text-align: center; }
.login-brand img { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 10px 24px rgba(201,162,39,.4); }
.login-title { text-align: center; font-size: 1.5rem; margin: 16px 0 2px; color: var(--ink); }
.login-sub { text-align: center; color: var(--muted); font-size: .85rem; margin: 0; }

.login-card .form-control { border-radius: 10px; padding: 12px 14px; height: auto; }
.login-card .form-control:focus { border-color: var(--gold); box-shadow: 0 0 0 .25rem rgba(201,162,39,.18); }
.login-footer { text-align: center; margin-top: 20px; color: var(--muted); font-size: .78rem; }

.ticket-body { background: #e9ebf2; padding: 24px; }

.ticket-actions {
  max-width: 420px;
  margin: 0 auto 16px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.ticket {
  max-width: 420px;
  margin: 0 auto;
  background: #fff;
  padding: 28px 24px;
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
}
.ticket-head { text-align: center; border-bottom: 2px dashed var(--border); padding-bottom: 14px; }
.ticket-head img { width: 52px; height: 52px; border-radius: 12px; }
.ticket-head h2 { font-size: 1.2rem; margin: 8px 0 2px; }
.ticket-head p { margin: 0; color: var(--muted); font-size: .74rem; }
.ticket-meta { margin: 14px 0; font-size: .8rem; }
.ticket-meta div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.ticket-meta span { color: var(--muted); }
.ticket-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.ticket-table th {
  text-align: left;
  text-transform: uppercase;
  font-size: .68rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding: 6px 2px;
}
.ticket-table td { padding: 6px 2px; border-bottom: 1px dashed var(--border); vertical-align: top; }
.ticket-table td:not(:first-child), .ticket-table th:not(:first-child) { text-align: right; }
.ticket-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  font-weight: 700;
  border-bottom: 2px dashed var(--border);
}
.ticket-total strong { font-size: 1.2rem; color: var(--rosa); font-family: 'Playfair Display', serif; }
.ticket-foot { text-align: center; padding-top: 12px; color: var(--muted); }
.ticket-foot p { margin: 2px 0; font-size: .78rem; text-transform: capitalize; }

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
}
.btn-whatsapp:hover, .btn-whatsapp:focus { color: #fff; filter: brightness(1.06); }

.noti-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(360px, calc(100vw - 24px));
}
.noti-toast {
  background: linear-gradient(135deg, var(--rosa), var(--rosa-dark));
  color: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 12px 30px rgba(23,26,38,.25);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: noti-in .3s ease;
}
.noti-toast i { font-size: 1.4rem; line-height: 1; }
.noti-toast strong { display: block; font-size: .95rem; }
.noti-toast small { display: block; opacity: .9; }
@keyframes noti-in {
  from { transform: translateX(30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.comprobante-body { background: #e9ebf2; padding: 24px; }

.comprobante-acciones {
  max-width: 900px;
  margin: 0 auto 18px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.documento {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  padding: 40px 48px;
  border-radius: 4px;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  font-size: .92rem;
  color: #111;
}

.doc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  border-bottom: 2px solid #111;
  padding-bottom: 16px;
}
.doc-brand { display: flex; gap: 14px; align-items: center; }
.doc-brand img { width: 58px; height: 58px; border-radius: 12px; }
.doc-brand h2 { font-size: 1.35rem; margin: 0; }
.doc-brand p { margin: 0; font-size: .82rem; color: #333; }
.doc-tipo { text-align: right; line-height: 1.6; }
.doc-titulo { display: block; font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 1px; }
.doc-nro { display: block; font-weight: 600; }

.doc-cuerpo { padding: 18px 0; }
.doc-tabla { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.doc-tabla td { padding: 4px 8px; border: 1px solid #ddd; }
.doc-etiqueta { background: #f5f5f5; font-weight: 600; width: 90px; }

.doc-items { width: 100%; border-collapse: collapse; }
.doc-items th {
  text-align: left;
  font-size: .75rem;
  text-transform: uppercase;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  padding: 7px 10px;
}
.doc-items th:nth-child(n+2) { text-align: right; }
.doc-items td { border: 1px solid #ddd; padding: 7px 10px; }
.doc-items td:nth-child(1) { text-align: center; width: 60px; }
.doc-items td:nth-child(n+3) { text-align: right; }

.doc-pago {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  margin-top: 8px;
  font-size: .88rem;
}
.doc-pago div { text-align: right; }
.doc-pago span { display: block; color: #555; font-size: .75rem; text-transform: uppercase; }
.doc-pago strong { text-transform: capitalize; }

.doc-total {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 24px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px solid #111;
  font-weight: 700;
}
.doc-total strong { font-size: 1.5rem; }

.doc-foot { text-align: center; padding-top: 18px; color: #555; }
.doc-foot p { margin: 2px 0; text-transform: capitalize; }

@media (max-width: 1199.98px) {
  .pos-cart { position: static; }
  .pos-cart form { max-height: none; }
}

@media (min-width: 992px) {
  .pos-cart form {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    max-height: none;
    overflow: visible;
  }
  .pos-cart-header { flex-basis: 100%; }
  .pos-cart-config {
    flex: 0 0 66.66%;
    max-width: 66.66%;
    max-height: 30vh;
    overflow-y: auto;
    border-right: 1px solid var(--border);
  }
  .pos-cart-items {
    flex: 1 1 0;
    margin: 4px 0 4px 16px;
  }
  .pos-pagos { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
  .pos-pagos .btn-tipo { flex: 0 0 auto; min-width: 0; white-space: nowrap; }
  .pos-cart-foot {
    flex: 0 0 100%;
    max-width: 100%;
    position: static;
    box-shadow: none;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px 12px;
    padding: 6px 12px;
    border-top: 1px solid var(--border);
  }
  .pos-cart-foot .pos-cart-total {
    margin-right: auto;
    padding: 0 !important;
    border: none;
    background: transparent;
  }
  .pos-cart-foot .pos-cart-total strong { font-size: 1rem; }
  .pos-cart-foot .pos-cart-vuelto {
    padding: 0 !important;
    border: none;
    background: transparent;
  }
  .pos-cart-foot .pos-cart-monto {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 0 0 auto;
    width: 120px;
    padding: 0 !important;
  }
  .pos-cart-foot .pos-cart-monto label {
    font-size: .68rem;
    font-weight: 600;
    color: var(--muted);
    margin: 0;
    line-height: 1.1;
    white-space: nowrap;
  }
  .pos-cart-foot .pos-cart-monto input { padding: .3rem .5rem; font-size: .85rem; }
  .pos-cart-foot #btnRegistrar {
    border-radius: 8px;
    width: auto !important;
    padding: .32rem 1.1rem !important;
    font-size: .8rem;
    line-height: 1.2;
    flex: 0 0 auto;
  }
}

@media (min-width: 1200px) {
  .pos-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 20px;
    align-items: start;
  }
  .pos-products { min-width: 0; }
  .pos-cart {
    order: 0;
    position: sticky;
    top: 92px;
    align-self: start;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 116px);
    overflow: hidden;
  }
  .pos-cart form {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    flex: 1;
    max-height: none;
    overflow: hidden;
    min-height: 0;
  }
  .pos-cart-header { flex-basis: auto; }
  .pos-cart-config {
    flex: 0 1 auto;
    max-width: none;
    max-height: none;
    min-height: 0;
    overflow-y: auto;
    border-right: none;
    scrollbar-width: thin;
  }
  .pos-cart-items {
    flex: 1 1 auto;
    min-height: 100px;
    max-height: none;
    margin: 4px 16px;
  }
  .pos-pagos { flex-wrap: wrap; overflow-x: visible; padding-bottom: 0; }
  .pos-pagos .btn-tipo { flex: 1 1 30%; min-width: 88px; white-space: nowrap; }
  .pos-cart-foot {
    flex: 0 0 auto;
    position: static;
    margin-top: auto;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 6px 10px;
    padding: 8px 12px;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 12px rgba(23,26,38,.08);
  }
  .pos-cart-foot .pos-cart-total {
    margin: 0;
    padding: 0 !important;
    border: none;
    background: transparent;
    width: auto;
  }
  .pos-cart-foot .pos-cart-vuelto {
    padding: 0 !important;
    border: none;
    background: transparent;
    width: auto;
  }
  .pos-cart-foot .pos-cart-monto {
    flex: 1 1 100%;
    width: 100%;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 0 !important;
  }
  .pos-cart-foot .pos-cart-monto label {
    margin: 0;
    white-space: nowrap;
    font-size: .78rem;
  }
  .pos-cart-foot .pos-cart-monto input { flex: 1; min-width: 0; }
  .pos-cart-foot #btnRegistrar {
    width: 100% !important;
    border-radius: 8px;
    padding: .5rem !important;
    font-size: .9rem;
  }
}

@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  body.sidebar-open .sidebar { transform: translateX(0); }
  body.sidebar-open .overlay { opacity: 1; visibility: visible; }
  .main-wrap { margin-left: 0; }
  .btn-icon { display: inline-flex; }
  .pos-layout { grid-template-columns: 1fr; }
  .productos-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
}

@media (max-width: 767.98px) {
  .documento { padding: 24px 16px; }
  .doc-head { flex-direction: column; }
  .doc-tipo { text-align: left; }
  .topbar { padding: 10px 14px; gap: 10px; }
  .content { padding: 16px 14px; }
  .footer { padding: 10px 14px; }
  .page-title { font-size: 1.05rem; }
  .user-info { display: none; }
  .topbar-shortcut { padding: 6px 10px; font-size: .78rem; }
  .topbar-shortcut i { font-size: .95rem; }
  .topbar-acciones { gap: 6px; }
  .card-header { padding: 12px 14px; }
  .productos-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .producto-img { height: 92px; }
  .stat-value { font-size: 1.3rem; }
  .login-card { padding: 30px 24px; }
  .pos-cart-config { max-height: none; }
  .pos-cart-items { min-height: 0; }
  .empty-cart { padding: 12px 10px; }
  .empty-cart i { font-size: 1.4rem; }
  .empty-cart p { font-size: .75rem; margin: 5px 0 0; }
}

@media (max-width: 575.98px) {
  .topbar-shortcut span { display: none; }
  .topbar-shortcut { padding: 8px 11px; }
  .productos-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
  .cat-pill { padding: 7px 12px; font-size: .8rem; }
  .pos-cart-items { max-height: 42vh; }
  .user-avatar { width: 36px; height: 36px; }
  .brand { padding: 18px 14px; }
  .brand-logo { width: 42px; height: 42px; }
  .table thead th { font-size: .66rem; }
  .table tbody td { font-size: .82rem; }
}

@media (max-width: 379.98px) {
  .topbar { padding: 8px 10px; gap: 8px; }
  .page-title { font-size: .95rem; }
  .content { padding: 12px 10px; }
  .footer { font-size: .72rem; padding: 10px; }
  .user-box { gap: 6px; }
  .topbar-shortcut { padding: 5px 8px; font-size: .72rem; gap: 4px; }
  .topbar-shortcut i { font-size: .9rem; }
  .topbar-acciones { gap: 4px; }
  .productos-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
  .producto-img { height: 72px; }
  .producto-info { padding: 8px; }
  .producto-nombre { font-size: .78rem; min-height: 0; }
  .producto-cat { display: none; }
  .producto-precio { font-size: .8rem; }
  .btn-add { height: 30px; padding: 0 8px; font-size: .7rem; gap: 3px; }
  .cat-pill { padding: 6px 10px; font-size: .75rem; }
  .btn-tipo { padding: .5rem .35rem; font-size: .8rem; }
  .cart-item-total { min-width: auto; }
  .cart-qty button { width: 24px; height: 24px; }
  .pos-cart-total strong { font-size: 1.15rem; }
  .btn-gold { font-size: .9rem; }
  .stat-icon { width: 44px; height: 44px; font-size: 1.1rem; }
  .stat-value { font-size: 1.1rem; }
  .sidebar-nav a { font-size: .88rem; padding: 10px 12px; }
  .brand { padding: 14px 12px; gap: 10px; }
  .brand-logo { width: 38px; height: 38px; }
  .brand-title { font-size: .9rem; }
  .brand-sub { font-size: .64rem; }
  .login-body { padding: 12px; }
  .login-card { padding: 22px 16px; }
  .login-brand img { width: 64px; height: 64px; }
  .login-title { font-size: 1.25rem; }
  .mesa-card { padding: 14px 10px; }
  .mesa-numero { font-size: 1.1rem; }
  .documento { padding: 16px 8px; font-size: .78rem; }
  .doc-brand { gap: 10px; }
  .doc-brand img { width: 40px; height: 40px; }
  .doc-brand h2 { font-size: 1rem; }
  .doc-brand p { font-size: .7rem; }
  .doc-titulo { font-size: .95rem; }
  .doc-items th, .doc-items td { padding: 4px 4px; }
  .doc-items td:nth-child(1) { width: 22px; }
  .doc-tabla td { padding: 3px 4px; }
  .doc-etiqueta { width: 62px; }
  .doc-total { flex-direction: column; gap: 6px; align-items: flex-end; }
  .ticket-actions .btn, .comprobante-acciones .btn { flex: 1 1 100%; }
  .btn-edit, .btn-delete, .btn-confirm, .btn-cancel, .btn-view, .btn-pago, .btn-atender { padding: .3rem .45rem; font-size: .8rem; }
}

@media (max-width: 279.98px) {
  .content { padding: 8px; }
  .topbar { padding: 6px 8px; gap: 6px; }
  .page-title { font-size: .85rem; }
  .user-avatar { width: 30px; height: 30px; }
  .productos-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 6px; }
  .producto-img { height: 56px; }
  .producto-info { padding: 6px; }
  .producto-nombre { font-size: .7rem; }
  .producto-precio { font-size: .72rem; }
  .btn-add { height: 26px; padding: 0 6px; font-size: .62rem; gap: 2px; }
  .cat-pill { padding: 5px 8px; font-size: .68rem; }
  .stat-icon { width: 34px; height: 34px; font-size: .9rem; }
  .stat-value { font-size: 1rem; }
  .card-header { padding: 10px; }
  .brand { padding: 10px 8px; gap: 8px; }
  .brand-logo { width: 32px; height: 32px; }
  .brand-title { font-size: .8rem; }
  .brand-sub { font-size: .58rem; }
  .sidebar { max-width: 92vw; }
  .sidebar-nav a { font-size: .8rem; padding: 8px 10px; }
  .login-card { padding: 16px 12px; }
  .login-brand img { width: 52px; height: 52px; }
  .btn-tipo { font-size: .72rem; padding: .45rem .2rem; }
  .form-label, .form-select, .form-control { font-size: .8rem; }
  .documento { padding: 12px 6px; font-size: .7rem; }
  .doc-items td:nth-child(1) { width: 18px; }
  .btn-gold { font-size: .8rem; padding: .4rem .5rem; }
  .mesa-card { padding: 10px 6px; }
  .mesa-numero { font-size: 1rem; }
  .footer { font-size: .62rem; }
}

body.formato-ticket .documento { width: 80mm; max-width: 80mm; padding: 6mm 3mm; font-size: .72rem; }
body.formato-ticket .doc-head { flex-direction: column; gap: 8px; }
body.formato-ticket .doc-brand img { width: 34px; height: 34px; }
body.formato-ticket .doc-brand h2 { font-size: .95rem; }
body.formato-ticket .doc-brand p { font-size: .66rem; }
body.formato-ticket .doc-tipo { text-align: left; }
body.formato-ticket .doc-titulo { font-size: .85rem; }
body.formato-ticket .doc-tabla td { padding: 2px 4px; font-size: .68rem; }
body.formato-ticket .doc-etiqueta { width: 60px; }
body.formato-ticket .doc-items th { padding: 4px 5px; font-size: .62rem; }
body.formato-ticket .doc-items td { padding: 4px 5px; font-size: .68rem; }
body.formato-ticket .doc-total strong { font-size: 1rem; }
body.formato-ticket .doc-foot p { font-size: .68rem; }

body.formato-ticket.papel-76 .documento { width: 76mm; max-width: 76mm; font-size: .69rem; }
body.formato-ticket.papel-76 .doc-brand img { width: 30px; height: 30px; }
body.formato-ticket.papel-76 .doc-brand h2 { font-size: .88rem; }
body.formato-ticket.papel-76 .doc-brand p { font-size: .62rem; }
body.formato-ticket.papel-76 .doc-titulo { font-size: .8rem; }
body.formato-ticket.papel-76 .doc-tabla td { font-size: .64rem; }
body.formato-ticket.papel-76 .doc-items th { font-size: .58rem; }
body.formato-ticket.papel-76 .doc-items td { font-size: .64rem; }
body.formato-ticket.papel-76 .doc-total strong { font-size: .95rem; }

body.formato-ticket.papel-58 .documento { width: 58mm; max-width: 58mm; font-size: .58rem; padding: 4mm 2mm; }
body.formato-ticket.papel-58 .doc-head { gap: 6px; padding-bottom: 8px; }
body.formato-ticket.papel-58 .doc-brand { gap: 6px; }
body.formato-ticket.papel-58 .doc-brand img { width: 24px; height: 24px; border-radius: 6px; }
body.formato-ticket.papel-58 .doc-brand h2 { font-size: .74rem; }
body.formato-ticket.papel-58 .doc-brand p { font-size: .52rem; }
body.formato-ticket.papel-58 .doc-titulo { font-size: .68rem; letter-spacing: .5px; }
body.formato-ticket.papel-58 .doc-nro { font-size: .58rem; }
body.formato-ticket.papel-58 .doc-tabla td { padding: 1px 2px; font-size: .56rem; }
body.formato-ticket.papel-58 .doc-etiqueta { width: 40px; }
body.formato-ticket.papel-58 .doc-items th { padding: 2px 2px; font-size: .5rem; }
body.formato-ticket.papel-58 .doc-items td { padding: 2px 2px; font-size: .56rem; }
body.formato-ticket.papel-58 .doc-items td:nth-child(1) { width: 12px; }
body.formato-ticket.papel-58 .doc-pago { gap: 8px; font-size: .56rem; }
body.formato-ticket.papel-58 .doc-pago span { font-size: .5rem; }
body.formato-ticket.papel-58 .doc-total { gap: 8px; margin-top: 8px; padding-top: 8px; }
body.formato-ticket.papel-58 .doc-total strong { font-size: .82rem; }
body.formato-ticket.papel-58 .doc-foot p { font-size: .56rem; }

.papel-selector .input-group-text { padding: .25rem .5rem; }
.papel-selector .form-select { width: 92px; }

@media print {
  .comprobante-acciones { display: none !important; }
  .comprobante-body { background: #fff; padding: 0; }
  .documento { box-shadow: none; max-width: 100%; border-radius: 0; padding: 0; }
  @page { size: auto; margin: 8mm; }
}

@media (min-width: 1200px) {
  .productos-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}

@media print {
  .ticket-actions { display: none; }
  .ticket-body { background: #fff; padding: 0; }
  .ticket { box-shadow: none; max-width: 100%; }
}

.pos-cart,
.pos-cart-header,
.pos-cart-foot { background: #2b2f36; }
.pos-cart { border-color: #3a3f47; }
.pos-cart-header { border-bottom-color: #3a3f47; color: #fff; }
.pos-cart-foot { box-shadow: 0 -4px 12px rgba(0,0,0,.35); }
.pos-cart .form-label { color: #cbd0d9; }
.pos-cart .form-check-label { color: #e6e9ef; }
.pos-cart-total { background: #343944; border-color: #3a3f47; }
.pos-cart-total span { color: #e6e9ef; }
.pos-cart-total strong { color: #c77dff; }
.pos-cart-vuelto { background: #2b2f36; border-color: #3a3f47; }
.pos-cart-vuelto span { color: #cbd0d9; }
.pos-cart-vuelto strong { color: #c77dff; }
.pos-cart-monto label { color: #cbd0d9; }
.pos-cart .pos-cart-monto input { background: #1f2329; border-color: #3a3f47; color: #66b0ff; }
.pos-cart .pos-cart-monto input:focus { background: #1f2329; color: #66b0ff; }
.empty-cart { color: #9aa2af; }
.cart-item { border-bottom-color: #3a3f47; }
.cart-item-info strong { color: #e6e9ef; }
.cart-item-info small { color: #9aa2af; }
.cart-item-total { color: #fff; }
.cart-qty button { background: #343944; border-color: #4a505c; color: #e6e9ef; }
.cart-qty span { color: #e6e9ef; }
.cart-item-remove { color: #f0807a; }

.modal-content {
  background-color: #2b2f36;
  border: 1px solid #3a3f47;
  color: #e6e9ef;
}
.modal-header, .modal-footer { border-color: #3a3f47; }
.modal-header .modal-title { color: #fff; }
.modal-header .btn-close { filter: invert(1) grayscale(100%) brightness(200%); }
.modal-body .form-label { color: #cbd0d9; }
.modal-body .form-check-label { color: #e6e9ef; }
.modal-body .form-control, .modal-body .form-select, .modal-body textarea.form-control {
  background-color: #1f2329;
  border-color: #3a3f47;
  color: #fff;
}
.modal-body .form-control:focus, .modal-body .form-select:focus, .modal-body textarea.form-control:focus {
  background-color: #1f2329;
  color: #fff;
  border-color: var(--gold);
  box-shadow: 0 0 0 .2rem rgba(196,164,86,.25);
}
.modal-body .form-control::placeholder { color: #6b7280; }
.modal-body p { color: #cbd0d9; }
.modal .table { color: #e6e9ef; }
.modal .table thead th { color: #9aa2af; border-color: #3a3f47; }
.modal .table tbody td { border-color: #3a3f47; }
.modal .btn-light {
  background: #343944;
  border: 1px solid #4a505c;
  color: #e6e9ef;
}
.modal .btn-light:hover { background: #41474f; color: #fff; }

#modalReservacion .modal-content {
  background-color: #143B35;
  border: 1px solid #2c5d52;
  color: #e7f7f1;
}
#modalReservacion .modal-header,
#modalReservacion .modal-footer { border-color: #2c5d52; }
#modalReservacion .modal-header .modal-title { color: #e7f7f1; }
#modalReservacion .modal-body .form-label { color: #bfe3d8; }
#modalReservacion .modal-body .form-check-label { color: #d7efe7; }
#modalReservacion .form-check-input:checked {
  background-color: #2fbf9d;
  border-color: #2fbf9d;
}
#modalReservacion .modal-body .form-control,
#modalReservacion .modal-body .form-select,
#modalReservacion .modal-body textarea.form-control {
  background-color: #0e2b26;
  border-color: #2c5d52;
  color: #fff;
}
#modalReservacion .modal-body .form-control:focus,
#modalReservacion .modal-body .form-select:focus,
#modalReservacion .modal-body textarea.form-control:focus {
  background-color: #0e2b26;
  color: #fff;
  border-color: #3ecfa7;
  box-shadow: 0 0 0 .2rem rgba(62,207,167,.25);
}
#modalReservacion .modal-body .form-control::placeholder { color: #6f9c90; }
#modalReservacion input[type="date"]::-webkit-calendar-picker-indicator,
#modalReservacion input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: .9;
  cursor: pointer;
}
#modalReservacion .modal-body p { color: #bfe3d8; }

.btn-tipo {
  background: #343944;
  border: 1px solid #4a505c;
  color: #e6e9ef;
  font-weight: 600;
}
.btn-tipo:hover { background: #41474f; color: #fff; }
.btn-check:checked + .btn-tipo {
  background: linear-gradient(135deg, var(--rosa), var(--rosa-dark));
  border-color: transparent;
  color: #fff;
}

.pos-cart .form-control, .pos-cart .form-select, .pos-cart textarea.form-control {
  background-color: #1f2329;
  border-color: #3a3f47;
  color: #fff;
}
.pos-cart .form-control:focus, .pos-cart .form-select:focus, .pos-cart textarea.form-control:focus {
  background-color: #1f2329;
  color: #fff;
  border-color: var(--gold);
  box-shadow: 0 0 0 .2rem rgba(196,164,86,.25);
}
.pos-cart .form-control::placeholder { color: #6b7280; }

.btn-check#pagoYape + .btn-tipo { background: #8e24aa; border-color: #8e24aa; color: #fff; }
.btn-check#pagoPlin + .btn-tipo { background: #1fae5e; border-color: #1fae5e; color: #fff; }
.btn-check#pagoAgora + .btn-tipo { background: #29b6f6; border-color: #29b6f6; color: #fff; }
.btn-check#pagoBim + .btn-tipo { background: #7b1fa2; border-color: #7b1fa2; color: #fff; }
.btn-check#pagoTarjeta + .btn-tipo { background: #2f6fd0; border-color: #2f6fd0; color: #fff; }
.btn-check#pagoPagoEfectivo + .btn-tipo { background: #ffc107; border-color: #ffc107; color: #333; }
.btn-check#pagoTransferencia + .btn-tipo { background: #1e9491; border-color: #1e9491; color: #fff; }
.btn-check#pagoYape:checked + .btn-tipo,
.btn-check#pagoPlin:checked + .btn-tipo,
.btn-check#pagoAgora:checked + .btn-tipo,
.btn-check#pagoBim:checked + .btn-tipo,
.btn-check#pagoTarjeta:checked + .btn-tipo,
.btn-check#pagoPagoEfectivo:checked + .btn-tipo,
.btn-check#pagoTransferencia:checked + .btn-tipo {
  background: linear-gradient(135deg, var(--rosa), var(--rosa-dark));
  border-color: transparent;
  color: #fff;
}

.btn:hover,
.btn:focus,
.btn:active {
  background: #2f6fd0 !important;
  border-color: #2f6fd0 !important;
  color: #fff !important;
}


/* ============ TIENDA PÚBLICA ============ */
.tienda-body { background: #faf6ef; }
.tienda-body .card { background: #fff; }
.tienda-body .card-header { background: #fff; }

.tienda-top {
  position: sticky;
  top: 0;
  z-index: 1020;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  padding: 10px 24px;
  background: var(--dark); /* Gris oscuro / azul noche */
  border-bottom: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.tienda-brand { 
  display: flex; 
  align-items: center; 
  gap: 12px; 
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  padding: 8px 16px 8px 8px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.2s;
}
.tienda-brand:hover { transform: translateY(-2px); border-color: rgba(255,255,255,0.2); }
.tienda-brand .brand-logo { width: 44px; height: 44px; border-radius: 50%; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.tienda-brand .brand-title { color: #fff; font-weight: 700; font-size: 1.05rem; }
.tienda-brand .brand-sub { color: var(--gold); font-weight: 600; font-size: 0.75rem; letter-spacing: 0.5px; }

.tienda-nav { display: flex; gap: 4px; flex-wrap: nowrap; align-items: center; }
.tienda-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  color: #cbd5e1;
  font-weight: 600;
  font-size: .88rem;
  white-space: nowrap;
  transition: all 0.2s;
}
.tienda-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.tienda-nav a.active { background: linear-gradient(135deg, var(--gold), var(--gold-dark)); color: #fff; box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3); }

.tienda-acciones { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: nowrap; }
.tienda-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 10px;
  border-radius: 8px;
  color: #cbd5e1;
  font-weight: 600;
  font-size: .85rem;
  white-space: nowrap;
  transition: all 0.2s;
}
.tienda-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.tienda-link-salir { color: #f87171; }
.tienda-link-btn { padding: 6px 12px; white-space: nowrap; }

.tienda-carrito-btn {
  position: relative;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--rosa), var(--rosa-dark));
  color: #fff;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
}
.tienda-carrito-btn:hover { filter: brightness(1.08); }
.carrito-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--gold);
  color: #171a26;
  font-size: .72rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 50px;
  display: grid;
  place-items: center;
}

.tienda-main { 
  max-width: 1500px; 
  margin: 0 auto; 
  padding: 26px 26px 60px; 
  transition: padding-right 0.28s ease;
}

@media (min-width: 992px) {
  body.drawer-open .tienda-main {
    padding-right: 416px;
  }
  body.drawer-open .carrito-overlay {
    display: none !important;
  }
}
.tienda-titulo { font-size: 1.5rem; font-weight: 700; margin: 0 0 6px; }

.tienda-hero {
  text-align: center;
  padding: 34px 18px 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #171a26, #20243a);
  color: #fff;
  margin-bottom: 24px;
}
.tienda-hero h1 { font-size: 1.9rem; margin: 0 0 8px; }
.tienda-hero p { color: #c7ccdd; max-width: 620px; margin: 0 auto; font-size: .95rem; }

.tienda-toolbar { margin-bottom: 22px; }
.tienda-body .cat-pill {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
}
.tienda-body .cat-pill:hover { border-color: var(--rosa); color: var(--rosa-dark); }
.tienda-body .cat-pill.active {
  background: linear-gradient(135deg, var(--rosa), var(--rosa-dark));
  color: #fff;
  border-color: transparent;
}

.tienda-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.tienda-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(23,26,38,.05);
  transition: transform .15s, box-shadow .15s;
}
.tienda-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(23,26,38,.12); }
.tienda-card-img { height: 150px; background-size: cover; background-position: center; }
.tienda-card-img-ph {
  background: var(--gold-soft);
  color: var(--gold-dark);
  display: grid;
  place-items: center;
  font-size: 2.4rem;
}
.tienda-card-body { padding: 12px 14px 14px; }
.tienda-card-nombre { font-weight: 600; font-size: .95rem; line-height: 1.3; min-height: 2.5em; }
.tienda-card-cat { color: var(--muted); font-size: .76rem; margin-top: 2px; }
.tienda-card-precio { color: var(--rosa-dark); font-weight: 700; font-size: 1rem; }

/* Canasta flotante */
.carrito-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,17,29,.55);
  z-index: 1055;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.carrito-overlay.visible { opacity: 1; visibility: visible; }
.carrito-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 390px;
  max-width: 94vw;
  background: #2b2f36;
  color: #e6e9ef;
  z-index: 1060;
  display: flex;
  flex-direction: column;
  transform: translateX(105%);
  transition: transform .28s ease;
  box-shadow: -8px 0 28px rgba(0,0,0,.4);
}
.carrito-drawer.abierto { transform: translateX(0); }
.carrito-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid #3a3f47;
  font-weight: 600;
  color: #fff;
}
.carrito-drawer-items { flex: 1; overflow-y: auto; padding: 8px 18px; }
.carrito-vacio { text-align: center; padding: 40px 10px; color: #9aa2af; }
.carrito-vacio i { font-size: 2.6rem; opacity: .5; }
.carrito-vacio p { margin: 10px 0 0; font-size: .9rem; }
.carrito-item-publico {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px dashed #3a3f47;
}
.carrito-item-ppal { flex: 1; min-width: 0; }
.carrito-item-ppal strong { display: block; font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.carrito-item-ppal small { color: #9aa2af; }
.carrito-item-qty { display: flex; align-items: center; gap: 6px; }
.carrito-item-qty button {
  width: 26px; height: 26px;
  border: 1px solid #4a505c;
  background: #343944;
  color: #e6e9ef;
  border-radius: 7px;
  font-weight: 700;
  line-height: 1;
}
.carrito-item-subtotal { font-weight: 700; font-size: .85rem; min-width: 66px; text-align: right; }
.carrito-item-rm { border: none; background: transparent; color: #f0807a; font-size: .95rem; padding: 4px; }
.carrito-drawer-foot { padding: 14px 18px; border-top: 1px solid #3a3f47; }
.carrito-drawer-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 12px;
  font-weight: 600;
}
.carrito-drawer-total strong { font-size: 1.15rem; color: #c77dff; }

.tienda-footer {
  text-align: center;
  padding: 18px;
  color: var(--muted);
  font-size: .85rem;
  border-top: 1px solid var(--border);
  background: #fff;
}

/* Checkout */
.checkout-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; align-items: start; }
.checkout-items { margin-bottom: 6px; }
.checkout-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border);
}
.checkout-item-info strong { display: block; font-size: .9rem; }
.checkout-item-info small { color: var(--muted); }
.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  font-weight: 600;
}
.checkout-total strong { font-size: 1.3rem; color: var(--rosa-dark); font-family: 'Playfair Display', serif; }
.tienda-body .btn-tipo { background: #fff; border-color: var(--border); color: var(--ink); }
.tienda-body .btn-tipo:hover { background: var(--rosa-soft); color: var(--rosa-dark); }
.tienda-body .btn-check:checked + .btn-tipo {
  background: linear-gradient(135deg, var(--rosa), var(--rosa-dark));
  border-color: transparent;
  color: #fff;
}

.gracias-card { border: none; box-shadow: 0 6px 24px rgba(23,26,38,.1); }
.gracias-icon { font-size: 3.4rem; color: #1e8e5a; margin-bottom: 10px; }

@media (max-width: 767.98px) {
  .tienda-main { padding: 18px 14px 50px; }
  .tienda-top { padding: 10px 14px; }
  .tienda-hero { padding: 24px 14px 20px; }
  .tienda-hero h1 { font-size: 1.45rem; }
  .tienda-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .tienda-card-img { height: 110px; }
  .tienda-link span { display: none; }
  .tienda-link { padding: 8px 10px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .tienda-nav { order: 3; width: 100%; }
  .tienda-nav a { flex: 1; justify-content: center; }
}
@media (max-width: 379.98px) {
  .tienda-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
  .tienda-card-nombre { font-size: .8rem; min-height: 0; }
  .btn-add { height: 30px; padding: 0 8px; font-size: .7rem; gap: 3px; }
  .carrito-drawer { width: 100vw; max-width: 100vw; }
}

/* Combos y Promociones Styles */
.cat-pill-promo {
  background: linear-gradient(135deg, #ff416c, #ff4b2b) !important;
  color: #fff !important;
  border-color: transparent !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(255, 65, 108, 0.35);
  transition: transform .15s ease, filter .15s ease;
}
.cat-pill-promo:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.tienda-promos-banner {
  background: linear-gradient(135deg, #fff7ed, #fff1f2);
  border: 2px solid #fecdd3;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.08);
}

.ofertas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}

.oferta-card {
  background: #fff;
  border: 1px solid #fecdd3;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.oferta-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(225, 29, 72, 0.18);
}

.promo-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(135deg, #e11d48, #be123c);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 50px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(190, 18, 60, 0.4);
}

.promo-mini-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
  font-size: .68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
  z-index: 2;
}

.oferta-card-img {
  height: 140px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.oferta-card-img-combo {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #b45309;
  display: grid;
  place-items: center;
  font-size: 2.8rem;
}

.oferta-card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.oferta-card-nombre {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  line-height: 1.25;
}

.oferta-card-desc {
  font-size: .78rem;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.35;
  flex: 1;
}

.oferta-card-precio {
  font-weight: 800;
  font-size: 1.15rem;
  color: #e11d48;
  font-family: 'Playfair Display', Georgia, serif;
}

.hover-white:hover { color: #fff !important; }
/* Floating WhatsApp */
.float-whatsapp {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  display: grid;
  place-items: center;
  transition: transform 0.3s;
}
.float-whatsapp:hover {
  transform: scale(1.1);
  color: #fff;
}
