:root {
  --color-primary: #0066FF;
  --color-primary-dark: #0052CC;
  --color-success: #10b981;
  --color-danger: #ef4444;
  --color-warning: #f59e0b;
  --color-dark: #111827;
  --color-bg: #f8fafc;
  --color-card: #ffffff;
  --color-border: #e2e8f0;
}

body {
  background-color: var(--color-bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #1e293b;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* NAVBAR UNIFICADA */
.navbar-brand-food {
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #0f172a !important;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 600;
  transition: all 0.15s ease;
}

.nav-link.active {
  background: #eff6ff !important;
  color: #0066FF !important;
  border: 1px solid #bfdbfe !important;
}

/* TARJETAS ESTILO MODERNO */
.card {
  border-radius: 16px !important;
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

/* ÍCONOS Y BOTONES PROPORCIONADOS */
.btn {
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.88rem;
}

.btn-lg {
  border-radius: 12px;
  font-size: 1rem;
}

.btn-sm {
  border-radius: 8px;
  font-size: 0.80rem;
}

.badge {
  font-weight: 700;
  border-radius: 6px;
  letter-spacing: 0.2px;
}

/* BOTONES DE PLATILLO EN CAJA */
.item-food-btn {
  background: #ffffff;
  border: 2px solid var(--color-border);
  border-radius: 16px;
  padding: 1rem;
  text-align: left;
  transition: all 0.15s ease;
  position: relative;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 110px;
  user-select: none;
}

.item-food-btn:hover:not(:disabled) {
  border-color: var(--color-primary);
  background-color: #fffbeb;
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(217, 119, 6, 0.12);
}

.item-food-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.item-food-btn.agotado {
  background: #f1f5f9;
  border-color: #cbd5e1;
  opacity: 0.65;
  cursor: not-allowed;
}

.badge-stock {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.35rem 0.6rem;
  border-radius: 8px;
}

/* CARRITO EN CAJA */
.cart-sticky {
  position: sticky;
  top: 80px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* BILLETES RÁPIDOS */
.btn-billete {
  border: 1px solid #cbd5e1;
  background: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  transition: background 0.15s;
}

.btn-billete:hover {
  background: #f8fafc;
  border-color: var(--color-primary);
}

/* TARJETA KDS COCINA */
.kds-card {
  border-radius: 18px;
  border: 2px solid #e2e8f0;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kds-card.nuevo {
  border-color: #f59e0b;
  animation: pulseNew 2s infinite;
}

@keyframes pulseNew {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

.kds-header {
  background: #1e293b;
  color: #ffffff;
  padding: 0.75rem 1rem;
}

.kds-folio {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.kds-cliente {
  font-size: 1.15rem;
  font-weight: 800;
  color: #fde047;
}

.kds-items {
  padding: 1rem;
  font-size: 1.15rem;
}

.kds-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px dashed #e2e8f0;
}

.kds-item-qty {
  font-size: 1.4rem;
  font-weight: 900;
  color: #0f172a;
  min-width: 38px;
}

/* ESTILOS PARA TICKET TÉRMICO (80mm y 58mm) */
@media print {
  body * {
    visibility: hidden !important;
  }
  #ticketImprimible, #ticketImprimible * {
    visibility: visible !important;
  }
  #ticketImprimible {
    position: absolute;
    top: 0;
    left: 0;
    width: 78mm;
    margin: 0;
    padding: 2mm 3mm;
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    color: #000;
    background: #fff;
  }
  .no-print {
    display: none !important;
  }
}

.ticket-box {
  width: 78mm;
  background: #ffffff;
  padding: 4mm;
  margin: 0 auto;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  color: #000;
  border: 1px dashed #94a3b8;
}

.ticket-divider {
  border-top: 1px dashed #000;
  margin: 6px 0;
}

.ticket-folio {
  font-size: 26px;
  font-weight: 900;
  text-align: center;
  margin: 4px 0;
}

.ticket-cliente {
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}
