/* ============================================================
   SISTEMA DE DISEÑO — ESTRATEGIA CONSULTORA
   Bolsa de Trabajo Interna
   
   Paleta extraída de estrategiaconsultora.com:
   • Navy profundo  #1C3A52  (color corporativo principal)
   • Teal/verde     #2A6E6E  (secundario)
   • Naranja        #E8872B  (acento cálido — CTA y destacados)
   • Crema/warm     #F6F4F0  (fondo público)
   • Gris cálido    #4A5568  (texto)
   
   Tipografía:
   • Display: Playfair Display (elegancia consultora)
   • Body: Plus Jakarta Sans (legible, moderno)
   • Mono: JetBrains Mono
   ============================================================ */

/* ── IMPORTAR FUENTES ─────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,500;0,600;1,500&family=Plus+Jakarta+Sans:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── TOKENS GLOBALES ──────────────────────────────────────── */
:root {
  /* Brand colors */
  --ec-navy:      #1C3A52;
  --ec-navy-dark: #122838;
  --ec-navy-mid:  #254D6B;
  --ec-teal:      #2A6E6E;
  --ec-teal-lt:   #3D8F8F;
  --ec-orange:    #E8872B;
  --ec-orange-dk: #C96D18;
  --ec-orange-lt: rgba(232,135,43,.12);
  --ec-orange-b:  rgba(232,135,43,.35);

  /* Neutrals cálidos */
  --bg:           #F6F4F0;
  --bg2:          #EDE9E3;
  --surface:      #FFFFFF;
  --ink:          #1C2B3A;
  --ink2:         #3D4F63;
  --muted:        #718096;
  --subtle:       #A0AFC0;

  /* Borders */
  --border:       rgba(28,58,82,.09);
  --border2:      rgba(28,58,82,.18);

  /* Status */
  --green:        #1E7A5A;
  --green-bg:     rgba(30,122,90,.1);
  --amber:        #B8640A;
  --amber-bg:     rgba(184,100,10,.1);
  --red:          #C0392B;
  --red-bg:       rgba(192,57,43,.08);
  --blue:         #1A5FA8;
  --blue-bg:      rgba(26,95,168,.09);

  /* Shadows */
  --sh:     0 1px 3px rgba(28,58,82,.06), 0 2px 10px rgba(28,58,82,.05);
  --sh-lg:  0 8px 32px rgba(28,58,82,.12), 0 2px 8px rgba(28,58,82,.07);
  --sh-xl:  0 20px 60px rgba(28,58,82,.18);

  /* Radii */
  --r-sm:   6px;
  --r:      12px;
  --r-lg:   18px;
  --r-xl:   24px;
}


/* ════════════════════════════════════════════════════════════
   CSS PÚBLICO — public.css
   ════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.01em;
}
h1 { font-size: clamp(36px, 5.5vw, 72px); line-height: 1.1; }
h2 { font-size: clamp(22px, 2.8vw, 34px); }
h3 { font-size: 20px; }

/* ── NAV PÚBLICO ────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246,244,240,.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
}
.nav-logo-wrap {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.nav-logo-mark {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--ec-navy);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.nav-logo-img { width: 24px; height: 24px; object-fit: contain; }
.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 16px; font-weight: 600;
  color: var(--ec-navy); letter-spacing: -.01em;
}
.nav-logo-sub {
  font-size: 10px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .08em;
  display: block; margin-top: -2px;
}
.nav-links {
  list-style: none; display: flex; gap: 24px; align-items: center;
}
.nav-links a {
  text-decoration: none; font-size: 13px; font-weight: 500;
  color: var(--muted); transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ec-navy); }
.nav-cta {
  padding: 8px 18px; border-radius: 100px;
  background: var(--ec-orange); color: #fff !important;
  font-weight: 600 !important; font-size: 13px !important;
  transition: background .2s, transform .2s !important;
}
.nav-cta:hover { background: var(--ec-orange-dk) !important; transform: translateY(-1px); }

/* ── HERO ───────────────────────────────────────────────── */
.hero {
  max-width: 1200px; margin: 0 auto;
  padding: 80px 32px 64px;
  display: grid; grid-template-columns: 1fr 400px;
  gap: 60px; align-items: center;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding: 52px 20px 40px; } }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 14px; border-radius: 100px;
  background: var(--ec-orange-lt); border: 1px solid var(--ec-orange-b);
  font-size: 11px; font-weight: 600; letter-spacing: .09em;
  text-transform: uppercase; color: var(--ec-orange-dk);
  margin-bottom: 20px;
}
.hero-eyebrow-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ec-orange);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.7)} }

