:root {
  --feed-brand: #8dc63f;
  --feed-brand-dark: #5a8f1f;
  --feed-brand-light: #d4e6b5;
  --feed-ink: #1a1a1a;
  --feed-black: #141414;
  --feed-paper: #ffffff;
  --feed-bg: #eef2e8;
  --feed-line: #dde8d0;
  --feed-muted: #5c6560;
  --feed-shadow: 0 8px 24px rgba(20, 20, 20, 0.08);
}

[x-cloak] { display: none !important; }

.nav-vacantes-highlight {
  background: var(--feed-brand) !important;
  color: var(--feed-ink) !important;
  border-radius: 6px;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(141, 198, 63, 0.35);
}

.nav-vacantes-highlight:hover {
  background: var(--feed-brand-dark) !important;
  color: #fff !important;
}

.vacancies-feed-page {
  background: var(--feed-bg);
  min-height: calc(100vh - 180px);
  padding: 24px 0 40px;
}

/* Ancho completo: libera el tope de .container (1180px) */
.vacancies-feed-layout.container,
.container.vacancies-feed-layout {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: clamp(12px, 1.8vw, 28px);
  padding-right: clamp(12px, 1.8vw, 28px);
  box-sizing: border-box;
}

.vacancies-feed-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(260px, 320px);
  grid-template-areas: "filters main side";
  gap: clamp(14px, 1.4vw, 24px);
  align-items: start;
}

.vacancies-feed-filters-col {
  grid-area: filters;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: sticky;
  top: 100px;
  overflow: visible;
}

.vacancies-feed-main {
  grid-area: main;
  display: grid;
  gap: 20px;
}

.vacancies-feed-sidebar {
  grid-area: side;
  display: grid;
  gap: 16px;
  position: sticky;
  top: 100px;
}

.vacancies-feed-hero {
  background: linear-gradient(135deg, var(--feed-black) 0%, #2a3320 100%);
  color: #fff;
  border-radius: 12px;
  padding: 28px 32px;
  border: 1px solid rgba(141, 198, 63, 0.25);
}

.vacancies-feed-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 8px;
  line-height: 1.15;
}

.vacancies-feed-hero p {
  color: #d8e8c8;
  max-width: 560px;
}

.vacancies-feed-filters {
  background: var(--feed-paper);
  border: 1px solid var(--feed-line);
  border-radius: 12px;
  padding: 14px;
  box-shadow: var(--feed-shadow);
}

.vacancies-feed-filters h2 {
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--feed-ink);
}

.vacancies-feed-filters .form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.vacancies-feed-filters .form-field {
  display: grid;
  gap: 2px;
}

.vacancies-feed-filters .form-field.full {
  grid-column: 1 / -1;
}

.vacancies-feed-filters .form-field label {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  color: var(--feed-muted);
}

.vacancies-feed-filters .form-field input,
.vacancies-feed-filters .form-field select {
  width: 100%;
  max-width: 100%;
  min-height: 34px;
  height: 34px;
  padding: 4px 8px;
  font-size: 0.8rem;
  line-height: 1.2;
  box-sizing: border-box;
}

.vacancies-feed-filters-actions {
  margin-top: 8px;
  display: flex;
  gap: 6px;
  flex-wrap: nowrap;
}

.vacancies-feed-filters-actions .btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 34px;
  text-align: center;
  font-size: 0.78rem;
  padding: 0.35rem 0.5rem;
}

.vacancies-feed-filters-drawer-head {
  display: none;
}

.vacancies-feed-filters-title {
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--feed-ink);
}

.vacancies-feed-filters h2.vacancies-feed-filters-title {
  margin-bottom: 8px;
}

.vacancies-feed-filters-tab,
.vacancies-feed-filters-backdrop {
  display: none;
}

.vacancies-feed-list {
  display: grid;
  gap: 16px;
}

.vacancies-feed-card {
  background: var(--feed-paper);
  border: 1px solid var(--feed-line);
  border-radius: 12px;
  padding: 22px;
  box-shadow: var(--feed-shadow);
  transition: border-color 0.2s, transform 0.2s;
  overflow: hidden;
}

.vacancies-feed-card:hover {
  border-color: var(--feed-brand);
  transform: translateY(-2px);
}

.vacancies-feed-card--with-image {
  display: flex;
  align-items: center;
  gap: 16px;
}

