/* Portal publico de ofertas de una empresa — /ofertas-de-trabajo-en/{empresa}
   ===========================================================================
   Implementa el diseno «Ofertas de empresa · Escritorio». Se sirve en
   /v2/css/portal-ofertas.css y lo carga application/views/companypage/main.php.

   TODO el color de marca entra por variables que escribe la vista desde
   App\Support\Portal\ColorDeMarca, que a su vez sale de lo que la empresa
   parametriza en Administrador > Personalizar. Aqui no hay ni un color de
   marca escrito a mano: si lo hubiera, la landing de todas las empresas
   saldria igual.

   Lo que costo aprender y conviene no repetir:

     · La pagina vive dentro de #wrapper > #page-wrapper de Inspinia, que traen
       relleno y margenes propios. Sin neutralizarlos nada queda donde se pone.
     · Bootstrap 3 esta cargado en todo el sitio. Lo que llega por AJAX trae
       .row con margenes negativos y .col-* flotados; el bloque «Ofertas para
       ti» flotaba a la izquierda y empujaba la pagina entera fuera de la
       pantalla. Por eso cada contenedor de contenido inyectado abre su propio
       contexto con flow-root.
     · El plugin chosen sustituye un <select> y deja un hermano de mas; dentro
       de una rejilla eso es una celda fantasma. El selector de ciudad de esta
       pagina no lo usa.
     · El pie y el modal de politica de datos los pinta main/mainfooter: se
       visten desde aqui en vez de duplicarlos, para no perder
       ShowPoliticaEmpresa(). */

/* ─────────────────────────────────────────────────────────────────────────
   Tokens
   ───────────────────────────────────────────────────────────────────────── */

.po {
  /* Neutros del diseno. */
  --papel:   #F5F7FA;
  --blanco:  #FFFFFF;
  --tinta:   #21384D;
  --tenue:   #6B8299;
  --linea:   #DBE6EF;
  --linea-2: #EDF2F7;

  /* Estados, fijos: no son color de marca. */
  --urgente-fondo: #FDF2E2;
  --urgente-texto: #B8650F;

  /* La paleta del diseno, tal cual. Es la que se ve hoy en todas las
     empresas; la vista puede pisarla con la que cada una parametrice, pero
     ese cambio esta apagado a proposito (ver $ColorPorEmpresa en
     application/views/companypage/main.php). */
  --marca:           #1F4E78;
  --marca-hover:     #1B68A8;
  --marca-claro:     #E7F2FB;
  --marca-borde:     #1F7AC4;
  --marca-degradado: #1F7AC4;
  --marca-texto:     #FFFFFF;
  --marca-rgb:       31, 78, 120;
  --enlace:          #1F7AC4;
  --accion:          #1AB394;
  --accion-hover:    #15997E;
  --accion-claro:    #E3F7F2;
  --accion-texto:    #FFFFFF;
  --accion-rgb:      26, 179, 148;

  /* Los degradados. Cada uno arranca con el valor que tiene hoy en el diseno;
     si la empresa parametriza el suyo (Administrador > Personalizar >
     «Colores de degradados»), la vista los pisa los tres de una vez. */
  --grad-a:     #006F80;   /* encabezado de la ficha de la vacante */
  --grad-b:     #1F5A86;
  --grad-c:     #1F4E78;
  --velo-a-rgb: 31, 78, 120;   /* velo sobre el banner del portal */
  --velo-b-rgb: 31, 78, 120;
  --cierre-a:   #1F4E78;   /* banda de cierre del portal */
  --cierre-b:   #2A6391;
  --cierre-c:   #1F7AC4;

  /* Las sugerencias del hero. Por defecto el azul de marca translucido, que
     es como las dibuja el diseno; sobre un banner rojo o claro no se leen, y
     para eso la empresa puede fijarlas en Administrador > Personalizar. */
  --chip-fondo:       rgba(31, 78, 120, .78);
  --chip-fondo-hover: rgba(31, 78, 120, .95);
  --chip-texto:       #FFFFFF;
  --chip-borde:       rgba(255, 255, 255, .38);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-pill: 999px;

  --sombra-card: 0 2px 6px rgba(67, 89, 113, .06), 0 1px 2px rgba(67, 89, 113, .04);
  --sombra-alta: 0 6px 18px rgba(67, 89, 113, .12);
  --sombra-flot: 0 14px 40px rgba(16, 34, 54, .35);

  --ancho: 1200px;
  --gutter: 32px;

  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: var(--tinta);
  -webkit-font-smoothing: antialiased;
}

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

/* ─────────────────────────────────────────────────────────────────────────
   Fuera el armazon de la plataforma
   ───────────────────────────────────────────────────────────────────────── */