.hero-title { margin-bottom: 18px; }
.hero-title em {
  font-style: italic; color: var(--ec-orange);
  position: relative;
}
.hero-title em::after {
  content: ''; position: absolute; bottom: 2px; left: 0; right: 0;
  height: 2px; background: var(--ec-orange); opacity: .35; border-radius: 100px;
}
.hero-sub {
  font-size: 17px; font-weight: 300; color: var(--ink2);
  line-height: 1.75; max-width: 520px; margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Botones principales */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 100px;
  background: var(--ec-orange); color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; font-weight: 600; border: none; cursor: pointer;
  box-shadow: 0 4px 18px rgba(232,135,43,.35);
  transition: all .2s;
}
.btn-primary:hover { background: var(--ec-orange-dk); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(232,135,43,.4); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: 100px;
  background: transparent; color: var(--ec-navy);
  border: 1.5px solid var(--border2);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; font-weight: 500; cursor: pointer;
  transition: all .2s;
}
.btn-secondary:hover { background: var(--bg2); border-color: var(--ec-navy); }

/* Hero stat cards */
.hero-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 18px 16px;
  box-shadow: var(--sh);
  animation: fadeUp .5s ease both;
}
.stat-card:nth-child(2) { animation-delay: .1s; }
.stat-card:nth-child(3) { animation-delay: .2s; }
.stat-card:nth-child(4) { animation-delay: .3s; }
@keyframes fadeUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
.stat-val {
  font-family: 'Playfair Display', serif; font-size: 36px;
  color: var(--ec-navy); line-height: 1; margin-bottom: 4px;
}
.stat-val span { font-size: 20px; color: var(--ec-orange); }
.stat-lbl { font-size: 12px; color: var(--muted); font-weight: 500; }

/* ── BUSCADOR ───────────────────────────────────────────── */
.search-section {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px 32px;
}
.search-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 6px;
  box-shadow: var(--sh-lg);
  display: flex; gap: 6px; flex-wrap: wrap;
}
.search-field {
  flex: 1; min-width: 220px;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: var(--r);
  background: var(--bg); border: none; outline: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; color: var(--ink); cursor: text;
}
.search-field:focus-within { background: var(--bg2); }
.search-field input {
  flex: 1; border: none; background: transparent;
  font-family: inherit; font-size: 14px; color: var(--ink); outline: none;
}
.search-field input::placeholder { color: var(--muted); }
.search-divider { width: 1px; background: var(--border); align-self: stretch; margin: 4px 0; }
.search-btn {
  padding: 12px 28px; border-radius: var(--r);
  background: var(--ec-navy); color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; font-weight: 600; border: none; cursor: pointer;
  transition: background .2s;
  white-space: nowrap;
}
.search-btn:hover { background: var(--ec-navy-mid); }

/* ── FILTROS CHIPS ─────────────────────────────────────── */
.filters-bar {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px 20px;
  display: flex; gap: 7px; flex-wrap: wrap;
}
.chip {
  padding: 6px 14px; border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px; font-weight: 500; color: var(--muted);
  cursor: pointer; text-decoration: none;
  transition: all .17s;
}
.chip:hover { border-color: var(--ec-navy); color: var(--ec-navy); }
.chip.active { background: var(--ec-navy); color: #fff; border-color: var(--ec-navy); }
.chip.accent-chip { background: var(--ec-orange-lt); color: var(--ec-orange-dk); border-color: var(--ec-orange-b); }
.chip.accent-chip.active { background: var(--ec-orange); color: #fff; border-color: var(--ec-orange); }

/* ── TARJETA DE PUESTO ─────────────────────────────────── */
.jobs-section {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px 80px;
}
.jobs-header {
  display: flex; align-items: baseline;
  justify-content: space-between; margin-bottom: 20px;
}
.jobs-count { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 14px; color: var(--muted); }
.jobs-count strong { color: var(--ink); font-weight: 600; }

.jobs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }

.job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--sh);
  transition: all .22s cubic-bezier(.34,1.56,.64,1);
  animation: cardIn .5s ease both;
  cursor: pointer; position: relative; overflow: hidden;
}
.job-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--ec-navy), var(--ec-teal));
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.job-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: rgba(28,58,82,.2); }
.job-card:hover::before { transform: scaleX(1); }

