/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-accent);
  color: white;
}
.btn-primary:hover { background: var(--color-accent-soft); transform: translateY(-1px); }
.btn-secondary {
  background: var(--color-surface-2);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-secondary:hover { background: var(--color-surface); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.btn-ghost:hover { color: var(--color-text); border-color: rgba(255,255,255,0.2); }
.btn-success { background: var(--color-success); color: white; }
.btn-success:hover { opacity: 0.9; }
.btn-sm { padding: 8px 14px; font-size: 0.8125rem; border-radius: 8px; }
.btn-lg { padding: 16px 28px; font-size: 1rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  font-size: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-icon:hover { color: var(--color-text); background: var(--color-surface); }

/* ─── INPUTS ─── */
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-input);
  color: var(--color-text);
  padding: 12px 14px;
  font-size: 0.9375rem;
  transition: border-color var(--transition);
}
.form-control:focus { border-color: var(--color-accent); }
.form-control::placeholder { color: var(--color-text-muted); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-row { display: grid; gap: 12px; }
@media (min-width: 480px) { .form-row.cols-2 { grid-template-columns: 1fr 1fr; } }

/* ─── CARDS ─── */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.card-body { padding: 20px; }
.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--color-surface-2);
}
.card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 800;
  color: white;
  font-family: var(--font-heading);
}

/* ─── RESTAURANT CARD ─── */
.restaurant-card { cursor: pointer; }
.restaurant-card .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.restaurant-card .name { font-size: 1.0625rem; font-weight: 700; margin-top: 12px; }
.restaurant-card .address { font-size: 0.8125rem; color: var(--color-text-muted); margin-top: 4px; }

/* ─── PRODUCT CARD ─── */
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition);
}
.product-card:hover { transform: translateY(-2px); }
.product-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.product-card .info { padding: 14px; }
.product-card .price { font-size: 1.0625rem; font-weight: 700; color: var(--color-accent); }
.product-card .name { font-weight: 600; margin-bottom: 4px; }
.product-card .desc { font-size: 0.8125rem; color: var(--color-text-muted); }

/* ─── BADGE ─── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-accent { background: rgba(233,69,96,0.15); color: var(--color-accent); }
.badge-success { background: rgba(46,204,113,0.15); color: var(--color-success); }
.badge-warning { background: rgba(243,156,18,0.15); color: var(--color-warning); }
.badge-muted { background: var(--color-surface-2); color: var(--color-text-muted); }
.badge-gold { background: rgba(245,166,35,0.15); color: var(--color-gold); }

/* ─── TABS ─── */
.tabs { display: flex; border-bottom: 1px solid var(--color-border); margin-bottom: 24px; }
.tab-btn {
  padding: 12px 20px;
  background: none;
  border: none;
  color: var(--color-text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--transition);
  font-family: var(--font-body);
}
.tab-btn.active { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ─── CHIPS FILTRO ─── */
.chip {
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition);
}
.chip:hover { border-color: var(--color-accent); color: var(--color-accent); }
.chip.active { background: var(--color-accent); border-color: var(--color-accent); color: white; }

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}
.modal-overlay.center { align-items: center; }
.modal {
  background: var(--color-surface);
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
  border: 1px solid var(--color-border);
}
.modal-overlay.center .modal { border-radius: 20px; margin: 16px; }
.modal-header {
  padding: 20px 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--color-surface);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}
.modal-header h3 { font-size: 1.125rem; }
.modal-close {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
}
.modal-body { padding: 20px; }
.modal-footer { padding: 0 20px 20px; display: flex; gap: 12px; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(100px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* ─── CARRITO FLOTANTE ─── */
.cart-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9375rem;
  box-shadow: 0 8px 24px rgba(233,69,96,0.4);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font-body);
}
.cart-fab:hover { transform: scale(1.05); }
.cart-badge {
  background: white;
  color: var(--color-accent);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
}

/* ─── STAT CARD ─── */
.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 20px;
  text-align: center;
}
.stat-card .value {
  font-size: 2rem;
  font-weight: 800;
  font-family: var(--font-heading);
  color: var(--color-accent);
}
.stat-card .label { font-size: 0.875rem; color: var(--color-text-muted); margin-top: 4px; }

/* ─── TABLE ─── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--color-border); font-size: 0.875rem; }
th { font-weight: 600; color: var(--color-text-muted); background: var(--color-surface-2); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* ─── SIDEBAR DASHBOARD ─── */
.dashboard-layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 240px;
  background: var(--color-primary);
  border-right: 1px solid var(--color-border);
  padding: 24px 0;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 50;
  transform: translateX(-100%);
  transition: transform var(--transition);
}
.sidebar.open { transform: translateX(0); }
.sidebar-logo { padding: 0 20px 24px; border-bottom: 1px solid var(--color-border); margin-bottom: 16px; }
.sidebar-nav { padding: 0 12px; }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 10px;
  color: var(--color-text-muted);
  font-weight: 500;
  transition: all var(--transition);
  margin-bottom: 4px;
  cursor: pointer;
  font-size: 0.9375rem;
}
.sidebar-link:hover { background: var(--color-surface); color: var(--color-text); }
.sidebar-link.active { background: rgba(233,69,96,0.15); color: var(--color-accent); }
.sidebar-link .icon { font-size: 1.25rem; width: 24px; text-align: center; }
.main-content { flex: 1; padding: 24px 16px; }

