/* =========================================================
   BOLSA DE TRABAJO (pública) — /bolsa-de-trabajo
   Buscador al centro + lista de vacantes (se abren como acordeón).
   ========================================================= */
:root{
  --blue-900:#000850;
  --blue-700:#0015E0;
  --blue-600:#041cff;
  --blue-500:#3E50FF;
  --blue-300:#8992FF;
  --blue-100:#EAEFFF;
  --blue-50:#F5F7FF;
  --white:#FFFFFF;
  --ink:#0A0E38;
  --grey:#6670A6;
  --line:#DDE3FA;
  --serif:'Fraunces', serif;
  --sans:'Public Sans', sans-serif;
  --ease:cubic-bezier(.16,.84,.44,1);
}
*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  font-family:var(--sans); color:var(--ink); background:var(--white);
  -webkit-font-smoothing:antialiased; overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; cursor:pointer; border:none; background:none; color:inherit; }
ul{ list-style:none; }
input{ font-family:inherit; }
::selection{ background:var(--blue-600); color:var(--white); }
h1,h2,h3{ font-family:var(--serif); font-weight:500; letter-spacing:-.01em; }
.bt-page [hidden]{ display:none !important; }

.eyebrow{
  font-weight:600; font-size:12.5px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--blue-600); display:flex; align-items:center; justify-content:center; gap:10px;
}
.eyebrow-glasses{ width:30px; height:13px; flex-shrink:0; }

/* ---------- Hero + buscador ---------- */
.bt-hero{
  max-width:820px; margin:0 auto; padding:72px 24px 30px; text-align:center;
  display:flex; flex-direction:column; align-items:center;
}
.bt-hero > *{ animation:btUp .7s var(--ease) backwards; }
.bt-hero > :nth-child(2){ animation-delay:.06s; }
.bt-hero > :nth-child(3){ animation-delay:.12s; }
.bt-hero > :nth-child(4){ animation-delay:.18s; }
.bt-hero > :nth-child(5){ animation-delay:.24s; }
.bt-hero h1{ font-size:clamp(40px, 6vw, 64px); line-height:1.05; margin:16px 0 14px; }
.bt-hero h1 em{ font-style:italic; color:var(--blue-600); }
.bt-hero > p{ font-size:16px; color:var(--grey); line-height:1.6; max-width:560px; }