@keyframes cardIn { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:translateY(0)} }
.job-card:nth-child(1){animation-delay:.04s} .job-card:nth-child(2){animation-delay:.08s}
.job-card:nth-child(3){animation-delay:.12s} .job-card:nth-child(4){animation-delay:.16s}
.job-card:nth-child(5){animation-delay:.20s} .job-card:nth-child(6){animation-delay:.24s}

.job-card.featured {
  background: var(--ec-navy);
  border-color: transparent;
  grid-column: span 2;
}
.job-card.featured::before { background: linear-gradient(90deg, var(--ec-orange), var(--ec-teal-lt)); }
.job-card.featured .card-title,
.job-card.featured .dept-badge { color: rgba(255,255,255,.9); }
.job-card.featured .card-meta span { color: rgba(255,255,255,.55); }
.job-card.featured .card-footer { border-top-color: rgba(255,255,255,.12); }

.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.dept-badge {
  padding: 3px 11px; border-radius: 100px;
  font-size: 10px; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase;
  background: rgba(28,58,82,.08); color: var(--ec-navy-mid);
}
.featured-pill {
  padding: 3px 10px; border-radius: 100px;
  font-size: 10px; font-weight: 600;
  background: rgba(232,135,43,.2); color: #E8872B;
  display: inline-flex; align-items: center; gap: 4px;
  margin-bottom: 10px;
}
.card-title { font-family: 'Playfair Display', serif; font-size: 20px; line-height: 1.25; margin-bottom: 10px; }
.card-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.card-meta span {
  font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 5px;
}
.card-meta .meta-icon { width: 14px; height: 14px; opacity: .6; flex-shrink: 0; }
.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--border);
}
.app-count { font-size: 11px; color: var(--muted); }

.btn-apply {
  padding: 8px 18px; border-radius: 100px;
  background: var(--ec-orange); color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 12px; font-weight: 600;
  border: none; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px;
  transition: all .18s;
}
.btn-apply:hover { background: var(--ec-orange-dk); transform: translateX(3px); }
.btn-apply-big {
  display: block; width: 100%; text-align: center;
  padding: 14px; border-radius: 100px; margin-top: 14px;
  background: var(--ec-orange); color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px; font-weight: 600; text-decoration: none; border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(232,135,43,.3);
  transition: all .2s;
}
.btn-apply-big:hover { background: var(--ec-orange-dk); transform: translateY(-1px); }

.expiry-badge {
  font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 100px;
  background: var(--green-bg); color: var(--green);
}
.expiry-badge.urgent { background: var(--red-bg); color: var(--red); }

/* ── PAGINACIÓN ─────────────────────────────────────────── */
.pagination { display: flex; gap: 5px; justify-content: center; margin-top: 40px; }
.page-btn {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  display: grid; place-items: center; text-decoration: none;
  font-size: 13px; font-weight: 500; color: var(--muted);
  border: 1px solid var(--border); background: var(--surface); transition: all .15s;
}
.page-btn:hover, .page-btn.active {
  background: var(--ec-navy); color: #fff; border-color: var(--ec-navy);
}

/* ── JOB DETAIL ─────────────────────────────────────────── */
.job-detail-inner { max-width: 1100px; margin: 0 auto; padding: 40px 32px 80px; }
.back-link a { color: var(--muted); text-decoration: none; font-size: 13px; display: inline-flex; align-items: center; gap: 5px; }
.back-link a:hover { color: var(--ec-navy); }
.job-header { margin: 24px 0 32px; }
.job-header .dept-badge { margin-bottom: 12px; }
.job-title { font-size: clamp(28px, 4vw, 46px); margin-bottom: 16px; }
.job-meta-bar { display: flex; gap: 20px; flex-wrap: wrap; }
.job-meta-bar .meta-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--muted);
}
.meta-item svg { width: 15px; height: 15px; color: var(--ec-teal); flex-shrink: 0; }
.job-body { display: grid; grid-template-columns: 1fr 320px; gap: 40px; margin-top: 28px; }
@media (max-width: 800px) { .job-body { grid-template-columns: 1fr; } }
.wysiwyg { font-size: 15px; line-height: 1.8; color: var(--ink2); }
.wysiwyg p { margin-bottom: 14px; }
.wysiwyg ul { padding-left: 20px; margin-bottom: 14px; }
.wysiwyg li { margin-bottom: 6px; }
.wysiwyg h3 { font-size: 17px; margin: 24px 0 10px; color: var(--ec-navy); }