body.po-fondo { background: #F5F7FA !important; margin: 0; overflow-x: hidden; }

body.po-fondo #wrapper,
body.po-fondo #page-wrapper {
  padding: 0 !important; margin: 0 !important; border: 0 !important;
  min-height: 0 !important; width: auto !important; background: transparent !important;
  float: none !important;
}

/* Inspinia pone overflow-x:hidden en #wrapper, y eso lo convierte en
   contenedor de desplazamiento: el encabezado y el panel de filtros dejan de
   pegarse al viewport. El recorte horizontal ya lo hace el body. */
body.po-fondo #wrapper { overflow-x: visible !important; }

body.po-fondo .footer.fixed { position: static !important; }
body.po-fondo .footer { clear: both; }

/* mainhead y mainfooter dejan sueltos dentro de #page-wrapper un .row con la
   barra blanca (oculta) y otro de 100 px de relleno antes del pie. Los
   margenes negativos de Bootstrap sacaban 15 px la pagina por cada lado, y el
   relleno quedaba de hueco debajo del pie propio del portal. */
body.po-fondo #page-wrapper > .row { margin-left: 0 !important; margin-right: 0 !important; }
body.po-fondo .po-pg ~ .row { display: none !important; }

/* Todo bloque que llega por AJAX abre su propio contexto de formato: si no,
   sus flotados de Bootstrap se llevan por delante el resto de la pagina. */
.po-contiene { display: flow-root; max-width: 100%; min-width: 0; }
.po-contiene[hidden] { display: none; }
.po-contiene .row { margin-left: 0; margin-right: 0; }
.po-contiene [class*="col-"] { padding-left: 0; padding-right: 0; float: none; width: auto; }

/* ─────────────────────────────────────────────────────────────────────────
   Armazon
   ───────────────────────────────────────────────────────────────────────── */

.po-pg { min-height: 100vh; background: var(--papel); display: flex; flex-direction: column; }

.po-wrap { max-width: var(--ancho); width: 100%; margin: 0 auto; padding: 0 var(--gutter); }

.po a { color: var(--enlace); }
.po a:hover, .po a:focus { color: var(--marca-hover); }

/* ─────────────────────────────────────────────────────────────────────────
   Piezas sueltas
   ───────────────────────────────────────────────────────────────────────── */

.po-i { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.po .po-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 8px 18px;
  border-radius: var(--r-sm); border: 1px solid transparent;
  background: var(--accion); color: var(--accion-texto);
  font: inherit; font-weight: 600; text-decoration: none;
  cursor: pointer; white-space: nowrap;
  transition: background .12s ease, color .12s ease, border-color .12s ease;
}
.po .po-btn:hover, .po .po-btn:focus { background: var(--accion-hover); color: var(--accion-texto); text-decoration: none; }

.po .po-btn.po-btn2 { background: var(--blanco); color: var(--enlace); border-color: var(--marca-borde); }
.po .po-btn.po-btn2:hover, .po .po-btn.po-btn2:focus { background: var(--marca-claro); color: var(--marca-hover); }

.po .po-btn.po-btn3 { background: transparent; color: var(--marca); }
.po .po-btn.po-btn3:hover, .po .po-btn.po-btn3:focus { background: var(--marca-claro); color: var(--marca-hover); }

/* El destello del diseno sobre el boton principal. */
.po-glow { position: relative; overflow: hidden; box-shadow: 0 4px 14px rgba(var(--accion-rgb), .45); }
.po-glow::after {
  content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  animation: po-shine 3.4s ease-in-out 1.5s infinite; pointer-events: none;
}

.po-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 600; white-space: nowrap;
}
.po-pill.po-urg { background: var(--urgente-fondo); color: var(--urgente-texto); }
.po-pill.po-new { background: var(--marca-claro); color: var(--marca-hover); }

.po-card {
  background: var(--blanco); border: 1px solid var(--linea);
  border-radius: var(--r-md); box-shadow: var(--sombra-card);
}

.po-in {
  width: 100%; height: 46px; padding: 0 14px 0 42px;
  border-radius: var(--r-sm); border: 1px solid var(--linea);
  background: var(--papel); font: inherit; color: var(--tinta);
}
.po input:focus, .po select:focus {
  outline: none; border-color: var(--marca) !important;
  box-shadow: 0 0 0 3px var(--marca-claro);
}

/* ─────────────────────────────────────────────────────────────────────────
   Encabezado
   ───────────────────────────────────────────────────────────────────────── */

.po-head { background: var(--blanco); border-bottom: 1px solid var(--linea); position: sticky; top: 0; z-index: 5; }
.po-head .po-wrap {
  min-height: 72px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 10px; padding-bottom: 10px;
}

