.jobs-section {
  width: 100%;
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.jobs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.jobs-header h2 {
  font-size: 1.8rem;
  font-weight: 600;
}

.jobs-search {
  position: relative;
}

.jobs-search input {
  padding: 8px 36px 8px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  outline: none;
  transition: 0.2s;
}

.jobs-search input:focus {
  border-color: #888;
}

.jobs-search .search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.6;
}

.jobs-list {
  margin-top: 80px;
  display: grid;
  gap: 45px;
}


.job-card {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  border: 1px solid #e0e0e0;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.2s;
}

.job-card:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.job-card h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.job-card p {
  color: #555;
  line-height: 1.5rem;
}
/* ----- ANIMACIONES ----- */
.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ----- SECCIÓN DE TRABAJOS ----- */
.jobs-section {
  padding: 40px 20px;
  max-width: 1100px;
  margin: auto;
}

.jobs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.jobs-search {
  position: relative;
  max-width: 260px;
  width: 100%;
}

.jobs-search input {
  width: 100%;
  padding: 10px 35px 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  transition: all 0.3s ease;
}

.jobs-search input:focus {
  border-color: #0066ff;
  box-shadow: 0 0 4px rgba(0, 102, 255, 0.4);
}

.search-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.6;
}

/* ----- LISTA Y TARJETAS ----- */
.jobs-list {
  margin-top: 30px;
  display: grid;
  gap: 25px;
}

/* Tarjeta animada */
.job-card {
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  cursor: pointer;
  border: 1px solid #e4e4e4;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.job-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
}

.job-card h3 {
  margin: 0 0 10px 0;
}

/* ===== FIX FOOTER ABAJO (SOLUCIÓN REAL) ===== */

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
}

/* Contenedor principal */
.page-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* El main ocupa el espacio disponible */
.page-wrapper main {
  flex: 1;
}

/* Footer siempre abajo */
.site-footer {
  flex-shrink: 0;
}