.apply-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh); margin-bottom: 14px;
}
.apply-card-header {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Playfair Display', serif; font-size: 17px;
  color: var(--ec-navy); margin-bottom: 12px;
}
.apply-note { font-size: 11px; color: var(--muted); text-align: center; margin-top: 8px; }

/* ── FORMULARIO DE POSTULACIÓN ──────────────────────────── */
.form-section {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden; margin-bottom: 16px;
}
.form-section-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; background: var(--ec-navy);
}
.section-step {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.15); border: 1.5px solid rgba(255,255,255,.4);
  color: #fff; font-size: 12px; font-weight: 600;
  display: grid; place-items: center; flex-shrink: 0;
}
.section-title { font-size: 14px; font-weight: 600; color: #fff; }
.section-sub { font-size: 11px; color: rgba(255,255,255,.6); margin-top: 1px; }
.form-body { padding: 20px; }
.fg { margin-bottom: 14px; }
.fl {
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; display: block;
}
.fl .req { color: var(--ec-orange); }
.fi, .fsel, .fta {
  width: 100%; padding: 10px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s; appearance: none;
}
.fi:focus, .fsel:focus, .fta:focus {
  border-color: var(--ec-navy);
  box-shadow: 0 0 0 3px rgba(28,58,82,.1);
}
.fi::placeholder, .fta::placeholder { color: var(--subtle); font-weight: 300; }
.fta { resize: vertical; min-height: 90px; }
.fsel-w { position: relative; }
.fsel-w::after {
  content: ''; position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid var(--muted); pointer-events: none;
}
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.frow3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.hint { font-size: 11px; color: var(--muted); margin-top: 5px; }
.btn-submit {
  width: 100%; padding: 15px; border-radius: 100px;
  background: var(--ec-orange); color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px; font-weight: 700; border: none; cursor: pointer;
  box-shadow: 0 4px 18px rgba(232,135,43,.35);
  transition: all .2s; margin-top: 8px;
}
.btn-submit:hover { background: var(--ec-orange-dk); transform: translateY(-1px); }

/* ── SEGUIMIENTO / TRACKING ─────────────────────────────── */
.tracking-page { max-width: 540px; margin: 60px auto; padding: 0 20px 80px; text-align: center; }
.tracking-token-input {
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px; letter-spacing: .1em; text-align: center;
  text-transform: uppercase;
}
.timeline-step {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: var(--r); border: 1px solid var(--border);
  background: var(--surface); margin-bottom: 7px;
  transition: all .2s;
}
.timeline-step.current {
  border-color: var(--ec-orange); background: var(--ec-orange-lt);
}
.timeline-step.done { border-color: var(--green-bg); }
.step-icon {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--bg2); font-size: 13px;
}
.timeline-step.done .step-icon { background: var(--green-bg); }
.timeline-step.current .step-icon { background: var(--ec-orange-lt); }
.step-lbl { font-size: 13px; font-weight: 500; flex: 1; }
.step-date { font-size: 11px; color: var(--muted); }

/* ── ALERTS ─────────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: var(--r-sm); font-size: 13px; margin-bottom: 16px; }
.alert-success { background: var(--green-bg); color: var(--green); border: 1px solid rgba(30,122,90,.2); }
.alert-error { background: var(--red-bg); color: var(--red); border: 1px solid rgba(192,57,43,.2); }

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  background: var(--ec-navy-dark); color: rgba(255,255,255,.65);
  padding: 32px;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-inner p, .footer-inner a { font-size: 12px; color: rgba(255,255,255,.45); text-decoration: none; }
.footer-logo {
  font-family: 'Playfair Display', serif; font-size: 15px;
  color: #fff; font-weight: 600;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-inner { padding: 12px 16px; }
  .hero { padding: 44px 16px 36px; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .search-section, .filters-bar, .jobs-section { padding-left: 16px; padding-right: 16px; }
  .jobs-grid { grid-template-columns: 1fr; }
  .job-card.featured { grid-column: span 1; }
  .search-card { flex-direction: column; }
}

/* ── UPLOAD ZONES ───────────────────────────────────────── */
.upload-zone {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 24px; border: 2px dashed var(--border2); border-radius: var(--r);
  cursor: pointer; transition: all .2s; text-align: center; color: var(--muted);
  font-size: 13px;
}
.upload-zone:hover { border-color: var(--ec-orange); background: var(--ec-orange-lt); color: var(--ec-orange-dk); }
.upload-zone.uploaded { border-color: var(--green); background: var(--green-bg); color: var(--green); }

