/* ====== VARIABLES (SENA + UI) ====== */
:root{
  /* SENA */
  --brand:#39A900;           /* principal */
  --brand-700:#2E8800;       /* hover/contraste */
  --brand-50:#F1FAEC;        /* fondos muy suaves */
  --brand-100:#E6F5DC;       /* superficies suaves */
  --text:#0F172A;            /* principal */
  --muted:#475569;           /* secundario */
  --white:#FFFFFF;
  --border:#E6F0E8;

  /* Gradientes */
  --grad-cta: linear-gradient(90deg,#49C10A 0%, #39A900 50%, #2E8800 100%);
  --grad-hero: radial-gradient(1200px 600px at 100% -20%, #E6F5DC 0%, #FFFFFF 60%);

  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 1px rgba(0,0,0,.04);
  --shadow-md: 0 6px 24px rgba(57,169,0,.18);
  --shadow-lg: 0 12px 36px rgba(57,169,0,.22);

  /* Espacios + radios */
  --r-sm: 10px; --r-md: 14px; --r-lg: 18px; --r-xl: 22px;
  --sp-1: 8px; --sp-2: 12px; --sp-3: 16px; --sp-4: 24px; --sp-5: 32px; --sp-6: 48px; --sp-7: 64px;

  /* Tokens nuevos (scoped para vistas de candidatos) */
  --warn-bg: #FFF3E6;
  --warn-border: #FFD3A8;
  --warn-text: #8B5A00;
  --kpi-gap: 16px;
  --pill-radius: 24px;
  --card-compact-pad: 12px;
}

/* ====== RESET + BASE ====== */
*{ box-sizing:border-box; margin:0; padding:0; }
html,body{ height:100%; }
body{
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text); background: var(--white); line-height: 1.6;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
button{ font: inherit; cursor:pointer; }
.tc{ text-align:center; }
.mb-2{ margin-bottom: .6rem; }
.text-brand{ color: var(--brand-700); }
p a.text-brand,
.muted a.text-brand{
  color: var(--brand-700);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 2px;
  font-weight:600;
}
p a.text-brand:focus-visible,
p a.text-brand:hover,
.muted a.text-brand:focus-visible,
.muted a.text-brand:hover{
  color: #236600;
}

.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;
}
.skip-link{
  position:absolute;
  inset-block-start:-40px;
  inset-inline-start:16px;
  background: var(--brand-700);
  color:#fff;
  padding:.6rem 1rem;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  z-index:100;
  transition: inset .2s ease;
}
.skip-link:focus-visible{
  inset-block-start:16px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible,
.link:focus-visible{
  outline:3px solid var(--brand-700);
  outline-offset:2px;
}

/* ====== LAYOUT ====== */
.container{ width:min(1200px, 92%); margin-inline:auto; }
.section{ padding-block: var(--sp-6); }
.spacer{ height: var(--sp-6); }
.muted{ color: var(--muted); }

/* ====== REVEAL (on-scroll) ====== */
.reveal{ opacity:0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; }
}

/* ====== NAVBAR ====== */
.header{
  position:sticky; top:0; z-index:50; background: var(--white);
  border-bottom: 1px solid var(--border); backdrop-filter: blur(6px);
}
.nav{ display:flex; align-items:center; justify-content:space-between; gap: var(--sp-3); padding: .8rem 0; }
.brand{ display:flex; align-items:center; gap:.6rem; font-weight:700; letter-spacing:.2px; }
.brand img{ inline-size: 36px; block-size: 36px; border-radius: 10px; background: none; box-shadow: none; object-fit: contain; }
.nav ul{ list-style:none; display:flex; gap: var(--sp-3); }
.nav a.link{ color: var(--muted); font-weight:600; }
.nav a.link:hover{ color: var(--brand-700); }
.nav a.link.text-brand{ color: var(--brand-700); }
.nav .actions{ display:flex; gap: var(--sp-2); margin:0; }

/* ====== BOTONES ====== */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:.5rem;
  padding:.8rem 1.1rem; border-radius: var(--r-md); border:1px solid transparent; transition: .2s ease; font-weight:700; }
