@tailwind base;
@tailwind components;
@tailwind utilities;

/* Sistema de diseño unificado: Arc UI (Claro Cálido) + HorizonX (Oscuro) + Grainient + Uber Base */
:root {
  --background: #f6f3ec;
  --foreground: #141413;
  --card: #fffdf9;
  --card-foreground: #141413;
  --border: rgba(20, 20, 19, 0.085);
  --muted: #efeae0;
  --muted-foreground: #5c5b57;
  --primary: #276ef1;
  --primary-foreground: #ffffff;
  --primary-hover: #1d4ed8;
  --accent: #efeae0;
  --accent-foreground: #141413;
  --ring: #276ef1;
  --hero-bg: radial-gradient(120% 140% at 0% 0%, #276ef1 0%, #3b5bdb 42%, #4c3f91 82%, #1e1b4b 100%);
  color-scheme: light;
}

.dark {
  --background: #090b10;
  --foreground: #f5f7fa;
  --card: #12151e;
  --card-foreground: #f5f7fa;
  --border: rgba(255, 255, 255, 0.085);
  --muted: #181c28;
  --muted-foreground: #98a2b3;
  --primary: #3b82f6;
  --primary-foreground: #ffffff;
  --primary-hover: #2563eb;
  --accent: #181c28;
  --accent-foreground: #f5f7fa;
  --ring: #3b82f6;
  --hero-bg: radial-gradient(120% 140% at 0% 0%, #1e3a8a 0%, #172554 38%, #0f172a 78%, #1e1b4b 100%);
  color-scheme: dark;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: background-color 0.22s ease, color 0.22s ease;
  -webkit-font-smoothing: antialiased;
}

.rounded-2xl {
  border-radius: 1.35rem;
}

.hero-grainient {
  background: var(--hero-bg);
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.hero-grainient::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  mix-blend-mode: overlay;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-grainient > * {
  position: relative;
  z-index: 1;
}

/* Números tabulares para alineación perfecta en columnas de montos */
.font-tabular {
  font-variant-numeric: tabular-nums;
}

/* Custom scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in {
  animation: fadeIn 0.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
