/* ==========================================================
   SUSHICLUB - SISTEMA DE PEDIDOS DE SUSHI
   Estilos CSS3 Modernos, Modo Oscuro Elegante & Glassmorphism
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg-main: #0c0d12;
  --bg-card: #151722;
  --bg-card-hover: #1d2030;
  --bg-glass: rgba(21, 23, 34, 0.85);
  
  --primary-gold: #f5b800;
  --primary-gold-hover: #e0a800;
  --primary-salmon: #ff4d4d;
  --primary-salmon-glow: rgba(255, 77, 77, 0.25);
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-active: rgba(245, 184, 0, 0.4);
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 25px rgba(245, 184, 0, 0.15);
  
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* Scrollbar Personalizado */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #262938;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary-gold);
}

/* Header & Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.5px;
}

.brand-logo span.highlight {
  color: var(--primary-salmon);
}

.brand-logo i {
  color: var(--primary-gold);
  font-size: 1.7rem;
  transform: rotate(-10deg);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  text-decoration: none;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-gold);
  color: var(--primary-gold);
  transform: translateY(-1px);
}

.nav-btn.primary {
  background: var(--primary-gold);
  color: #000;
  border-color: var(--primary-gold);
  font-weight: 700;
}

.nav-btn.primary:hover {
  background: var(--primary-gold-hover);
  color: #000;
  box-shadow: 0 4px 15px rgba(245, 184, 0, 0.3);
}

/* Icono de Notificaciones */
.notification-bell {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-main);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.notification-bell:hover {
  border-color: var(--primary-salmon);
  color: var(--primary-salmon);
}

.notification-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--primary-salmon);
  color: white;
  font-size: 0.7rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 10px var(--primary-salmon-glow);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

/* Carrito Floating Trigger */
.cart-trigger {
  position: relative;
}

.cart-count {
  background: var(--primary-gold);
  color: #000;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

/* Hero Banner */
.hero-banner {
  padding: 3rem 2rem 2rem;
  text-align: center;
  background: radial-gradient(circle at top center, rgba(245, 184, 0, 0.08) 0%, transparent 70%);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 0.5rem;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-salmon));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 1.5rem;
}

/* Categorías Tabs */
.categories-nav {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 0.5rem 2rem 1.5rem;
  justify-content: center;
}

.category-tab {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.category-tab:hover, .category-tab.active {
  background: var(--primary-gold);
  color: #000;
  border-color: var(--primary-gold);
  box-shadow: 0 4px 20px rgba(245, 184, 0, 0.2);
  transform: translateY(-2px);
}

.category-tab i {
  font-size: 1rem;
}

/* Menu Grid */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  width: 100%;
}

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

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-active);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.product-image-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #111;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image {
  transform: scale(1.08);
}

.product-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.product-desc {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.product-price {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-gold);
}

.btn-customize {
  background: rgba(245, 184, 0, 0.12);
  border: 1px solid rgba(245, 184, 0, 0.3);
  color: var(--primary-gold);
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-customize:hover {
  background: var(--primary-gold);
  color: #000;
  box-shadow: 0 4px 12px rgba(245, 184, 0, 0.25);
}

/* Modales General */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

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

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}

.modal-header h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: var(--primary-salmon);
  color: white;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  flex-grow: 1;
}

.modal-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.2);
}

/* Opciones de Ingredientes en Modal */
.ingredient-section-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--primary-gold);
  font-weight: 700;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ingredients-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.ingredient-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.ingredient-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

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

.ingredient-label {
  font-weight: 500;
  font-size: 0.92rem;
}

.ingredient-price {
  color: var(--primary-gold);
  font-weight: 700;
  font-size: 0.9rem;
}

/* Cantidad Selector */
.quantity-control {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 4px;
}

.quantity-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.quantity-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.quantity-value {
  width: 36px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
}

/* Drawer / Sidebar Carrito */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -500px;
  width: 100%;
  max-width: 450px;
  height: 100vh;
  background: #11131c;
  border-left: 1px solid var(--border-light);
  z-index: 1100;
  box-shadow: -15px 0 50px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.02);
}