.po .po-marca { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.po .po-marca:hover { text-decoration: none; }
.po-marca img { height: 46px; width: auto; max-width: 190px; object-fit: contain; display: block; }
.po-marca .po-sep { width: 1px; height: 30px; background: var(--linea); flex: none; }
.po-marca .po-nom { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.po-marca .po-nom b { color: var(--marca); font-weight: 800; }
.po-marca .po-nom span { font-size: 12px; color: var(--tenue); }

.po-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.po-sesion { display: flex; align-items: center; gap: 8px; }

/* ─────────────────────────────────────────────────────────────────────────
   Hero
   ───────────────────────────────────────────────────────────────────────── */

.po-hero { position: relative; overflow: hidden; color: var(--marca-texto); min-height: 540px; display: flex; align-items: stretch; }

/* El banner de cada empresa, con la misma dinamica de siempre: cubre el area
   y se centra, asi que escala a cualquier resolucion. */
.po-hero-foto {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; display: block;
  animation: po-kb 16s ease-in-out infinite alternate;
}

/* El velo de marca: deja ver la foto a la derecha y da fondo al texto. */
.po-hero-velo {
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
      rgba(var(--velo-a-rgb), .96) 0%,
      rgba(var(--velo-a-rgb), .88) 38%,
      rgba(var(--velo-b-rgb), .40) 68%,
      rgba(var(--velo-b-rgb), .08) 100%);
}

.po-hero .po-wrap {
  position: relative; display: flex; flex-direction: column;
  justify-content: center; gap: 18px;
  padding-top: 44px; padding-bottom: 64px;
}

.po-sello {
  align-self: flex-start; display: flex; align-items: center; gap: 14px;
  padding: 10px 16px 10px 10px; border-radius: var(--r-md);
  background: var(--blanco); box-shadow: var(--sombra-flot);
}
.po-sello img { height: 52px; width: auto; max-width: 180px; object-fit: contain; display: block; }
.po-sello .po-sep { width: 1px; height: 34px; background: var(--linea); flex: none; }
.po-sello .po-nom { display: flex; flex-direction: column; line-height: 1.25; color: var(--tinta); }
.po-sello .po-nom b { color: var(--marca); }
.po-sello .po-nom span { font-size: 12.5px; color: var(--tenue); }

.po-hero h1 {
  margin: 0; font-size: 50px; line-height: 1.06; font-weight: 800;
  letter-spacing: -1.2px; max-width: 640px; color: inherit;
}
.po-hero .po-lead { margin: 0; font-size: 18px; max-width: 540px; color: rgba(255, 255, 255, .92); }

.po-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.po .po-chip {
  display: inline-flex; align-items: center; height: 32px; padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--chip-fondo); border: 1px solid var(--chip-borde);
  color: var(--chip-texto); font-size: 13px; font-weight: 600; text-decoration: none;
  backdrop-filter: blur(2px);
}
.po .po-chip:hover, .po .po-chip:focus { background: var(--chip-fondo-hover); color: var(--chip-texto); text-decoration: none; }
.po-chips .po-et { font-size: 13px; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(16, 34, 54, .5); }

/* La barra de busqueda. El ancho maximo es el del diseno: suelta ocupaba
   todo el hero y se comia el protagonismo del titular. */
.po-sbar {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  gap: 8px; padding: 8px; border-radius: 16px; max-width: 680px;
  background: var(--blanco); box-shadow: var(--sombra-flot);
}
.po-sbar .po-campo { position: relative; min-width: 0; margin: 0; }
.po-sbar .po-campo > .po-i { position: absolute; left: 14px; top: 14px; color: var(--tenue); pointer-events: none; }
.po-sbar .po-in { height: 46px; float: none; }
.po-sbar select.po-in { appearance: none; -webkit-appearance: none; padding-right: 34px; }
.po-sbar .po-btn { height: 46px; padding: 0 24px; }

/* ─────────────────────────────────────────────────────────────────────────
   Tarjeta «¿Cuales de estas ofertas son para ti?»
   ───────────────────────────────────────────────────────────────────────── */

.po-sube { margin-top: -28px; position: relative; z-index: 2; }

.po-guide {
  padding: 20px 24px;
  display: grid; grid-template-columns: minmax(0, 1.1fr) repeat(3, minmax(0, 1fr)) auto;
  gap: 20px; align-items: center;
}
.po-guide[hidden] { display: none; }
.po-guide .po-tit { display: flex; flex-direction: column; gap: 2px; }
.po-guide .po-tit b { font-weight: 800; font-size: 17px; color: var(--marca); }
.po-guide .po-tit span { font-size: 13px; color: var(--tenue); }

