/* ============================================================
   RGV Soluciones Estratégicas — Portal de Carreras
   ============================================================ */

:root {
  --brand:      #253A4F;
  --brand-dark: #1a2b3c;
  --brand-mid:  #2d4a63;
  --text:       #1f2937;
  --text-sm:    #6b7280;
  --muted:      #9ca3af;
  --border:     #e5e7eb;
  --bg:         #f9fafb;
  --white:      #ffffff;
  --red:        #dc2626;
  --radius:     4px;
  --shadow:     0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main   { flex: 1; }
a      { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============================================================
   NAVBAR  — dos variantes: transparente (home) y sólida
   ============================================================ */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 0 40px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: opacity .25s, background .25s, box-shadow .25s;
}

.nav--solid {
  position: sticky;
  top: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.nav--hidden {
  opacity: 0;
  pointer-events: none;
}

/* Logo box */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-box {
  background: #253356;
  width: 52px;
  height: 52px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-logo-box .logo-rgv {
  font-size: 17px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: .05em;
  line-height: 1;
}

.nav-logo-box .logo-sub {
  font-size: 5.5px;
  font-weight: 600;
  color: rgba(255,255,255,.75);
  letter-spacing: .1em;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0 0 0 32px;
  padding: 0;
}

.nav-links a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .15s, color .15s;
}

/* Transparente (sobre bloque oscuro) */
.nav--transparent {
  background: rgba(37, 58, 79, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.nav--transparent .nav-links a       { color: rgba(255,255,255,.9); }
.nav--transparent .nav-links a:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Sólida */
.nav--solid .nav-links a       { color: var(--text); }
.nav--solid .nav-links a:hover { color: var(--brand); background: none; }
.nav--solid .nav-links a.active { color: var(--brand); }

/* Social icons */
.nav-social {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-social a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: all .15s;
}

.nav-social a:hover {
  border-color: #fff;
  color: #fff;
}

.nav--solid .nav-social a {
  border-color: var(--border);
  color: var(--text-sm);
}

.nav--solid .nav-social a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* Nav logo image */
.nav-logo-img {
  height: 46px;
  width: auto;
  display: block;
}

.nav--transparent .nav-logo-img { filter: brightness(0) invert(1); }
.nav--solid .nav-logo-img       { filter: brightness(0) invert(1) sepia(1) saturate(0.4) hue-rotate(160deg) brightness(0.25); }

/* Nav center section */
.nav-center { display: flex; align-items: center; flex: 1; }

/* ============================================================
   HERO (home page)
   ============================================================ */
.hero {
  min-height: 60vh;
  position: relative;
  display: flex;
  flex-direction: column;
}


.hero-body {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 40px 80px;
  text-align: center;
}

.hero-content {
  max-width: 780px;
}

.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.25;
  margin: 0 0 24px;
  letter-spacing: -.01em;
}

.hero-subtitle {
  font-size: clamp(.9rem, 1.5vw, 1.05rem);
  color: rgba(255,255,255,.78);
  line-height: 1.7;
  margin: 0 0 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-block;
  padding: 14px 36px;
  background: var(--brand);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .04em;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .18s;
  border: 2px solid transparent;
}

.hero-cta:hover {
  background: var(--brand-dark);
  text-decoration: none;
  color: var(--white);
}

/* ============================================================
   COMPANY BANNER
   ============================================================ */
.dark-block {
  background: linear-gradient(175deg, #0f1e2d 0%, #1a2b3c 35%, #253A4F 70%, #2d4a63 100%);
}

.company-banner {
  padding: 72px 40px;
  text-align: center;
}

.company-banner-content {
  max-width: 740px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.company-banner-logo {
  height: 250px;
  width: auto;
  max-width: 100%;
  filter: brightness(0) invert(1);
}

.company-banner-text {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: rgba(255,255,255,.88);
  line-height: 1.75;
  margin: 0;
}

.company-banner-text em {
  font-style: italic;
  color: var(--white);
  font-size: 1.08em;
}

@media (max-width: 600px) {
  .company-banner { padding: 48px 24px; }
  .company-banner-logo { height: 160px; }
}

/* ============================================================
   ÁREAS RGV
   ============================================================ */
.areas-section {
  padding: 72px 40px;
}

.areas-header {
  text-align: center;
  margin-bottom: 48px;
}

.areas-header h2 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .12em;
  color: var(--white);
  margin: 0 0 8px;
}

.areas-header p {
  font-size: 15px;
  color: rgba(255,255,255,.7);
  margin: 0;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.area-card {
  border-radius: 6px;
  overflow: hidden;
}

.area-card-visual {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  border-radius: 6px;
}

.area-card--negocios    { background: #253356; }
.area-card--tecnologias { background: #8c9199; }
.area-card--analitica   { background: #6b7280; }

.area-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.area-desc {
  font-size: 13px;
  color: rgba(255,255,255,.7);
  line-height: 1.65;
  padding: 16px 4px 0;
  margin: 0;
}

@media (max-width: 768px) {
  .areas-grid { grid-template-columns: 1fr; }
  .areas-section { padding: 48px 24px; }
}

/* ============================================================
   PAGE HEADER (páginas internas)
   ============================================================ */
.page-header {
  text-align: center;
  padding: 40px 24px 28px;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}

.page-header p {
  font-size: 14px;
  color: var(--text-sm);
  margin: 0;
}

/* ============================================================
   SEARCH BAR (jobs page)
   ============================================================ */
.search-bar {
  max-width: 900px;
  margin: 28px auto 0;
  padding: 0 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.search-field {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.search-field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-sm);
  font-size: 14px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 40px;
  padding: 0 12px 0 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: border-color .15s;
}

.search-input:focus { border-color: var(--brand); }
.search-input::placeholder { color: #9ca3af; }

.search-btn {
  height: 40px;
  padding: 0 24px;
  background: var(--brand);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
  align-self: flex-end;
}

.search-btn:hover { background: var(--brand-dark); }

/* ============================================================
   JOBS LAYOUT (sidebar + list)
   ============================================================ */
.jobs-layout {
  max-width: 1100px;
  margin: 28px auto 48px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  align-items: start;
}

/* ── Sidebar ── */
.filters-sidebar { display: block; }

.filters-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-sm);
  margin: 0 0 16px;
}

.filter-group { margin-bottom: 20px; }

.filter-group-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
  user-select: none;
}

.filter-checkbox input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: var(--brand);
  cursor: pointer;
  flex-shrink: 0;
}

.filter-count {
  color: var(--text-sm);
  margin-left: auto;
}


.clear-filters {
  font-size: 12px;
  color: var(--text-sm);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: inline-block;
  margin-top: 4px;
}

.clear-filters:hover { color: var(--brand); }

/* ── Job list ── */
.jobs-list { display: block; }

.jobs-count {
  font-size: 13px;
  color: var(--text-sm);
  margin-bottom: 16px;
}

.jobs-count strong { color: var(--text); }

/* Job row */
.job-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: none;
}

.job-row:first-child { border-top: 1px solid var(--border); }
.job-row:hover { text-decoration: none; }
.job-row:hover .job-title { color: var(--brand); text-decoration: underline; }

.job-main { flex: 1; min-width: 0; }

.job-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.job-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  transition: color .15s;
}

.job-badge-cubierto {
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 1px 7px;
  border-radius: 3px;
  white-space: nowrap;
}

.job-location {
  font-size: 13px;
  color: var(--text-sm);
  margin-bottom: 2px;
}

.job-experience {
  font-size: 13px;
  color: var(--text-sm);
  margin-bottom: 6px;
}

.job-excerpt {
  font-size: 13px;
  color: var(--text-sm);
  line-height: 1.6;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-meta-right {
  flex-shrink: 0;
  text-align: right;
}

.job-type {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 2px;
}

.job-date {
  font-size: 12px;
  color: var(--text-sm);
}

/* Empty */
.jobs-empty {
  padding: 48px 0;
  text-align: center;
  color: var(--text-sm);
}

.jobs-empty h5 {
  font-size: 16px;
  color: var(--text);
  margin: 0 0 8px;
}

/* ============================================================
   JOB DETAIL — HERO HEADER
   ============================================================ */
.detail-hero {
  position: relative;
  background: linear-gradient(155deg, #0f1e2d 0%, #1a2b3c 40%, #253A4F 75%, #2d4a63 100%);
  padding: 64px 40px 56px;
  text-align: center;
}

.detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 20, 30, 0.45);
}

.detail-hero-content {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.detail-hero-company {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  letter-spacing: .04em;
  margin: 0 0 14px;
}

.detail-hero-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
  margin: 0 0 14px;
}

.detail-hero-sub {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  margin: 0 0 28px;
}

.btn-apply-hero {
  display: inline-block;
  padding: 11px 32px;
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.7);
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  transition: background .18s, border-color .18s;
}

.btn-apply-hero:hover {
  background: rgba(255,255,255,.15);
  border-color: var(--white);
  color: var(--white);
  text-decoration: none;
}

.btn-closed {
  display: inline-block;
  padding: 11px 32px;
  background: transparent;
  color: rgba(255, 100, 100, .9);
  border: 1.5px solid rgba(255, 100, 100, .6);
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  cursor: default;
}
.btn-applied {
  display: inline-block;
  padding: 11px 32px;
  background: transparent;
  color: var(--text-sm);
  border: 1.5px solid var(--border);
  border-radius: 24px;
  font-size: 13px;
  font-weight: 600;
  cursor: default;
}

/* Breadcrumb bar */
.detail-breadcrumb-bar {
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
}

/* ============================================================
   JOB DETAIL
   ============================================================ */
.detail-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 24px 48px;
}

.detail-breadcrumb {
  font-size: 13px;
  color: var(--text-sm);
  padding: 14px 0;
  max-width: 1000px;
  margin: 0 auto 0;
}

.detail-breadcrumb a { color: var(--brand); }
.detail-breadcrumb a:hover { text-decoration: underline; }
.detail-breadcrumb .sep { margin: 0 8px; color: var(--text-sm); }

.detail-header { margin-bottom: 28px; }

.detail-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 10px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 13px;
  color: var(--text-sm);
  margin-bottom: 16px;
}