.btn-primary{ background: var(--grad-cta); color: var(--white); box-shadow: var(--shadow-md); border: none; }
.btn-primary:hover{ filter: brightness(.98); transform: translateY(-1px); }
.btn-secondary{ background: var(--white); color: var(--brand-700); border-color: var(--border); }
.btn-secondary:hover{ background: var(--brand-50); border-color: #cfe6ca; }
/* Botón compacto (para acciones pequeñas como cambiar fecha) */
.btn-sm{ padding:.45rem .7rem; font-size:.9rem; border-radius: var(--pill-radius); }
/* Variante outline en verde consistente con marca */
.btn-outline{ background: var(--white); color: var(--text); border:1px solid var(--border); }
.btn-outline:hover{ background: var(--brand-50); border-color:#cfe6ca; }
.btn-outline.is-green{ color: var(--brand-700); border-color:#cfe6ca; }
.btn-outline.is-green:hover{ background: var(--brand-50); border-color:#b8e0b0; }
.form-hint{ font-size:.9rem; color: var(--muted); margin-bottom:.8rem; }

/* ====== HERO ====== */
.hero{ background: var(--grad-hero); }
.hero-grid{ display:grid; grid-template-columns: 1.15fr .85fr; gap: var(--sp-6); align-items:center; padding-block: var(--sp-7); }
.hero h1{ font-size: clamp(2rem, 4.6vw, 3.2rem); line-height:1.15; margin-bottom: var(--sp-3); }
.hero p.lead{ font-size: clamp(1rem, 2.2vw, 1.25rem); color: var(--muted); margin-bottom: var(--sp-4); }

.search{ display:flex; gap: var(--sp-2); flex-direction: row; background: var(--white);
  border:1px solid var(--border); border-radius: var(--r-xl); padding: var(--sp-2); box-shadow: var(--shadow-sm); }
.input{ flex:1 1 260px; display:flex; align-items:center; gap:.6rem; padding:.8rem 1rem; border:1px solid var(--border); border-radius: var(--r-md); background: var(--white); }
.input input{ border:none; outline:none; width:100%; font:inherit; color:var(--text); }
.input:focus-within{ border-color:#cfe6ca; box-shadow: 0 0 0 3px rgba(57,169,0,.14); }

.mock{ aspect-ratio: 4/3; border-radius: var(--r-xl); overflow:hidden; border:1px solid var(--border); box-shadow: var(--shadow-lg); }

/* ====== CATEGORÍAS RÁPIDAS ====== */
.quick-cats{ display:grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.qcat{ border:1px solid var(--border); border-radius: var(--r-lg); background: var(--white); padding: var(--sp-4);
  display:flex; flex-direction:column; gap: .6rem; transition:.2s ease; box-shadow: var(--shadow-sm); }
.qcat:hover{ transform: translateY(-2px); border-color:#cfe6ca; }

/* ====== CARRUSEL OFERTAS ====== */
.carousel{ position:relative; overflow:hidden; }
.track{ display:grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--sp-3); transform: translateX(0); transition: transform .45s ease; }
.card{ border:1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-4); background: var(--white);
  display:flex; flex-direction:column; gap:.7rem; box-shadow: var(--shadow-sm); }
.card h3,
.card h2.card-title{ font-size:1.15rem; }
.card .meta{ color: var(--muted); font-size:.95rem; }
.card-cta{ display:flex; gap:.6rem; margin-top:.4rem; }

.ctrl{ position:absolute; inset-block: 0; margin:auto 0; inline-size:44px; block-size:44px; border-radius:999px; border:1px solid var(--border);
  background: var(--white); display:grid; place-items:center; cursor:pointer; box-shadow: var(--shadow-sm); }
.ctrl:hover{ background: var(--brand-50); }
.ctrl.prev{ inset-inline-start: -4px; }
.ctrl.next{ inset-inline-end: -4px; }

/* ====== PASOS ====== */
.steps{ display:grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
.step{ background: var(--white); border:1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-4); box-shadow: var(--shadow-sm); }

/* Steps list (Que sigue) */
.steps-list{
  list-style:none;
  margin:0;
  padding: var(--sp-2) 0 0;
  display:grid;
  gap: var(--sp-3);
  counter-reset: step;
}
.steps-list li{
  counter-increment: step;
  position:relative;
  padding-left: 2.75rem;
}
.steps-list li::before{
  content: counter(step);
  position:absolute;
  left:0;
  top:.15rem;
  width:2rem;
  height:2rem;
  border-radius: 999px;
  border:1px solid var(--border);
  background: var(--brand-50);
  color: var(--brand-700);
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
}
.steps-list strong{
  display:block;
  margin-bottom:.2rem;
}
.steps-list p{
  margin:0;
}

/* ====== TECNOLOGÍAS ====== */
.tech{ background: var(--brand-50); border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.tech h2{ text-align:center; margin-bottom: var(--sp-4); }
.tech .tc{ margin-bottom: var(--sp-4); }
.tech-rail{ position:relative; }
.tech-track{ display:flex; flex-wrap: wrap; gap: var(--sp-3); align-items:center; justify-content:center; }
.tech-logo{ inline-size: 120px; block-size: 64px; display:grid; place-items:center; border-radius: var(--r-md); background: var(--white); border:1px solid var(--border); box-shadow: var(--shadow-sm); padding: .8rem; }
.tech-logo img{ max-height: 40px; opacity:.9; filter: saturate(.85); }
.tech-item{ display:flex; flex-direction:column; align-items:center; gap:.6rem; }

/* ====== REGISTER PORTAL ====== */
.portal-head h1{ font-size: clamp(1.8rem, 3.8vw, 2.6rem); line-height:1.2; margin-bottom: var(--sp-2); }
.portal-head p{ color: var(--muted); margin-bottom: var(--sp-5); }
.split{ display:flex; flex-wrap: wrap; gap: var(--sp-4); align-items: stretch; }
.tile{ height: 500px; flex: 1 1 480px; position:relative; border:1px solid var(--border); border-radius: var(--r-xl); overflow:hidden; background: var(--white); box-shadow: var(--shadow-lg); transition:.2s ease; aspect-ratio: 16/10; }
.tile:hover{ transform: translateY(-2px); border-color:#cfe6ca; }
.tile-media{ position:absolute; inset:0; overflow:hidden; }
.tile-media img{ width:100%; height:100%; object-fit: cover; display:block; }
.tile-muted .tile-media img{ filter: grayscale(100%); }
.tile-media .overlay{ position:absolute; inset:0; background: linear-gradient(180deg, rgba(255,255,255,0) 55%, rgba(255,255,255,.88) 100%); }
.tile-body{ position:absolute; inset-inline: var(--sp-4); bottom: var(--sp-4); display:flex; flex-direction: column; gap:.6rem; color: var(--text); }
.tile-body h2{ font-size: 1.35rem; color: var(--white); }
.tile-body p{ color: var(--white); }
.btn-block{ width:100%; }

/* ====== LOGIN PORTAL (overlay y formularios sobre imagen) ====== */
.portal-login .tile-media .overlay{ background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.45) 60%, rgba(0,0,0,.65) 100%); }
.portal-login .tile-body h2, .portal-login .tile-body p{ color: var(--white); }
.form-panel{ background: var(--white); border:1px solid var(--border); border-radius: var(--r-lg); padding: var(--sp-3); box-shadow: var(--shadow-sm); }
.form-panel .field{ display:flex; flex-direction:column; gap:.35rem; }
.form-panel label{ font-weight:600; color: var(--text); font-size:.95rem; }
.form-panel input[type="email"], .form-panel input[type="password"]{ width:100%; padding:.75rem 1rem; border:1px solid var(--border); border-radius: var(--r-md); background: var(--white); color: var(--text); }
.form-panel .row{ display:flex; justify-content:space-between; align-items:center; gap:.8rem; color: var(--muted); }
.portal-login .tile-body .hint{ color: rgba(255,255,255,.95); }
.portal-login .tile-body .hint a{ color: var(--brand-700); }

/* ====== RESET PASSWORD ====== */
.reset-shell{ background:#FFFFFF; min-height:100vh; padding-block:var(--sp-6); display:flex; align-items:flex-start; }
.reset-container{ max-width:760px; margin-inline:auto; display:flex; flex-direction:column; gap:var(--sp-3); align-items:center; width:100%; }
.reset-brand{ display:flex; align-items:center; gap:.6rem; font-weight:700; color:var(--text); }
.reset-brand img{ inline-size:44px; block-size:44px; object-fit:contain; }
.reset-card{ width:100%; border-radius:32px; padding:var(--sp-5); box-shadow: var(--shadow-sm); display:flex; flex-direction:column; gap:var(--sp-4); }
.reset-head h1{ margin-bottom:.3rem; font-size:1.6rem; }
.reset-form{ display:flex; flex-direction:column; gap:var(--sp-4); }
.reset-field{ display:flex; flex-direction:column; gap:.35rem; width:100%; }
.reset-field input{
  width:100%;
  max-width:100%;
  padding:.78rem 1.1rem;
  border-radius:18px;
  border:1px solid #DCE4ED;
  background:#FFFFFF;
  font-size:1rem;
  transition:.2s ease;
  box-shadow: inset 0 1px 2px rgba(15,23,42,.03);
}
.reset-field input:focus{
  outline:none;
  border-color:#A4C6F5;
  background:#FFFFFF;
  box-shadow:0 0 0 3px rgba(57,169,0,.08);
}
.reset-field label{
  font-weight:700;
  color:var(--text);
}
.reset-progress{ display:flex; flex-direction:column; gap:.25rem; width:100%; max-width:100%; }
.reset-progress-bar{ display:block; width:100%; height:8px; border-radius:999px; background:#E2E9F0; overflow:hidden; }
.reset-progress-bar span{ display:block; height:100%; width:0; background:linear-gradient(90deg,#8DDA4B,#2B8A03); transition: width .2s ease; }
.reset-hint, .reset-note{ font-size:.9rem; color:var(--muted); }
.reset-actions{ display:flex; flex-wrap:wrap; gap:.8rem; align-items:center; }
.reset-alert{ border-radius:999px; padding:.9rem 1.2rem; text-align:center; font-weight:600; }
.reset-alert.is-error{ background:#FDECEA; color:#842029; border:1px solid #F5C2C7; }
.reset-alert.is-success{ background:#EAF7EF; color:#1F5B2C; border:1px solid #CFE6CA; }
.reset-empty{ text-align:center; display:flex; flex-direction:column; gap:1rem; }
.reset-empty .btn{ align-self:center; }
.reset-foot{ width:100%; display:flex; justify-content:space-between; gap:.6rem; color:var(--muted); font-size:.9rem; flex-wrap:wrap; padding-inline:var(--sp-1); }
.reset-foot a{ color:var(--muted); font-weight:600; }
@media (max-width:540px){
  .reset-card{ padding:var(--sp-4); border-radius:24px; }
  .reset-brand{ flex-direction:column; text-align:center; }
  .reset-shell{ background:#FFFFFF; min-height:100vh; padding-block:var(--sp-6); display:flex; align-items:flex-start; }
}

/* ====== FORMULARIOS GENERALES ====== */
.form{ display:grid; gap: var(--sp-4); }
.form .field{ display:flex; flex-direction:column; gap:.4rem; }
.form label{ font-weight:600; color: var(--text); font-size:.95rem; }
.form input[type="text"],
.form input[type="email"],
.form input[type="password"],
.form input[type="tel"],
.form input[type="url"],
.form input[type="number"],
.form select,
.form textarea{ width:100%; padding:.8rem 1rem; border:1px solid var(--border); border-radius: var(--r-md); background: var(--white); color: var(--text); }
.form textarea{ resize: vertical; }

/* Rejillas utilitarias para formularios */
.form-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-3);
}

.g-2{ display:grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
.g-3{ display:grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
@media (max-width: 900px){ .g-2, .g-3{ grid-template-columns: 1fr; } }

/* Dropzone simple para inputs de archivo */
.dropzone{ display:flex; flex-direction:column; gap:.4rem; padding: var(--sp-3); border:1px dashed var(--border); border-radius: var(--r-lg); background: var(--white); }
.dropzone input[type="file"]{ padding:.6rem; border:1px solid var(--border); border-radius: var(--r-md); }
.dropzone small{ color: var(--muted); }

/* Acciones del formulario */
.actions{ display:flex; justify-content:flex-end; gap: var(--sp-2); margin-top: var(--sp-3); }
.header .actions{ margin:0; }
/* Ajuste: evitar estiramiento vertical de botones dentro de contenedores flex */
.actions{ align-items: center; }
/* Ajuste: dimensiones consistentes para botones */
.btn{ min-height: 40px; line-height: 1; white-space: nowrap; }

/* Select tipo pill (ordenar por) */
.select-pill{
  appearance: none;
  padding: .75rem 1.2rem;
  border-radius: var(--pill-radius);
  background: #F5F7F4;
  border: 1px solid #DDE8D6;
  box-shadow: inset 0 0 0 2px #EDF6E7;
  color: var(--text);
  font-weight: 600;
  min-inline-size: 240px;
  cursor: pointer;
}
.select-pill:focus{ outline: none; border-color: #cfe6ca; box-shadow: 0 0 0 3px rgba(57,169,0,.14); }

/* ====== CTA ====== */
.cta{ background: var(--grad-cta); color: var(--white); border-radius: var(--r-xl); padding: var(--sp-6);
  display:grid; grid-template-columns: 1.3fr .7fr; gap: var(--sp-4); align-items:center; box-shadow: var(--shadow-lg); }
.cta h3{ font-size: clamp(1.4rem, 3vw, 1.9rem); line-height:1.2; }
.cta p{ opacity:.95; }
.cta .cta-img{ aspect-ratio: 4/3; border-radius: var(--r-lg); overflow:hidden; border:1px solid rgba(255,255,255,.25); }
.cta-actions{ display:flex; gap:.6rem; margin-top: var(--sp-3); }

/* ====== FOOTER ====== */
.footer{ background: linear-gradient(180deg, #F7FBF4 0%, #FFFFFF 100%); border-top:1px solid var(--border); }
.footer .grid{ display:grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: var(--sp-5); padding-block: var(--sp-6); }
.footer h4{ font-size:1.05rem; margin-bottom: .9rem; }
.footer ul{ list-style:none; display:grid; gap:.55rem; color: var(--muted); }
.footer a:hover{ color: var(--brand-700); }
.news{ display:flex; gap:.6rem; margin-top:.6rem; }
.news input{ flex:1; padding:.7rem .9rem; border-radius: var(--r-md); border:1px solid var(--border); }
.news-hint{ font-size:.9rem; color: var(--muted); margin-top:.4rem; }
.footer-legal{ border-top:1px solid var(--border); }
.legal-row{ display:flex; justify-content:space-between; gap:1rem; padding:.9rem 0; color:var(--muted); font-size:.92rem; }

/* ====== FOCUS + TOOLTIP ====== */
:focus-visible{ outline: 3px solid rgba(57,169,0,.35); outline-offset:2px; border-radius: 10px; }
.tooltip{ position:relative; }
.tooltip .tip{
  position:absolute; bottom: calc(100% + 8px); left:50%; transform: translateX(-50%);
  background:#0b1f0b; color:#dff4df; font-size:.8rem; padding:.4rem .6rem; border-radius:8px;
  opacity:0; pointer-events:none; transition:.2s ease; white-space:nowrap;
}
.tooltip:hover .tip{ opacity:1; }

/* ====== RESPONSIVE ====== */
@media (max-width: 980px){
  .hero-grid{ grid-template-columns: 1fr; padding-block: var(--sp-6); }
  .footer .grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px){
  .steps{ grid-template-columns: 1fr; }
}
@media (max-width: 600px){
  .nav{ flex-direction: column; align-items: flex-start; }
  .nav ul{ flex-direction: column; width: 100%; margin-top: 0.5rem; }
  .nav ul li{ width: 100%; margin: 0.25rem 0; }
  .quick-cats{ grid-template-columns: repeat(2, 1fr); }
  .footer .grid{ grid-template-columns: 1fr; }
}

/* ====== DASHBOARD ====== */
.nav .tabs{ gap: var(--sp-3); }
.nav .tabs .link{ color: var(--muted); font-weight:600; }
.nav .tabs .link:hover{ color: var(--brand-700); }
.nav .tabs .link.is-active{ color: var(--brand-700); }

/* Centrado del navbar solo con marca para vistas de recuperación */
.nav.nav--center{ justify-content: center; align-items: center; }

.dash-head{ display:flex; justify-content:space-between; align-items:flex-end; gap: var(--sp-4); }
.dash-head .muted{ margin-top:.25rem; }
.pref-chips{ display:flex; flex-wrap:wrap; gap:.6rem; align-items:center; }
.chip{ display:inline-flex; align-items:center; gap:.4rem; padding:.35rem .6rem; border-radius:999px; background:#F2F7F0; color:#1a3521; border:1px solid #dbe7d6; font-size:.9rem; }
.link-edit{ color: var(--brand-700); font-weight:700; }

.kpis{ display:grid; grid-template-columns: repeat(4,1fr); gap: var(--sp-4); margin-top: var(--sp-5); margin-bottom: var(--sp-3); }
.kpis .kpi{ text-align:center; }
.kpis .kpi.card{ padding: var(--sp-5); }
.kpi .kpi-label{ color: var(--muted); font-weight:600; }
.kpi .kpi-value{ font-size:1.8rem; font-weight:800; color: var(--brand-700); }

.layout{ display:grid; grid-template-columns: 300px 1fr 340px; gap: var(--sp-4); align-items:start; }
.filters .card{ display:flex; flex-direction:column; gap: .9rem; }
.filters .field{ display:flex; flex-direction:column; gap:.35rem; }
.filters .field input[type="text"], .filters .field select{
  padding:.7rem .9rem; border:1px solid var(--border); border-radius: var(--r-md); background: var(--white);
}
.filters .check{ display:flex; align-items:center; gap:.5rem; color: var(--text); }
.filters .tips{ background: var(--brand-50); }

.feed .feed-head{ margin-bottom: var(--sp-3); }
.job.card{ display:flex; flex-direction:column; gap:.6rem; }
.job .job-head{ display:flex; justify-content:space-between; align-items:center; }
.badge{ display:inline-flex; align-items:center; padding:.25rem .55rem; border-radius:999px; font-size:.85rem; background:#EEF4EB; color: var(--brand-700); border:1px solid #dbe7d6; }
.badge.new{ background: var(--brand-50); }
.match{ display:flex; align-items:center; justify-content:space-between; gap:.8rem; }
.match-bar{ flex:1; height:8px; background:#EFF5EE; border-radius:999px; overflow:hidden; border:1px solid #dde9d8; }
.match-bar span{ display:block; height:100%; background: var(--brand); }
.match-label{ font-weight:700; color: var(--muted); }
.tags{ display:flex; flex-wrap:wrap; gap:.5rem; }
.desc{ color: var(--muted); }
.why{ display:flex; flex-wrap:wrap; gap:.5rem; align-items:center; }
.why-title{ font-weight:700; color: var(--text); margin-right:.2rem; }
.why-item{ background:#F2F7F0; border:1px solid #dbe7d6; border-radius:999px; padding:.25rem .55rem; font-size:.9rem; }
.why-item.warn{ background:#FFF3E6; border-color:#FFD3A8; color:#8B5A00; }
.row-cta{ display:flex; gap:.6rem; margin-top:.2rem; }

.profile-card{ display:flex; flex-direction:column; gap:.9rem; }
.profile-head{ display:flex; align-items:center; gap:.8rem; }
.avatar{ inline-size:48px; block-size:48px; border-radius:999px; background: var(--brand-50); border:1px solid var(--border); }
.progress{ display:flex; flex-direction:column; gap:.35rem; }
.progress-bar{ height:8px; background:#EEF4EB; border-radius:999px; overflow:hidden; border:1px solid #dbe7d6; }
.progress-bar span{ display:block; height:100%; background: var(--brand); }
.progress-label{ font-size:.92rem; color: var(--muted); }
.pills{ display:flex; flex-wrap:wrap; gap:.5rem; }
.pill{ background:#F2F7F0; border:1px solid #dbe7d6; color:#1a3521; border-radius:999px; padding:.25rem .6rem; font-size:.9rem; }
.pill-cta{ background: var(--grad-cta); color: var(--white); border:none; box-shadow: var(--shadow-md); font-weight:700; }
.skills h4{ font-size:1.05rem; }
.checklist{ list-style:none; display:grid; gap:.4rem; }
.checklist .ok{ color:#1a3521; }
.checklist .warn{ color:#8B5A00; }

.alerts{ display:flex; flex-direction:column; gap:.7rem; }

.btn-outline{ background: var(--white); color: var(--text); border:1px solid var(--border); }
.btn-outline:hover{ background: var(--brand-50); border-color:#cfe6ca; }
.btn-ghost{ background: transparent; color: var(--brand-700); border:1px solid transparent; }
.btn-ghost:hover{ background: var(--brand-50); border-color:#cfe6ca; }
.btn-brand{ background: var(--brand); color: var(--white); border:none; box-shadow: var(--shadow-md); }
.btn-brand:hover{ filter: brightness(.98); transform: translateY(-1px); }
.btn.full{ width:100%; }

@media (max-width: 980px){
  .layout{ grid-template-columns: 1fr; }
}

/* ====== MIS POSTULACIONES ====== */
.app.card{ display:flex; flex-direction:column; gap:.7rem; position:relative; }
.app .app-head{ display:flex; justify-content:space-between; align-items:center; }
.status{ display:inline-flex; align-items:center; padding:.35rem .7rem; border-radius:999px; font-weight:700; font-size:.88rem; border:1px solid var(--border); }
.status.review{ background:#EAF7EF; border-color:#D6EBDD; color:#155E2E; }
.status.interview{ background:#F2EDFF; border-color:#E1DAFF; color:#4E36A3; }
.status.offer{ background:#E7F5E3; border-color:#D3EAD0; color:#0E5A24; }
.status.rejected{ background:#FDECEC; border-color:#F4CFCF; color:#7E1F1F; }
.stepper{ display:flex; align-items:center; gap: var(--sp-4); margin-top:.2rem; }
/* Scope específico para Mis Postulaciones: evitar que herede la card de .step global */
.stepper .step{ display:flex; flex-direction: column; align-items:center; justify-content:center; gap:.35rem; color: var(--muted);
  background: transparent; border:none; box-shadow:none; padding:0; flex:0 0 120px;
}
.stepper .step .dot{ inline-size:14px; block-size:14px; border-radius:999px; background:#EFF5EE; border:1px solid #dde9d8; box-shadow:none; }
.stepper .step.is-done .dot{ background: var(--brand); border-color: var(--brand); }
.stepper .step.is-active .dot{ background: var(--brand-50); border-color:#cfe6ca; box-shadow: 0 0 0 4px rgba(57,169,0,.18); }
.stepper .step .lbl{ font-size:.92rem; text-align:center; line-height:1.2; white-space:normal; }
.stepper .step.is-done .lbl{ color: var(--text); font-weight:700; }
.stepper .step.is-active .lbl{ color: var(--brand-700); font-weight:700; }

.interview{ background:#F7FBF4; border:1px solid var(--border); border-radius: var(--r-md); padding:.8rem 1rem; display:grid; gap:.3rem; }
.offer-box{ background:#FAFAFA; border:1px dashed #E1E6E1; border-radius: var(--r-md); padding:.8rem 1rem; display:grid; gap:.35rem; }

.events h3{ margin-bottom:.4rem; }
.events-list{ list-style:none; display:grid; gap:1rem; }
/* Alinear con texto multilinea y botón a la derecha */
.events-list li{ display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; }

/* ====== Panel lateral de tarjeta de oferta (scoped) ====== */
.offer-panel{ display:flex; flex-direction:column; }
.offer-panel .panel-header{ height:96px; background:#EEF6EA; }
.offer-panel .panel-body{ padding:28px 24px 24px; display:flex; flex-direction:column; gap:20px; }
.offer-panel .panel-divider{ border:0; border-top:1px solid #E9EDF3; margin:16px 0; }

.offer-panel .profile-head{ display:flex; align-items:center; gap:16px; }
.offer-panel .avatar{ inline-size:56px; block-size:56px; border-radius:8px; background: var(--brand-50); border:2px solid #E6E8F0; }
.offer-panel .name{ font-size:24px; font-weight:700; line-height:28px; }
.offer-panel .meta{ margin:0; font-size:16px; font-weight:500; color:#667085; }

.offer-panel .role-title{ font-size:20px; font-weight:600; }
.offer-panel .chips{ display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:8px; }
.offer-panel .chips .chip{ font-weight:600; padding:.45rem .8rem; border-radius:16px; background:#E6F4EA; border:1px solid #dbe7d6; color:#1a3521; }
.offer-panel .role-summary{ color:#475569; line-height:26px; margin-top:12px; }

.offer-panel .quality-header{ display:flex; align-items:center; justify-content:space-between; }
.offer-panel .quality-title{ font-weight:600; font-size:18px; }
.offer-panel .quality-badge{ display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:999px; background:#F8FAFB; color:#155E2E; border:1px solid #D6EBDD; font-weight:800; }
.offer-panel .progress{ display:flex; flex-direction:column; gap:8px; }
.offer-panel .progress .track{ height:8px; background:#E9EDF3; border-radius:8px; overflow:hidden; border:1px solid #dde9d8; }
.offer-panel .progress .fill{ height:6px; background: var(--brand); border-radius:6px; margin:1px 0; }
.offer-panel .quality-list{ list-style:none; display:flex; flex-direction:column; gap:10px; }
.offer-panel .quality-list li{ display:flex; align-items:center; gap:6px; }
.offer-panel .quality-list li.ok img{ width:16px; height:16px; display:block; }
.offer-panel .quality-list li.pending .dot{ inline-size:8px; block-size:8px; border-radius:999px; background:#B45309; display:inline-block; }

.offer-panel .metrics{ display:flex; flex-wrap:wrap; gap:16px; justify-content:space-between; }
.offer-panel .metrics-item{ flex:1 1 33%; min-width:180px; background:#F8FAFB; border:1px solid #E9EDF3; border-radius:16px; box-shadow:0 1px 2px rgba(16,24,40,.06); padding:16px; display:flex; flex-direction:column; align-items:center; gap:4px; }
.offer-panel .metrics-item .num{ font-size:24px; font-weight:700; color: var(--brand-700); }
.offer-panel .metrics-item .label{ font-size:14px; font-weight:500; color:#667085; }

.offer-panel .actions{ display:flex; flex-wrap:wrap; gap:14px; justify-content:flex-start; }
.offer-panel .actions .btn-outline{ height:40px; border-radius:24px; padding:.5rem 1rem; }
.offer-panel .actions .btn-outline.is-green{ color: var(--brand-700); border-color:#cfe6ca; background:#FFFFFF; }
.offer-panel .actions .btn-outline.is-green:hover{ background: var(--brand-50); }
.offer-panel .actions .btn-outline.is-red{ color:#7E1F1F; border-color:#F4CFCF; background:#FFFFFF; }
.offer-panel .actions .btn-outline.is-red:hover{ background:#FDECEC; }
.offer-panel .btn-duplicate{ border-color:#CDE7D6; height:auto; border-radius:24px; padding:.75rem 1rem; margin-top:20px; color: var(--brand-700); }
.events-list li .row{ display:flex; align-items:flex-start; gap:.6rem; }

.btn-danger{ background:#F04438; color:#fff; border:none; }
.btn-danger:hover{ filter:brightness(.95); }

/* Mis postulaciones */
.mp-summary{ display:flex; flex-direction:column; gap:1.5rem; }
.mp-summary-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:1.5rem; flex-wrap:wrap; }
.mp-pref{ display:flex; flex-direction:column; gap:.8rem; align-items:flex-end; }
.mp-kpis{ display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:1rem; }
.mp-kpi{ border-radius:18px; padding:1.2rem; text-align:center; }
.mp-kpi-label{ color:var(--muted); font-size:.95rem; display:block; margin-bottom:.4rem; }
.mp-kpi-value{ font-size:2rem; font-weight:700; color:var(--text); }

.mp-layout{ display:grid; grid-template-columns:260px minmax(0,1fr) 260px; gap:var(--sp-4); align-items:start; }
.mp-filters{ border-radius:20px; position:sticky; top:120px; }
.mp-filter-form{ display:flex; flex-direction:column; gap:1rem; }
.mp-filter-search{ display:flex; flex-direction:column; gap:.35rem; }
.mp-filter-search label{ font-weight:600; color:var(--muted); }
.mp-filter-search input{ padding:.65rem .85rem; border:1px solid var(--border); border-radius:12px; background:#FFFFFF; }
.mp-filter-group{ display:flex; flex-direction:column; gap:.5rem; }
.mp-filter-title{ font-weight:700; color:var(--text); }
.mp-filter-check{ display:flex; gap:.6rem; align-items:center; font-size:.95rem; color:var(--muted); }
.mp-filter-check input{ accent-color:var(--brand-700); }
.mp-filter-group select{
  appearance:none;
  padding:.7rem 1rem;
  border-radius:12px;
  border:1px solid var(--border);
  background:#FFFFFF url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width=\"14\" height=\"8\" viewBox=\"0 0 14 8\"><path fill=\"%231E1E1E\" fill-rule=\"evenodd\" d=\"M7 8a1 1 0 0 1-.707-.293l-6-6A1 1 0 1 1 1.707.293L7 5.586 12.293.293a1 1 0 1 1 1.414 1.414l-6 6A1 1 0 0 1 7 8Z\"/></svg>') no-repeat right .8rem center;
  background-size:12px;
  font-size:.95rem;
  color:var(--text);
}
.mp-filter-group select:focus{
  outline:none;
  border-color:#cfe6ca;
  box-shadow:0 0 0 3px rgba(57,169,0,.14);
  background-color:#FFFFFF;
}
.mp-filter-tip{ background:var(--brand-50); border:1px dashed #cfe6ca; border-radius:12px; padding:.8rem; font-size:.9rem; color:var(--muted); }

.mp-main{ display:flex; flex-direction:column; gap:var(--sp-4); }
.mp-main-head{ display:flex; justify-content:space-between; align-items:flex-start; }
.mp-post{ border-radius:24px; padding:1.8rem; display:flex; flex-direction:column; gap:1.2rem; border:1px solid var(--border); }
.mp-post-head{ display:flex; justify-content:space-between; gap:1.2rem; flex-wrap:wrap; }
.mp-post-title{ display:flex; align-items:center; gap:.8rem; flex-wrap:wrap; }
.mp-post-meta{ color:var(--muted); font-size:.95rem; }
.mp-post-desc{ color:var(--muted); line-height:1.6; }
.mp-tags{ display:flex; flex-wrap:wrap; gap:.4rem; }
.chip-small{ font-size:.85rem; padding:.25rem .65rem; border-radius:999px; background:#EEF6EA; border:1px solid #d5ead6; font-weight:600; color:#1f4b2b; }

.mp-match{ min-width:180px; text-align:right; }
.mp-match-label{ font-weight:600; color:var(--text); font-size:.95rem; }
.mp-match-bar{ margin-top:.4rem; height:6px; border-radius:999px; background:#E6F5DC; overflow:hidden; }
.mp-match-bar span{ display:block; height:100%; border-radius:inherit; background:var(--brand); }

.mp-meta-grid{ display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:1rem; padding:1rem; border-radius:16px; background:#F8FBF6; border:1px solid #EBF2E7; }
.mp-meta-label{ display:block; font-size:.85rem; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; }
.mp-meta-value{ font-weight:600; color:var(--text); }

.mp-stepper{ display:flex; flex-wrap:wrap; gap:1rem; align-items:center; justify-content:space-between; }
.mp-step{ display:flex; flex-direction:column; align-items:center; gap:.4rem; flex:1; min-width:80px; text-align:center; color:var(--muted); font-size:.85rem; }
.mp-step-dot{ width:16px; height:16px; border-radius:999px; border:2px solid #D1D5DB; background:#FFFFFF; display:inline-flex; }
.mp-step.done .mp-step-dot{ background:var(--brand); border-color:var(--brand); }
.mp-step.current .mp-step-dot{ border-color:var(--brand-700); }
.mp-step.current .mp-step-label{ color:var(--brand-700); font-weight:600; }

.mp-actions{ display:flex; flex-wrap:wrap; gap:.8rem; }

.state-pill{ padding:.35rem .9rem; border-radius:999px; font-size:.85rem; font-weight:600; }
.state-pill.is-muted{ background:#EEF2F7; color:#485467; }
.state-pill.is-progress{ background:#E6F5DC; color:#275C1C; }
.state-pill.is-info{ background:#E6F0FF; color:#214FA3; }
.state-pill.is-success{ background:#D9F5DE; color:#1E5C2B; }
.state-pill.is-danger{ background:#FDECEA; color:#842029; }

.mp-post.state-muted{ border-color:#E4E8EF; }
.mp-post.state-progress{ border-color:#cfe6ca; }
.mp-post.state-info{ border-color:#d7e3ff; }
.mp-post.state-success{ border-color:#c5ebd2; }
.mp-post.state-danger{ border-color:#f5c2c7; }

.mp-side{ display:flex; flex-direction:column; gap:1.5rem; position:sticky; top:120px; }
.mp-side-card{ border-radius:20px; }
.mp-events{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:1rem; }
.mp-events li{ display:flex; justify-content:space-between; gap:.8rem; align-items:flex-start; }
.mp-events .status-dot{
  width:12px;
  height:12px;
  border-radius:999px;
  background:#16a34a;
  margin-top:.35rem;
  flex-shrink:0;
}
.mp-events .status-dot.is-online{ background:#16a34a; }
.mp-progress{ margin:1rem 0; }
.mp-progress-bar{ height:8px; border-radius:999px; background:#EEF2F7; overflow:hidden; }
.mp-progress-bar span{ display:block; height:100%; background:var(--brand); }
.mp-side-tags{
  display:flex;
  flex-wrap:wrap;
  gap:.4rem;
  margin-bottom:1rem;
}
.mp-side-tags .chip,
.mp-side-tags .chip-small{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
}

@media (max-width: 1080px){
  .mp-layout{ grid-template-columns:minmax(0,1fr); }
  .mp-filters, .mp-side{ position:static; }
  .mp-filters, .mp-side{ order:-1; }
}

@media (max-width: 640px){
  .mp-post-head{ flex-direction:column; align-items:flex-start; }
  .mp-match{ width:100%; text-align:left; }
  .mp-actions{ flex-direction:column; }
}
/* Punto verde como barra vertical corta (según diseño) */
.events-list .dot{ display:inline-block; width:14px; height:14px; border-radius:999px; background: var(--brand); flex:0 0 14px; box-shadow:none; margin-top: 4px; }
/* Tamaño del botón dentro de eventos */
.events-list .btn{ min-height:44px; padding:.75rem 1.1rem; }

/* ====== Vista candidatos (scoped) ====== */
.candidate-list .page{ display:flex; gap:24px; }
.candidate-list .page > aside{ flex:0 0 268px; }
.candidate-list .bulk-actions{ display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.candidate-list .candidate-card{ display:flex; flex-direction:column; gap:16px; }

/* Mis ofertas (empresas) */
.co-wrapper{ margin-top:var(--sp-5); }
.co-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:1rem; margin-bottom:1.5rem; }
.co-kpis{ display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); gap:1rem; margin-bottom:2rem; }
.co-kpi{ padding:1.25rem; border-radius:20px; }
.co-kpi-label{ color:var(--muted); font-size:.95rem; }
.co-kpi-value{ font-size:2rem; font-weight:700; color:var(--text); }
.co-layout{ display:grid; grid-template-columns:260px minmax(0,1fr) 260px; gap:var(--sp-4); align-items:flex-start; }
.co-filters{ position:sticky; top:120px; border-radius:20px; }
.co-filter-form{ display:flex; flex-direction:column; gap:1rem; }
.co-filter-field{ display:flex; flex-direction:column; gap:.35rem; }
.co-filter-field span{ font-weight:600; color:var(--muted); }
.co-filter-field input{ padding:.65rem .8rem; border:1px solid var(--border); border-radius:12px; }
.co-filter-group{ display:flex; flex-direction:column; gap:.35rem; }
.co-filter-group span{ font-weight:600; color:var(--text); }
.co-filter-actions{ display:flex; gap:.6rem; align-items:center; flex-wrap:wrap; }
.co-tip{ margin:0; padding:.75rem 1rem; border-radius:12px; border:1px dashed #cfe6ca; background:#f8fbf6; font-size:.9rem; color:var(--muted); }
.co-main{ display:flex; flex-direction:column; gap:var(--sp-4); }
.co-card{ border-radius:24px; padding:1.5rem; display:flex; flex-direction:column; gap:1rem; }
.co-card-head{ display:flex; justify-content:space-between; gap:1rem; flex-wrap:wrap; }
.co-chips{ display:flex; flex-wrap:wrap; gap:.4rem; }
.co-desc{ color:var(--muted); line-height:1.6; margin:0; }
.co-warning{ border:1px dashed #F4CFCF; background:#FFF5F2; padding:.75rem; border-radius:12px; color:#B42318; font-size:.95rem; }
.co-meta-row{ display:flex; gap:1rem; flex-wrap:wrap; justify-content:space-between; background:#f8fbf6; border:1px solid #ebf2e7; border-radius:16px; padding:1rem; }
.co-meta-label{ display:block; font-size:.85rem; color:var(--muted); text-transform:uppercase; letter-spacing:.05em; }
.co-meta-value{ font-weight:600; color:var(--text); }
.co-progress{ display:flex; flex-direction:column; gap:.6rem; }
.co-progress-bar{ height:6px; background:#EEF5EC; border-radius:999px; overflow:hidden; }
.co-progress-bar span{ display:block; height:100%; background:var(--brand); }
.co-stats-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:.4rem;
  text-align:center;
  font-size:.9rem;
  color:var(--muted);
}
.co-stats-grid strong{ display:block; font-size:1.2rem; color:var(--text); }
@media (max-width:700px){
  .co-stats-grid{ grid-template-columns:repeat(2,minmax(0,1fr)); }
}
.co-actions{ display:flex; flex-wrap:wrap; gap:.8rem; }
.co-inline-form{ display:inline-block; margin:0; }
.co-state{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.35rem 1rem;
  border-radius:999px;
  font-weight:600;
  background:#eef2f7;
  color:#485467;
}
.co-state.is-active{ background:#E6F5DC; color:#1E5C2B; }
.co-state.is-paused{ background:#FFF4E5; color:#A15F07; }
.co-state.is-closed{ background:#FDECEC; color:#842029; }
.co-state.is-draft{ background:#EEF2F7; color:#485467; }
.co-empty{ text-align:center; padding:2rem; border-radius:20px; }
.co-side{ display:flex; flex-direction:column; gap:1.5rem; position:sticky; top:120px; }
.co-side-card{ border-radius:20px; padding:1.5rem; }
.co-interview-list{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:1rem; }
.co-interview-list li{ display:flex; justify-content:space-between; gap:1rem; align-items:center; }
.co-tip-list{ list-style:disc; margin:0; padding-left:1.2rem; display:flex; flex-direction:column; gap:.4rem; color:var(--muted); }

@media (max-width: 1080px){
  .co-layout{ grid-template-columns:minmax(0,1fr); }
  .co-filters, .co-side{ position:static; }
}