.po-paso { display: flex; align-items: flex-start; gap: 12px; }
.po-paso > b {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--marca-claro); color: var(--marca);
  font-size: 14px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.po-paso.po-fin > b { background: var(--accion-claro); color: var(--accion-hover); }
.po-paso > span { display: flex; flex-direction: column; min-width: 0; }
.po-paso > span > b { font-weight: 700; }
.po-paso .po-ap { font-size: 12.5px; color: var(--tenue); }

.po-guide .po-cta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.po-guide .po-cta small { font-size: 11.5px; color: var(--tenue); }

/* El bloque «Ofertas para ti» que inyecta ofertas_para_ti por AJAX. Trae su
   propio estilo en linea; aqui solo se le da sitio y se le quita el degradado. */
.po-parati { margin-top: 16px; }
.po-parati [style*="gradient"] { background-image: none !important; background-color: var(--marca) !important; }

/* ─────────────────────────────────────────────────────────────────────────
   Cuerpo: filtros + listado
   ───────────────────────────────────────────────────────────────────────── */

.po-lay {
  display: grid; grid-template-columns: 270px minmax(0, 1fr);
  gap: 24px; align-items: start;
  padding-top: 32px; padding-bottom: 48px;
}

/* --- Filtros ----------------------------------------------------------- */

.po-filtros-caja { position: sticky; top: 92px; }
.po-filtros { overflow: hidden; }

.po-filtros-cab { padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.po-filtros-cab > span { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--marca); }
.po-filtros-cab button {
  border: 0; background: none; padding: 0; font: inherit;
  font-size: 13px; font-weight: 600; color: var(--marca); cursor: pointer;
}

/* #listafiltro lo rellena LoadFiltros() por AJAX. */
.po-fb { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-top: 1px solid var(--linea-2); }
.po-fb h3 {
  margin: 0; font-size: 12px; font-weight: 700; color: var(--marca);
  text-transform: uppercase; letter-spacing: .8px;
}

.po-ck {
  display: flex; align-items: center; gap: 10px;
  margin: 0; font-size: 13.5px; font-weight: 400; cursor: pointer; min-height: 30px;
  color: var(--tinta); line-height: 1.35;
}
.po-ck input { width: 17px; height: 17px; margin: 0; flex: none; accent-color: var(--accion); }
.po-ck > span { min-width: 0; }
.po-ck em {
  margin-left: auto; font-style: normal; font-size: 12px; color: var(--tenue);
  background: var(--papel); padding: 1px 8px; border-radius: var(--r-pill); flex: none;
}
.po-ck:hover > span { color: var(--marca); }
.po-ck.po-on > span { font-weight: 700; color: var(--marca); }

/* El resto de un grupo largo, detras del «Ver N mas», y las filas que el
   buscador del grupo esconde. Sin estas dos reglas el display:flex de .po-ck
   le gana al atributo hidden y no se esconde nada. */
.po-mas { display: flex; flex-direction: column; gap: 8px; }
.po-mas[hidden] { display: none; }
.po-ck[hidden] { display: none; }

.po .po-vermas {
  align-self: flex-start; padding: 0; border: 0; background: none;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--marca); cursor: pointer;
}
.po .po-vermas:hover { text-decoration: underline; }

.po-fb .po-buscar { position: relative; }
.po-fb .po-buscar > .po-i { position: absolute; left: 12px; top: 11px; color: var(--tenue); pointer-events: none; }
.po-fb .po-buscar .po-in { height: 38px; padding-left: 34px; padding-right: 40px; font-size: 13px; }
.po-fb .po-buscar .po-lupa {
  position: absolute; right: 6px; top: 6px; height: 26px; width: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 8px; background: var(--accion); color: var(--accion-texto); cursor: pointer;
}
.po-fb select.po-in { height: 38px; padding-left: 12px; font-size: 13px; }

/* Boton de filtros en pantallas estrechas. Va con `.po ` delante porque
   comparte elemento con .po-btn, que tambien fija el display. */
.po .po-abrefiltros { display: none; width: 100%; margin-bottom: 14px; align-items: center; justify-content: center; gap: 10px; }

/* --- Listado ----------------------------------------------------------- */