.detail-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-primary {
  display: inline-block;
  padding: 9px 22px;
  background: var(--brand);
  color: var(--white);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 700;
  border: 1px solid var(--brand);
  cursor: pointer;
  text-decoration: none;
  transition: background .15s;
}

.btn-primary:hover {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: var(--white);
  text-decoration: none;
}

.btn-secondary {
  display: inline-block;
  padding: 9px 20px;
  background: transparent;
  color: var(--text-sm);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all .15s;
}

.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
  text-decoration: none;
}

.btn-danger {
  display: inline-block;
  padding: 9px 20px;
  background: transparent;
  color: #dc2626;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #fca5a5;
  transition: all .15s;
}
.btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.detail-body {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 32px;
  align-items: start;
}

.detail-section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.detail-section:last-child { border-bottom: none; }

.detail-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 12px;
}

.detail-section p {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}

.detail-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-section ul li {
  font-size: 14px;
  color: var(--text);
  padding: 5px 0 5px 16px;
  position: relative;
  line-height: 1.6;
  border-bottom: 1px solid #f3f4f6;
}

.detail-section ul li:last-child { border-bottom: none; }

.detail-section ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--text-sm);
}

.detail-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

.detail-benefit {
  font-size: 13px;
  color: var(--text);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 4px 0;
}