.vacancies-feed-card-image {
  display: block;
  flex: 0 0 146px;
  width: 146px;
  height: 146px;
  aspect-ratio: 1 / 1;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #eef4e6;
  border: 1px solid var(--feed-line);
}

.vacancies-feed-card-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.vacancies-feed-card-content {
  flex: 1;
  min-width: 0;
}

@media (max-width: 560px) {
  .vacancies-feed-card {
    padding: 14px;
  }

  .vacancies-feed-card-logo {
    width: 40px;
    height: 40px;
    font-size: 0.95rem;
  }

  .vacancies-feed-card-meta h3 {
    font-size: 1rem;
  }

  .vacancies-feed-hero {
    padding: 20px 18px;
  }
}

.vacancies-feed-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.vacancies-feed-card-logo {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--feed-brand-light), #f0f7e4);
  border: 1px solid var(--feed-line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--feed-brand-dark);
  flex-shrink: 0;
}

.vacancies-feed-card-meta h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: var(--feed-ink);
}

.vacancies-feed-card-meta p {
  font-size: 0.88rem;
  color: var(--feed-muted);
}

.vacancies-feed-card-body {
  font-size: 0.92rem;
  color: var(--feed-ink);
  margin-bottom: 16px;
  line-height: 1.55;
}

.vacancies-feed-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.vacancies-feed-tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f8eb;
  border: 1px solid var(--feed-brand-light);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--feed-brand-dark);
}

.vacancies-feed-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--feed-line);
}

.vacancies-feed-card-date {
  font-size: 0.82rem;
  color: var(--feed-muted);
  font-weight: 600;
}

.vacancies-feed-empty {
  background: var(--feed-paper);
  border: 1px dashed var(--feed-line);
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
  color: var(--feed-muted);
}

.vacancies-feed-sidebar-card {
  background: var(--feed-paper);
  border: 1px solid var(--feed-line);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--feed-shadow);
}

.vacancies-feed-sidebar-card h3 {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: var(--feed-ink);
}

.vacancies-feed-linkedin-placeholder {
  min-height: 200px;
  border: 2px dashed var(--feed-line);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  color: var(--feed-muted);
  font-size: 0.88rem;
  background: #fafcf7;
}

.vacancies-feed-linkedin-placeholder svg {
  width: 36px;
  height: 36px;
  color: #0a66c2;
}

.vacancies-feed-linkedin-placeholder a {
  color: var(--feed-brand-dark);
  font-weight: 700;
  text-decoration: none;
}

.vacancies-feed-linkedin-placeholder a:hover {
  text-decoration: underline;
}

.linkedin-post-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 250px;
}

.linkedin-post-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 250px;
  min-width: 0;
}

.linkedin-post-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--feed-line);
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  min-width: 0;
  width: 100%;
  max-width: 250px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.linkedin-post-card:hover {
  border-color: #0a66c2;
  box-shadow: 0 4px 14px rgba(10, 102, 194, 0.12);
}

.linkedin-post-card__media {
  width: 250px;
  max-width: 100%;
  background: #f0f3f7;
  overflow: hidden;
  flex-shrink: 0;
  box-sizing: border-box;
  line-height: 0;
}

.linkedin-post-card__media img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.linkedin-post-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
}

.linkedin-post-card__header {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0a66c2;
}

.linkedin-post-card__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--feed-ink);
  line-height: 1.4;
  margin: 0;
}

.linkedin-post-card__desc {
  font-size: 0.86rem;
  color: var(--feed-ink);
  line-height: 1.45;
  margin: 0;
}

.linkedin-post-card__cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--feed-brand-dark);
}

.vacancies-feed-linkedin-link {
  color: var(--feed-brand-dark);
  font-weight: 700;
  text-decoration: none;
}

.vacancies-feed-linkedin-link:hover {
  text-decoration: underline;
}

.vacancies-feed-pagination {
  margin-top: 8px;
}

@media (max-width: 1280px) {
  .vacancies-feed-layout {
    grid-template-columns: minmax(200px, 250px) minmax(0, 1fr) minmax(240px, 280px);
  }
}