.po-lista { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.po-lista-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.po-lista-tit { display: flex; flex-direction: column; min-width: 0; }
.po-lista-cab h2 { margin: 0; font-size: 22px; font-weight: 800; color: var(--marca); }
.po-lista-cab .po-ap { font-size: 13px; color: var(--tenue); }
.po-lista-acc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* Los conmutadores del encabezado: «Solo urgentes», la modalidad y el orden. */
.po .po-dd {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 14px;
  border-radius: var(--r-pill); border: 1px solid var(--linea);
  background: var(--blanco); font: inherit; font-size: 13px; font-weight: 600;
  color: var(--tinta); cursor: pointer;
}
.po .po-dd:hover { border-color: var(--enlace); color: var(--marca-hover); }
.po .po-dd.po-on { background: var(--marca-claro); border-color: var(--enlace); color: var(--marca-hover); }
select.po-dd { padding-right: 10px; }

/* #listaproceso: lo rellena LoadProcesos() por AJAX. */
.po-ofertas { display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.po-job {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 20px;
  padding: 18px 20px; text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
  animation: po-up .55s cubic-bezier(.2, .8, .2, 1) both;
}
.po-job:hover { transform: translateY(-2px); box-shadow: var(--sombra-alta); color: inherit; text-decoration: none; }
.po-job.po-urgente { border-color: var(--urgente-texto); }

.po-job-txt { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.po-job-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.po-job-cab .po-fecha { font-size: 12.5px; color: var(--tenue); }

.po-job h3 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.3; }
.po .po-job h3 a { color: var(--marca); text-decoration: none; }
.po .po-job:hover h3 a { color: var(--marca-hover); }

.po-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--tenue); }
.po-meta span { display: flex; align-items: center; gap: 6px; min-width: 0; }

