/* ==============================
   JOBS SECTION
   ============================== */
.jobs {
  padding: 100px 0;
  background-color: #ffff;
  position: relative;
  overflow: hidden;
}

.jobs-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.jobs-bg-line {
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--bonus-blue), transparent);
  opacity: 0.1;
  animation: slideDown 20s infinite linear;
}

.jobs-bg-line:nth-child(1) { left: 10%; animation-delay: 0s; }
.jobs-bg-line:nth-child(2) { left: 30%; animation-delay: 2s; }
.jobs-bg-line:nth-child(3) { left: 50%; animation-delay: 4s; }
.jobs-bg-line:nth-child(4) { left: 70%; animation-delay: 6s; }
.jobs-bg-line:nth-child(5) { left: 90%; animation-delay: 8s; }

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  position: relative;
  z-index: 1;
}

.job-item {
  background-color: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
  height: 300px;
}

.job-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.job-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.job-title-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
  color: var(--white);
  border-radius: 15px 15px 0 0;
}

.job-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.job-subtitle {
  font-size: 14px;
  opacity: 0.9;
}

@media (max-width: 992px) {
  .jobs-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablets */
    gap: 20px;
  }

  .job-item {
    height: 250px; /* Ajusta altura para contenido más compacto */
  }
}

@media (max-width: 576px) {
  .jobs-grid {
    grid-template-columns: 1fr; /* 1 columna en móviles */
    gap: 15px;
  }

  .job-item {
    height: auto; /* Altura variable para mejor ajuste */
  }
}