@media (max-width: 1100px) {
  .vacancies-feed-layout {
    grid-template-columns: minmax(200px, 240px) minmax(0, 1fr);
    grid-template-areas:
      "filters main"
      "side    side";
  }

  .vacancies-feed-sidebar {
    position: static;
    grid-template-columns: 1fr;
    justify-items: center;
    width: 100%;
  }

  .vacancies-feed-sidebar-card {
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .vacancies-feed-sidebar-card .linkedin-post-list,
  .vacancies-feed-sidebar-card .linkedin-post-item,
  .vacancies-feed-sidebar-card .linkedin-post-card,
  .vacancies-feed-sidebar-card .vacancies-feed-linkedin-placeholder {
    margin-inline: auto;
  }

  .vacancies-feed-sidebar-card #linkedin-company-plugin,
  .vacancies-feed-sidebar-card .vacancies-feed-linkedin-link {
    display: inline-block;
  }

  .vacancies-feed-sidebar-card .btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 900px) {
  .vacancies-feed-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "main"
      "side";
  }

  .vacancies-feed-card--with-image {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .vacancies-feed-card-image {
    flex: 0 0 auto;
    width: min(100%, 200px);
    height: auto;
    aspect-ratio: 1 / 1;
    align-self: center;
  }

  .vacancies-feed-card-content {
    width: 100%;
  }

  .vacancies-feed-filters-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    left: 0;
    top: 42%;
    z-index: 240;
    margin: 0;
    padding: 20px 5px;
    border: 1px solid rgba(141, 198, 63, 0.55);
    border-left: 0;
    border-radius: 0 10px 10px 0;
    background: linear-gradient(180deg, #a8e063 0%, var(--feed-brand) 45%, #7bb82e 100%);
    color: #14300a;
    font-weight: 800;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    box-shadow: 2px 2px 10px rgba(90, 143, 31, 0.22);
    cursor: pointer;
    writing-mode: vertical-lr;
    text-orientation: mixed;
    transform: none;
    overflow: hidden;
    isolation: isolate;
  }

  .vacancies-feed-filters-tab::after {
    content: "";
    position: absolute;
    inset: -20% -60%;
    background: linear-gradient(
      115deg,
      transparent 35%,
      rgba(255, 255, 255, 0.55) 50%,
      transparent 65%
    );
    transform: translateX(-120%);
    animation: vacancies-feed-tab-shine 3.6s ease-in-out infinite;
    pointer-events: none;
  }

  .vacancies-feed-filters-tab:hover,
  .vacancies-feed-filters-tab:focus-visible {
    background: linear-gradient(180deg, #b4e870 0%, #97d24a 45%, #6fad28 100%);
    color: #0f2608;
  }

  @keyframes vacancies-feed-tab-shine {
    0%,
    55% {
      transform: translateX(-120%);
    }
    75%,
    100% {
      transform: translateX(120%);
    }
  }

  .vacancies-feed-filters-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 250;
    background: rgba(20, 20, 20, 0.45);
  }

  .vacancies-feed-filters-col {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(300px, 90vw);
    max-height: none;
    z-index: 260;
    margin: 0;
    padding: 14px;
    background: var(--feed-bg);
    border-right: 1px solid var(--feed-line);
    box-shadow: 8px 0 28px rgba(20, 20, 20, 0.18);
    transform: translateX(-105%);
    transition: transform 0.25s ease;
    overflow: hidden;
    overscroll-behavior: contain;
  }

  .vacancies-feed-filters-col.is-open {
    transform: translateX(0);
  }

  .vacancies-feed-filters-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }

  .vacancies-feed-filters-drawer-head strong {
    font-size: 1rem;
    color: var(--feed-ink);
  }

  .vacancies-feed-filters-close {
    width: 36px;
    height: 36px;
    border: 1px solid var(--feed-line);
    border-radius: 8px;
    background: #fff;
    color: var(--feed-ink);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
  }

  .vacancies-feed-filters-title {
    display: none;
  }

  .vacancies-feed-sidebar {
    position: static;
    grid-template-columns: 1fr;
    justify-items: center;
    width: 100%;
  }

  .vacancies-feed-sidebar-card {
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .vacancies-feed-filters-actions .btn {
    flex: 1 1 calc(50% - 4px);
  }

  body:has(.vacancies-feed-filters-col.is-open) {
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .vacancies-feed-page {
    padding: 12px 0 28px;
  }

  .vacancies-feed-card-image {
    width: min(100%, 180px);
  }

  .vacancies-feed-card-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .vacancies-feed-card-footer .btn {
    width: 100%;
    text-align: center;
  }

  .vacancies-feed-filters .form-field input[type="date"] {
    font-size: 0.8rem;
  }
}