/* ── PRIVACY NOTICE ─────────────────────────────────────── */
.privacy-notice {
  font-size: 12px; color: var(--muted); line-height: 1.6;
  padding: 12px 16px; border-radius: var(--r-sm);
  background: var(--bg2); border-left: 3px solid var(--ec-teal);
  margin-bottom: 16px;
}


/* ════════════════════════════════════════════════════════════
   CSS ADMIN — admin.css
   ════════════════════════════════════════════════════════════ */

/* ── SHELL / LAYOUT ─────────────────────────────────────── */
.shell { display: flex; height: 100vh; overflow: hidden; }

/* ── SIDEBAR ADMIN ──────────────────────────────────────── */
.sidebar {
  width: 240px; flex-shrink: 0;
  background: var(--ec-navy-dark);
  border-right: 1px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.sb-logo {
  padding: 20px 18px 18px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.sb-logo-mark {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  background: var(--ec-orange);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sb-logo-mark img { width: 22px; height: 22px; object-fit: contain; }
.sb-logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 15px; font-weight: 600; color: #fff; letter-spacing: -.01em;
}
.sb-logo-sub { font-size: 10px; color: rgba(255,255,255,.35); letter-spacing: .07em; margin-top: 1px; }

.sb-section { padding: 10px 8px 4px; }
.sb-section-label {
  font-size: 9px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: rgba(255,255,255,.28);
  padding: 0 10px; margin-bottom: 4px;
}
.sb-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--r-sm);
  color: rgba(255,255,255,.45); text-decoration: none;
  font-size: 13px; font-weight: 500;
  transition: all .15s; margin-bottom: 1px;
}
.sb-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.sb-item:hover { background: rgba(255,255,255,.07); color: rgba(255,255,255,.8); }
.sb-item.active {
  background: rgba(232,135,43,.15); color: #fff;
  border-left: 2.5px solid var(--ec-orange); padding-left: 7.5px;
}
.sb-item.active svg { color: var(--ec-orange); }
.sb-badge {
  margin-left: auto; padding: 2px 7px; border-radius: 100px;
  background: var(--ec-orange); color: #fff;
  font-size: 10px; font-weight: 700;
}
.sb-divider { height: 1px; background: rgba(255,255,255,.06); margin: 6px 10px; }
.sb-user {
  margin-top: auto; padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; gap: 10px;
}
.sb-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--ec-orange), var(--ec-teal));
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.sb-user-name { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.85); }
.sb-user-role { font-size: 10px; color: rgba(255,255,255,.35); }
.sb-logout {
  margin-left: auto; color: rgba(255,255,255,.3); text-decoration: none;
  font-size: 16px; transition: color .15s;
}
.sb-logout:hover { color: rgba(255,255,255,.7); }

/* ── MAIN AREA ──────────────────────────────────────────── */
.admin-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

/* ── TOPBAR ADMIN ───────────────────────────────────────── */
.admin-topbar {
  height: 56px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 28px;
  background: rgba(246,244,240,.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; color: var(--muted);
}
.breadcrumb .sep { opacity: .35; }
.breadcrumb .current { color: var(--ec-navy); font-weight: 600; }
.topbar-actions { display: flex; gap: 8px; }

/* ── CONTENT ────────────────────────────────────────────── */
.admin-content { flex: 1; overflow-y: auto; padding: 24px 28px; }
.page-header { margin-bottom: 24px; }
.page-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 26px; color: var(--ec-navy);
}
.page-subtitle { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ── BOTONES ADMIN ──────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--r-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px; font-weight: 500; cursor: pointer;
  border: none; text-decoration: none; transition: all .18s;
}
.btn-primary-admin {
  background: var(--ec-navy); color: #fff;
}
.btn-primary-admin:hover { background: var(--ec-navy-mid); transform: translateY(-1px); }
.btn-orange {
  background: var(--ec-orange); color: #fff;
  box-shadow: 0 3px 12px rgba(232,135,43,.3);
}
.btn-orange:hover { background: var(--ec-orange-dk); transform: translateY(-1px); }
.btn-ghost-admin {
  background: transparent; color: var(--ink);
  border: 1px solid var(--border);
}
.btn-ghost-admin:hover { background: var(--bg2); }