.cart-header h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-items-list {
  padding: 1.25rem;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Tarjeta individual de platillo en Bolsa */
.cart-item {
  background: rgba(26, 29, 44, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}

.cart-item:hover {
  border-color: rgba(245, 184, 0, 0.3);
  background: rgba(30, 34, 52, 0.9);
}

.cart-item-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cart-item-thumb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cart-item-info {
  flex-grow: 1;
  min-width: 0;
}

.cart-item-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-unit-price {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.cart-item-price-del {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.cart-item-total {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--primary-gold);
}

.btn-cart-del {
  background: transparent;
  border: none;
  color: #64748b;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-cart-del:hover {
  color: var(--primary-salmon);
  background: rgba(255, 77, 77, 0.12);
}

/* Badges / Tags para Ingredientes Modificados */
.cart-item-customizations-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}

.badge-custom-removed {
  background: rgba(255, 77, 77, 0.12);
  color: #ff4d4d;
  border: 1px solid rgba(255, 77, 77, 0.3);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-custom-added {
  background: rgba(245, 184, 0, 0.12);
  color: #f5b800;
  border: 1px solid rgba(245, 184, 0, 0.3);
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cart-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 1px dashed rgba(255, 255, 255, 0.06);
}

.cart-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-light);
  background: rgba(12, 13, 18, 0.95);
  backdrop-filter: blur(10px);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.summary-row.total {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-main);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border-light);
}

.summary-row.total span.total-price {
  color: var(--primary-gold);
}

/* Formularios & Input Controls */
/* Formularios, Inputs y Selects */
.form-group {
  margin-bottom: 1.3rem;
  position: relative;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #cbd5e1;
  letter-spacing: 0.3px;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: rgba(22, 25, 38, 0.8);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}

.form-control::placeholder {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 400;
}

.form-control:hover {
  border-color: rgba(245, 184, 0, 0.35);
  background: rgba(28, 32, 48, 0.9);
}

.form-control:focus {
  border-color: var(--primary-gold);
  background: #181b28;
  box-shadow: 0 0 0 4px rgba(245, 184, 0, 0.18), 0 4px 20px rgba(0, 0, 0, 0.4);
  color: #ffffff;
}

/* Estilos específicos para SELECT */
select.form-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23f5b800' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.1rem center;
  background-size: 16px;
  padding-right: 2.8rem;
  cursor: pointer;
}

select.form-control option {
  background-color: #151722;
  color: #f8fafc;
  padding: 12px;
  font-weight: 500;
  font-size: 0.95rem;
}

/* Estilos específicos para TEXTAREA */
textarea.form-control {
  resize: vertical;
  min-height: 95px;
  line-height: 1.5;
}

