/* base.css — variables, reset, tipografía y utilidades globales */

:root {
  /* Nuevos colores mejorados */
  --bg: #f7f9fc;
  --bg2: #eef5ff;
  --card: rgba(255, 255, 255, .85);
  --card2: rgba(255, 255, 255, .98);
  --text: #0a0f1e;
  --text-light: #2d3f52;
  --muted: rgba(10, 15, 30, .68);
  --line: rgba(10, 15, 30, .1);
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, .12);
  --accent-vsoft: rgba(37, 99, 235, .05);
  --focus: rgba(37, 99, 235, .35);
  --shadow: 0 18px 55px rgba(37, 99, 235, .10);
  --shadow2: 0 10px 28px rgba(37, 99, 235, .09);
  --shadow-hover: 0 24px 48px rgba(37, 99, 235, .15);
  --radius: 18px;
  /* Colores por categoría */
  --cat-sueldo: #2563eb;
  --cat-paro: #f97316;
  --cat-autonomos: #10b981;
  --cat-fiscal: #8b5cf6;
  --cat-laboral: #06b6d4;
}


* {
  box-sizing: border-box;
}

/* Animaciones globales */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUnderline {
  from { width: 0; }
  to { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  flex: 1;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    /* Aura suave azul-gris, sin verdes fuertes */
    radial-gradient(1100px 640px at 12% 6%, rgba(59, 130, 246, .18), transparent 60%),
    radial-gradient(980px 560px at 92% 0%, rgba(129, 140, 248, .14), transparent 55%),
    radial-gradient(1400px 820px at 50% 120%, rgba(14, 165, 233, .10), transparent 62%),
    linear-gradient(180deg, var(--bg2) 0%, var(--bg) 70%);
}

a {
  color: inherit;
  text-decoration: none;
}


/* Interacción y foco */
/* Quitar highlight azul en móviles */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Evitar borde azul al hacer click en botones o enlaces */
a, button, input, select, textarea {
  outline: none;
}

/* Mantener accesibilidad en foco con teclado */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