@media (min-width: 1024px) {
  .sidebar { transform: translateX(0); }
  .main-content { margin-left: 240px; padding: 32px 40px; }
}

/* ─── KDS COCINA ─── */
.kds-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; min-height: calc(100vh - 80px); align-items: start; }
.kds-column { background: var(--color-surface); border-radius: var(--radius-card); padding: 16px; }
.kds-column-header { padding-bottom: 12px; border-bottom: 1px solid var(--color-border); margin-bottom: 12px; font-weight: 700; font-size: 1rem; }
.kds-order {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}
.kds-order .table { font-weight: 700; font-size: 1.125rem; }
.kds-order .time { font-size: 0.75rem; color: var(--color-text-muted); }
.kds-order .items { margin-top: 10px; }
.kds-order .item { display: flex; justify-content: space-between; font-size: 0.875rem; padding: 4px 0; }
.kds-order .item .qty { color: var(--color-accent); font-weight: 700; }
.kds-order .actions { margin-top: 12px; display: flex; gap: 8px; }

/* ─── ORDER STATUS ─── */
.order-status-steps {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 24px 0;
  overflow-x: auto;
}
.status-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 70px;
  position: relative;
}
.status-step::before {
  content: '';
  position: absolute;
  top: 16px;
  right: -50%;
  width: 100%;
  height: 2px;
  background: var(--color-border);
  z-index: 0;
}
.status-step:last-child::before { display: none; }
.status-step.done::before { background: var(--color-success); }
.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-surface-2);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  position: relative;
  z-index: 1;
}
.status-step.active .step-dot { border-color: var(--color-accent); background: rgba(233,69,96,0.15); color: var(--color-accent); }
.status-step.done .step-dot { border-color: var(--color-success); background: var(--color-success); color: white; }
.step-label { font-size: 0.625rem; color: var(--color-text-muted); margin-top: 6px; text-align: center; font-weight: 500; }
.status-step.active .step-label, .status-step.done .step-label { color: var(--color-text); }

/* ─── CALENDAR WEEK ─── */
.week-calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 20px; }
.cal-day { text-align: center; cursor: pointer; padding: 10px 4px; border-radius: 10px; transition: all var(--transition); }
.cal-day:hover { background: var(--color-surface-2); }
.cal-day.active { background: var(--color-accent); }
.cal-day .day-name { font-size: 0.625rem; color: var(--color-text-muted); text-transform: uppercase; font-weight: 600; }
.cal-day .day-num { font-size: 1.125rem; font-weight: 700; margin-top: 2px; }
.cal-day .day-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--color-accent); margin: 4px auto 0; }
.cal-day.active .day-name { color: rgba(255,255,255,0.7); }

/* ─── STAR RATING INPUT ─── */
.star-input { display: flex; gap: 8px; }
.star-input .star {
  font-size: 2rem;
  cursor: pointer;
  color: var(--color-border);
  transition: color var(--transition);
}
.star-input .star.filled, .star-input .star:hover { color: var(--color-gold); }

/* ─── MENU HAMBURGUESA MOBILE ─── */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span { width: 24px; height: 2px; background: var(--color-text); border-radius: 2px; transition: all var(--transition); }

/* ─── HERO ─── */
.hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  padding: 48px 16px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 60%, rgba(233,69,96,0.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero h1 { font-size: 2rem; font-weight: 800; line-height: 1.1; margin-bottom: 12px; }
.hero h1 span { color: var(--color-accent); }
.hero p { color: var(--color-text-muted); font-size: 1.0625rem; margin-bottom: 32px; }

@media (min-width: 768px) {
  .hero { padding: 80px 24px; }
  .hero h1 { font-size: 3rem; }
}

/* ─── SEARCH BAR ─── */
.search-bar {
  display: flex;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-btn);
  overflow: hidden;
  max-width: 560px;
  margin: 0 auto;
}
.search-bar input {
  flex: 1;
  background: none;
  border: none;
  color: var(--color-text);
  padding: 14px 18px;
  font-size: 0.9375rem;
}
.search-bar input::placeholder { color: var(--color-text-muted); }
.search-bar button { padding: 14px 20px; background: var(--color-accent); color: white; font-weight: 600; border: none; cursor: pointer; }

/* ─── BANNER INFO ─── */
.banner {
  padding: 14px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  font-weight: 500;
}
.banner-accent { background: rgba(233,69,96,0.1); border: 1px solid rgba(233,69,96,0.2); color: var(--color-text); }
.banner-success { background: rgba(46,204,113,0.1); border: 1px solid rgba(46,204,113,0.2); color: var(--color-text); }
.banner-gold { background: rgba(245,166,35,0.1); border: 1px solid rgba(245,166,35,0.2); color: var(--color-text); }

/* ─── OVERLAY COVER ─── */
.cover-hero {
  position: relative;
  height: 220px;
  overflow: hidden;
}
.cover-hero img { width: 100%; height: 100%; object-fit: cover; }
.cover-hero .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.7) 100%);
}
.cover-hero .cover-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
}

@media (min-width: 768px) {
  .cover-hero { height: 320px; }
}

/* ─── PAGINATION ─── */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.page-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  cursor: pointer;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}
.page-btn.active { background: var(--color-accent); border-color: var(--color-accent); color: white; }
.page-btn:hover:not(.active) { border-color: var(--color-accent); color: var(--color-accent); }
