/* Human Capital · sistema de diseño (cálido, estilo Apple) */
:root {
  color-scheme: light;
  --bg: #FBF6EF; --bg-2: #F5EDE1; --bg-3: #EFE4D3; --card: #FFFFFF; --card-2: #FFFCF8;
  --ink: #2B1E16; --ink-2: #5E4E42; --muted: #8C7B6D; --line: #EBDFCF; --line-2: #F2E9DC;
  --brand: #D4622A; --brand-d: #B34A19; --brand-l: #FCE9DC; --brand-g: linear-gradient(180deg, #E0722F, #CD5A22);
  --gold: #E4A23A; --gold-l: #FBF0D8; --navy: #1E2F7A; --navy-l: #E6E9F6;
  --good: #2E8B57; --good-l: #DFF3E7; --bad: #C23B30; --bad-l: #FBE3E0; --warn: #B87710; --warn-l: #FCF0D5; --info: #2F68B0; --info-l: #E1ECF9;
  --r: 18px; --r-sm: 12px; --r-xs: 8px;
  --sh-1: 0 1px 2px rgba(70, 40, 15, .05), 0 1px 1px rgba(70, 40, 15, .03);
  --sh-2: 0 1px 2px rgba(70, 40, 15, .05), 0 10px 30px rgba(70, 40, 15, .08);
  --sh-3: 0 4px 12px rgba(70, 40, 15, .08), 0 24px 60px rgba(70, 40, 15, .16);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI Variable Display", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
  /* etapas del proceso (identidad) */
  --e-nuevo: #A8998A; --e-preseleccion: #D9962F; --e-entrevista_hc: #DE7A33; --e-presentado: #CF5B33; --e-entrevista_cliente: #B9423F;
  --e-finalista: #8A4B73; --e-oferta: #3A6FB5; --e-contratado: #2E8B57; --e-descartado: #B2A79D;
  /* series de gráficos (validadas) */
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.12; letter-spacing: -.022em; font-weight: 700; }
h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: 19px; letter-spacing: -.015em; }
h4 { font-size: 16px; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--brand-d); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; } svg { max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand-l); }
.muted { color: var(--muted); } .ink2 { color: var(--ink-2); }
.small { font-size: 14px; } .tiny { font-size: 12.5px; } .bold { font-weight: 650; }
.center { text-align: center; } .right { text-align: right; }
.grow { flex: 1 1 0; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .row.top { align-items: flex-start; } .row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 14px; } .stack.s { gap: 8px; } .stack.l { gap: 22px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hide { display: none !important; }
.ic { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: -.22em; } .ic.sm { width: 16px; height: 16px; } .ic.lg { width: 26px; height: 26px; }
.num { font-variant-numeric: tabular-nums; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: gira .8s linear infinite; margin: 0 auto; }
@keyframes gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--brand-g); color: #fff; font-weight: 600; font-size: 15px; letter-spacing: -.005em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 4px 14px color-mix(in srgb, var(--brand) 32%, transparent); transition: transform .15s var(--ease), box-shadow .2s, filter .2s; text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.04); text-decoration: none; } .btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { background: var(--bg-2); }
.btn.soft { background: var(--brand-l); color: var(--brand-d); box-shadow: none; }
.btn.dark { background: var(--ink); box-shadow: 0 4px 14px rgba(43, 30, 22, .25); }
.btn.good { background: var(--good); box-shadow: none; } .btn.danger { background: var(--bad); box-shadow: none; }
.btn.sm { min-height: 34px; padding: 0 14px; font-size: 14px; } .btn.lg { min-height: 52px; padding: 0 28px; font-size: 17px; }
.btn.block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); transition: background .15s; flex: none; }
.icon-btn:hover { background: var(--bg-2); color: var(--ink); } .icon-btn.sm { width: 32px; height: 32px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand-d); font-weight: 600; cursor: pointer; } .link-btn:hover { text-decoration: underline; }

/* formularios */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .lbl { font-size: 13px; font-weight: 600; color: var(--ink-2); letter-spacing: .005em; }
.input { width: 100%; min-height: 44px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--card); color: var(--ink); font: inherit; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.input:hover { border-color: #DCCDB8; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent); }
textarea.input { resize: vertical; min-height: 88px; line-height: 1.45; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238C7B6D' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.input.sm { min-height: 36px; padding: 6px 12px; font-size: 14.5px; border-radius: 10px; }
.hint { font-size: 12.5px; color: var(--muted); }
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; } .form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.span2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid.two, .form-grid.three { grid-template-columns: 1fr; } }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--brand); flex: none; }
.search { position: relative; } .search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; } .search .input { padding-left: 42px; border-radius: 999px; background: var(--card); }

/* sitio y app: contenedores */
.contain { width: min(1180px, 100% - 40px); margin-inline: auto; }
