/* ============================================================================
   TRIA Legal — Design Tokens
   ============================================================================
   Variables de marca, espaciado, tipografía y colores.
   Alineado con CLAUDE.md §5 (identidad de marca).
   ============================================================================ */

:root {
  /* === Colores de marca === */
  --green-900: #1a3d2b;
  --green-700: #1f6b3e;
  --green-500: #2d9456;
  --green-100: #e6f4ec;
  --navy:      #1e2d3d;
  --blue-dark: #1e3a5f;
  --orange:    #e8711a;
  --orange-dark: #c95f0f;

  /* === Grises (UI) === */
  --gray-50:   #f9fafb;
  --gray-100:  #f3f4f6;
  --gray-200:  #e5e7eb;
  --gray-300:  #d1d5db;
  --gray-400:  #9ca3af;
  --gray-500:  #6b7280;
  --gray-600:  #4b5563;
  --gray-700:  #374151;
  --gray-800:  #1f2937;
  --gray-900:  #111827;

  /* === Estados semánticos === */
  --success-bg:    #ecfdf5;
  --success-text:  #065f46;
  --success-border: #6ee7b7;

  --error-bg:      #fef2f2;
  --error-text:    #991b1b;
  --error-border:  #fca5a5;

  --warning-bg:    #fffbeb;
  --warning-text:  #92400e;
  --warning-border: #fcd34d;

  --info-bg:       #eff6ff;
  --info-text:     #1e3a5f;
  --info-border:   #93c5fd;

  /* === Tipografía === */
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", Monaco, Consolas, "Liberation Mono", monospace;

  /* === Espaciado === */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* === Radios === */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* === Sombras === */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.05);

  /* === Z-index === */
  --z-modal: 1000;
  --z-toast: 2000;
  --z-tooltip: 3000;

  /* === Transiciones === */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

/* === Reset básico === */

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

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--gray-900);
  background-color: var(--gray-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, select, textarea {
  font-family: inherit;
  font-size: 16px;  /* prevenir zoom en iOS */
}

a {
  color: var(--green-700);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* === Utility: visually-hidden (accesibilidad) === */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
