/* ============================================================
   BICENTENARIX — Explora convocatorias
   Hoja de estilos de la página de vacantes. Identidad de marca,
   ligera y limpia. Reutiliza la navegación unificada (nav.css).
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Chillax:wght@400;500;600;700&family=General+Sans:wght@400;500;600&display=swap');

:root {
  --c-sky: #47B6E8;
  --c-orange: #F08424;
  --c-blue: #3961AA;
  --c-yellow: #FFCD27;
  --c-purple: #5A3C8F;
  --c-bg: #F8FAFC;
  --c-surface: #FFFFFF;
  --c-text: #1A1A2E;
  --c-muted: #4A5568;
  --c-border: #E2E8F0;
  --font-heading: 'Chillax', 'Segoe UI', sans-serif;
  --font-body: 'General Sans', 'Segoe UI', sans-serif;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
  --max-w: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-blue); }
:focus-visible { outline: 3px solid var(--c-orange); outline-offset: 2px; border-radius: 4px; }

.cv-container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.cv-skip {
  position: absolute; left: -999px; top: 0; z-index: 999;
  background: #fff; color: var(--c-purple); padding: 10px 16px; border-radius: var(--radius-sm);
}
.cv-skip:focus { left: 16px; top: 12px; }

/* ---- Hero ---- */
.cv-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(115% 135% at 88% -15%, rgba(71,182,232,0.30) 0%, transparent 55%),
    radial-gradient(95% 120% at -5% 115%, rgba(240,132,36,0.22) 0%, transparent 55%),
    linear-gradient(135deg, var(--c-blue) 0%, var(--c-purple) 72%, #2f1d52 100%);
  color: #fff;
  padding: 76px 0 84px;
}
/* Trama de puntos sutil: aporta textura y orden al fondo */
.cv-hero::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.12) 1.1px, transparent 1.1px);
  background-size: 26px 26px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
  opacity: 0.55;
}
/* Orbes flotantes decorativos (capa de fondo) */
.cv-hero__bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.cv-hero__orb { position: absolute; border-radius: 50%; filter: blur(4px); }
.cv-hero__orb--1 {
  width: 300px; height: 300px; top: -90px; right: -50px;
  background: radial-gradient(circle, rgba(71,182,232,0.45) 0%, transparent 70%);
  animation: cvHeroFloat 11s ease-in-out infinite;
}
.cv-hero__orb--2 {
  width: 240px; height: 240px; bottom: -110px; left: -50px;
  background: radial-gradient(circle, rgba(240,132,36,0.40) 0%, transparent 70%);
  animation: cvHeroFloat 13s ease-in-out infinite reverse;
}
.cv-hero__orb--3 {
  width: 180px; height: 180px; top: 36%; left: 50%;
  background: radial-gradient(circle, rgba(255,205,39,0.28) 0%, transparent 70%);
  animation: cvHeroFloat 9s ease-in-out infinite;
}
@keyframes cvHeroFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-22px, 18px) scale(1.08); }
}

