@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;700;800&family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@500;600;700&display=swap');

:root {
  /* GS Filas - Neutral Violet-White / Near-Black Design System (tenant accent plugs into --accent-orange*) */
  --bg-primary: #faf9fc;          /* Fondo base violeta-blanco neutro */
  --bg-surface: #ffffff;          /* Fondo de tarjetas blanco puro */
  --bg-surface-elevated: #ffffff; /* Superficie elevada */
  --bg-surface-hover: #f3f1f8;    /* Hover neutro */
  --bg-surface-glass: rgba(255, 255, 255, 0.95);
  --bg-surface-subtle: #f3f1f8;   /* Fondo tenue violeta-gris */
  --bg-surface-subtle-2: #ece9f4; /* Fondo tenue, un paso más oscuro */

  /* Yahualica Chile & Terracotta Warm Orange */
  --accent-orange-rgb: 234, 88, 12;
  --accent-orange: #ea580c;
  --accent-orange-bright: #f97316;
  --accent-orange-light: #fb923c;
  --accent-orange-dark: #c2410c;
  --accent-orange-glow: rgba(var(--accent-orange-rgb), 0.25);
  --accent-orange-subtle: #fff7ed;
  --accent-orange-border: #fed7aa;

  /* Talavera Cobalt & Traditional Jalisco Navy */
  --accent-navy: #1e3a8a;
  --accent-navy-light: #3b82f6;
  --accent-navy-subtle: #eff6ff;
  --accent-navy-glow: rgba(30, 58, 138, 0.18);

  /* Agave Fresh Green, Honey Amber & Accents */
  --accent-gold: #d97706;
  --accent-gold-light: #f59e0b;
  --accent-gold-subtle: #fefce8;
  --accent-emerald: #15803d;
  --accent-emerald-light: #16a34a;
  --accent-emerald-subtle: #f0fdf4;
  --accent-rose: #e11d48;
  --accent-rose-subtle: #fff1f2;

  /* Functional Colors */
  --color-success: #16a34a;
  --color-success-glow: rgba(22, 163, 74, 0.22);
  --color-warning: #d97706;
  --color-danger: #dc2626;
  --color-danger-subtle: #fef2f2;

  /* Near-Black Violet Ink Typography */
  --text-main: #1d1a24;         /* Tinta casi negra, base violeta */
  --text-secondary: #5d5868;    /* Violeta-gris medio */
  --text-muted: #8b869a;        /* Violeta-gris tenue */
  --text-dim: #b4afc2;          /* Acento tenue */
  --text-inverse: #ffffff;      /* Texto sobre botones oscuros/de acento */

  /* Borders & Dividers */
  --border-subtle: #e4e0ee;
  --border-card: #ddd8e8;
  --border-navy: #cbd5e1;
  --border-orange: #fdba74;
  --border-glass: rgba(29, 26, 36, 0.06);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows - Neutral ink, soft */
  --shadow-sm: 0 1px 3px rgba(29, 26, 36, 0.07), 0 1px 2px rgba(29, 26, 36, 0.05);
  --shadow-card: 0 4px 20px -2px rgba(29, 26, 36, 0.07), 0 0 0 1px var(--border-card);
  --shadow-elevated: 0 12px 32px -4px rgba(29, 26, 36, 0.14), 0 0 0 1px var(--border-card);
  --shadow-glow-orange: 0 0 24px var(--accent-orange-glow);

  /* Fonts */
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --font-display: 'Manrope', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* CRITICAL: Global Image Reset - Prevents raw image overflow */
img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Scrollbars */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #c9c3d6;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-orange);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.badge-waiting {
  background: var(--accent-gold-subtle);
  color: #b45309;
  border: 1px solid #fde68a;
}

.badge-called {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #86efac;
  box-shadow: 0 0 12px var(--color-success-glow);
  animation: pulse-badge 1.8s infinite ease-in-out;
}

.badge-celebration {
  background: var(--accent-orange-subtle);
  color: var(--accent-orange-dark);
  border: 1px solid var(--accent-orange-border);
}

.badge-allergy {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.88; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  text-decoration: none;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-orange-bright) 0%, var(--accent-orange-dark) 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--accent-orange-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--accent-orange-glow);
  background: linear-gradient(135deg, var(--accent-orange-light) 0%, var(--accent-orange) 100%);
}
.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--accent-orange);
  color: var(--accent-orange-dark);
  transform: translateY(-1px);
}

.btn-success {
  background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
  color: white;
  box-shadow: 0 4px 14px var(--color-success-glow);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--color-success-glow);
}

.btn-danger {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.btn-danger:hover {
  background: #fee2e2;
  color: #991b1b;
}

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius-sm);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

