/* FINSA: navegación por secciones del portal. Aislada del header y footer públicos. */
.careers-candidate-page {
  --candidate-navy: var(--primary-navy, #071e3d);
  --candidate-cyan: var(--accent-cyan, #00a3e0);
  --candidate-muted: #64748b;
  --candidate-border: #e2e8f0;
  background: #FAF7F0;/*#f8fafc;*/
}
.careers-candidate-page .candidate-subheader {
  position: sticky;
  top: var(--careers-topbar-height, 69px); /* Altura medida del topBar legacy. */
  z-index: 1100; /* Por debajo de topBar (1200) y modal (9999). */
  background: var(--candidate-navy);
  color: #fff;
  box-shadow: 0 4px 14px rgba(7, 30, 61, .1);
}
.careers-candidate-page .candidate-subheader__inner {
  max-width: 1280px;
  height: 52px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
}
.careers-candidate-page .candidate-tabs { display: flex; min-width: 0; gap: 6px; align-items: stretch; }
.careers-candidate-page .candidate-tab {
  appearance: none;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: #bbc7d8;
  padding: 0 20px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  font: inherit;
  font-size: .87rem;
  font-weight: 550;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s ease, background-color .2s ease;
}
.careers-candidate-page .candidate-tab i { font-size: .95rem; }
.careers-candidate-page .candidate-tab:hover { color: #fff; background: rgba(255,255,255,.055); }
.careers-candidate-page .candidate-tab.is-active,
.careers-candidate-page .candidate-tab[aria-selected="true"] { color: #fff; font-weight: 750; border-bottom-color: var(--candidate-cyan); }
.careers-candidate-page .candidate-tab:focus-visible,
.careers-candidate-page .candidate-notifications:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.careers-candidate-page .candidate-notifications { display: flex; align-items: center; padding: 0 12px; color: #cbd5e1; text-decoration: none; }
.careers-candidate-page .candidate-notifications:hover { color: #fff; }
.careers-candidate-page .candidate-page-shell { max-width: 1280px; margin: 0 auto; padding: 32px 24px 0; }
.careers-candidate-page .candidate-page-shell:has(
    #sec-buscar:not([hidden]) #job-detail-view:not([hidden])
) {
    padding-top: 8px;
}
.careers-candidate-page .candidate-panel[hidden] { display: none !important; }
.careers-candidate-page .candidate-section-heading { margin-bottom: 24px; }
.careers-candidate-page .candidate-section-heading__eyebrow,
.careers-candidate-page .candidate-welcome__eyebrow { display: block; font-size: .76rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; color: var(--candidate-cyan); margin-bottom: 7px; }
.careers-candidate-page .candidate-section-heading h1 { color: var(--candidate-navy); font-size: clamp(1.6rem, 3.4vw, 2rem); margin: 0 0 8px; line-height: 1.2; }
.careers-candidate-page .candidate-section-heading p { color: var(--candidate-muted); font-size: .92rem; line-height: 1.5; }
.careers-candidate-page .candidate-panel .app-layout { min-height: 460px; border: 1px solid var(--candidate-border); border-radius: 16px; overflow: hidden; background: #fff; }
.careers-candidate-page .sidebar { padding: 24px; }
.careers-candidate-page .sidebar-header { align-items: center; gap: 8px; }
.careers-candidate-page .sidebar-header h2 { font-size: 1rem; color: var(--candidate-navy); }
.careers-candidate-page .btn-clear { color: var(--candidate-cyan); }
.careers-candidate-page .filter-header.js-toggle { width: 100%; padding: 0; background: none; border: 0; color: inherit; font: inherit; font-size: .9rem; font-weight: 600; text-align: left; }
.careers-candidate-page .filter-header.js-toggle:focus-visible { outline: 2px solid var(--candidate-cyan); outline-offset: 3px; }
.careers-candidate-page .checkbox-label { margin-bottom: 8px; }
.careers-candidate-page .checkbox-label:last-child { margin-bottom: 0; }
.careers-candidate-page .checkbox-label input { accent-color: var(--candidate-cyan); }
.careers-candidate-page .input-text:focus { border-color: var(--candidate-cyan); box-shadow: 0 0 0 3px rgba(0,163,224,.11); }
.careers-candidate-page .btn-page:hover:not(:disabled) { border-color: var(--candidate-cyan); color: var(--candidate-cyan); }
.careers-candidate-page .candidate-welcome { background: var(--candidate-navy); color: #fff; border-radius: 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 36px; }
.careers-candidate-page .candidate-welcome h1 { color: #fff; font-size: clamp(1.6rem, 3.3vw, 2.1rem); line-height: 1.15; margin: 0 0 12px; }
.careers-candidate-page .candidate-welcome p { color: #cad6e4; max-width: 540px; line-height: 1.55; }
.careers-candidate-page .candidate-primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; flex-shrink: 0; border: none; border-radius: 10px; padding: 13px 20px; background: var(--candidate-cyan); color: #fff; font-size: .9rem; font-weight: 700; font-family: inherit; cursor: pointer; text-decoration: none; }
.careers-candidate-page .candidate-primary-button:hover { background: #0082b3; color: #fff; }
.careers-candidate-page .candidate-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; margin-top: 24px; }
.careers-candidate-page .candidate-feature-card { padding: 24px; background: #fff; border: 1px solid var(--candidate-border); border-radius: 14px; }
.careers-candidate-page .candidate-feature-card > i { font-size: 22px; color: var(--candidate-cyan); margin-bottom: 16px; }
.careers-candidate-page .candidate-feature-card h2 { color: var(--candidate-navy); font-size: 1rem; margin: 0 0 8px; }
.careers-candidate-page .candidate-feature-card p { color: var(--candidate-muted); line-height: 1.5; font-size: .9rem; }
.careers-candidate-page .candidate-profile-card { background: #fff; border: 1px solid var(--candidate-border); border-radius: 16px; padding: 36px; min-height: 240px; }
.careers-candidate-page .candidate-profile-card h1 { font-size: 1.8rem; color: var(--candidate-navy); margin: 0 0 14px; }
.careers-candidate-page .candidate-profile-card p { color: var(--candidate-muted); line-height: 1.6; margin: 0 0 18px; }
.careers-candidate-page .candidate-profile-card__name { font-size: 1.1rem; font-weight: 700; color: var(--candidate-navy) !important; }
@media (max-width: 768px) {
  .careers-candidate-page .candidate-subheader__inner { padding: 0 8px; height: 54px; }
  .careers-candidate-page .candidate-tabs { flex: 1; gap: 0; }
  .careers-candidate-page .candidate-tab { flex: 1; padding: 0 6px; gap: 5px; font-size: .72rem; white-space: normal; text-align: center; line-height: 1.15; }
  .careers-candidate-page .candidate-tab i { font-size: .85rem; }
  .careers-candidate-page .candidate-page-shell { padding: 22px 12px 0; }
  .careers-candidate-page .candidate-feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .careers-candidate-page .candidate-welcome { padding: 26px; flex-direction: column; align-items: flex-start; }
  .careers-candidate-page .candidate-welcome .candidate-primary-button { width: 100%; }
  .careers-candidate-page .candidate-panel .app-layout { border-radius: 12px; }
  .careers-candidate-page .candidate-profile-card { padding: 24px; }
}
@media (max-width: 390px) {
  .careers-candidate-page .candidate-tab { flex-direction: column; gap: 3px; font-size: .68rem; }
}