.detail-benefit i { color: #16a34a; margin-top: 1px; flex-shrink: 0; }

/* Sidebar card */
.sidebar-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  position: sticky;
  top: 80px;
}

.sidebar-card h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-sm);
  margin: 0 0 16px;
}

.sidebar-info {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-info li { font-size: 13px; }
.sidebar-info li .si-label { color: var(--text-sm); font-size: 11px; display: block; margin-bottom: 4px; }
.sidebar-info li .si-value { font-weight: 600; color: var(--text); }

/* ============================================================
   APPLY FORM
   ============================================================ */
.apply-wrap {
  max-width: 680px;
  margin: 32px auto 48px;
  padding: 0 24px;
}

.apply-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px;
}

.apply-card h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 4px;
}

.apply-job-ref {
  font-size: 13px;
  color: var(--text-sm);
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.form-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-sm);
  margin: 24px 0 14px;
}

.form-group { margin-bottom: 16px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 5px;
}

.form-group label .req  { color: var(--red); margin-left: 2px; }
.form-group label .opt  { color: var(--text-sm); font-weight: 400; font-size: 12px; }

.form-input, .form-textarea, .form-file {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text);
  outline: none;
  transition: border-color .15s;
  background: var(--white);
}

.form-input:focus, .form-textarea:focus { border-color: var(--brand); }
.form-input.is-error { border-color: var(--red); }

