/* Tema KNPeople: tokens oficiales (tokens.css del portal KNPeople, versión del 17/09/2026).
   No editar a mano: viene tal cual de la guía "Tema KNPeople — guía completa".
   Se agregan al final los colores del panel oscuro que la guía propone como tokens (§2). */
:root {

  --color-app-bg: #f4f6fa;
  --color-surface: #ffffff;
  --color-hairline: #eef1f6;
  --color-border: #e4e9f0;
  --color-border-strong: #dde3ec;
  --color-surface-subtle: #f8fafd;
  --color-surface-subtle-alt: #f1f5fb;
  --color-tab-track: #e9edf4;

  --color-text: #1b2431;
  --color-text-secondary: #4b5a6e;
  --color-text-tertiary: #5c6a7d;
  --color-text-tertiary-alt: #5c6b80;
  --color-text-faint: #7a879a;

  --color-brand-darkest: #314053;
  --color-brand: #4a6fa5;
  --color-brand-strong: #38619f;
  --color-brand-ink: #2a4e86;
  --color-brand-bg: #eaeffb;
  --color-brand-bg-alt: #eef3ff;

  --color-success: #12a594;
  --color-success-ink: #0b7466;
  --color-success-bg: #dff6f1;

  --color-warning: #e8930c;
  --color-warning-ink: #8a5a02;
  --color-warning-ink-alt: #9a6407;
  --color-warning-bg: #fff3da;
  --color-warning-bg-alt: #fef6ec;

  --color-danger: #c7373c;
  --color-danger-bright: #e5484d;
  --color-danger-ink: #a82b30;
  --color-danger-ink-alt: #b02d32;
  --color-danger-bg: #fee7e7;
  --color-danger-bg-alt: #fef0f0;

  --color-violet: #7c5cff;
  --color-violet-ink: #5b3fd4;
  --color-violet-darkest: #4a3aa8;
  --color-violet-bg: #efebff;

  --color-neutral-accent: #64748b;
  --color-neutral-accent-alt: #65748b;

  --gradient-profile: linear-gradient(150deg, #314053 0%, #3d5473 55%, #4a6fa5 100%);
  --gradient-system: linear-gradient(135deg, #4a3aa8, #7c5cff);
  --gradient-suggestion: linear-gradient(135deg, #12a594, #0e8c7e);
  --gradient-expiry: linear-gradient(100deg, #fff3da, #ffe9e4);
  --gradient-login-bg:
    radial-gradient(900px 600px at 12% 10%, #dce8ff 0%, rgba(220, 232, 255, 0) 60%),
    radial-gradient(800px 600px at 88% 85%, #dff6f1 0%, rgba(223, 246, 241, 0) 60%), #f4f6fa;

  --color-overlay: rgba(27, 36, 49, 0.5);
  --color-overlay-nav: rgba(27, 36, 49, 0.55);
  --color-selection: #d6e4ff;

  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  --text-9-5: 9.5px;
  --text-10: 10px;
  --text-10-5: 10.5px;
  --text-11: 11px;
  --text-11-5: 11.5px;
  --text-12: 12px;
  --text-12-5: 12.5px;
  --text-13: 13px;
  --text-13-5: 13.5px;
  --text-14: 14px;
  --text-14-5: 14.5px;
  --text-15-5: 15.5px;
  --text-15: 15px;
  --text-16: 16px;
  --text-18: 18px;
  --text-19: 19px;
  --text-30: 30px;
  --text-42: 42px;
  --text-16-5: 16.5px;
  --text-17: 17px;
  --text-20: 20px;
  --text-22: 22px;
  --text-26: 26px;
  --text-28: 28px;
  --text-32: 32px;
  --text-34: 34px;
  --text-38: 38px;

  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  --tracking-tightest: -0.03em;
  --tracking-tighter: -0.02em;
  --tracking-tight: -0.01em;
  --tracking-label: 0.05em;
  --tracking-label-wide: 0.1em;

  --space-1: 1px;
  --space-2: 2px;
  --space-3: 3px;
  --space-4: 4px;
  --space-5: 5px;
  --space-6: 6px;
  --space-7: 7px;
  --space-8: 8px;
  --space-9: 9px;
  --space-10: 10px;
  --space-11: 11px;
  --space-12: 12px;
  --space-13: 13px;
  --space-14: 14px;
  --space-15: 15px;
  --space-16: 16px;
  --space-17: 17px;
  --space-18: 18px;
  --space-20: 20px;
  --space-22: 22px;
  --space-24: 24px;
  --space-26: 26px;
  --space-28: 28px;
  --space-30: 30px;
  --space-32: 32px;
  --space-44: 44px;
  --space-48: 48px;
  --space-72: 72px;
  --space-34: 34px;

  --card-padding: var(--space-24);
  --card-padding-mobile: var(--space-20);

  --grid-gap: var(--space-20);

  --radius-4: 4px;
  --radius-6: 6px;
  --radius-8: 8px;
  --radius-9: 9px;
  --radius-10: 10px;
  --radius-11: 11px;
  --radius-12: 12px;
  --radius-13: 13px;
  --radius-14: 14px;
  --radius-15: 15px;
  --radius-16: 16px;
  --radius-18: 18px;
  --radius-19: 19px;
  --radius-20: 20px;
  --radius-22: 22px;
  --radius-24: 24px;
  --radius-28: 28px;
  --radius-pill: 999px;

  --shadow-card: 0 1px 3px rgba(27, 36, 49, 0.06), 0 14px 32px -26px rgba(27, 36, 49, 0.5);
  --shadow-popover: 0 20px 44px -22px rgba(27, 36, 49, 0.45);
  --shadow-panel: 0 24px 60px -24px rgba(27, 36, 49, 0.5), 0 1px 3px rgba(27, 36, 49, 0.1);
  --shadow-modal: 0 40px 90px -30px rgba(27, 36, 49, 0.6);
  --shadow-violet: 0 18px 40px -24px rgba(124, 92, 255, 0.9);
  --shadow-login: 0 30px 70px -30px rgba(27, 36, 49, 0.35);
  --shadow-brand-hover: 0 10px 24px -12px rgba(74, 111, 165, 0.6);

  --ease-pop: cubic-bezier(0.2, 0.8, 0.2, 1);
  --duration-fast: 0.15s;
  --duration-pop: 0.18s;
  --duration-fade: 0.2s;
  --duration-enter: 0.3s;
  --duration-grow: 0.45s;

  --breakpoint-mobile: 900px;
  --breakpoint-home-two-col: 1100px;
  --breakpoint-staff-wide: 1240px;
  --nav-width: 260px;
  --hit-target-min: 44px;

  --border-control: 1.5px;

  --switch-w: 44px;
  --switch-h: 26px;
  --switch-knob: 20px;
  --switch-travel: 18px;

  --control-xs: 22px;
  --control-sm: 28px;
  --control-md: 34px;
  --control-lg: 40px;
  --control-touch: var(--hit-target-min);
  --z-nav-backdrop: 40;
  --z-nav: 50;
  --z-popover: 60;
  --z-modal: 70;
  --z-toast: 80;
}

:root {
  --color-sub-ios: #4a6fa5;
  --color-sub-flutter: #12a594;
  --color-sub-backend: #7c5cff;
  --color-sub-po: #e8930c;
  --color-sub-qa: #e5484d;
  --color-sub-fallback: #64748b;
}

:root {
  --anim-pop: pop;
  --anim-fade: fade;
  --anim-grow: grow;
  --anim-spin: spin;
  --anim-toast-in: toastIn;
  --anim-shrink: shrink;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

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

@keyframes grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(26px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes shrink {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0);
  }
}

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

:root {
  --color-sidebar-end: #283545;
  --color-mobilebar-end: #2c3a4b;
  --color-nav-accent: #7de2d1;
  --color-nav-accent-ink: #12263a;
  --color-focus-on-dark: #9fc3ff;
}