.bt-search{ position:relative; width:100%; max-width:640px; margin-top:34px; border-radius:100px; padding:2px; }
.bt-search-glow{
  position:absolute; inset:0; border-radius:inherit;
  background:conic-gradient(from var(--bt-angle, 0deg), var(--blue-600), var(--blue-300), #fff, var(--blue-500), var(--blue-600));
  animation:btSpin 4s linear infinite; opacity:.7; transition:opacity .3s var(--ease);
}
.bt-search:focus-within .bt-search-glow{ opacity:1; }
@property --bt-angle{ syntax:'<angle>'; inherits:false; initial-value:0deg; }
@keyframes btSpin{ to{ --bt-angle:360deg; } }
.bt-search-inner{
  position:relative; z-index:1; display:flex; align-items:center; gap:12px;
  padding:6px 8px 6px 22px; border-radius:100px; background:var(--white);
  box-shadow:0 20px 44px -22px rgba(4,28,255,.35);
}
.bt-search-inner > svg{ width:20px; height:20px; color:var(--blue-600); flex-shrink:0; }
.bt-search-inner input{
  flex:1; min-width:0; border:0; outline:none; background:transparent;
  padding:14px 0; font-size:15.5px; color:var(--ink);
}
.bt-search-inner input::placeholder{ color:var(--grey); }
.bt-search-inner input::-webkit-search-cancel-button{ display:none; }
.bt-search-clear{
  width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  color:var(--grey); background:var(--blue-50); flex-shrink:0; animation:btPop .3s cubic-bezier(.22,1.4,.36,1);
  transition:background .2s var(--ease), color .2s var(--ease);
}
.bt-search-clear:hover{ background:var(--blue-600); color:#fff; }
.bt-search-clear svg{ width:15px; height:15px; }

.bt-chips{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px; margin-top:20px; }
.bt-chip{
  padding:9px 16px; border-radius:100px; border:1.5px solid var(--line); background:var(--white);
  font-size:13px; font-weight:600; color:var(--grey);
  transition:background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.bt-chip:hover{ border-color:var(--blue-300); color:var(--ink); }
.bt-chip:active{ transform:scale(.95); }
.bt-chip.is-on{ background:var(--ink); border-color:var(--ink); color:var(--white); }
.bt-chip.is-pop{ animation:btPop .42s cubic-bezier(.22,1.4,.36,1); }

/* ---------- Lista ---------- */
.bt-list-wrap{ max-width:920px; margin:0 auto; padding:20px 24px 110px; }
.bt-count{ font-size:13px; font-weight:600; color:var(--grey); margin:0 4px 14px; }
.bt-list{ display:flex; flex-direction:column; gap:12px; }

.bt-job{
  border:1.5px solid var(--line); border-radius:22px; background:var(--white);
  transition:border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
  animation:btUp .5s var(--ease) backwards; animation-delay:calc(.25s + var(--i, 0) * 50ms);
}
.bt-job:hover{ border-color:var(--blue-300); box-shadow:0 18px 36px -24px rgba(4,28,255,.35); }
.bt-job.is-open{ border-color:var(--blue-600); box-shadow:0 22px 44px -26px rgba(4,28,255,.45); }
.bt-job.is-in{ animation:btUp .4s var(--ease) backwards; animation-delay:calc(var(--j, 0) * 40ms); }

.bt-job-head{
  width:100%; display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:16px;
  padding:18px 20px; text-align:left;
}
.bt-job-ico{
  width:46px; height:46px; border-radius:14px; display:flex; align-items:center; justify-content:center;
  background:var(--blue-50); color:var(--blue-600); flex-shrink:0;
  transition:background .25s var(--ease), color .25s var(--ease), transform .35s cubic-bezier(.22,1.4,.36,1);
}
.bt-job-ico svg{ width:22px; height:22px; }
.bt-job:hover .bt-job-ico, .bt-job.is-open .bt-job-ico{ background:var(--blue-600); color:#fff; transform:rotate(-6deg); }
.bt-job-main{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.bt-job-title{ font-family:var(--serif); font-size:20px; font-weight:500; line-height:1.2; color:var(--ink); }
.bt-job-meta{ display:flex; flex-wrap:wrap; gap:4px 14px; font-size:12.5px; font-weight:600; color:var(--grey); }
.bt-job-meta span{ display:inline-flex; align-items:center; gap:5px; }
.bt-job-meta svg{ width:13px; height:13px; }
.bt-job-when:empty{ display:none !important; }
.bt-job-tags{ display:flex; flex-wrap:wrap; gap:6px; }
.bt-tag{
  padding:3px 10px; border-radius:100px; background:var(--blue-50); color:var(--blue-700);
  font-size:11.5px; font-weight:700;
}
.bt-job-side{ display:flex; align-items:center; gap:14px; }
.bt-job-pay{ font-size:14px; font-weight:700; color:var(--ink); white-space:nowrap; text-align:right; }
.bt-job-caret{
  width:34px; height:34px; border-radius:50%; border:1.5px solid var(--line);
  display:flex; align-items:center; justify-content:center; color:var(--grey); flex-shrink:0;
  transition:transform .35s cubic-bezier(.22,1.4,.36,1), background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.bt-job-caret svg{ width:15px; height:15px; }
.bt-job.is-open .bt-job-caret{ transform:rotate(180deg); background:var(--blue-600); border-color:var(--blue-600); color:#fff; }

.bt-job-body{ display:grid; grid-template-rows:0fr; transition:grid-template-rows .4s var(--ease); }
.bt-job.is-open .bt-job-body{ grid-template-rows:1fr; }
.bt-job-body-inner{ min-height:0; overflow:hidden; padding:0 20px 0 82px; }
.bt-job.is-open .bt-job-body-inner{ padding-bottom:22px; }
.bt-job-body-inner > *{ opacity:0; transform:translateY(6px); transition:opacity .3s var(--ease), transform .3s var(--ease); }
.bt-job.is-open .bt-job-body-inner > *{ opacity:1; transform:none; transition-delay:.12s; }
.bt-job-desc{ border-top:1px solid var(--line); padding-top:16px; font-size:14.5px; line-height:1.65; color:var(--ink); }
.bt-job-desc p + p, .bt-job-desc p + ul, .bt-job-desc ul + p{ margin-top:10px; }
.bt-job-desc ul{ display:flex; flex-direction:column; gap:6px; margin-top:4px; }
.bt-job-desc li{ position:relative; padding-left:20px; }
.bt-job-desc li::before{ content:''; position:absolute; left:4px; top:.62em; width:7px; height:7px; border-radius:50%; background:var(--blue-600); }
.bt-job-facts{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:10px; margin:18px 0; }
.bt-job-facts div{ padding:12px 14px; border-radius:14px; background:var(--blue-50); min-width:0; }
.bt-job-facts dt{ font-size:10.5px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--grey); }
.bt-job-facts dd{ font-size:13px; font-weight:700; color:var(--ink); margin-top:3px; }
.bt-apply{
  display:inline-flex; align-items:center; gap:9px;
  padding:13px 24px; border-radius:100px; background:#25D366; color:#fff;
  font-size:13px; font-weight:700; letter-spacing:.02em;
  box-shadow:0 14px 28px -14px rgba(37,211,102,.7);
  transition:transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.bt-apply svg{ width:18px; height:18px; }
.bt-apply:hover{ transform:translateY(-2px); background:#1fbe5b; box-shadow:0 18px 32px -14px rgba(37,211,102,.8); }
.bt-apply:active{ transform:scale(.97); }

.bt-empty{
  margin-top:10px; padding:54px 24px; border:1.5px dashed var(--line); border-radius:22px; text-align:center;
  display:flex; flex-direction:column; align-items:center; gap:8px; animation:btUp .4s var(--ease);
}
.bt-empty-ico{ width:54px; height:54px; border-radius:16px; display:flex; align-items:center; justify-content:center; background:var(--blue-50); color:var(--blue-600); margin-bottom:4px; }
.bt-empty-ico svg{ width:26px; height:26px; }
.bt-empty b{ font-size:16px; }
.bt-empty p{ font-size:14px; color:var(--grey); }

@keyframes btUp{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:none; } }
@keyframes btPop{ 0%{ transform:scale(.9); } 60%{ transform:scale(1.06); } 100%{ transform:scale(1); } }

/* ---------- WhatsApp flotante (igual que el resto del sitio) ---------- */
.whatsapp-float{
  position:fixed; right:26px; bottom:26px; z-index:150;
  width:60px; height:60px; border-radius:50%; background:#25D366; color:#fff;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 16px 32px -12px rgba(37,211,102,.55);
  transition:transform .25s var(--ease), box-shadow .25s var(--ease);
}
.whatsapp-float:hover{ transform:translateY(-4px) scale(1.06); box-shadow:0 20px 38px -12px rgba(37,211,102,.7); }
.whatsapp-float svg{ width:29px; height:29px; position:relative; z-index:2; }
.whatsapp-float-ring{ position:absolute; inset:0; border-radius:50%; background:#25D366; animation:btWa 2.2s ease-out infinite; }
.whatsapp-float-ring.delay{ animation-delay:1.1s; }
@keyframes btWa{ 0%{ transform:scale(1); opacity:.55; } 100%{ transform:scale(2.1); opacity:0; } }
.whatsapp-float-tip{
  position:absolute; right:72px; top:50%; transform:translateY(-50%) translateX(6px);
  background:var(--ink); color:#fff; font-size:12.5px; font-weight:600; white-space:nowrap;
  padding:8px 14px; border-radius:8px; opacity:0; pointer-events:none;
  transition:opacity .25s var(--ease), transform .25s var(--ease);
}
.whatsapp-float:hover .whatsapp-float-tip{ opacity:1; transform:translateY(-50%) translateX(0); }

/* ---------- Responsive ---------- */
@media (max-width:720px){
  .bt-hero{ padding:48px 18px 20px; }
  .bt-hero > p{ font-size:14.5px; }
  .bt-search{ margin-top:26px; }
  .bt-search-inner{ padding:4px 6px 4px 16px; }
  .bt-search-inner input{ padding:12px 0; font-size:15px; }
  .bt-chips{ flex-wrap:nowrap; overflow-x:auto; justify-content:flex-start; width:calc(100% + 36px); margin-left:-18px; padding:0 18px 4px; scrollbar-width:none; }
  .bt-chips::-webkit-scrollbar{ display:none; }
  .bt-chip{ flex-shrink:0; }
  .bt-list-wrap{ padding:14px 16px 90px; }
  .bt-job-head{ grid-template-columns:minmax(0,1fr) auto; padding:16px; gap:12px; }
  .bt-job-ico{ display:none; }
  .bt-job-title{ font-size:18px; }
  .bt-job-side{ flex-direction:column; align-items:flex-end; gap:8px; }
  .bt-job-pay{ font-size:12.5px; white-space:normal; max-width:120px; }
  .bt-job-body-inner{ padding:0 16px; }
  .bt-job.is-open .bt-job-body-inner{ padding-bottom:18px; }
  .bt-job-facts{ grid-template-columns:repeat(2, minmax(0,1fr)); }
  .bt-apply{ width:100%; justify-content:center; }
  .whatsapp-float{ right:16px; bottom:16px; width:54px; height:54px; }
  .whatsapp-float-tip{ display:none; }
}
@media (prefers-reduced-motion:reduce){
  *{ animation-duration:.001ms !important; transition-duration:.001ms !important; }
  html{ scroll-behavior:auto; }
}