.input-locked-wrap {
  position: relative;
}
.form-input--locked {
  background: #f8fafc;
  color: var(--muted);
  cursor: default;
  padding-right: 34px;
}
.input-locked-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 13px;
  pointer-events: none;
}

.input-password-wrap {
  position: relative;
}
.input-password-wrap .form-input {
  padding-right: 38px;
}
.pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 0;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
}
.pw-toggle:hover { color: var(--text); }

.form-error { font-size: 12px; color: var(--red); margin-top: 4px; }
.form-hint             { font-size: 12px; color: var(--text-sm); margin-top: 4px; }
.form-hint.hint--success { color: #1a7a4a; font-weight: 500; }

.form-textarea { resize: vertical; min-height: 100px; line-height: 1.6; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.cv-notice {
  font-size: 13px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 16px;
  color: #1e40af;
  line-height: 1.6;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.cv-notice i { margin-top: 2px; flex-shrink: 0; }
.cv-notice a { color: #1d4ed8; font-weight: 600; }
.cv-notice a:hover { text-decoration: underline; }

.privacy-note {
  font-size: 11.5px;
  color: var(--text-sm);
  line-height: 1.6;
  margin-top: 16px;
}

.privacy-note a { color: var(--brand); }

/* ============================================================
   CV BUILDER
   ============================================================ */
.cvb-wrap {
  max-width: 780px;
  margin: 32px auto 48px;
  padding: 0 24px;
}

.cvb-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px;
}

.cvb-card h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 4px;
}

.cvb-intro {
  font-size: 13px;
  color: var(--text-sm);
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.cvb-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}

.cvb-section-header .form-section-title { margin-bottom: 0; }

.cvb-add-btn {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
}

.cvb-add-btn:hover { text-decoration: underline; }

.cvb-entry {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px;
  margin: 12px 0;
}

.cvb-entry-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.cvb-entry-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-sm);
}

.cvb-remove-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-sm);
  padding: 0;
  line-height: 1;
}

.cvb-remove-btn:hover { border-color: var(--red); color: var(--red); }

.cvb-bullets { min-height: 80px; }

.cvb-attach-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 12px 14px;
  background: #fffbeb;
  border: 1px solid #f59e0b;
  border-radius: var(--radius);
  font-size: 13px;
  color: #92400e;
}
.cvb-attach-notice i { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* ============================================================
   SUCCESS
   ============================================================ */
.success-wrap {
  max-width: 500px;
  margin: 64px auto;
  padding: 0 24px;
  text-align: center;
}

.success-icon { font-size: 52px; color: #16a34a; margin-bottom: 16px; }
.success-wrap h2 { font-size: 22px; font-weight: 700; margin: 0 0 10px; }
.success-wrap p  { font-size: 14px; color: var(--text-sm); line-height: 1.7; margin: 0 0 24px; }

.success-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   WIZARD DE PASOS
   ============================================================ */
.wizard-steps {
  display: flex;
  align-items: center;
  margin: 20px 0 32px;
}

.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.wizard-step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text-sm);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}

.wizard-step-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
  transition: color .2s;
}

.wizard-step--active .wizard-step-circle {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

.wizard-step--active .wizard-step-label { color: var(--brand); }

.wizard-step--done .wizard-step-circle {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}

.wizard-step--done .wizard-step-circle::before { content: '✓'; }
.wizard-step--done .wizard-step-circle { font-size: 0; }
.wizard-step--done .wizard-step-circle::before { font-size: 14px; }

.wizard-step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 8px;
  margin-bottom: 18px;
  transition: background .2s;
}

.wizard-step-line--done { background: var(--brand); }

.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--brand);
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,.6);
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 12px;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  transition: color .15s;
}

.footer-links a:hover { color: var(--white); text-decoration: none; }

.footer-disclaimer {
  width: 100%;
  font-size: 11px;
  color: rgba(255,255,255,.35);
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 10px;
  margin-top: 4px;
}

.footer-disclaimer a { color: rgba(255,255,255,.45); }

/* ============================================================
   PERFIL DE CANDIDATO
   ============================================================ */