.cv-hero__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center; gap: 48px;
}
.cv-hero__content { max-width: 600px; }
.cv-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px; padding: 6px 16px; font-size: 0.85rem; font-weight: 500;
  color: var(--c-yellow); margin-bottom: 20px; backdrop-filter: blur(6px);
}
.cv-hero h1 {
  font-family: var(--font-heading); font-weight: 700; color: #fff;
  font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin-bottom: 16px;
}
.cv-hero h1 em { font-style: normal; color: var(--c-yellow); }
.cv-hero__sub { font-size: 1.13rem; color: rgba(255,255,255,0.9); margin-bottom: 30px; max-width: 540px; line-height: 1.6; }
.cv-hero__brand {
  display: flex; gap: 10px; align-items: flex-start;
  max-width: 540px; margin-bottom: 28px;
  padding: 14px 18px; border-radius: var(--radius-md);
  background: rgba(39,180,99,0.16); border: 1px solid rgba(39,180,99,0.34);
  font-size: 0.98rem; line-height: 1.5; color: #fff;
}
.cv-hero__brand b { color: var(--c-yellow); font-weight: 700; }
.cv-hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- Panel "alianza" (visual del hero) ---- */
.cv-hero__panel {
  position: relative; justify-self: end; width: 100%; max-width: 440px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
  padding: 24px 24px 26px;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 54px rgba(15, 10, 40, 0.38);
  animation: cvPanelIn 0.7s ease both;
}
.cv-hero__panel-title {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem;
  color: #fff; margin-bottom: 16px;
}
.cv-hero__panel-title::before {
  content: ''; width: 10px; height: 10px; border-radius: 50%;
  background: var(--c-yellow); box-shadow: 0 0 0 4px rgba(255,205,39,0.22);
}
.cv-hero__feats { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.cv-hero__feats li {
  display: flex; align-items: center; gap: 13px;
  background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md); padding: 13px 15px;
  font-size: 0.9rem; line-height: 1.4; color: rgba(255,255,255,0.85);
  transition: transform 0.2s ease, background 0.2s ease;
}
.cv-hero__feats li:hover { transform: translateX(3px); background: rgba(255,255,255,0.11); }
.cv-hero__feats b { display: block; color: #fff; font-weight: 600; font-size: 0.97rem; margin-bottom: 2px; }
.cv-hero__feat-ico {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
}
.cv-hero__feat-ico--a { background: linear-gradient(135deg, var(--c-sky), #2f8fc4); }
.cv-hero__feat-ico--b { background: linear-gradient(135deg, var(--c-orange), #d6711c); }
.cv-hero__feat-ico--c { background: linear-gradient(135deg, var(--c-purple), #7a52c4); }
@keyframes cvPanelIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.cv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 13px 28px; border-radius: var(--radius-sm); text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.cv-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.cv-btn--primary { background: var(--c-orange); color: #fff; }
.cv-btn--primary:hover { background: #d6711c; }
.cv-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.5); }
.cv-btn--blue { background: var(--c-blue); color: #fff; }
.cv-btn--blue:hover { background: #2f5290; }
.cv-btn--soon {
  background: linear-gradient(110deg, var(--c-blue), var(--c-purple) 55%, var(--c-orange));
  background-size: 200% 100%; color: #fff; box-shadow: var(--shadow-sm);
  animation: cvBtnShift 6s ease infinite;
}
.cv-btn--soon:hover { background-position: 100% 0; background-size: 200% 100%; }
@keyframes cvBtnShift {
  0%, 100% { background-position: 0% 0; }
  50% { background-position: 100% 0; }
}

/* ---- Sección de listado ---- */
.cv-section { padding: 72px 0; }
.cv-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.cv-head .cv-eyebrow {
  display: inline-block; font-size: 0.82rem; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--c-orange); margin-bottom: 12px;
}
.cv-head h2 { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin-bottom: 12px; }
.cv-head p { color: var(--c-muted); font-size: 1.05rem; }

.cv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cv-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.cv-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: #d8def0; }
.cv-card__area {
  align-self: flex-start;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--c-purple); background: rgba(90,60,143,0.10);
  padding: 4px 11px; border-radius: 999px; margin-bottom: 14px;
}
.cv-card h3 { font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; margin-bottom: 6px; }
.cv-card__company { color: var(--c-muted); font-size: 0.95rem; margin-bottom: 16px; }
.cv-card__meta { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; flex: 1; }
.cv-card__meta li { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--c-muted); }
.cv-card__meta b { color: var(--c-text); font-weight: 600; }
.cv-card__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-sky); flex-shrink: 0; }
.cv-card__cta { width: 100%; }

/* ---- Card "Próximamente" (fondo dinámico) ---- */
.cv-card--soon {
  position: relative;
  overflow: hidden;
  border-color: #d8def0;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(71,182,232,0.10) 0%, transparent 42%),
    radial-gradient(120% 120% at 100% 0%, rgba(240,132,36,0.10) 0%, transparent 45%),
    var(--c-surface);
}
/* Barra superior con degradado en movimiento (awareness) */
.cv-card--soon::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, var(--c-sky), var(--c-orange), var(--c-yellow), var(--c-purple), var(--c-sky));
  background-size: 300% 100%;
  animation: cvSheen 7s linear infinite;
}
/* Halo suave que respira detrás del contenido */
.cv-card--soon::after {
  content: ''; position: absolute; z-index: 0;
  width: 320px; height: 320px; right: -120px; bottom: -140px;
  background: radial-gradient(circle, rgba(90,60,143,0.16) 0%, transparent 70%);
  animation: cvFloat 9s ease-in-out infinite;
  pointer-events: none;
}
.cv-card--soon > * { position: relative; z-index: 1; }
.cv-card--soon:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--c-sky); }

@keyframes cvSheen { to { background-position: 300% 0; } }
@keyframes cvFloat {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.9; }
  50% { transform: translate(-18px, -10px) scale(1.12); opacity: 1; }
}

