/* ARCA ONE Gastronomía - Estilos Oficiales Sistema ARCA One */

:root {
  --gastro-primary: #8bc53f;
  --gastro-primary-hover: #76a835;
  --gastro-accent: #a1d459;
  --gastro-brand-glow: rgba(139, 197, 63, 0.35);
  --gastro-border-dark: #262930;
  --gastro-btn-radius: 0px;
}

/* ARCA ONE Official Button Styles */
.btn-brand {
  background: linear-gradient(135deg, #8bc53f 0%, #76a835 100%) !important;
  color: #08090a !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 18px rgba(139, 197, 63, 0.35) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  border: none !important;
  cursor: pointer;
  border-radius: var(--gastro-btn-radius, 0px) !important;
}

.btn-brand:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(139, 197, 63, 0.5) !important;
  background: linear-gradient(135deg, #a1d459 0%, #8bc53f 100%) !important;
}

.btn-secondary {
  background: #ffffff;
  color: #1e293b !important;
  border: 1px solid #e2e8f0 !important;
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700 !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  cursor: pointer;
  border-radius: var(--gastro-btn-radius, 0px) !important;
}

.dark .btn-secondary {
  background: #121417 !important;
  color: #f3f4f6 !important;
  border: 1px solid #262930 !important;
}

.btn-secondary:hover {
  border-color: rgba(139, 197, 63, 0.5) !important;
  color: #8bc53f !important;
  transform: translateY(-2px) !important;
}

/* Glassmorphism Classes */
.gastro-glass {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(229, 231, 235, 0.8);
}

.dark .gastro-glass {
  background: rgba(18, 20, 23, 0.92);
  border: 1px solid rgba(38, 41, 48, 0.8);
}

/* Glow Card */
.gastro-glow-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.gastro-glow-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 30px -10px var(--gastro-brand-glow);
  border-color: rgba(139, 197, 63, 0.5) !important;
}

/* Badge Pulsing */
.gastro-pulse-badge {
  position: relative;
}

.gastro-pulse-badge::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: currentColor;
  opacity: 0.25;
  animation: gastroPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  z-index: -1;
}

@keyframes gastroPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.25;
  }
  50% {
    transform: scale(1.12);
    opacity: 0;
  }
}

/* KDS Ticket Styling */
.kds-ticket {
  border-radius: 12px;
  border-left: 5px solid var(--gastro-primary);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dark .kds-ticket {
  background: #16191e;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.kds-ticket.urgent {
  border-left-color: #f59e0b;
  animation: urgentShake 4s ease infinite;
}

@keyframes urgentShake {
  0%, 90%, 100% { transform: translateX(0); }
  92% { transform: translateX(-3px); }
  94% { transform: translateX(3px); }
  96% { transform: translateX(-2px); }
  98% { transform: translateX(2px); }
}

/* Table POS Widget */
.pos-table-node {
  transition: all 0.25s ease;
  cursor: pointer;
  user-select: none;
}

.pos-table-node:hover {
  transform: scale(1.03);
}

.pos-table-node.occupied {
  border-color: #f43f5e;
  background: rgba(244, 63, 94, 0.06);
}

.pos-table-node.free {
  border-color: #8bc53f;
  background: rgba(139, 197, 63, 0.08);
}

.pos-table-node.billing {
  border-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
}

/* Custom Scrollbars */
.gastro-custom-scroll::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.gastro-custom-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.gastro-custom-scroll::-webkit-scrollbar-thumb {
  background: rgba(139, 197, 63, 0.3);
  border-radius: 9999px;
}

.gastro-custom-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 197, 63, 0.6);
}

/* ========================================================================= */
/* UNIFICACIÓN TIPOGRÁFICA ARCA ONE: FUENTE POPPINS EN TODO EL SISTEMA      */
/* ========================================================================= */
html, body, button, input, select, textarea, p, span, h1, h2, h3, h4, h5, h6, a, div, li, td, th, label,
.font-sans, .font-heading, .font-badge {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
}

.font-mono, [class*="font-mono"] {
  font-family: 'JetBrains Mono', monospace !important;
}

/* Estilos de Pines y Marcadores para el Mapa de Delivery Leaflet */
.leaflet-container {
  font-family: 'Poppins', sans-serif !important;
}

.arca-map-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  transition: transform 0.2s ease;
}

.arca-pin-pulse {
  position: relative;
}

.arca-pin-pulse::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 9999px;
  background: rgba(139, 197, 63, 0.4);
  animation: pinPulse 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
  z-index: -1;
}

@keyframes pinPulse {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}
