/* Superficies suaves y elevación ligera. Sin librerías de animación. */
:root {
  --green:#245d50; --green2:#327d6a; --gold:#e5bc55; --blue:#417491;
  --ink:#243b40; --muted:#5d7377; --bg:#f3f6f8; --line:#dce6e8; --red:#a13f39;
  --radius:24px; --radius-sm:14px;
  --shadow:0 2px 4px #253d481f,0 12px 28px -16px #253d482e;
  --shadow-hover:0 4px 8px #253d4814,0 18px 34px -14px #253d4838;
}
* { box-sizing:border-box }
html { scroll-behavior:smooth; scroll-padding-top:115px; scrollbar-gutter:stable }
body { margin:0; color:var(--ink); background:radial-gradient(ellipse at 4% 0%,#e3edf7 0,transparent 42rem),radial-gradient(ellipse at 95% 12%,#eaf0e5 0,transparent 40rem),var(--bg); font-family:'Poppins','Segoe UI',Arial,sans-serif; font-size:15px; line-height:1.6; -webkit-font-smoothing:antialiased }
button,input,select,textarea { font:inherit }
button,a,input,select,textarea { -webkit-tap-highlight-color:transparent }
button,a { touch-action:manipulation }
button { cursor:pointer }
button:disabled { cursor:default; opacity:.5 }
a { color:var(--green); text-underline-offset:4px }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible { outline:3px solid var(--blue); outline-offset:4px }
[hidden] { display:none!important }
#main:focus { outline:none }
h1,h2,h3,p { overflow-wrap:anywhere }
h1,h2,h3 { line-height:1.25 }
h1 { font-size:2rem; letter-spacing:-.04em; margin:0 0 10px; font-weight:600 }
h2 { font-size:1.18rem; margin:0; font-weight:600; letter-spacing:-.02em }
h3 { font-size:1rem; margin:0 0 14px; font-weight:600 }
p { margin:0 0 16px }
.container { width:min(1220px,calc(100% - 64px)); margin:auto }
.narrow { width:min(740px,calc(100% - 32px)); margin:auto }
.section { padding-top:36px; padding-bottom:64px }
.muted,.caption { color:var(--muted); font-size:.82rem }
.caption { font-size:.73rem; margin:14px 0 0 }
.eyebrow { font-size:.65rem; font-weight:600; letter-spacing:.14em; color:var(--green2); margin:0 0 10px; text-transform:uppercase }
.nav { position:relative; z-index:10; width:min(1280px,calc(100% - 32px)); margin:14px auto 0; min-height:72px; padding:12px 22px; display:flex; align-items:center; justify-content:space-between; gap:18px; border:1px solid #ffffffd9; border-radius:24px; background:#fffffff0; box-shadow:var(--shadow) }
@supports (backdrop-filter:blur(16px)) { .nav { background:#ffffffd9; backdrop-filter:blur(16px) } }
.nav img { display:block; width:148px; height:auto }
.nav nav { display:flex; align-items:center; gap:8px }
.nav nav a { text-decoration:none; color:var(--muted); font-size:.78rem; font-weight:500; padding:10px 16px; border-radius:100px }
.nav nav a[aria-current=page] { background:#eaf0f3; color:var(--ink) }
.nav nav .gold { color:var(--green) }
.hero { position:relative; overflow:hidden; width:min(1280px,calc(100% - 32px)); margin:22px auto 0; padding:60px 0; border-radius:32px; color:#fff; background:linear-gradient(120deg,#275d64,#347c70 58%,#5c8491); box-shadow:0 20px 50px -28px #295f68a6 }
.hero::after { content:''; position:absolute; width:360px; height:360px; border:1px solid #ffffff26; border-radius:50%; right:-90px; top:-80px; box-shadow:0 0 0 60px #ffffff05,0 0 0 120px #ffffff04; pointer-events:none }
.hero .container { position:relative; z-index:1; width:calc(100% - 96px) }
.hero .eyebrow { color:#eee5b4 }
.hero h1 { font-size:clamp(2.5rem,5vw,4.5rem); max-width:800px; line-height:1.1; letter-spacing:-.055em; margin:20px 0; font-weight:600 }
.hero em { font-style:normal; color:#f3d883 }
.hero p:not(.eyebrow) { max-width:610px; color:#edf5f2; font-size:.9rem }
.hero .btn { margin-top:12px }
.hero-count { font-size:.77rem; margin-left:22px; color:#edf5f2 }
.section-head { display:flex; justify-content:space-between; gap:16px; align-items:center; margin-bottom:26px }
.section-head p:last-child { margin-bottom:0 }
.compact { margin-bottom:18px }
.card,.job-card,.kpi,.vacancy-card { background:#fff; border:1px solid #e4ebed; border-radius:var(--radius); box-shadow:var(--shadow) }
.card { padding:28px }
.job-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px }
.job-card { display:flex; flex-direction:column; align-items:flex-start; text-align:left; gap:14px; padding:28px; color:var(--ink); min-width:0 }
.job-card .eyebrow { color:var(--blue); background:#edf4f8; padding:7px 11px; border-radius:100px; font-size:.6rem; letter-spacing:.06em; margin:0 }
.job-card:nth-child(3n+2) .eyebrow { color:var(--green); background:#edf5ef }
.job-card:nth-child(3n) .eyebrow { color:#796026; background:#fbf4e1 }
.job-card h3 { font-size:1.04rem; margin:2px 0; line-height:1.4 }
.job-card .location { margin-top:auto; font-size:.75rem; color:var(--muted) }
.job-card .cta { width:100%; border-top:1px solid var(--line); padding-top:16px; color:var(--green); font-size:.78rem; font-weight:600; display:flex; justify-content:space-between }
.tags { display:flex; gap:6px; flex-wrap:wrap }
.tag,.badge { font-size:.68rem; border-radius:100px; display:inline-flex; align-items:center; padding:5px 10px; background:#edf5ef; color:var(--green); font-weight:500; line-height:1.5 }
.tag { color:var(--muted); background:#f3f6f7 }
.badge.alto,.badge.state-seleccionado { background:#e9f4ec; color:#2d6647 }
.badge.medio,.badge.state-sinrevisionregistrada { background:#fbf1d9; color:#7a5d1b }
.badge.basico { background:#f0f2f3; color:#576770 }
.badge.sin-evaluar { background:#f5ede4; color:#805726 }
.badge.state-nuevo { background:#eaf2fa; color:#35627b }
.badge.state-enrevision { background:#e9f3f0; color:#296958 }
.badge.state-entrevista { background:#efedfa; color:#67598b }
.badge.state-descartado { background:#f5eeee; color:#805d5d }
.btn { border:1px solid transparent; border-radius:var(--radius-sm); background:var(--green); color:#fff; padding:12px 20px; font-size:.8rem; line-height:1.4; font-weight:500; display:inline-flex; align-items:center; justify-content:center; text-decoration:none; min-height:46px; gap:7px; box-shadow:0 3px 6px #245d5017 }
.btn.secondary { background:#f7fafb; border-color:var(--line); color:var(--green); box-shadow:none }
.btn.gold-btn { background:#f1d47f; color:#304d45; border-color:#fae5a7 }
.btn.small { font-size:.72rem; min-height:40px; padding:9px 13px; border-radius:12px }
.text-btn { border:0; background:transparent; color:var(--green); padding:9px 0; font-size:.78rem; text-decoration:underline; text-underline-offset:4px; font-weight:500; min-height:40px }
.detail-layout { display:grid; grid-template-columns:1fr 310px; gap:24px; margin-top:28px }
.detail-layout .card { margin-bottom:20px }
.detail-title { font-size:clamp(1.7rem,3vw,2.6rem); max-width:880px; margin:20px 0 }
.detail-lead { max-width:72ch; margin:18px 0 0; font-size:.95rem; border-left:3px solid var(--green2); padding-left:16px }
.aside-contact { margin:14px 4px 0; text-align:center }
.question.disability { margin-top:22px }
.question.disability .field-grid { margin-top:16px }
input[type=range] { width:100%; accent-color:var(--green); margin:14px 0 6px; min-height:28px; cursor:pointer }
.range-value { display:block; font-size:.84rem; font-weight:600; color:var(--green) }
.detail-layout ul { padding-left:20px; margin:0 }
.detail-layout li { margin-bottom:10px; font-size:.86rem }
.detail-layout aside .card { position:sticky; top:110px; background:#f3f8f7 }
.full-btn { width:100% }
.form-heading { margin-top:24px }
.form-heading h1 { font-size:1.6rem }
.steps { display:flex; padding:8px; list-style:none; margin:24px 0; gap:5px; border-radius:18px; background:#e7eef0 }
.steps li { flex:1; min-width:0; font-size:.69rem; color:var(--muted); padding:10px 12px; border-radius:12px }
.steps li.active { color:var(--green); background:#fff; box-shadow:0 2px 7px #243b4012; font-weight:600 }
.steps li.done { color:var(--green2) }
.steps span { display:block; font-size:.6rem; letter-spacing:.06em; margin-bottom:2px }
.steps { margin-bottom:10px }
.progress { height:4px; border-radius:99px; background:#e7eef0; overflow:hidden; margin:0 0 22px }
.progress::before { content:''; display:block; height:100%; width:var(--avance,0%); border-radius:99px; background:linear-gradient(90deg,var(--green),var(--green2)); transition:width .35s ease }
@media (prefers-reduced-motion: reduce) { .progress::before { transition:none } }
label { display:block; font-size:.78rem; font-weight:500; margin-bottom:6px }
input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea { width:100%; min-width:0; background:#fbfcfd; border:1px solid #cedcdf; border-radius:12px; padding:12px 14px; color:var(--ink); font-size:.84rem; min-height:46px }
input::placeholder,textarea::placeholder { color:#73868b; opacity:1 }
textarea { min-height:108px; resize:vertical }
input[aria-invalid=true],select[aria-invalid=true],textarea[aria-invalid=true] { border-color:var(--red) }
.field-grid { display:grid; grid-template-columns:1fr 1fr; gap:18px }
.field.full { grid-column:1/-1 }
.field-error { color:var(--red); font-size:.73rem; margin-top:5px }
.field-hint { font-size:.73rem; color:var(--muted); margin-top:8px }
.field-error:empty { display:none }
.form-actions { display:flex; justify-content:space-between; gap:14px; margin-top:18px; padding-bottom:env(safe-area-inset-bottom) }
.form-actions .btn:last-child { margin-left:auto }
.optional { font-weight:400; color:var(--muted) }
.choice-list { display:flex; flex-wrap:wrap; gap:9px }
.choice { display:flex; align-items:center; gap:9px; padding:11px 15px; border:1px solid var(--line); border-radius:14px; font-weight:400; margin:0; cursor:pointer; min-height:46px }
.choice:has(input:checked) { border-color:var(--green2); background:#edf5f1 }
.choice input { accent-color:var(--green); margin:0; width:18px; height:18px; flex-shrink:0 }
.question { margin-bottom:28px }
.question:last-child { margin-bottom:0 }
.question legend { font-size:.85rem; font-weight:500; margin-bottom:12px }
.question fieldset { border:0; padding:0; margin:0; min-width:0 }
.question textarea { margin-top:9px }
.review-list { margin:18px 0 24px }
.review-list div { display:grid; grid-template-columns:145px 1fr; gap:16px; padding:10px 0; border-bottom:1px solid #edf1f2; font-size:.78rem }
.review-list dt { color:var(--muted) }
.review-list dd { margin:0; white-space:pre-wrap; overflow-wrap:anywhere; min-width:0 }
.file-zone { padding:24px; background:#f0f6f5; border:1px dashed #96b8ac; border-radius:18px }
.file-zone input { font-size:.76rem; max-width:100% }
.file-zone.drag { background:#e0eee7; border-color:var(--green) }
.consent { display:flex; align-items:flex-start; gap:12px; font-size:.76rem; font-weight:400; margin-top:20px; line-height:1.6 }
.consent input { margin-top:5px; accent-color:var(--green); width:18px; height:18px; flex-shrink:0 }
.notice { border-radius:14px; padding:15px 18px; background:#fbf5e5; border:1px solid #eadcb6; font-size:.78rem; color:#725720; margin:16px 0; white-space:pre-line }
.notice.error { background:#fcf0ee; border-color:#ebc9c3; color:var(--red) }
.job-grid>.notice { grid-column:1/-1 }
.success { text-align:center; padding:50px 32px }
.success p { max-width:540px; margin:18px auto; color:var(--muted) }
.success-icon { display:inline-flex; border-radius:22px; background:#e5f1e9; color:var(--green2); width:68px; height:68px; align-items:center; justify-content:center; font-size:2rem; margin-bottom:20px }
#receipt { font-size:.9rem; overflow-wrap:anywhere }
.login { max-width:440px; margin:48px auto; padding:36px }
.login form { margin-top:24px }
.login .btn { width:100%; margin-top:16px }
.dashboard { padding-top:38px; padding-bottom:70px }
.dashboard h1 { font-size:2.1rem }
.toolbar { display:flex; gap:20px; align-items:center }
.sync-line { display:flex; justify-content:space-between; align-items:center; gap:15px; margin:-6px 0 26px; font-size:.72rem; color:var(--muted) }
.sync-line a { font-weight:500 }
#sync-status::before { content:''; display:inline-block; width:7px; height:7px; margin-right:8px; border-radius:50%; background:var(--green2) }
#sync-status[data-stale=true]::before { background:#b68b34 }
#dashboard-view[aria-busy=true] #sync-status::before { background:var(--blue) }
.kpi-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; margin-bottom:36px }
.kpi { padding:24px; text-align:left; color:var(--ink); min-width:0 }
.kpi strong { display:block; font-size:2.5rem; line-height:1.15; letter-spacing:-.06em; font-weight:600; margin:12px 0 }
.kpi span { font-size:.75rem; color:var(--muted) }
.kpi small { font-size:.67rem; color:var(--green); display:block }
.kpi:first-child { background:linear-gradient(130deg,#2d6664,#387a70); color:#fff; border-color:#38786e }
.kpi:first-child span,.kpi:first-child small { color:#eef6f3 }
.kpi:nth-child(2) { background:#fff9e9; border-color:#ece2c4 }
.kpi:nth-child(3) { background:#edf6ef; border-color:#dceadf }
.kpi:nth-child(4) { background:#eef4fb; border-color:#dce7ef }
.vacancy-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px; margin-bottom:30px }
.vacancy-card { padding:22px; text-align:left; color:var(--ink); min-width:0; display:flex; flex-direction:column }
.vacancy-card.selected { border-color:var(--green2); background:#f0f8f4; box-shadow:0 0 0 1px var(--green2),var(--shadow) }
.vacancy-card h3 { font-size:.87rem; line-height:1.5; min-height:65px; margin:14px 0 20px }
.vacancy-top { display:flex; justify-content:space-between; gap:8px; align-items:center; font-size:.61rem; color:var(--muted); width:100% }
.vacancy-top>span:last-child { white-space:nowrap; border-radius:100px; padding:4px 7px; background:#f0f5f3 }
.dot { width:6px; height:6px; border-radius:50%; background:var(--green2); display:inline-block; margin-right:4px }
.dot.closed { background:#8c9da2 }
.vacancy-numbers { display:flex; gap:24px; margin-top:auto }
.vacancy-numbers strong { display:block; font-size:1.55rem; line-height:1.2; font-weight:600; letter-spacing:-.04em }
.vacancy-numbers span { display:block; font-size:.65rem; color:var(--muted); margin-top:4px }
.vacancy-numbers strong { color:var(--ink) }
.vacancy-bottom { width:100%; padding-top:14px; margin-top:18px; border-top:1px solid var(--line); font-size:.66rem; color:var(--green); display:flex; justify-content:space-between; gap:7px; flex-wrap:wrap }
.vacancy-bottom .attention { color:#85631f; font-weight:500 }
.charts-grid { display:grid; grid-template-columns:1fr 1fr; gap:24px; margin-bottom:26px }
.charts-grid>section { min-width:0 }
.charts-grid h2 { font-size:1rem }
.chart-row { display:grid; grid-template-columns:minmax(100px,155px) 1fr 32px; align-items:center; gap:12px; width:100%; border:0; border-radius:10px; background:transparent; color:var(--ink); padding:10px 8px; text-align:left; font-size:.73rem }
.chart-row[aria-pressed=true] { background:#edf4f4 }
.chart-track { height:8px; background:#eef2f3; border-radius:100px; overflow:hidden }
.chart-fill { display:block; height:100%; background:#71a795; border-radius:100px }
.chart-row:nth-child(2) .chart-fill { background:#d5b359 }
.chart-row:nth-child(3) .chart-fill { background:#7fa9c7 }
.chart-row:nth-child(4) .chart-fill { background:#b1a5cf }
.chart-row strong { text-align:right; font-size:.79rem; font-weight:500 }
.filters { display:grid; grid-template-columns:1.5fr 1.3fr 1fr .85fr 1fr; gap:12px; padding:16px; background:#f3f6f8; border-radius:18px }
.filters label { color:var(--muted); font-size:.69rem; margin:0; min-width:0 }
.filters input,.filters select { margin-top:7px; font-size:.74rem; padding:10px; background:#fff; min-height:44px }
.results-line { display:flex; justify-content:space-between; align-items:center; margin:16px 0; font-size:.74rem; color:var(--muted); gap:12px }
.table-wrap { overflow-x:auto; border-radius:14px }
table { border-collapse:collapse; width:100%; text-align:left; font-size:.76rem }
th { font-size:.63rem; color:var(--muted); text-transform:uppercase; letter-spacing:.06em; background:#f2f6f7; padding:14px 12px; border-bottom:1px solid var(--line); white-space:nowrap; font-weight:500 }
td { padding:17px 12px; border-bottom:1px solid #edf1f2; vertical-align:middle }
td:first-child { min-width:210px }
td strong.name { font-size:.82rem; font-weight:500 }
td .subline { display:block; color:var(--muted); font-size:.68rem; margin-top:4px; max-width:270px }
td .btn { white-space:nowrap }
.pagination { display:flex; justify-content:flex-end; align-items:center; gap:16px; margin-top:18px; font-size:.74rem; color:var(--muted) }
.empty { text-align:center; color:var(--muted); padding:40px 20px }
.insights { padding:22px 28px }
summary { cursor:pointer }
.insights summary { font-weight:500; font-size:.83rem }
.insights[open] summary { margin-bottom:25px }
.insights h3 { margin-top:18px }
dialog { border:1px solid #e3ebed; border-radius:28px; width:min(760px,calc(100% - 28px)); max-height:90dvh; padding:36px; box-shadow:0 28px 90px #15313f40; color:var(--ink); overscroll-behavior:contain }
dialog[open] { animation:appear .18s ease-out }
dialog::backdrop { background:#1c334766 }
body:has(dialog[open]) { overflow:hidden }
.dialog-close { position:sticky; float:right; right:0; top:0; margin:-16px -16px 0 8px; border:1px solid var(--line); border-radius:50%; width:42px; height:42px; background:#f2f6f7; color:var(--green); font-size:1.7rem; line-height:1; z-index:1 }
dialog h2 { padding-right:30px; font-size:1.5rem; margin-bottom:9px }
.candidate-meta { color:var(--muted); font-size:.8rem }
.candidate-actions { display:flex; flex-wrap:wrap; gap:10px; margin:22px 0 }
.candidate-section { border-top:1px solid var(--line); padding-top:20px; margin-top:22px }
.candidate-section p { font-size:.8rem; white-space:pre-wrap }
.score-detail summary { font-size:.76rem; color:var(--muted) }
.score-detail .review-list div { grid-template-columns:1fr auto }
.review-form { margin-top:24px; background:#f0f5f6; border-radius:20px; padding:24px }
.review-form .btn { margin-top:14px }
.toast { position:fixed; bottom:24px; left:50%; transform:translateX(-50%); padding:15px 22px; background:#253f47; color:#fff; border-radius:18px; box-shadow:var(--shadow-hover); z-index:30; max-width:calc(100% - 32px); width:max-content; font-size:.78rem }
.demo-banner { width:min(1220px,calc(100% - 32px)); margin:18px auto 0; padding:10px 18px; background:#fcf3da; border:1px solid #ecdfb8; border-radius:14px; color:#795b21; font-size:.7rem; text-align:center; font-weight:500 }
footer { text-align:center; padding:28px 18px; font-size:.71rem; color:var(--muted) }
footer span { margin:0 8px }
.skip { position:absolute; top:-100px; left:20px; background:#fff; padding:10px; z-index:50 }
.skip:focus { top:15px }
.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 }
.job-card,.vacancy-card,.kpi,.btn { transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background-color .18s ease }
@media(hover:hover) and (pointer:fine) {
  .job-card:hover,.vacancy-card:hover,.kpi:hover { transform:translateY(-3px); box-shadow:var(--shadow-hover); border-color:#a6c1c1 }
  .btn:not(:disabled):hover { background:var(--green2); transform:translateY(-1px) }
  .btn.secondary:not(:disabled):hover { background:#eaf2f1; border-color:#b9cfca }
  .btn.gold-btn:hover { background:#f6df9b }
  .nav nav a:hover { background:#edf3f3 }
  button.chart-row:hover { background:#f2f6f7 }
  tbody tr:hover { background:#f8fbfc }
}
@keyframes appear { from { opacity:0; transform:translateY(8px) } to { opacity:1; transform:translateY(0) } }
@media(max-width:1050px) {
  .container { width:calc(100% - 40px) }
  .kpi-grid,.vacancy-grid { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .job-grid { grid-template-columns:repeat(2,minmax(0,1fr)) }
  .filters { grid-template-columns:repeat(3,minmax(0,1fr)) }
  .filters .search-label { grid-column:span 2 }
  .kpi { padding:20px }
  .vacancy-card h3 { min-height:0 }
  .charts-grid { grid-template-columns:1fr }
  .detail-layout { grid-template-columns:minmax(0,1fr) 260px }
  .chart-row { min-height:44px }
  .btn.small,.text-btn,.dialog-close { min-height:44px }
  .dialog-close { width:44px }
  .toolbar { flex-wrap:wrap; gap:12px }
  input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea,.filters input,.filters select { font-size:16px }
}
/* En tablet vertical, las fichas sustituyen a una tabla que exige barrido lateral. */
@media(min-width:481px) and (max-width:900px) {
  .table-wrap { overflow:visible }
  .table-wrap table { display:block }
  .table-wrap thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%) }
  .table-wrap tbody { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px }
  .table-wrap tr { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:18px; border:1px solid var(--line); border-radius:20px; background:#fbfcfd; min-width:0 }
  .table-wrap td { display:block; padding:0; border:0; min-width:0 }
  .table-wrap td:first-child { grid-column:1/-1 }
  .table-wrap td:last-child { justify-self:end; align-self:end }
  .table-wrap td[data-label]::before { content:attr(data-label); display:block; font-size:.64rem; color:var(--muted); margin-bottom:5px }
  .table-wrap td.empty { grid-column:1/-1 }
  .table-wrap tr:has(.empty) { grid-column:1/-1 }
  .table-wrap td .subline { max-width:none }
}
@media(max-width:760px) {
  .container { width:calc(100% - 32px) }
  .nav { top:8px; margin-top:8px; padding:10px 12px; min-height:64px; border-radius:20px }
  .nav img { width:125px }
  .nav nav { gap:2px }
  .nav nav a { font-size:.69rem; padding:10px }
  .hero { margin-top:16px; padding:38px 0; border-radius:26px }
  .hero .container { width:calc(100% - 48px) }
  .hero h1 { font-size:2.7rem }
  .hero p:not(.eyebrow) { font-size:.84rem }
  .hero-count { display:block; margin:16px 0 0 }
  .section-head { align-items:flex-start; flex-wrap:wrap }
  .dashboard h1 { font-size:1.7rem }
  .kpi-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-bottom:28px }
  .kpi strong { font-size:2.2rem }
  .vacancy-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px }
  .vacancy-card { padding:18px }
  .vacancy-card h3 { font-size:.8rem; min-height:60px }
  .vacancy-numbers { gap:20px }
  .charts-grid,.detail-layout { grid-template-columns:1fr; gap:18px }
  .card { padding:22px }
  .filters { grid-template-columns:repeat(2,minmax(0,1fr)); padding:14px }
  .filters .search-label { grid-column:1/-1 }
  .sync-line { align-items:flex-start; flex-direction:column; gap:8px }
  .chart-row { grid-template-columns:minmax(100px,140px) 1fr 30px }
  dialog { padding:28px 22px }
  .detail-layout aside .card { position:static }
  input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea,.filters input,.filters select { font-size:16px }
  .filters select { max-width:100% }
  .steps li { padding:9px 7px; font-size:.64rem }
}
@media(max-width:480px) {
  .job-grid,.field-grid { grid-template-columns:1fr }
  .field.full { grid-column:auto }
  .nav { width:calc(100% - 20px); gap:6px }
  .nav img { width:105px }
  .nav nav a { font-size:.64rem; padding:9px }
  .hero { width:calc(100% - 20px) }
  .hero .eyebrow { font-size:.56rem; letter-spacing:.1em }
  .hero h1 { font-size:2.4rem }
  .hero::after { width:200px; height:200px; right:-130px; top:-80px }
  .form-heading h1 { font-size:1.35rem }
  .review-list div { grid-template-columns:105px 1fr; gap:12px }
  .kpi { padding:18px; border-radius:20px }
  .kpi span { font-size:.69rem }
  .kpi small { font-size:.61rem }
  .vacancy-grid { grid-template-columns:1fr }
  .vacancy-card { border-radius:22px; padding:22px }
  .vacancy-card h3 { min-height:0; font-size:.94rem; margin:12px 0 }
  .vacancy-top { font-size:.66rem }
  .vacancy-bottom { font-size:.72rem }
  .table-wrap { margin:0; overflow:visible }
  .table-wrap table,.table-wrap tbody { display:block }
  .table-wrap thead { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%) }
  .table-wrap tr { display:grid; grid-template-columns:1fr 1fr; gap:10px; padding:18px; margin-top:12px; border:1px solid var(--line); border-radius:18px; background:#fbfcfd }
  .table-wrap td { display:block; padding:0; border:0; min-width:0 }
  .table-wrap td:first-child { grid-column:1/-1; padding-bottom:5px }
  .table-wrap td:last-child { justify-self:end }
  .table-wrap td.empty { grid-column:1/-1 }
  .table-wrap td[data-label]::before { content:attr(data-label); display:block; font-size:.61rem; color:var(--muted); margin-bottom:5px }
  .table-wrap td .subline { max-width:none }
  .pagination { justify-content:space-between; gap:6px }
  .pagination .btn { font-size:.67rem; padding:9px 10px }
  .steps { padding:5px; gap:3px }
  .steps li { padding:9px 5px; font-size:.58rem }
  .steps span { font-size:.54rem }
  .success { padding:35px 20px }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto }
  *,*::before,*::after { transition:none!important; animation:none!important }
}

/* Modo oscuro: sigue la preferencia del sistema. Aditivo, no altera el tema claro. */
@media (prefers-color-scheme: dark) {
  :root {
    --green:#6fb9a2; --green2:#8acdb6; --gold:#e5bc55; --blue:#82b4d1;
    --ink:#e7eef0; --muted:#9db1b6; --bg:#111b1e; --line:#2a4045; --red:#e5867e;
    --surface:#18262a; --surface-2:#1e2f33; --surface-3:#233940;
    --shadow:0 2px 4px #0006,0 12px 28px -16px #0009;
    --shadow-hover:0 4px 8px #00000059,0 18px 34px -14px #000000a6;
  }
  body { background:radial-gradient(ellipse at 4% 0%,#16282f 0,transparent 42rem),radial-gradient(ellipse at 95% 12%,#182a26 0,transparent 40rem),var(--bg) }
  .nav { background:#18262aef; border-color:#2c4247 }
  /* El logo es un PNG de tinta oscura: se le da base clara propia para no perder legibilidad. */
  .nav>a:first-child { background:#eef3f5; border-radius:13px; padding:5px 11px; display:inline-flex }
  .nav nav a[aria-current=page] { background:#22343a; color:var(--ink) }
  .card,.job-card,.kpi,.vacancy-card { background:var(--surface); border-color:#27393e }
  .job-card .eyebrow { color:var(--blue); background:#1d3037 }
  .job-card:nth-child(3n+2) .eyebrow { color:var(--green2); background:#1b3029 }
  .job-card:nth-child(3n) .eyebrow { color:#dcb968; background:#302713 }
  .tag,.badge { background:#1b3029; color:var(--green2) }
  .tag { color:var(--muted); background:#223235 }
  .badge.alto,.badge.state-seleccionado { background:#1c3a2b; color:#8ed6ae }
  .badge.medio,.badge.state-sinrevisionregistrada { background:#3a3117; color:#e3c774 }
  .badge.basico { background:#2a3338; color:#adbcc4 }
  .badge.sin-evaluar { background:#3a2c1c; color:#dcb17a }
  .badge.state-nuevo { background:#1d3242; color:#8dbdd9 }
  .badge.state-enrevision { background:#1a3630; color:#84cbb6 }
  .badge.state-entrevista { background:#2c2942; color:#b3a8de }
  .badge.state-descartado { background:#3a2b2b; color:#d9a8a8 }
  .btn { color:#0f1a1c }
  .btn.secondary { background:#1f3034; border-color:#31474d; color:var(--green2) }
  .detail-layout aside .card { background:var(--surface-2) }
  .steps,.progress { background:#1c2c30 }
  .steps li.active { background:var(--surface-3); box-shadow:0 2px 7px #0007; color:var(--green2) }
  input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea { background:#142125; border-color:#31474d; color:var(--ink) }
  input::placeholder,textarea::placeholder { color:#7d9197 }
  .choice:has(input:checked) { background:#1b3029 }
  .review-list div { border-bottom-color:#27393e }
  .file-zone { background:#1a2b2c; border-color:#4b7566 }
  .file-zone.drag { background:#1f3a33 }
  .notice { background:#2e2716; border-color:#4a3f21; color:#e0c983 }
  .notice.error { background:#33211f; border-color:#573330; color:#e79a92 }
  .success-icon { background:#1c3a2b }
  .kpi:first-child { background:linear-gradient(130deg,#1f4a45,#276057); border-color:#2c665c }
  .kpi:nth-child(2) { background:#2b2718; border-color:#453d24 }
  .kpi:nth-child(3) { background:#1c2f24; border-color:#2c4636 }
  .kpi:nth-child(4) { background:#1d2a35; border-color:#2c3f4f }
  .vacancy-card.selected { background:#1c3129 }
  .vacancy-top>span:last-child { background:#22333a }
  .dot.closed { background:#6b7d82 }
  .vacancy-bottom .attention { color:#dcb968 }
  .chart-row[aria-pressed=true] { background:#22343a }
  .chart-track { background:#25373c }
  .filters { background:#18262a }
  .filters input,.filters select { background:#142125 }
  th { background:#1c2c31 }
  td { border-bottom-color:#27393e }
  dialog { background:var(--surface); border-color:#2c4247; box-shadow:0 28px 90px #000000b3 }
  dialog::backdrop { background:#04090bb3 }
  .dialog-close { background:#22343a; color:var(--green2) }
  .review-form { background:var(--surface-2) }
  .toast { background:#e7eef0; color:#16262a }
  .demo-banner { background:#2e2716; border-color:#4a3f21; color:#e0c983 }
  .skip { background:var(--surface); color:var(--ink) }
  @media (hover:hover) {
    .job-card:hover,.vacancy-card:hover,.kpi:hover { border-color:#3d5a5f }
    .btn.secondary:not(:disabled):hover { background:#26393e; border-color:#3d585e }
    .nav nav a:hover { background:#22343a }
    button.chart-row:hover { background:#1f3035 }
    tbody tr:hover { background:#1c2b30 }
  }
  @media (max-width:900px) { .table-wrap tr { background:var(--surface) } }
  @media (max-width:560px) { .table-wrap tr { background:var(--surface) } }
}