.perfil-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* Hero */
.perfil-hero {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
}
.perfil-avatar {
  font-size: 56px;
  color: var(--brand);
  line-height: 1;
  flex-shrink: 0;
}
.perfil-nombre {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 4px;
}
.perfil-sub {
  font-size: 14px;
  color: var(--text-sm);
  margin: 0;
}

/* Stats */
.perfil-stats {
  display: flex;
  gap: 16px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.stat-card {
  flex: 1;
  min-width: 120px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  text-align: center;
}
.stat-card--active { border-color: #bfdbfe; background: #eff6ff; }
.stat-card--hired  { border-color: #bbf7d0; background: #f0fdf4; }
.stat-card--done   { border-color: #e2e8f0; background: #f8fafc; }
.stat-num {
  display: block;
  font-size: 28px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1.1;
}
.stat-card--active .stat-num { color: #1d4ed8; }
.stat-card--hired  .stat-num { color: #15803d; }
.stat-card--done   .stat-num { color: #64748b; }
.stat-lbl {
  display: block;
  font-size: 12px;
  color: var(--text-sm);
  margin-top: 4px;
}

/* Section */
.perfil-section { margin-bottom: 40px; }
.perfil-section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}

/* Empty state */
.perfil-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-sm);
}
.perfil-empty i  { font-size: 40px; display: block; margin-bottom: 12px; }
.perfil-empty p  { margin: 0 0 20px; font-size: 15px; }

/* Application cards */
.aplicaciones-list { display: flex; flex-direction: column; gap: 20px; }

.aplicacion-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: var(--shadow);
  transition: box-shadow .15s;
}
.aplicacion-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.aplicacion-card--hired   { border-color: #bbf7d0; background: #f0fdf4; }
.aplicacion-card--rejected { border-color: #e2e8f0; background: #fef2f2; opacity: .85; }
.aplicacion-card--closed  { border-color: #e2e8f0; background: #f8fafc; opacity: .85; }

.aplicacion-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}
.aplicacion-titulo {
  font-size: 16px;
  font-weight: 600;
  color: var(--brand);
  margin: 0 0 6px;
}
.aplicacion-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-sm);
  margin: 0;
  flex-wrap: wrap;
}
.aplicacion-meta .sep { color: var(--border); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.badge--active   { background: #dbeafe; color: #1e40af; }
.badge--hired    { background: #dcfce7; color: #166534; }
.badge--rejected { background: #fee2e2; color: #991b1b; }
.badge--closed   { background: #f1f5f9; color: #64748b; }

/* Etapa tracker */
.etapa-tracker {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.etapa-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 72px;
  flex-shrink: 0;
}
.etapa-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  transition: all .2s;
}
.etapa-step--done .etapa-circle {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--white);
}
.etapa-step--active .etapa-circle {
  background: var(--white);
  border-color: var(--brand);
  border-width: 2.5px;
  color: var(--brand);
  box-shadow: 0 0 0 4px rgba(37,58,79,.12);
}
.etapa-label {
  font-size: 11px;
  color: var(--text-sm);
  text-align: center;
  line-height: 1.3;
  max-width: 68px;
}
.etapa-step--done .etapa-label,
.etapa-step--active .etapa-label { color: var(--brand); font-weight: 600; }

.etapa-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin-top: 15px;
  min-width: 20px;
  transition: background .2s;
}
.etapa-line--done { background: var(--brand); }

/* Dates */
.aplicacion-fechas {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: 8px;
}
.fecha-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-sm);
}
.fecha-item i  { color: var(--brand); font-size: 14px; }
.fecha-lbl     { color: var(--text-sm); }
.fecha-val     { font-weight: 600; color: var(--text); }

/* Assessment upload */
.assessment-upload-section {
  margin-bottom: 16px;
  padding: 12px 16px;
  background: var(--bg);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.assessment-upload-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.assessment-files-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.assessment-file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}
.assessment-file-item i { color: var(--brand); }
.assessment-file-name  { flex: 1; }
.assessment-file-date  { color: var(--text-sm); font-size: 12px; white-space: nowrap; }
.assessment-upload-btn { cursor: pointer; }
.assessment-delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  padding: 0 2px;
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
}
.assessment-delete-btn:hover { color: var(--red); }
.assessment-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.assessment-format-note {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 0;
  font-size: 12px;
  color: var(--text-sm);
}
.assessment-format-note i { margin-top: 1px; }

/* Actions */
.aplicacion-actions { display: flex; gap: 10px; }
.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

/* ============================================================
   CV PARSER BOX
   ============================================================ */

.cv-parser-box {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #f0f7ff;
  border: 1.5px dashed #93c5fd;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

.cv-parser-icon {
  font-size: 30px;
  color: var(--brand);
  flex-shrink: 0;
  line-height: 1;
}

.cv-parser-text { flex: 1; min-width: 0; }

.cv-parser-title {
  font-weight: 600;
  font-size: 14px;
  margin: 0 0 2px;
  color: var(--brand);
}

.cv-parser-desc {
  font-size: 13px;
  color: var(--text-sm);
  margin: 0;
}

.cv-parser-btn {
  flex-shrink: 0;
  white-space: nowrap;
  cursor: pointer;
}

.cv-parser-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 16px;
}

.cv-parser-loading { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.cv-parser-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.cv-parser-error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .hero-body { padding: 90px 24px 60px; }

  .jobs-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .filters-sidebar { order: 2; }
  .jobs-list { order: 1; }

  .detail-body { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }

  .form-row { grid-template-columns: 1fr; }
  .apply-card { padding: 20px; }

  .footer { padding: 16px 20px; }
}

@media (max-width: 480px) {
  .nav-links { display: none; }
  .detail-actions { flex-direction: column; }
}

/* ── Auth (login / registro) ── */
.auth-wrap {
  max-width: 440px;
  margin: 60px auto;
  padding: 0 20px;
}

.auth-card {
  background: #fff;
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 8px;
  padding: 32px 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.auth-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text, #111827);
}

.auth-sub {
  font-size: 14px;
  color: var(--text-sm, #6b7280);
  margin: 0 0 24px;
}

.auth-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-sm, #6b7280);
  margin: 4px 0 20px;
  cursor: pointer;
}

.auth-submit {
  width: 100%;
  padding: 12px;
  font-size: 14px;
}

.auth-alt {
  text-align: center;
  font-size: 13px;
  color: var(--text-sm, #6b7280);
  margin: 20px 0 0;
}

.auth-alt a {
  color: var(--brand, #253A4F);
  font-weight: 600;
  text-decoration: none;
}
.auth-alt a:hover { text-decoration: underline; }

/* Nav user menu */
.nav-user {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 13px;
}
.nav-user-name {
  opacity: 0.9;
}
.nav-user a {
  text-decoration: none;
  font-weight: 500;
}

.nav--transparent .nav-user-name,
.nav--transparent .nav-user a       { color: rgba(255,255,255,.9); }
.nav--transparent .nav-user a:hover { color: #fff; opacity: 0.75; }

.nav--solid .nav-user-name,
.nav--solid .nav-user a       { color: var(--text); }
.nav--solid .nav-user a:hover { color: var(--brand); opacity: 1; }

/* ============================================================
   NAV ROL BADGE
   ============================================================ */
.nav-rol-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 4px;
  vertical-align: middle;
}
.nav-rol-admin        { background: #7c3aed; color: #fff; }
.nav-rol-entrevistador{ background: #0891b2; color: #fff; }
.nav-rol-aplicante    { display: none; }
.nav--solid .nav-link-admin { color: var(--text) !important; }
.nav--solid .nav-link-admin:hover { color: var(--brand) !important; }
.nav--transparent .nav-link-admin { color: rgba(255,255,255,.9) !important; }
.nav--transparent .nav-link-admin:hover { color: #fff !important; }

/* ============================================================
   ADMIN / ENTREVISTADOR — Layout
   ============================================================ */
.admin-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 80px;
}
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.admin-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.admin-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.admin-nav-cards {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.admin-nav-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 36px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.admin-nav-card i { font-size: 28px; color: var(--brand); }
.admin-nav-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--brand);
}

/* ============================================================
   ADMIN — Filtros y tabla
   ============================================================ */
.admin-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.admin-count { font-size: 13px; color: var(--text-sm); margin-left: 4px; }
.admin-select {
  font-size: 13px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--white);
  cursor: pointer;
}
.admin-select--sm { padding: 4px 8px; font-size: 12px; }
.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.admin-table thead { background: var(--bg); }
.admin-table th {
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
  color: var(--text-sm);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.admin-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--bg); }
.td-muted { color: var(--text-sm); }
.td-link  { color: var(--brand); text-decoration: none; font-size: 13px; }
.td-link:hover { text-decoration: underline; }

.etapa-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
}
.etapa-enviada      { background: #f1f5f9; color: #64748b; }
.etapa-assessment   { background: #fffbeb; color: #92400e; }
.etapa-entrevista_1 { background: #e8f2fb; color: #3477B2; }
.etapa-entrevista_2 { background: #f3f0f4; color: #9D90A0; }
.etapa-oferta       { background: #f0fdf4; color: #15803d; }
.etapa-contratado   { background: #dcfce7; color: #166534; }
.etapa-descartado   { background: #fef2f2; color: #b91c1c; }

/* ============================================================
   ADMIN — Detalle candidato
   ============================================================ */
.admin-detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 20px;
  align-items: start;
}
.admin-detail-left, .admin-detail-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.admin-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 24px;
}
.admin-card-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-sm);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.admin-dl {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 6px 12px;
  font-size: 13px;
  margin: 0;
}
.admin-dl dt { color: var(--text-sm); font-weight: 500; }
.admin-dl dd { margin: 0; color: var(--text); word-break: break-word; }
.admin-inline-form { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ============================================================
   NOTAS
   ============================================================ */
.admin-notas-card { height: 100%; }
.notas-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
  max-height: 420px;
  overflow-y: auto;
}
.nota-item {
  border-left: 3px solid var(--border);
  padding: 8px 12px;
  background: var(--bg);
  border-radius: 0 6px 6px 0;
}
.nota-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.nota-autor { font-size: 12px; font-weight: 600; color: var(--text); }
.nota-fecha { font-size: 11px; color: var(--muted); }
.nota-contenido { font-size: 13px; margin: 0; white-space: pre-wrap; color: var(--text); }
.nota-rol-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 3px;
  margin-left: 4px;
}
.nota-rol-admin         { background: #ede9fe; color: #6d28d9; }
.nota-rol-entrevistador { background: #e0f2fe; color: #0369a1; }
.nota-rol-aplicante     { background: #f1f5f9; color: #64748b; }
.nota-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  margin-top: 4px;
}
.nota-textarea {
  width: 100%;
  font-size: 13px;
  font-family: inherit;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  resize: vertical;
  color: var(--text);
}
.nota-textarea:focus { outline: none; border-color: var(--brand); }

/* ============================================================
   ENTREVISTADOR — vacantes grid
   ============================================================ */
.entrev-vacantes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.entrev-vacante-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  text-decoration: none;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s;
}
.entrev-vacante-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.entrev-vacante-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.entrev-vacante-titulo { font-weight: 600; font-size: 15px; }
.entrev-vacante-stat { display: flex; align-items: baseline; gap: 8px; }
.entrev-vacante-fecha { font-size: 11px; margin-top: 4px; }
.entrev-vacante-cta { font-size: 12px; color: var(--brand); font-weight: 500; margin-top: auto; }

@media (max-width: 900px) {
  .admin-detail-grid { grid-template-columns: 1fr; }
  .admin-wrap { padding: 24px 16px 60px; }
}

.admin-input {
  font-size: 13px;
  font-family: inherit;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  background: var(--white);
}
.admin-input:focus { outline: none; border-color: var(--brand); }

/* ===========================
   DISPONIBILIDAD — CALENDARIO
   =========================== */
.dispon-section { margin-top: 40px; }
.dispon-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.dispon-periodos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.dispon-periodo-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 5px 12px;
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.dispon-periodo-btn--active {
  border-color: #253356;
  background: #f0f4ff;
  box-shadow: 0 0 0 2px rgba(37,51,86,.12);
}
.cal-period-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cal-period--entrevista_1 .cal-period-dot,
.cal-period-dot.cal-period--entrevista_1 { background: #3477B2; }
.cal-period--entrevista_2 .cal-period-dot,
.cal-period-dot.cal-period--entrevista_2 { background: #9D90A0; }
.dispon-leyenda {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 12px;
}

/* Tabla calendario */
.cal-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-left: none;
  border-radius: var(--radius);
}
.cal-table {
  border-collapse: collapse;
  min-width: 100%;
  table-layout: fixed;
}
.cal-th-time {
  width: 56px;
  min-width: 56px;
  background: var(--bg);
  border-left: none;
  border-bottom: 2px solid var(--border);
  position: sticky;
  left: 0;
  z-index: 2;
}
.cal-th-day {
  text-align: center;
  padding: 8px 6px 6px;
  border-bottom: 2px solid var(--border);
  border-left: 1px solid var(--border);
  min-width: 90px;
  background: var(--bg);
}
.cal-th-day.cal-period--entrevista_1 { border-top: 3px solid #3477B2; }
.cal-th-day.cal-period--entrevista_2 { border-top: 3px solid #9D90A0; }
.cal-day-name {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-sm);
}
.cal-day-num {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.1;
}
.cal-day-month {
  display: block;
  font-size: 10px;
  color: var(--text-sm);
  text-transform: uppercase;
}
.cal-td-time {
  padding: 0;
  background: var(--bg);
  border-left: none;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: sticky;
  left: 0;
  z-index: 1;
  height: 36px;
  width: 56px;
  min-width: 56px;
}
.cal-time-inner {
  position: relative;
  height: 36px;
}
.cal-time-label {
  position: absolute;
  top: 0;
  right: 8px;
  transform: translateY(-50%);
  font-size: 11px;
  color: var(--text-sm);
  white-space: nowrap;
  line-height: 1;
  background: var(--bg);
  padding: 0 2px;
}
.cal-row-spacer td { height: 10px; padding: 0; border-bottom: none; }
.cal-cell--spacer   { cursor: default; pointer-events: none; }
.cal-cell {
  border-left: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  height: 36px;
  cursor: pointer;
  padding: 3px 4px;
  vertical-align: middle;
  transition: background .1s;
  position: relative;
}
.cal-cell:hover { background: #f0f9ff; }
.cal-cell--mine { background: #dbeafe; }
.cal-cell--mine:hover { background: #bfdbfe; }

/* Pills de leyenda */
.cal-slot {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  border-radius: 3px;
  padding: 2px 7px;
  white-space: nowrap;
}
.cal-slot--mine  { background: #253356; color: #fff; }
.cal-slot--other { background: rgba(127,143,169,0.18); color: #7F8FA9; border: 1px solid #7F8FA9; }

/* Tarjetas de evento — posición absoluta para sobrepasar las filas inferiores */
.cal-cell { position: relative; }   /* contexto para absolute */
.cal-event {
  position: absolute;
  top: 1px;
  left: 3px;
  right: 3px;
  z-index: 3;
  border-radius: 4px;
  padding: 3px 7px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1px;
  font-size: 11px;
  font-weight: 600;
  overflow: hidden;
  user-select: none;
  box-sizing: border-box;
}
.cal-event--mine  { background: #253356; color: #fff; cursor: pointer; z-index: 5; }
.cal-event--mine:hover { background: #1c2840; }
.cal-event--other { background: rgba(127,143,169,0.18); color: #7F8FA9; border: 1px solid rgba(127,143,169,0.4); cursor: default; pointer-events: none; z-index: 1; }
.cal-event-label  { font-weight: 700; white-space: nowrap; line-height: 1.3; }
.cal-event-time   { font-weight: 400; opacity: .85; white-space: nowrap; font-size: 10px; }
.cal-event-entry  { display: flex; align-items: baseline; gap: 4px; line-height: 1.4; font-size: 11px; }
.cal-event-entry strong { font-weight: 700; flex-shrink: 0; }
.cal-event-entry span   { font-size: 10px; opacity: .85; }

/* POPUP */
.cal-popup {
  position: fixed;
  z-index: 1000;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,.14);
  width: 260px;
  padding: 0;
  overflow: hidden;
}
.cal-popup-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--border);
}
.cal-popup-close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-sm);
  font-size: 13px;
  padding: 2px 4px;
  border-radius: 4px;
}
.cal-popup-close:hover { background: var(--bg); color: var(--text); }
.cal-popup-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cal-popup-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cal-popup-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 14px;
}
.cal-popup-delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #b91c1c;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 4px;
  margin-left: auto;
}
.cal-popup-delete-btn:hover { background: #fef2f2; }