/* Estatus Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-badge.pendiente {
  background: rgba(245, 184, 0, 0.15);
  color: #f5b800;
  border: 1px solid rgba(245, 184, 0, 0.3);
}

.status-badge.aprobado, .status-badge.en_preparacion {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

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

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

/* Chat / Mensajes & Notificaciones UI */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 380px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.chat-messages {
  flex-grow: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message-bubble {
  max-width: 85%;
  padding: 0.85rem 1.1rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.55;
  position: relative;
  white-space: pre-line;
  word-break: break-word;
}

.message-bubble.admin {
  align-self: flex-start;
  background: #1e2436;
  color: #e2e8f0;
  border-bottom-left-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.message-bubble.cliente {
  align-self: flex-end;
  background: var(--primary-gold);
  color: #000;
  font-weight: 600;
  border-bottom-right-radius: 2px;
}

.message-time {
  font-size: 0.7rem;
  opacity: 0.75;
  margin-top: 4px;
  display: block;
  text-align: right;
}

.chat-input-area {
  padding: 0.75rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 10px;
}

/* Botones de Acción */
.btn-primary {
  width: 100%;
  padding: 0.85rem 1.5rem;
  background: var(--primary-gold);
  color: #000;
  border: none;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background: var(--primary-gold-hover);
  box-shadow: 0 4px 18px rgba(245, 184, 0, 0.3);
  transform: translateY(-1px);
}

/* Responsive UI Adjustments para Celulares y Tablets */
@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem 1rem;
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand-logo {
    font-size: 1.3rem;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
  }

  .hero-banner {
    padding: 2rem 1rem 1.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .categories-nav {
    justify-content: flex-start;
    padding: 0.5rem 1rem 1rem;
    gap: 8px;
  }

  .category-tab {
    padding: 0.6rem 1.1rem;
    font-size: 0.88rem;
  }

  .container {
    padding: 0 1rem 3rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .cart-drawer {
    width: 100vw;
    max-width: 100vw;
    right: -100vw;
  }

  .modal-card {
    width: 95vw;
    max-width: 95vw;
    max-height: 92vh;
    border-radius: var(--radius-md);
  }

  .modal-body {
    padding: 1rem;
  }

  .modal-header {
    padding: 1rem;
  }

  .modal-footer {
    padding: 1rem;
    flex-direction: column;
    gap: 12px;
  }

  .modal-footer .btn-primary {
    width: 100% !important;
  }

  .cart-item-top {
    gap: 10px;
  }

  .cart-item-thumb {
    width: 44px;
    height: 44px;
  }

  .cart-item-title {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .brand-logo span.highlight {
    display: inline;
  }
  .nav-btn span.btn-label {
    display: none;
  }
  .product-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .btn-customize {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================
   TABLERO KANBAN DE PEDIDOS (Estilo Post-Its por Columnas)
   ========================================================== */

.kanban-board-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 0.5rem 0 1.5rem;
  scrollbar-width: thin;
  align-items: flex-start;
}

.kanban-column {
  flex: 0 0 320px;
  width: 320px;
  background: rgba(20, 23, 35, 0.85);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  max-height: 82vh;
  transition: all 0.25s ease;
  backdrop-filter: blur(10px);
}

.kanban-column.drag-over {
  border-color: var(--primary-gold);
  background: rgba(245, 184, 0, 0.08);
  box-shadow: 0 0 25px rgba(245, 184, 0, 0.25);
}

.kanban-column-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.kanban-column-header .col-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.kanban-column-header .col-count {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

/* Colores de Encabezados de Columna */
.col-pendiente .kanban-column-header { border-left: 4px solid #f5b800; }
.col-aprobado .kanban-column-header { border-left: 4px solid #38bdf8; }
.col-en_preparacion .kanban-column-header { border-left: 4px solid #a855f7; }
.col-listo .kanban-column-header { border-left: 4px solid #22c55e; }
.col-entregado .kanban-column-header { border-left: 4px solid #10b981; }
.col-cancelado .kanban-column-header { border-left: 4px solid #ef4444; }

.kanban-column-body {
  padding: 1rem;
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 150px;
}

.kanban-empty-msg {
  text-align: center;
  padding: 2rem 1rem;
  color: #64748b;
  font-size: 0.85rem;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
}

/* Tarjeta Post-It individual de Pedido */
.postit-card {
  background: #181b28;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 10px;
  cursor: grab;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.postit-card:active {
  cursor: grabbing;
  transform: scale(1.02) rotate(-1deg);
}

.postit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
}

/* Bordes superiores por Estatus (Post-It color bar) */
.postit-card.postit-pendiente { border-top: 5px solid #f5b800; }
.postit-card.postit-aprobado { border-top: 5px solid #38bdf8; }
.postit-card.postit-en_preparacion { border-top: 5px solid #a855f7; }
.postit-card.postit-listo { border-top: 5px solid #22c55e; }
.postit-card.postit-entregado { border-top: 5px solid #10b981; }
.postit-card.postit-cancelado { border-top: 5px solid #ef4444; }

.postit-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.postit-code {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-gold);
}

.postit-time {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.postit-client-info {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.85rem;
}

.postit-client-name {
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.postit-items-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.88rem;
}

.postit-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
  padding-bottom: 4px;
}

.postit-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
  gap: 8px;
  flex-wrap: wrap;
}

.postit-move-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-move-step {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  color: var(--text-main);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-move-step:hover {
  background: var(--primary-gold);
  color: #000;
  border-color: var(--primary-gold);
}

/* ==========================================================
   DISEÑO EN TEMA CLARO (LIGHT MODE) ALTO CONTRASTE PARA ADMIN
   ========================================================== */

body.admin-body {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

body.admin-body .navbar {
  background: #ffffff !important;
  border-bottom: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
}

body.admin-body .brand-logo {
  color: #0f172a !important;
}

body.admin-body .nav-btn {
  background: #f8fafc !important;
  color: #1e293b !important;
  border-color: #cbd5e1 !important;
}

body.admin-body .nav-btn:hover {
  background: #e2e8f0 !important;
}

body.admin-body .kanban-column {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}

body.admin-body .kanban-column.drag-over {
  border-color: #d97706 !important;
  background: #fffbeb !important;
  box-shadow: 0 0 20px rgba(217, 119, 6, 0.25) !important;
}

body.admin-body .kanban-column-header {
  background: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

body.admin-body .kanban-column-header .col-count {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

body.admin-body .kanban-empty-msg {
  color: #64748b !important;
  border-color: #cbd5e1 !important;
}

body.admin-body .postit-card {
  background: #121420 !important;
  color: #ffffff !important;
  border-radius: var(--radius-md) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
}

body.admin-body .postit-card.postit-pendiente {
  border: 2px solid #f5b800 !important;
  box-shadow: 0 8px 25px rgba(245, 184, 0, 0.25) !important;
}

body.admin-body .postit-card.postit-aprobado {
  border: 2px solid #38bdf8 !important;
  box-shadow: 0 8px 25px rgba(56, 189, 248, 0.25) !important;
}

body.admin-body .postit-card.postit-en_preparacion {
  border: 2px solid #a855f7 !important;
  box-shadow: 0 8px 25px rgba(168, 85, 247, 0.25) !important;
}

body.admin-body .postit-card.postit-listo {
  border: 2px solid #22c55e !important;
  box-shadow: 0 8px 25px rgba(34, 197, 94, 0.25) !important;
}

body.admin-body .postit-card.postit-entregado {
  border: 2px solid #10b981 !important;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.25) !important;
}

body.admin-body .postit-card.postit-cancelado {
  border: 2px solid #ef4444 !important;
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.25) !important;
}

body.admin-body .postit-code {
  color: #f5b800 !important;
  font-weight: 800 !important;
}

body.admin-body .postit-time {
  color: #94a3b8 !important;
}

body.admin-body .postit-client-info {
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #cbd5e1 !important;
}

body.admin-body .postit-client-name {
  color: #ffffff !important;
  font-weight: 800 !important;
}

body.admin-body .postit-item-row {
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12) !important;
}

body.admin-body .postit-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}

body.admin-body .btn-move-step {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

body.admin-body .btn-move-step:hover {
  background: #f5b800 !important;
  color: #000000 !important;
}

body.admin-body .postit-select-status {
  background: #1a1e2e !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

body.admin-body .modal-card {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15) !important;
}

body.admin-body .modal-header {
  border-bottom: 1px solid #e2e8f0 !important;
  color: #0f172a !important;
}

body.admin-body .modal-close {
  color: #64748b !important;
}

body.admin-body .form-control {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #0f172a !important;
}

body.admin-body .form-control:focus {
  border-color: #b45309 !important;
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.15) !important;
}

body.admin-body .message-bubble.admin {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1 !important;
}

body.admin-body .message-bubble.cliente {
  background: #fffbeb !important;
  color: #78350f !important;
  border: 1px solid #fde68a !important;
}

/* ==========================================================
   BOTONES INTERACTIVOS DE SELECCIÓN DE ENTREGA EN CLIENTE
   ========================================================== */

.delivery-choice-box {
  background: rgba(18, 20, 32, 0.7);
  border: 1.5px solid var(--primary-gold);
  padding: 1.1rem;
  border-radius: var(--radius-lg);
  margin-top: 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.delivery-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 0.75rem;
}

@media (max-width: 600px) {
  .delivery-choice-grid {
    grid-template-columns: 1fr;
  }
}

.btn-delivery-choice {
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 0.85rem;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.btn-delivery-choice:hover {
  border-color: var(--primary-gold);
  background: rgba(245, 184, 0, 0.08);
  transform: translateY(-2px);
}

.btn-delivery-choice.active-choice {
  border-color: var(--primary-gold);
  background: linear-gradient(135deg, rgba(245, 184, 0, 0.2), rgba(245, 184, 0, 0.05));
  box-shadow: 0 0 20px rgba(245, 184, 0, 0.25);
}

.btn-delivery-choice .choice-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: #ffffff;
}

.btn-delivery-choice .choice-time {
  font-size: 0.85rem;
  color: var(--primary-gold);
  font-weight: 700;
}

.btn-delivery-choice .selected-badge {
  background: var(--primary-gold);
  color: #000000;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 10px;
  margin-top: 4px;
}

/* ==========================================================
   PERFIL DE USUARIO Y BOTÓN DEDICADO DE CERRAR SESIÓN
   ========================================================== */

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-gold);
  min-height: 44px;
  cursor: default;
  user-select: none;
}

.btn-logout {
  background: rgba(239, 68, 68, 0.1) !important;
  border: 1.5px solid #ef4444 !important;
  color: #ef4444 !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-logout:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

/* ==========================================================
   OPTIMIZACIÓN PARA IPAD & DISPOSITIVOS TÁCTILES (TOUCH)
   ========================================================== */

* {
  -webkit-tap-highlight-color: transparent;
}

button, a, select, input, .nav-btn, .category-tab, .product-card, .btn-delivery-choice, .postit-card {
  touch-action: manipulation;
}

/* Objetivos táctiles mínimos de 44px x 44px para iPad */
.nav-btn, 
.category-tab, 
.btn-primary, 
.btn-secondary, 
.btn-customize, 
.modal-close, 
.qty-btn,
.btn-move-step,
.btn-delivery-choice {
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}

/* Desplazamiento fluido táctil en iPad */
.categories-nav,
.cart-items-list,
.kanban-column-body,
.chat-messages,
.modal-card {
  -webkit-overflow-scrolling: touch;
}

/* Media Queries para iPad y Tablets (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.25rem !important;
  }

  .kanban-board-container {
    display: flex !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding-bottom: 1rem !important;
  }

  .kanban-column {
    min-width: 310px !important;
    flex-shrink: 0 !important;
  }

  .nav-actions {
    gap: 10px !important;
  }

  .logout-text {
    display: inline !important;
  }
}