/* ── KPIs ───────────────────────────────────────────────── */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.kpi-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 18px; box-shadow: var(--sh);
  position: relative; overflow: hidden;
}
.kpi-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--ec-navy), var(--ec-teal));
}
.kpi-icon {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  display: grid; place-items: center; margin-bottom: 12px;
}
.kpi-val {
  font-family: 'Playfair Display', serif;
  font-size: 32px; line-height: 1; color: var(--ec-navy); margin-bottom: 4px;
}
.kpi-lbl { font-size: 12px; color: var(--muted); font-weight: 500; }
.kpi-delta { font-size: 11px; font-weight: 600; margin-top: 6px; }
.delta-up { color: var(--green); }
.delta-dn { color: var(--red); }

/* ── DASHBOARD GRID ─────────────────────────────────────── */
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── PANELS ─────────────────────────────────────────────── */
.panel {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); box-shadow: var(--sh); overflow: hidden;
}
.panel-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px 12px; border-bottom: 1px solid var(--border);
}
.panel-title {
  font-size: 13px; font-weight: 700; color: var(--ec-navy);
  display: flex; align-items: center; gap: 8px;
}
.panel-title-icon {
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--ec-orange-lt); display: grid; place-items: center;
}
.panel-title-icon svg { width: 12px; height: 12px; color: var(--ec-orange); }
.panel-action {
  font-size: 12px; color: var(--ec-teal); font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.panel-action:hover { color: var(--ec-navy); }
.panel-body { padding: 16px 18px; }

/* ── APP LIST ───────────────────────────────────────────── */
.app-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 18px; border-bottom: 1px solid rgba(28,58,82,.05);
  transition: background .12s;
}
.app-item:last-child { border-bottom: none; }
.app-item:hover { background: rgba(28,58,82,.02); }
.app-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.app-info { flex: 1; min-width: 0; }
.app-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-role { font-size: 11px; color: var(--muted); margin-top: 1px; }
.app-time { font-size: 11px; color: var(--subtle); }

/* ── FUNNEL ─────────────────────────────────────────────── */
.funnel-list { padding: 14px 18px; }
.funnel-row { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.funnel-row:last-child { margin-bottom: 0; }
.funnel-label { font-size: 12px; font-weight: 500; color: var(--ink2); width: 130px; flex-shrink: 0; }
.funnel-track { flex: 1; height: 22px; border-radius: 5px; background: var(--bg2); overflow: hidden; }
.funnel-fill { height: 100%; border-radius: 5px; transition: width .6s ease; }
.funnel-num { font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 500; width: 28px; text-align: right; flex-shrink: 0; }

/* ── EXPIRY / ACTIVITY ──────────────────────────────────── */
.expiry-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px; border-bottom: 1px solid rgba(28,58,82,.05);
}
.expiry-item:last-child { border-bottom: none; }
.expiry-title { font-size: 13px; font-weight: 600; }
.expiry-meta { font-size: 11px; color: var(--muted); margin-top: 1px; }
.expiry-badge { font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 100px; background: var(--green-bg); color: var(--green); }
.expiry-badge.urgent { background: var(--red-bg); color: var(--red); }

.activity-item { display: flex; gap: 12px; padding: 10px 18px; border-bottom: 1px solid rgba(28,58,82,.04); }
.activity-item:last-child { border-bottom: none; }
.activity-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.activity-text { font-size: 12px; color: var(--ink2); line-height: 1.5; }
.activity-time { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ── TABLE ──────────────────────────────────────────────── */
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th {
  padding: 10px 16px; text-align: left;
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--border);
  background: rgba(28,58,82,.02);
}
.admin-table td { padding: 12px 16px; border-bottom: 1px solid rgba(28,58,82,.04); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(28,58,82,.015); }
.job-name-cell { font-weight: 600; font-size: 13px; color: var(--ec-navy); }
.job-sub-cell { font-size: 11px; color: var(--muted); margin-top: 2px; }
.table-empty { text-align: center; color: var(--muted); padding: 32px; font-size: 13px; }

