/* Sistema Azul v1.0 · modo claro. Colores originales + extensiones documentadas. */
:root {
  --ds-color-blue-brand: #4274B9;
  --ds-color-blue-vivid: #336CED;
  --ds-color-blue-action: #2656C9;
  --ds-color-violet-brand: #625BF6;
  --ds-color-white: #FFFFFF;
  --ds-color-surface-soft: #F1F4F8;
  --ds-color-ink: #1F1F1F;
  --ds-color-ink-strong: #1A1A1A;
  --ds-color-gray-text: #5E5E5E;
  --ds-color-gray-muted: #7A7A7A;
  --ds-color-gray-border: #E1E3E1;
  --ds-color-yellow-soft: #FAE18A;
  --ds-color-blue-tint: #EAF0FA;
  --ds-color-violet-tint: #F0EFFF;
  --ds-color-violet-hover: #5149D8;
  --ds-color-blue-pressed: #1D429C;
  --ds-color-success: #176B4D;
  --ds-color-success-soft: #EAF6EE;
  --ds-color-error: #B42318;
  --ds-color-error-soft: #FFF0EE;
  --ds-bg: var(--ds-color-white);
  --ds-surface: var(--ds-color-white);
  --ds-surface-subtle: var(--ds-color-surface-soft);
  --ds-text: var(--ds-color-ink);
  --ds-text-strong: var(--ds-color-ink-strong);
  --ds-text-secondary: var(--ds-color-gray-text);
  --ds-text-decorative: var(--ds-color-gray-muted);
  --ds-border: var(--ds-color-gray-border);
  --ds-border-control: var(--ds-color-gray-text);
  --ds-primary: var(--ds-color-blue-brand);
  --ds-primary-hover: var(--ds-color-blue-action);
  --ds-primary-active: var(--ds-color-blue-pressed);
  --ds-link: var(--ds-color-blue-action);
  --ds-accent: var(--ds-color-violet-brand);
  --ds-accent-hover: var(--ds-color-violet-hover);
  --ds-info-bg: var(--ds-color-blue-tint);
  --ds-info-text: var(--ds-color-blue-action);
  --ds-warning-bg: var(--ds-color-yellow-soft);
  --ds-warning-text: var(--ds-color-ink);
  --ds-success-bg: var(--ds-color-success-soft);
  --ds-success-text: var(--ds-color-success);
  --ds-error-bg: var(--ds-color-error-soft);
  --ds-error-text: var(--ds-color-error);
  --ds-disabled-bg: var(--ds-color-gray-border);
  --ds-disabled-text: var(--ds-color-gray-text);
  --ds-focus: var(--ds-color-blue-action);
  --ds-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --ds-font-mono: ui-monospace, SFMono-Regular, Consolas, monospace;
  --ds-space-1: 4px; --ds-space-2: 8px; --ds-space-3: 12px;
  --ds-space-4: 16px; --ds-space-5: 20px; --ds-space-6: 24px;
  --ds-space-8: 32px; --ds-space-12: 48px; --ds-space-16: 64px;
  --ds-radius-sm: 4px; --ds-radius-md: 8px; --ds-radius-lg: 12px;
  --ds-radius-xl: 20px; --ds-radius-pill: 999px;
  --ds-text-xs: .75rem; --ds-text-sm: .875rem; --ds-text-md: 1rem;
  --ds-text-lg: 1.25rem; --ds-text-xl: 1.5rem; --ds-text-2xl: 2rem;
  --ds-text-3xl: 3rem; --ds-text-display: 4rem;
  --ds-shadow-sm: 0 2px 6px rgb(26 26 26 / 6%);
  --ds-shadow-md: 0 8px 24px rgb(26 26 26 / 8%);
  --ds-duration: 180ms; --ds-easing: cubic-bezier(.2, 0, 0, 1);
  --ds-z-dropdown: 10; --ds-z-sticky: 20; --ds-z-modal: 30; --ds-z-toast: 40;
}
.ds-button {
  font: 600 var(--ds-text-sm)/1 var(--ds-font); display: inline-flex;
  align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 20px; border-radius: var(--ds-radius-md);
  border: 1px solid transparent; background: var(--ds-primary); color: white;
  cursor: pointer; text-decoration: none;
  transition: background var(--ds-duration) var(--ds-easing), box-shadow var(--ds-duration);
}
.ds-button:hover { background: var(--ds-primary-hover); }
.ds-button:active { background: var(--ds-primary-active); }
.ds-button--secondary { background: white; color: var(--ds-link); border-color: var(--ds-link); }
.ds-button--secondary:hover { background: var(--ds-info-bg); }
.ds-button--secondary:active { background: var(--ds-surface-subtle); }
.ds-button--accent { background: var(--ds-accent); }
.ds-button--accent:hover, .ds-button--accent:active { background: var(--ds-accent-hover); }
.ds-button--ghost { background: transparent; color: var(--ds-link); }
.ds-button--ghost:hover, .ds-button--ghost:active { background: var(--ds-info-bg); }
.ds-button:disabled { background: var(--ds-disabled-bg); color: var(--ds-disabled-text); border-color: transparent; cursor: not-allowed; }
:where(button,a,input,select,textarea):focus-visible { outline: 3px solid var(--ds-focus); outline-offset: 3px; }
.ds-field { display: grid; gap: 8px; }
.ds-label { color: var(--ds-text); font: 600 var(--ds-text-sm)/1.5 var(--ds-font); }
.ds-input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--ds-border-control); border-radius: var(--ds-radius-md); background: white; color: var(--ds-text); font: 400 1rem/1.5 var(--ds-font); box-sizing: border-box; }
.ds-input::placeholder { color: var(--ds-text-secondary); }
.ds-input[aria-invalid="true"] { border: 2px solid var(--ds-error-text); }
.ds-help { font: 400 var(--ds-text-sm)/1.5 var(--ds-font); color: var(--ds-text-secondary); margin: 0; }
.ds-error-text { color: var(--ds-error-text); }
.ds-card { background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-lg); padding: var(--ds-space-6); }
.ds-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; font: 600 .75rem/1.4 var(--ds-font); border-radius: var(--ds-radius-pill); color: var(--ds-text); background: var(--ds-surface-subtle); }
.ds-badge--accent { color: var(--ds-accent-hover); background: var(--ds-color-violet-tint); }
.ds-badge--warning { color: var(--ds-warning-text); background: var(--ds-warning-bg); }
.ds-badge--success { color: var(--ds-success-text); background: var(--ds-success-bg); }
.ds-alert { display: flex; align-items: start; gap: 12px; padding: 16px; border-radius: var(--ds-radius-md); background: var(--ds-info-bg); color: var(--ds-info-text); font: 400 1rem/1.5 var(--ds-font); }
.ds-alert--warning { background: var(--ds-warning-bg); color: var(--ds-warning-text); }
.ds-alert--success { background: var(--ds-success-bg); color: var(--ds-success-text); }
.ds-alert--error { background: var(--ds-error-bg); color: var(--ds-error-text); }
.ds-link { color: var(--ds-link); text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