.po-job p {
  margin: 0; color: var(--tenue); font-size: 13.5px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

.po-job-acc { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 8px; }

.po-vacio { padding: 40px 28px; text-align: center; color: var(--tenue); font-size: 15px; }

/* --- Paginacion -------------------------------------------------------- */

.po-pag { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.po-pag .po-ap { font-size: 13px; color: var(--tenue); }
.po-pag-btns { display: flex; flex-wrap: wrap; gap: 6px; }

.po .po-pn {
  min-width: 40px; height: 40px; padding: 0 10px;
  border-radius: var(--r-sm); border: 1px solid var(--linea);
  background: var(--blanco); font: inherit; font-weight: 600; color: var(--tinta);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  text-decoration: none;
}
.po .po-pn:hover, .po .po-pn:focus { border-color: var(--marca); color: var(--marca); text-decoration: none; }
.po .po-pn.po-on {
  background: var(--accion); border-color: var(--accion); color: var(--accion-texto);
  box-shadow: 0 3px 10px rgba(var(--accion-rgb), .35);
}
.po .po-pn.po-mute { border: 0; background: transparent; cursor: default; color: var(--tenue); }
.po .po-pn.po-off { opacity: .45; pointer-events: none; }

/* ─────────────────────────────────────────────────────────────────────────
   Video corporativo
   ───────────────────────────────────────────────────────────────────────── */

.po-video { padding-bottom: 48px; }
.po-video h2 { margin: 0 0 14px; font-size: 22px; font-weight: 800; color: var(--marca); }
.po-video-marco {
  position: relative; padding-top: 56.25%; overflow: hidden;
  border-radius: var(--r-lg); background: var(--tinta); box-shadow: var(--sombra-alta);
}
.po-video-marco iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ─────────────────────────────────────────────────────────────────────────
   Cierre
   ───────────────────────────────────────────────────────────────────────── */

.po-cierre { padding-bottom: 48px; }
.po-cierre > div {
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--cierre-a) 0%, var(--cierre-b) 60%, var(--cierre-c) 100%);
  color: var(--marca-texto); padding: 32px 36px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.po-cierre h2 { margin: 0; font-size: 26px; font-weight: 800; color: inherit; }
.po-cierre .po-txt { display: flex; flex-direction: column; gap: 6px; max-width: 620px; }
.po-cierre .po-txt span { color: rgba(255, 255, 255, .88); }
.po-cierre .po-btn { min-height: 48px; padding: 0 26px; }

/* ─────────────────────────────────────────────────────────────────────────
   Pie
   El portal trae el suyo, el del diseno. El de la plataforma se sigue
   cargando —es el que mete el modal de politica de datos y ShowPoliticaEmpresa()—
   pero no se ve: su contenido esta repetido arriba.
   ───────────────────────────────────────────────────────────────────────── */

body.po-fondo > #wrapper > #page-wrapper > .footer,
body.po-fondo .footer { display: none !important; }

.po-pie { margin-top: auto; background: var(--blanco); border-top: 1px solid var(--linea); }
.po-pie .po-wrap {
  padding-top: 18px; padding-bottom: 18px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px 24px; font-size: 13px; color: var(--tenue);
}
.po-pie-tec { display: flex; align-items: center; gap: 8px; }
.po-pie-logo { height: 28px; width: auto; display: block; }
.po-pie-enlaces { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.po-pie-enlaces a { color: var(--tenue); text-decoration: none; }
.po-pie-enlaces a:hover { color: var(--tinta); text-decoration: underline; }

/* ─────────────────────────────────────────────────────────────────────────
   Animaciones
   ───────────────────────────────────────────────────────────────────────── */

@keyframes po-kb    { 0% { transform: scale(1.02); } 100% { transform: scale(1.12); } }
@keyframes po-rise  { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes po-up    { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes po-shine { 0% { left: -60%; } 35%, 100% { left: 130%; } }

.po-rise { animation: po-rise .7s cubic-bezier(.2, .8, .2, 1) both; }
.po-r1 { animation-delay: .05s; }
.po-r2 { animation-delay: .15s; }
.po-r3 { animation-delay: .25s; }
.po-r4 { animation-delay: .35s; }
.po-r5 { animation-delay: .45s; }

@media (prefers-reduced-motion: reduce) {
  .po *, .po *::before, .po *::after { animation: none !important; transition: none !important; }
}

/* ─────────────────────────────────────────────────────────────────────────
   Responsive
   El diseno original solo escondia los filtros por debajo de 1000 px. Aqui se
   baja hasta el telefono, porque el portal se abre sobre todo desde el movil.
   ───────────────────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .po { --gutter: 24px; }
  .po-guide { grid-template-columns: minmax(0, 1fr) repeat(2, minmax(0, 1fr)); }
  .po-guide .po-cta { grid-column: 1 / -1; align-items: stretch; }
  .po-guide .po-cta .po-btn { width: 100%; }
  .po-guide .po-cta small { text-align: center; }
}

@media (max-width: 1000px) {
  .po-lay { grid-template-columns: minmax(0, 1fr); }
  .po-hero { min-height: 460px; }
  .po-hero h1 { font-size: 38px; letter-spacing: -.8px; }
  .po-hero .po-lead { font-size: 16px; }
  .po-nav { display: none; }

  /* En una sola columna los filtros van arriba y no se pegan.
     Y van plegados: desplegados ocupan mas de mil pixeles por delante de la
     primera vacante, que es justo lo que hacia pensar que no habia ofertas en
     el telefono en horizontal y en las tabletas.
     showfilters() quita y pone .hidden-xs, que Bootstrap solo atiende por
     debajo de 768 px; aqui se usa esa misma clase como interruptor para que
     el boton sirva en toda la franja. */
  .po-filtros-caja { order: -1; position: static; }
  .po #listafiltro.hidden-xs { display: none !important; }
  .po .po-abrefiltros { display: inline-flex; }
}

@media (max-width: 767px) {
  .po { --gutter: 16px; font-size: 15px; }
  .po-pag .po-rot { display: none; }
  .po-head .po-wrap { min-height: 64px; gap: 10px; }
  .po-marca img { height: 38px; max-width: 150px; }
  .po-marca .po-nom, .po-marca .po-sep { display: none; }
  .po-sesion { margin-left: auto; }
  .po-sesion .po-btn { padding: 8px 12px; font-size: 13px; }
  .po-sesion .po-btn .po-rot { display: none; }

  .po-hero { min-height: 0; }
  .po-hero .po-wrap { padding-top: 28px; padding-bottom: 40px; gap: 14px; }
  .po-hero h1 { font-size: 29px; letter-spacing: -.4px; }
  .po-sello { padding: 8px 14px 8px 8px; }
  .po-sello img { height: 42px; }
  .po-sbar { grid-template-columns: minmax(0, 1fr); border-radius: var(--r-md); }
  .po-sbar .po-btn { width: 100%; }

  .po-sube { margin-top: -20px; }
  .po-guide { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px; }

  .po-job { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .po-job-acc { align-items: stretch; }
  .po-job-acc .po-btn { width: 100%; }

  .po-lista-cab h2 { font-size: 19px; }
  .po-lista-acc { width: 100%; }
  .po-lista-acc .po-dd { flex: 1 1 auto; justify-content: center; }
  .po-pag { justify-content: center; }
  .po-pag .po-ap { width: 100%; text-align: center; }
  .po-pag-btns { justify-content: center; width: 100%; }
  .po .po-pn.po-num { display: none; }
  .po .po-pn.po-num.po-on { display: inline-flex; }

  .po-cierre > div { padding: 24px 20px; }
  .po-cierre h2 { font-size: 21px; }
  .po-cierre .po-btn { width: 100%; }

  .po-pie .po-wrap { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
  .po-sesion { flex-wrap: wrap; width: 100%; }
  .po-sesion .po-btn { flex: 1 1 auto; }
}

/* ═════════════════════════════════════════════════════════════════════════
   Detalle de una oferta — /ofertas-de-trabajo/...
   Diseno «Detalle de oferta · Escritorio». Comparte con el portal los
   tokens, el encabezado, los botones y el pie; lo propio empieza en .po-det.
   ═════════════════════════════════════════════════════════════════════════ */

.po-det-head .po-wrap { min-height: 68px; }
.po-det-head .po-marca img { height: 38px; }
.po-det-head .po-marca .po-et { font-size: 13px; color: var(--tenue); font-weight: 600; }

/* ── Encabezado de la oferta ──────────────────────────────────────────── */

.po-det-hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(135deg, var(--grad-a) 0%, var(--grad-b) 55%, var(--grad-c) 100%);
}
.po-det-hero .po-wrap {
  position: relative; padding-top: 18px; padding-bottom: 36px;
  display: flex; flex-direction: column; gap: 22px;
}

/* Los circulos del fondo: puro adorno, no tapan nada. */
.po-det-aros { position: absolute; right: -200px; top: -260px; opacity: .13; pointer-events: none; animation: po-giro 70s linear infinite; }
@keyframes po-giro { to { transform: rotate(360deg); } }

.po-ruta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: #CDE7EC; }
.po .po-ruta a { color: #fff; text-decoration: none; font-weight: 600; }
.po .po-ruta a:hover { color: #fff; text-decoration: underline; }

.po-det-cab { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; }

.po-det-logo {
  width: 120px; height: 120px; border-radius: 28px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 40px rgba(10, 40, 60, .35); flex: none;
}
.po-det-logo img { width: 92px; height: 92px; object-fit: contain; display: block; }

.po-det-tit { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.po-det-tit h1 { margin: 0; font-size: 40px; line-height: 1.1; font-weight: 800; letter-spacing: -.8px; color: #fff; }
.po-det-donde { font-size: 16px; color: #E0F1F4; }
.po-det-donde b { color: #fff; }

/* Pildoras sobre el degradado. */
.po-pill.po-hp { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); color: #fff; }
.po-det-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.po-punto { width: 7px; height: 7px; border-radius: 50%; background: var(--accion); animation: po-latido 2s ease-out 1.2s infinite; }
@keyframes po-latido { 0% { box-shadow: 0 0 0 0 rgba(var(--accion-rgb), .55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(var(--accion-rgb), 0); } }

.po-det-acc { display: flex; flex-direction: column; gap: 10px; align-items: stretch; min-width: 240px; }
.po-det-acc > .po-btn { min-height: 50px; font-size: 15px; padding: 0 26px; }
.po .po-btn.po-bw { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .45); color: #fff; }
.po .po-btn.po-bw:hover, .po .po-btn.po-bw:focus { background: rgba(255, 255, 255, .26); color: #fff; }

/* ── Cuerpo ───────────────────────────────────────────────────────────── */

.po-det-lay {
  display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px;
  align-items: start; padding-top: 28px; padding-bottom: 40px;
}

.po-det-ficha { overflow: hidden; }
.po-det-tiles { padding: 20px 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.po-tile {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  border-radius: 14px; background: #F9FBFD; border: 1px solid var(--linea-2); min-width: 0;
}
.po-tile .po-t {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--marca-claro); color: var(--enlace);
}
.po-tile .po-t.po-amb { background: var(--urgente-fondo); color: var(--urgente-texto); }
.po-tile .po-t.po-ver { background: var(--accion-claro); color: var(--accion-hover); }
.po-tile > span:last-child { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.po-tile .po-ap { font-size: 12px; color: var(--tenue); }
.po-tile b { font-weight: 700; }

.po-sec { padding: 22px 24px; border-top: 1px solid var(--linea-2); display: flex; flex-direction: column; gap: 12px; }
.po-sec h2 { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; color: var(--marca); }
.po-sec h2 > span:first-child {
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  background: #E6F7F9; color: #00788A;
  display: flex; align-items: center; justify-content: center;
}

/* La descripcion llega del editor enriquecido: se le da tipografia, no forma. */
.po-desc { font-size: 15px; line-height: 1.7; color: var(--tinta); }
.po-desc > *:first-child { margin-top: 0; }
.po-desc > *:last-child { margin-bottom: 0; }
.po-desc p { margin: 0 0 12px; }
.po-desc ul, .po-desc ol { margin: 0 0 12px; padding-left: 22px; }
.po-desc li { margin-bottom: 6px; }
.po-desc h1, .po-desc h2, .po-desc h3, .po-desc h4 {
  margin: 18px 0 8px; font-size: 15px; font-weight: 700; color: var(--marca); line-height: 1.4;
}
.po-desc img { max-width: 100%; height: auto; border-radius: var(--r-sm); }
.po-desc a { word-break: break-word; }
.po-desc table { max-width: 100%; }

.po-det-cta {
  padding: 18px 24px; border-top: 1px solid var(--linea-2); background: #F9FBFD;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
}
.po-det-cta > span { font-weight: 700; color: var(--marca); }

/* ── Columna lateral ──────────────────────────────────────────────────── */

.po-det-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 88px; }
.po-det-side > section { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.po-det-side h2 { margin: 0; font-weight: 800; font-size: 16px; color: var(--marca); }

.po-pasos { display: flex; flex-direction: column; gap: 14px; }
.po-paso-v { display: flex; gap: 12px; align-items: flex-start; position: relative; }
.po-paso-v > b {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; position: relative; z-index: 1;
  background: var(--marca-claro); color: var(--marca);
}
.po-paso-v.po-uno > b { background: var(--accion); color: var(--accion-texto); }
.po-paso-v:not(:last-child)::before { content: ''; position: absolute; left: 14px; top: 30px; bottom: -14px; width: 2px; background: var(--linea); }
.po-paso-v > span { display: flex; flex-direction: column; min-width: 0; }
.po-paso-v .po-ap { font-size: 12.5px; color: var(--tenue); }

.po-det-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.po-det-dos .po-btn { padding: 0 10px; }

.po-compartir { display: flex; gap: 16px; align-items: center; flex-direction: row !important; }
.po-qr { flex: none; width: 92px; height: 92px; border-radius: 14px; border: 1px solid var(--linea); background: #fff; padding: 4px; }
.po-qr img { width: 100%; height: 100%; object-fit: contain; display: block; }
.po-compartir > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.po-redes { display: flex; flex-wrap: wrap; gap: 6px; }
.po .po-sh {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--linea);
  background: #fff; display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: transform .15s ease;
}
.po .po-sh:hover { transform: translateY(-2px); text-decoration: none; }

.po-det-emp { display: flex; align-items: center; gap: 12px; }
.po-det-emp > span:first-child {
  width: 52px; height: 52px; border-radius: 14px; border: 1px solid var(--linea); flex: none;
  display: flex; align-items: center; justify-content: center; background: #fff; padding: 4px;
}
.po-det-emp img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.po-det-emp > span:last-child { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.po-det-emp b { color: var(--marca); font-weight: 800; }
.po-det-emp .po-ap { font-size: 12.5px; color: var(--tenue); }

/* ── Ofertas relacionadas ─────────────────────────────────────────────── */

.po-rel { padding-bottom: 40px; }
.po-rel-cab { padding: 22px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.po-rel-cab > span:first-child {
  width: 44px; height: 44px; border-radius: 14px; flex: none;
  background: var(--marca-claro); color: var(--enlace);
  display: flex; align-items: center; justify-content: center;
}
.po-rel-cab > div { flex: 1; min-width: 260px; display: flex; flex-direction: column; }
.po-rel-cab b { font-weight: 800; color: var(--marca); font-size: 16px; }
.po-rel-cab .po-ap { font-size: 13px; color: var(--tenue); }

.po-rel-lista {
  padding: 0 24px 22px; display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px;
}
.po-rel-item {
  display: flex; flex-direction: column; gap: 6px; padding: 14px 16px;
  border: 1px solid var(--linea); border-radius: 14px; background: #fff;
  text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease;
}
.po .po-rel-item:hover { transform: translateY(-2px); box-shadow: var(--sombra-alta); text-decoration: none; color: inherit; }
.po-rel-item b { color: var(--marca); font-size: 15px; line-height: 1.3; }
.po-rel-item .po-ap { font-size: 12.5px; color: var(--tenue); display: flex; align-items: center; gap: 6px; }

/* ── Pantallas estrechas ──────────────────────────────────────────────── */

@media (max-width: 1000px) {
  .po-det-lay { grid-template-columns: minmax(0, 1fr); }
  .po-det-side { position: static; }
  .po-det-cab { grid-template-columns: auto minmax(0, 1fr); }
  .po-det-acc { grid-column: 1 / -1; min-width: 0; }
  .po-det-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .po-det-hero h1 { font-size: 32px; }
}

@media (max-width: 767px) {
  .po-det-cab { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .po-det-logo { width: 84px; height: 84px; border-radius: 20px; }
  .po-det-logo img { width: 64px; height: 64px; }
  .po-det-hero h1 { font-size: 26px; letter-spacing: -.3px; }
  .po-det-tiles { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .po-sec { padding: 18px 16px; }
  .po-det-cta { padding: 16px; }
  .po-compartir { flex-direction: column !important; align-items: flex-start; }
  .po-rel-cab, .po-rel-lista { padding-left: 16px; padding-right: 16px; }
}