.cv-card__status {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.6px; text-transform: uppercase;
  color: var(--c-orange);
  background: rgba(240,132,36,0.10); border: 1px solid rgba(240,132,36,0.28);
  padding: 4px 12px; border-radius: 999px; margin-bottom: 14px;
}
.cv-card__status-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--c-orange);
  box-shadow: 0 0 0 0 rgba(240,132,36,0.55);
  animation: cvPulse 1.8s ease-out infinite;
}
@keyframes cvPulse {
  0% { box-shadow: 0 0 0 0 rgba(240,132,36,0.55); }
  70% { box-shadow: 0 0 0 9px rgba(240,132,36,0); }
  100% { box-shadow: 0 0 0 0 rgba(240,132,36,0); }
}
.cv-card h3 small { font-weight: 600; font-size: 0.92rem; color: var(--c-muted); font-family: var(--font-body); }
.cv-card__count {
  display: inline-block; vertical-align: middle;
  font-family: var(--font-body); font-size: 0.74rem; font-weight: 700;
  color: var(--c-blue); background: rgba(57,97,170,0.10);
  padding: 2px 10px; border-radius: 999px; margin-left: 4px;
}
.cv-card__req-label {
  font-size: 0.72rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--c-purple); margin-bottom: 8px;
}
.cv-card__desc { color: var(--c-muted); font-size: 0.92rem; margin-bottom: 22px; flex: 0; }
.cv-card--soon .cv-card__meta { flex: 0; margin-bottom: 14px; }
.cv-card--soon .cv-card__cta { margin-top: auto; }

