/* ══════════════════════════════════════════════════════════════════
   VERTICAL: SOFTWARE DE COMANDAS Y COCINA KDS (/comandas)
   Estilos dedicados - Clean Code Architecture
   Paleta: KDS Flame Orange (#f97316), Cyan Monitor (#06b6d4), KDS Emerald (#10b981), Dark Kitchen (#090d12)
   ══════════════════════════════════════════════════════════════════ */

:root {
  --comandas-bg: #090d12;
  --comandas-card: #0e1622;
  --comandas-card-hover: #142030;
  --comandas-border: #1b2838;
  --comandas-orange: #f97316;
  --comandas-orange-dark: #ea580c;
  --comandas-cyan: #06b6d4;
  --comandas-emerald: #10b981;
  --comandas-red: #ef4444;
  --comandas-amber: #f59e0b;
  --comandas-text: #f3f4f6;
  --comandas-muted: #94a3b8;
}

/* Badge Neon Superior */
.badge-comandas-neon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: #fb923c;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Tipografía Hero */
.comandas-hero-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.5px;
}

@media (max-width: 768px) {
  .comandas-hero-title {
    font-size: 2rem;
  }
}

.text-comandas-gradient {
  background: linear-gradient(135deg, #fb923c 0%, #f97316 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-flame {
  color: #f97316 !important;
}

.text-cyan {
  color: #06b6d4 !important;
}

/* Botones de Acción */
.btn-comandas-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  color: #ffffff !important;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 10px;
  text-decoration: none !important;
  transition: all 0.25s ease;
  box-shadow: 0 4px 18px rgba(249, 115, 22, 0.35);
}

.btn-comandas-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(249, 115, 22, 0.5);
  filter: brightness(1.08);
}

.btn-comandas-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #e2e8f0 !important;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 10px;
  text-decoration: none !important;
  transition: all 0.25s ease;
}

.btn-comandas-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* Tarjeta Mockup Hero (Comanda en Celular & KDS) */
.comandas-ticket-hero {
  background: radial-gradient(circle at top, #1e2638 0%, #0c121a 100%);
  border: 2px solid #f97316;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(249, 115, 22, 0.2);
  position: relative;
  overflow: hidden;
}

.comandas-ticket-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #f97316, #06b6d4, #f97316);
}

.ticket-header-badge {
  background: rgba(249, 115, 22, 0.2);
  color: #fb923c;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(249, 115, 22, 0.4);
}

.kds-live-badge {
  background: rgba(6, 182, 212, 0.2);
  color: #22d3ee;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(6, 182, 212, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.pulse-dot-cyan {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22d3ee;
  box-shadow: 0 0 8px #22d3ee;
  animation: pulse-kds 1.8s infinite;
}

@keyframes pulse-kds {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

/* Caja Answer First (AEO / GEO Standard) */
.answer-first-box {
  background: rgba(14, 22, 34, 0.85);
  border-left: 4px solid #f97316;
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin-bottom: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.answer-first-box p {
  color: #cbd5e1;
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.answer-first-box strong {
  color: #fb923c;
}

/* Simulador Dual Interactivo (Mesero Móvil ↔ Pantalla KDS) */
.simulator-dual-container {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 25px;
  margin-top: 25px;
}

@media (max-width: 991px) {
  .simulator-dual-container {
    grid-template-columns: 1fr;
  }
}

/* Teléfono Móvil del Mesero */
.waiter-phone-card {
  background: #0d141e;
  border: 2px solid #233549;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.waiter-phone-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #1f2d3d;
  padding-bottom: 12px;
  margin-bottom: 15px;
}

.dish-pick-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 15px;
}

.dish-pick-item {
  background: #131d2a;
  border: 1px solid #233549;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dish-pick-item:hover {
  border-color: #f97316;
  background: #172434;
}

.dish-pick-item.selected {
  border-color: #f97316;
  background: rgba(249, 115, 22, 0.12);
}

.modifier-tag {
  display: inline-block;
  font-size: 0.72rem;
  background: rgba(6, 182, 212, 0.15);
  color: #22d3ee;
  border: 1px solid rgba(6, 182, 212, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
}

/* Pantalla KDS Cocina */
.kds-monitor-card {
  background: #080d14;
  border: 2px solid #06b6d4;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(6, 182, 212, 0.15);
  display: flex;
  flex-direction: column;
}

.kds-monitor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  margin-bottom: 15px;
}

.kds-orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 15px;
}

.kds-order-card {
  background: #101924;
  border-radius: 10px;
  border-left: 5px solid #10b981;
  padding: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.25s ease;
}

.kds-order-card.sla-warning {
  border-left-color: #f59e0b;
}

.kds-order-card.sla-danger {
  border-left-color: #ef4444;
  animation: urgent-pulse 2s infinite;
}

@keyframes urgent-pulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); }
  50% { box-shadow: 0 0 20px rgba(239, 68, 68, 0.4); }
}

.kds-order-card.status-ready {
  opacity: 0.6;
  border-left-color: #64748b;
}

.kds-sla-badge {
  font-family: monospace;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.sla-green {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}

.sla-amber {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}

.sla-red {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
}

/* Enrutamiento por Áreas (Cocina vs Barra) */
.area-route-card {
  background: var(--comandas-card);
  border: 1px solid var(--comandas-border);
  border-radius: 14px;
  padding: 20px;
  text-align: left;
  transition: all 0.25s ease;
}

.area-route-card:hover {
  border-color: rgba(249, 115, 22, 0.4);
  transform: translateY(-2px);
}

/* Tabla Comparativa */
.comandas-compare-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--comandas-card);
  border: 1px solid var(--comandas-border);
  border-radius: 14px;
  overflow: hidden;
}

.comandas-compare-table th {
  background: #141f2d;
  padding: 16px;
  font-size: 0.95rem;
  color: #ffffff;
  border-bottom: 1px solid var(--comandas-border);
}

.comandas-compare-table td {
  padding: 14px 16px;
  font-size: 0.9rem;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comandas-compare-table tr:last-child td {
  border-bottom: none;
}

/* FAQ Accordion */
.faq-comandas-item {
  background: var(--comandas-card);
  border: 1px solid var(--comandas-border);
  border-radius: 12px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.faq-comandas-item.active {
  border-color: #f97316;
}

.faq-comandas-header {
  padding: 18px 22px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-comandas-question {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0;
}

.faq-comandas-icon {
  color: #f97316;
  transition: transform 0.3s ease;
}

.faq-comandas-item.active .faq-comandas-icon {
  transform: rotate(180deg);
}

.faq-comandas-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  background: rgba(0, 0, 0, 0.2);
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.65;
  padding: 0 22px;
}

.faq-comandas-item.active .faq-comandas-body {
  max-height: 350px;
  padding: 16px 22px 20px 22px;
}