/* ── STATUS PILLS ───────────────────────────────────────── */
.status-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 100px; font-size: 11px; font-weight: 600;
}
.status-dot { width: 5px; height: 5px; border-radius: 50%; }
.s-published { background: var(--green-bg); color: var(--green); }
.s-published .status-dot { background: var(--green); box-shadow: 0 0 5px rgba(30,122,90,.5); }
.s-draft { background: rgba(28,58,82,.08); color: var(--muted); }
.s-draft .status-dot { background: var(--muted); }
.s-paused { background: var(--amber-bg); color: var(--amber); }
.s-paused .status-dot { background: #E8872B; }
.s-closed { background: var(--red-bg); color: var(--red); }
.s-closed .status-dot { background: var(--red); }

/* ── PROGRESS BAR ───────────────────────────────────────── */
.progress-wrap { display: flex; align-items: center; gap: 8px; }
.progress-bar { flex: 1; height: 4px; border-radius: 100px; background: var(--bg2); overflow: hidden; min-width: 50px; }
.progress-fill { height: 100%; border-radius: 100px; background: var(--ec-orange); }

/* ── ACTION BTNS TABLA ──────────────────────────────────── */
.action-row { display: flex; gap: 5px; flex-wrap: wrap; }
.act-btn {
  padding: 5px 11px; border-radius: var(--r-sm);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 11px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border); background: transparent;
  color: var(--muted); text-decoration: none;
  transition: all .14s; display: inline-flex; align-items: center;
}
.act-btn:hover { background: var(--bg2); color: var(--ec-navy); border-color: var(--ec-navy); }
.act-btn.primary {
  background: var(--ec-navy); color: #fff; border-color: var(--ec-navy);
}
.act-btn.primary:hover { background: var(--ec-navy-mid); }
.act-btn.orange { background: var(--ec-orange); color: #fff; border-color: var(--ec-orange); }
.act-btn.orange:hover { background: var(--ec-orange-dk); }

/* ── STATUS TABS ────────────────────────────────────────── */
.status-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 20px; overflow-x: auto; }
.status-tab {
  padding: 10px 16px; font-size: 13px; font-weight: 500;
  color: var(--muted); text-decoration: none;
  border-bottom: 2px solid transparent; transition: all .15s; white-space: nowrap;
}
.status-tab:hover { color: var(--ec-navy); }
.status-tab.on { color: var(--ec-orange); border-bottom-color: var(--ec-orange); font-weight: 700; }
.tab-count {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--muted); color: #fff;
  font-size: 10px; font-weight: 700; margin-left: 5px;
}
.status-tab.on .tab-count { background: var(--ec-orange); }

/* ── FORMS ADMIN ────────────────────────────────────────── */
.fg { margin-bottom: 14px; }
.fl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; display: block; }
.fl .req { color: var(--ec-orange); }
.fi,.fsel,.fta {
  width: 100%; padding: 9px 13px; border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px; color: var(--ink); outline: none;
  transition: border-color .2s, box-shadow .2s; appearance: none;
}
.fi:focus,.fsel:focus,.fta:focus {
  border-color: var(--ec-navy);
  box-shadow: 0 0 0 3px rgba(28,58,82,.1);
}
.fi::placeholder,.fta::placeholder { color: var(--subtle); font-weight: 300; }
.fta { resize: vertical; min-height: 80px; }
.fsel-w { position: relative; }
.fsel-w::after { content: ''; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--muted); pointer-events: none; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.frow3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