/* ---- CTA: publica tu convocatoria ---- */
.cv-publish {
  margin-top: 36px;
  display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap;
  background: linear-gradient(135deg, #303374, #3961A1);
  border-radius: var(--radius-lg); padding: 30px 34px; color: #fff;
}
.cv-publish__text h3 { font-family: var(--font-heading); font-weight: 700; font-size: 1.35rem; color: #fff; margin-bottom: 4px; }
.cv-publish__text p { color: rgba(255,255,255,0.9); }
.cv-publish__cta { flex-shrink: 0; }
@media (max-width: 600px) {
  .cv-publish { flex-direction: column; align-items: stretch; text-align: center; }
  .cv-publish__cta { width: 100%; }
}

/* ---- Banda dual (personas / empresas) ---- */
.cv-split { background: #fff; border-top: 1px solid var(--c-border); }
.cv-split__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cv-split__card {
  border-radius: var(--radius-lg); padding: 32px 30px; color: #fff;
  display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.cv-split__card h3 { font-family: var(--font-heading); font-weight: 700; font-size: 1.4rem; color: #fff; }
.cv-split__card p { color: rgba(255,255,255,0.9); margin-bottom: 8px; }
.cv-split__card--person { background: linear-gradient(135deg, var(--c-purple), var(--c-blue)); }
.cv-split__card--company { background: linear-gradient(135deg, #303374, #3961A1); }

/* ---- Footer ---- */
.cv-footer { background: #fff; border-top: 1px solid var(--c-border); padding: 28px 0; }
.cv-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.cv-footer__legal { color: var(--c-muted); font-size: 0.88rem; }

/* ---- Responsive ---- */
@media (max-width: 900px) {
  .cv-grid { grid-template-columns: repeat(2, 1fr); }
  .cv-split__grid { grid-template-columns: 1fr; }
  .cv-hero__inner { grid-template-columns: 1fr; gap: 30px; }
  .cv-hero__content { max-width: 640px; }
  .cv-hero__panel { justify-self: stretch; max-width: 560px; }
}
@media (max-width: 600px) {
  .cv-hero { padding: 60px 0 64px; }
  .cv-grid { grid-template-columns: 1fr; }
  .cv-hero__ctas { flex-direction: column; align-items: stretch; }
  .cv-hero__panel { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .cv-btn, .cv-card, .cv-hero__feats li { transition: none; }
  .cv-btn--soon, .cv-card--soon::before, .cv-card--soon::after, .cv-card__status-dot,
  .cv-hero__orb, .cv-hero__panel, .cv-detail__box { animation: none; }
}

/* ============================================================
   ATS — Explora Convocatorias (tarjetas de variantes, formulario
   único de postulación y panel interno de reclutamiento).
   ============================================================ */

.cv-noscript { color: var(--c-muted); text-align: center; grid-column: 1 / -1; }
.cv-hidden { position: absolute; left: -9999px; }

/* ---- Tarjetas de vacante (compactas: etiqueta, categoría, título, CTA) ---- */
.cv-card--vac { padding: 0; overflow: hidden; cursor: pointer; }
.cv-card--vac:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--c-sky); }
.cv-card--vac:focus-visible { outline: 3px solid var(--c-orange); outline-offset: 3px; }
.cv-badge {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.3px;
  padding: 6px 12px; border-radius: 999px; color: #fff;
  background: var(--c-blue); box-shadow: 0 6px 16px rgba(57,97,170,0.20);
}
.cv-badge--reciente { background: linear-gradient(135deg, #F0602A, #F08424); }
.cv-badge--mejor { background: linear-gradient(135deg, #1E8E4E, #27B463); }
.cv-badge--inmediata { background: linear-gradient(135deg, #C0392B, #E24B3B); }
.cv-badge--carrera { background: linear-gradient(135deg, var(--c-purple), #7a52c4); }
.cv-badge--mas { background: linear-gradient(135deg, #C98A00, #FFCD27); color: #3a2c00; }
.cv-card--vac .cv-card__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; gap: 2px; }
.cv-card--vac .cv-card__area { margin: 12px 0 8px; }
.cv-card--vac h3 { margin-bottom: 6px; }
.cv-card__focus {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.88rem; font-weight: 600; color: var(--c-blue);
  margin-bottom: 18px;
}
.cv-card__focus::before {
  content: '★'; font-size: 0.8rem; color: var(--c-orange);
}
.cv-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.cv-card__benefits { list-style: none; display: flex; flex-direction: column; gap: 7px; margin: 4px 0 18px; flex: 1; }
.cv-card__benefits li { display: flex; align-items: flex-start; gap: 9px; font-size: 0.9rem; color: var(--c-text); }
.cv-card__check {
  flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.7rem; font-weight: 800;
  background: rgba(39,180,99,0.15); color: #1E8E4E; margin-top: 1px;
}
.cv-card__actions { display: flex; flex-direction: column; gap: 6px; margin-top: auto; }
.cv-card__cta { width: 100%; }
.cv-card__cta-sub { text-align: center; font-size: 0.8rem; color: var(--c-muted); }

/* ---- Modal de detalle de vacante (imagen y datos bajo demanda) ---- */
.cv-detail { position: fixed; inset: 0; z-index: 420; display: grid; place-items: center; padding: 20px; }
.cv-detail[hidden] { display: none; }
.cv-detail__backdrop { position: absolute; inset: 0; background: rgba(20,16,40,0.58); backdrop-filter: blur(3px); }
.cv-detail__box {
  position: relative; width: min(100%, 720px); max-height: 92vh; overflow-y: auto;
  background: var(--c-surface); border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(15,10,40,0.42);
  animation: cvDetailIn 0.28s ease both;
}
@keyframes cvDetailIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } to { opacity: 1; transform: none; } }
.cv-detail__close {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,0.9); color: var(--c-text); font-size: 1.5rem; line-height: 1;
  cursor: pointer; box-shadow: var(--shadow-sm);
}
.cv-detail__close:hover { background: #fff; }
.cv-detail__media { aspect-ratio: 4 / 3; overflow: hidden; background: #14102a; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.cv-detail__media img { width: 100%; height: 100%; object-fit: contain; }
.cv-detail__content { padding: 22px clamp(20px, 4vw, 32px) 28px; }
.cv-detail__tags { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cv-detail__content h2 { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.4rem, 3.4vw, 2rem); margin-bottom: 10px; }
.cv-detail__desc { color: var(--c-muted); margin-bottom: 20px; }
.cv-detail__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; margin-bottom: 22px; }
.cv-detail__col .cv-card__benefits { flex: 0; margin-bottom: 0; }

/* Sección de ubicación dentro del detalle */
.cv-detail__loc {
  background: linear-gradient(135deg, rgba(57,97,170,0.07), rgba(90,60,143,0.07));
  border: 1px solid rgba(90,60,143,0.18); border-radius: var(--radius-md);
  padding: 18px 20px; margin-bottom: 22px;
}
.cv-detail__loc h3 { font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; color: var(--c-purple); margin-bottom: 4px; }
.cv-detail__loc-lead { color: var(--c-muted); font-size: 0.9rem; margin-bottom: 14px; }
.cv-detail__loc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.cv-detail__loc-list li { display: flex; flex-direction: column; gap: 1px; }
.cv-detail__loc-list span { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; color: var(--c-purple); }
.cv-detail__loc-list strong { font-weight: 600; color: var(--c-text); }
.cv-detail__map { align-self: flex-start; }

/* CTA de postulación del detalle */
.cv-detail__apply { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cv-detail__apply-cta { width: 100%; font-size: 1.06rem; padding: 15px 28px; }
.cv-detail__apply-hint { font-size: 0.85rem; color: var(--c-muted); }

/* Bloqueo de scroll del fondo al abrir el detalle */
body.cv-noscroll { overflow: hidden; }

@media (max-width: 600px) {
  .cv-detail__cols { grid-template-columns: 1fr; gap: 14px; }
  .cv-detail__media { aspect-ratio: 3 / 4; }
}

/* ---- Formulario único de postulación ---- */
.cv-apply { background: #fff; border-top: 1px solid var(--c-border); }
.cv-apply__inner { max-width: 900px; }
.cv-apply__intro { text-align: center; margin-bottom: 28px; }
.cv-apply__intro h2 { font-family: var(--font-heading); font-weight: 700; font-size: clamp(1.6rem, 4vw, 2.3rem); }
.cv-apply__lead { color: var(--c-muted); margin-top: 6px; }
.cv-apply__target {
  display: inline-flex; flex-direction: column; gap: 2px; margin-top: 16px;
  background: linear-gradient(135deg, rgba(57,97,170,0.10), rgba(90,60,143,0.10));
  border: 1px solid rgba(90,60,143,0.20); border-radius: var(--radius-md);
  padding: 12px 20px;
}
.cv-apply__target-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--c-purple); }
.cv-apply__target strong { font-family: var(--font-heading); font-size: 1.15rem; color: var(--c-blue); }
.cv-apply__target-vac { font-size: 0.82rem; color: var(--c-muted); }

.cv-apply__form {
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 34px);
  box-shadow: var(--shadow-sm);
}
.cv-apply__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cv-field2 { display: flex; flex-direction: column; gap: 6px; }
.cv-field2 > span { font-size: 0.86rem; font-weight: 700; color: var(--c-text); }
.cv-field2--full { margin-top: 14px; }
.cv-field2 input, .cv-field2 select, .cv-field2 textarea {
  width: 100%; min-height: 46px; border: 1px solid var(--c-border);
  border-radius: var(--radius-sm); padding: 10px 12px; font: inherit;
  color: var(--c-text); background: #fff;
}
.cv-field2 textarea { min-height: 84px; resize: vertical; }

.cv-apply__group {
  margin-top: 18px; border: 1px solid var(--c-border); border-radius: var(--radius-md);
  padding: 16px 18px 18px;
}
.cv-apply__group legend { font-family: var(--font-heading); font-weight: 600; color: var(--c-purple); padding: 0 8px; }
.cv-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.cv-check { display: flex; align-items: center; gap: 9px; font-size: 0.9rem; color: var(--c-text); cursor: pointer; }
.cv-check input { width: 18px; height: 18px; accent-color: var(--c-orange); flex-shrink: 0; }
.cv-apply__docs-label { margin: 16px 0 8px; font-size: 0.74rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--c-purple); }

/* Relación previa con Bicentenarix (formulario público) */
.cv-radios { display: flex; gap: 24px; flex-wrap: wrap; }
.cv-radio { display: flex; align-items: center; gap: 9px; font-size: 0.95rem; font-weight: 600; color: var(--c-text); cursor: pointer; }
.cv-radio input { width: 18px; height: 18px; accent-color: var(--c-orange); flex-shrink: 0; }
.cv-apply__prev-servicios { margin-top: 6px; }

/* Documentos declarativos: texto de ayuda, radios apilados, checkbox único
   y mensaje de confianza. */
.cv-help { font-size: 0.85rem; color: var(--c-muted); margin: 4px 0 12px; line-height: 1.45; }
.cv-help--xs { font-size: 0.78rem; margin-top: -6px; }
.cv-radios--stack { flex-direction: column; gap: 10px; }
.cv-checks--single { grid-template-columns: 1fr; margin-top: 12px; }
.cv-trust {
  list-style: none; display: grid; gap: 8px; margin-top: 22px;
  padding: 16px 18px; border-radius: var(--radius-md);
  background: rgba(39,180,99,0.08); border: 1px solid rgba(39,180,99,0.25);
}
.cv-trust li { font-size: 0.92rem; font-weight: 600; color: var(--c-text); }

.cv-uploads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cv-upload2 { display: flex; flex-direction: column; gap: 6px; font-size: 0.86rem; font-weight: 700; color: var(--c-text); }
.cv-upload2 input[type="file"] {
  font: inherit; font-weight: 500; border: 1px dashed var(--c-border); border-radius: var(--radius-sm);
  padding: 9px 10px; background: #FBFCFF; color: var(--c-muted);
}
.cv-upload2--cv { margin-top: 18px; }
.cv-upload2--cv small { font-weight: 500; color: var(--c-muted); }

.cv-apply__error { margin-top: 16px; color: #C91F2E; font-weight: 700; }
.cv-apply__submit { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 22px; }
.cv-apply__cta { font-size: 1.08rem; padding: 15px 40px; }
.cv-apply__hint { font-size: 0.85rem; color: var(--c-muted); }

.cv-apply__success {
  text-align: center; background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: var(--radius-lg); padding: 36px 28px; box-shadow: var(--shadow-sm);
}
.cv-apply__success-ico {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(39,180,99,0.15); color: #1E8E4E; font-size: 1.8rem; font-weight: 800; margin-bottom: 12px;
}
.cv-apply__success h3 { font-family: var(--font-heading); font-size: 1.5rem; margin-bottom: 8px; }
.cv-apply__success p { color: var(--c-muted); max-width: 460px; margin: 0 auto 18px; }

/* ---- Footer: acceso interno discreto ---- */
.cv-footer__links { display: inline-flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cv-footer__internal {
  border: 0; background: none; color: var(--c-muted); font: inherit; font-size: 0.82rem;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 0;
}
.cv-footer__internal:hover { color: var(--c-purple); }

/* ---- Modal de acceso interno ---- */
.conv-modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; }
/* El atributo [hidden] debe ganar al display de arriba: sin esto el modal
   de acceso interno se mostraría al cargar la página (apertura automática). */
.conv-modal[hidden] { display: none; }
.ats[hidden] { display: none; }
.conv-modal__backdrop { position: absolute; inset: 0; background: rgba(20,16,40,0.55); backdrop-filter: blur(3px); }
.conv-modal__box {
  position: relative; width: min(100%, 420px); background: #fff;
  border-radius: var(--radius-lg); padding: 30px 28px; box-shadow: 0 24px 60px rgba(15,10,40,0.4);
}
.conv-modal__close { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 1.6rem; line-height: 1; color: var(--c-muted); cursor: pointer; }
.conv-modal__box h2 { font-family: var(--font-heading); color: var(--c-purple); margin: 4px 0 6px; }
.conv-modal__sub { color: var(--c-muted); font-size: 0.9rem; margin-bottom: 16px; }
.conv-modal__box form { display: grid; gap: 10px; }
.conv-modal__box label { font-size: 0.86rem; font-weight: 700; }
.conv-modal__box input {
  width: 100%; min-height: 46px; border: 1px solid var(--c-border); border-radius: var(--radius-sm);
  padding: 10px 12px; font: inherit;
}
.conv-modal__box button[type="submit"] { min-height: 46px; border: 0; border-radius: var(--radius-sm); background: var(--c-orange); color: #fff; font-weight: 800; cursor: pointer; }
.conv-modal__error { color: #C91F2E; font-weight: 700; margin: 0; }

/* ---- Panel ATS interno (cubre la página al iniciar sesión) ---- */
.ats {
  position: fixed; inset: 0; z-index: 350; overflow-y: auto;
  background: var(--c-bg);
}
.ats__bar {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; padding: 14px 20px; background: #211a3e; color: #fff;
}
.ats__brand { font-family: var(--font-heading); font-weight: 600; letter-spacing: 0.3px; }
.ats__bar-actions { display: flex; gap: 10px; }
.ats__btn { border: 0; border-radius: var(--radius-sm); background: var(--c-orange); color: #fff; font-weight: 800; padding: 9px 16px; cursor: pointer; }
.ats__btn--ghost { background: rgba(255,255,255,0.14); }
.ats__status { padding: 40px 20px; text-align: center; color: var(--c-muted); font-weight: 700; }
.ats__status--error { color: #C91F2E; }
.ats__body { max-width: 1180px; margin: 0 auto; padding: 24px 20px 72px; display: grid; gap: 26px; }
.ats__block { }
.ats__h2 { font-family: var(--font-heading); font-weight: 700; font-size: 1.35rem; color: var(--c-purple); margin-bottom: 14px; }

/* terna */
.ats__ternas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ats-terna { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.ats-terna__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ats-terna__head h3 { font-family: var(--font-heading); font-size: 1.02rem; color: var(--c-text); }
.ats-terna__head span { font-size: 0.8rem; color: var(--c-muted); white-space: nowrap; }
.ats-terna__list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ats-terna__item { display: flex; align-items: center; gap: 10px; }
.ats-terna__rank { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--c-purple); color: #fff; font-size: 0.85rem; }
.ats-terna__link { flex: 1; text-align: left; border: 0; background: none; cursor: pointer; display: flex; flex-direction: column; padding: 0; }
.ats-terna__name { font-weight: 700; color: var(--c-text); }
.ats-terna__meta { font-size: 0.78rem; color: var(--c-muted); }
.ats-terna__empty { color: var(--c-muted); font-size: 0.9rem; }
.ats-band { flex-shrink: 0; font-size: 0.72rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.ats-band--rec { background: rgba(39,180,99,0.16); color: #1E8E4E; }
.ats-band--entrev { background: rgba(57,97,170,0.14); color: var(--c-blue); }
.ats-band--validar { background: rgba(255,205,39,0.24); color: #9a7400; }
.ats-band--no { background: rgba(201,31,46,0.12); color: #C91F2E; }

/* analítica A/B */
.ats__analytics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ats-ab { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.ats-ab h3 { font-family: var(--font-heading); font-size: 1rem; margin-bottom: 12px; }
.ats-ab__row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ats-ab__tag { flex-shrink: 0; width: 84px; font-size: 0.78rem; font-weight: 800; color: var(--c-blue); }
.ats-ab__tag--b { color: var(--c-orange); }
.ats-ab__bar { flex: 1; height: 12px; border-radius: 999px; background: #eef1f8; overflow: hidden; }
.ats-ab__bar span { display: block; height: 100%; background: var(--c-blue); border-radius: 999px; }
.ats-ab__bar--b span { background: var(--c-orange); }
.ats-ab__row strong { width: 28px; text-align: right; }
.ats-ab__note { font-size: 0.82rem; color: var(--c-muted); margin-top: 4px; }

/* relación con Bicentenarix (analítica) */
.ats__relacion { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.ats-rel__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.ats-rel__card { border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: 14px 10px; text-align: center; }
.ats-rel__card--yes { border-color: var(--c-purple); box-shadow: 0 0 0 2px rgba(90,60,143,0.12); }
.ats-rel__value { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 1.6rem; color: var(--c-purple); }
.ats-rel__label { display: block; font-size: 0.76rem; font-weight: 700; color: var(--c-muted); }
.ats-rel__title { font-size: 0.74rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--c-purple); margin-bottom: 10px; }
.ats-rel__grid { display: flex; flex-direction: column; gap: 9px; }
.ats-rel__serv { display: flex; align-items: center; gap: 12px; }
.ats-rel__serv-label { flex-shrink: 0; width: 190px; font-size: 0.86rem; color: var(--c-text); }
.ats-rel__bar { flex: 1; height: 12px; border-radius: 999px; background: #eef1f8; overflow: hidden; }
.ats-rel__bar span { display: block; height: 100%; background: var(--c-purple); border-radius: 999px; }
.ats-rel__serv strong { width: 28px; text-align: right; }
.ats-card--rel .ats-rel__disclaimer { margin-top: 10px; font-size: 0.8rem; color: var(--c-muted); }

/* toolbar + stats */
.ats__toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.ats__filters { display: flex; gap: 10px; flex-wrap: wrap; }
.ats__input { min-height: 42px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: 8px 12px; font: inherit; background: #fff; }
.ats__textarea { width: 100%; resize: vertical; }
.ats__stats { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.ats-stat { border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: var(--c-surface); padding: 10px 6px; cursor: pointer; text-align: center; }
.ats-stat--active { border-color: var(--c-purple); box-shadow: 0 0 0 2px rgba(90,60,143,0.18); }
.ats-stat__value { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 1.3rem; color: var(--c-purple); }
.ats-stat__label { display: block; font-size: 0.72rem; font-weight: 700; color: var(--c-muted); }

/* lista + detalle */
.ats__main { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: 16px; align-items: start; }
.ats__list { display: flex; flex-direction: column; gap: 10px; max-height: 70vh; overflow-y: auto; padding-right: 4px; }
.ats-list__empty, .ats-detail__empty { color: var(--c-muted); padding: 18px; }
.ats-item { text-align: left; border: 1px solid var(--c-border); border-radius: var(--radius-md); background: var(--c-surface); padding: 12px 14px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.ats-item--active { border-color: var(--c-purple); box-shadow: 0 0 0 2px rgba(90,60,143,0.18); }
.ats-item__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ats-item__name { font-weight: 800; color: var(--c-text); }
.ats-score { font-weight: 800; font-size: 0.85rem; padding: 3px 9px; border-radius: 999px; }
.ats-score--rec { background: rgba(39,180,99,0.16); color: #1E8E4E; }
.ats-score--entrev { background: rgba(57,97,170,0.14); color: var(--c-blue); }
.ats-score--validar { background: rgba(255,205,39,0.24); color: #9a7400; }
.ats-score--no { background: rgba(201,31,46,0.12); color: #C91F2E; }
.ats-item__vac { font-size: 0.82rem; color: var(--c-muted); }
.ats-item__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.ats-chip { font-size: 0.7rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #eef1f8; color: var(--c-muted); }
.ats-chip--var { background: rgba(57,97,170,0.12); color: var(--c-blue); }
.ats-chip--band.ats-chip--rec { background: rgba(39,180,99,0.16); color: #1E8E4E; }
.ats-chip--band.ats-chip--entrev { background: rgba(57,97,170,0.14); color: var(--c-blue); }
.ats-chip--band.ats-chip--validar { background: rgba(255,205,39,0.24); color: #9a7400; }
.ats-chip--band.ats-chip--no { background: rgba(201,31,46,0.12); color: #C91F2E; }
.ats-badge--nuevo { background: rgba(57,97,170,0.12); color: var(--c-blue); }
.ats-badge--contactado { background: rgba(71,182,232,0.16); color: #2f8fc4; }
.ats-badge--entrevista { background: rgba(255,205,39,0.24); color: #9a7400; }
.ats-badge--finalista { background: rgba(90,60,143,0.14); color: var(--c-purple); }
.ats-badge--contratado { background: rgba(39,180,99,0.16); color: #1E8E4E; }
.ats-badge--descartado { background: rgba(201,31,46,0.12); color: #C91F2E; }

.ats__detail { position: sticky; top: 78px; }
.ats-detail__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.ats-detail__head h2 { font-family: var(--font-heading); color: var(--c-purple); }
.ats-detail__date { font-size: 0.8rem; color: var(--c-muted); }
.ats-detail__match { text-align: center; border-radius: var(--radius-md); padding: 10px 16px; min-width: 108px; }
.ats-detail__match--rec { background: rgba(39,180,99,0.14); }
.ats-detail__match--entrev { background: rgba(57,97,170,0.12); }
.ats-detail__match--validar { background: rgba(255,205,39,0.22); }
.ats-detail__match--no { background: rgba(201,31,46,0.10); }
.ats-detail__pct { display: block; font-family: var(--font-heading); font-weight: 700; font-size: 1.7rem; line-height: 1; color: var(--c-text); }
.ats-detail__band { display: block; font-size: 0.76rem; font-weight: 700; color: var(--c-muted); margin-top: 3px; }
.ats-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-md); padding: 16px 18px; margin-bottom: 14px; }
.ats-card h3 { font-family: var(--font-heading); font-size: 1rem; margin-bottom: 12px; }
.ats-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ats-field { display: flex; flex-direction: column; gap: 3px; }
.ats-field > span { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; color: var(--c-muted); }
.ats-field > strong { font-weight: 700; color: var(--c-text); overflow-wrap: anywhere; }
.ats-field--full { grid-column: 1 / -1; margin-top: 10px; }
.ats-muted { color: var(--c-muted); font-weight: 500; }
.ats-card--match .ats-match__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ats-match__title { font-size: 0.74rem; font-weight: 800; text-transform: uppercase; color: var(--c-purple); margin-bottom: 6px; }
.ats-card--match ul { list-style: none; display: flex; flex-direction: column; gap: 5px; font-size: 0.86rem; }
.ats-plus { color: #1E8E4E; }
.ats-minus { color: var(--c-muted); }
.ats-risk { color: #C91F2E; }
.ats-files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ats-file { border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: 12px; background: #FBFCFF; }
.ats-file__label { font-size: 0.74rem; font-weight: 800; text-transform: uppercase; color: var(--c-muted); margin-bottom: 8px; }
.ats-file img { width: 100%; max-height: 200px; object-fit: contain; border-radius: 6px; background: #fff; margin-bottom: 8px; }
.ats-file__open, .ats-file__dl { font-weight: 800; color: var(--c-blue); }
.ats-card--track .ats__input { width: 100%; }
.ats-detail__actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 12px; }
.ats-save-msg { font-size: 0.85rem; font-weight: 700; color: var(--c-muted); }
.ats-save-msg--ok { color: #1E8E4E; }
.ats-save-msg--err { color: #C91F2E; }

/* ---- Responsive (ATS + formulario) ---- */
@media (max-width: 900px) {
  .ats__ternas, .ats__analytics { grid-template-columns: 1fr; }
  .ats__main { grid-template-columns: 1fr; }
  .ats__detail { position: static; }
  .ats__stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ats-card--match .ats-match__cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cv-apply__grid, .cv-checks, .cv-uploads, .ats-grid2, .ats-files { grid-template-columns: 1fr; }
  .ats__stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ats-rel__cards { grid-template-columns: 1fr; }
  .ats-rel__serv-label { width: 130px; }
  .ats__toolbar { align-items: stretch; }
  .ats__filters { flex-direction: column; }
  .ats__input { width: 100%; }
  .ats-detail__head { flex-direction: column; }
}