/* ── TOGGLE ─────────────────────────────────────────────── */
.tog { position: relative; width: 38px; height: 21px; cursor: pointer; }
.tog input { opacity: 0; width: 0; height: 0; position: absolute; }
.tog-track { position: absolute; inset: 0; border-radius: 100px; background: var(--bg2); border: 1px solid var(--border); transition: background .2s; }
.tog input:checked ~ .tog-track { background: var(--ec-navy); border-color: var(--ec-navy); }
.tog-thumb { position: absolute; top: 2px; left: 2px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: transform .2s; }
.tog input:checked ~ .tog-thumb { transform: translateX(17px); }
.tog-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(28,58,82,.05); }
.tog-row:last-child { border-bottom: none; }
.tog-lbl { font-size: 13px; font-weight: 600; color: var(--ec-navy); }
.tog-sub { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ── SEMÁFORO ───────────────────────────────────────────── */
.sem { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 100px; font-size: 10px; font-weight: 700; }
.sem-r { background: var(--red-bg); color: var(--red); }
.sem-r .sem-dot { background: var(--red); }
.sem-a { background: var(--amber-bg); color: var(--amber); }
.sem-a .sem-dot { background: #E8872B; }
.sem-g { background: var(--green-bg); color: var(--green); }
.sem-g .sem-dot { background: var(--green); box-shadow: 0 0 5px rgba(30,122,90,.5); }
.sem-dot { width: 6px; height: 6px; border-radius: 50%; }

/* ── STARS ──────────────────────────────────────────────── */
.stars-wrap { display: flex; gap: 4px; }
.star-btn { font-size: 22px; background: none; border: none; cursor: pointer; color: var(--bg2); transition: all .15s; }
.star-btn.on { color: var(--ec-orange); }
.star-btn:hover { color: var(--ec-orange); transform: scale(1.15); }

/* ── MATCH SCORE ────────────────────────────────────────── */
.match-score {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 700;
}
.ms-hi { background: var(--green-bg); color: var(--green); border: 2px solid rgba(30,122,90,.25); }
.ms-md { background: var(--ec-orange-lt); color: var(--ec-orange-dk); border: 2px solid var(--ec-orange-b); }
.ms-lo { background: var(--bg2); color: var(--muted); border: 2px solid var(--border); }

/* ── MISC ───────────────────────────────────────────────── */
.mono { font-family: 'JetBrains Mono', monospace; font-size: 12px; }
.filter-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.role-badge { padding: 3px 9px; border-radius: 100px; font-size: 11px; font-weight: 700; }
.role-superadmin { background: rgba(28,58,82,.1); color: var(--ec-navy); }
.role-recruiter { background: var(--ec-orange-lt); color: var(--ec-orange-dk); }
.role-viewer { background: rgba(42,110,110,.1); color: var(--ec-teal); }
.log-row { display: flex; align-items: flex-start; gap: 12px; padding: 10px 18px; border-bottom: 1px solid rgba(28,58,82,.04); }
.log-row:last-child { border-bottom: none; }
.log-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.log-text { flex: 1; font-size: 12px; color: var(--ink2); line-height: 1.5; }
.log-meta { font-size: 11px; color: var(--muted); text-align: right; }

/* ── ALERTS ADMIN ───────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: var(--r-sm); font-size: 13px; margin-bottom: 16px; }
.alert-success { background: var(--green-bg); color: var(--green); border: 1px solid rgba(30,122,90,.2); }
.alert-error { background: var(--red-bg); color: var(--red); border: 1px solid rgba(192,57,43,.2); }

/* ── LOGIN ADMIN ────────────────────────────────────────── */
.login-body {
  display: grid; place-items: center; min-height: 100vh;
  background: var(--ec-navy-dark);
}
.login-card {
  background: var(--surface); border-radius: var(--r-xl);
  padding: 44px; width: 100%; max-width: 420px;
  box-shadow: var(--sh-xl);
}
.login-logo-wrap {
  display: flex; align-items: center; gap: 12px; margin-bottom: 28px;
}
.login-logo-mark {
  width: 44px; height: 44px; border-radius: var(--r);
  background: var(--ec-navy); display: flex; align-items: center; justify-content: center;
}
.login-logo-mark img { width: 28px; height: 28px; object-fit: contain; }
.login-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px; font-weight: 600; color: var(--ec-navy);
}
.login-brand-sub { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.login-title { font-family: 'Playfair Display', serif; font-size: 22px; color: var(--ec-navy); margin-bottom: 6px; }
.login-sub { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.btn-login {
  width: 100%; padding: 13px; border-radius: 100px;
  background: var(--ec-orange); color: #fff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px; font-weight: 700; border: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(232,135,43,.35);
  transition: all .2s; margin-top: 8px;
}
.btn-login:hover { background: var(--ec-orange-dk); transform: translateY(-1px); }

/* ── PAGINATION ADMIN ───────────────────────────────────── */
.pagination { display: flex; gap: 5px; justify-content: center; margin-top: 24px; }
.page-btn { width: 34px; height: 34px; border-radius: var(--r-sm); display: grid; place-items: center; text-decoration: none; font-size: 13px; color: var(--muted); border: 1px solid var(--border); background: var(--surface); transition: all .15s; }
.page-btn:hover, .page-btn.active { background: var(--ec-navy); color: #fff; border-color: var(--ec-navy); }

/* ── RESPONSIVE ADMIN ───────────────────────────────────── */
@media (max-width: 1100px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } .dashboard-grid { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .sidebar { display: none; } .admin-content { padding: 16px; } .kpi-grid { grid-template-columns: 1fr 1fr; } }
