/* =========================================================
   ROTTIJOBS — Listado de ofertas (tarjetas tipo job board)
   ========================================================= */

/* Cabecera de las páginas /jobs y /search */
.page-header {
  background: radial-gradient(120% 130% at 85% -20%, var(--navy-700) 0%, var(--navy) 58%);
  color: #fff;
  text-align: center;
  padding: 56px 24px 60px;
  border-radius: 0 0 28px 28px;
}
.page-header h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 8px 0 10px;
}
.page-header p {
  color: rgba(255, 255, 255, .78);
  font-size: 1.05rem;
  margin: 0;
}
.btn-volver {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, .8);
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: 6px;
  transition: color .2s ease;
}
.btn-volver:hover { color: #fff; }

/* Rejilla */
.ofertas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 40px;
}
.home-jobs .ofertas-grid { margin-top: 0; }

/* Tarjeta */
.oferta-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  display: flex;
  flex-direction: column;
}
.oferta-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #d3dbe6;
}

/* Fila superior: país + estado */
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.country-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 5px 11px 5px 9px;
  border-radius: var(--radius-pill);
}
.country-chip .flag { font-size: 1rem; line-height: 1; }

.badge-new {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--ok);
  background: var(--ok-bg);
  border: 1px solid var(--ok-line);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.badge-time {
  font-size: .78rem;
  font-weight: 600;
  color: var(--faint);
}

/* Título */
.titulo-oferta {
  color: var(--navy);
  font-size: 1.18rem;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 14px;
}

/* Meta: empresa + ubicación */
.empresa-ubicacion {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 16px;
}
.detalle-texto {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: .94rem;
  font-weight: 500;
}
.detalle-texto i { color: var(--accent-dark); font-size: 1.1rem; flex: 0 0 auto; }
.detalle-texto.company { color: var(--ink); font-weight: 700; }

/* Salario */
.etiquetas-container {
  margin-bottom: 22px;
  flex-grow: 1;
}
.tag.salary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--ok-bg);
  color: var(--ok);
  border: 1px solid var(--ok-line);
  padding: 7px 13px;
  border-radius: var(--radius-pill);
  font-size: .88rem;
  font-weight: 700;
}
.tag.salary i { font-size: 1.05rem; }

/* Botón aplicar */
.fila-inferior { margin-top: auto; }
.boton-ver {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  padding: 13px 20px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 700;
  font-size: .98rem;
  transition: background-color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.boton-ver:hover { background: var(--navy-900); box-shadow: var(--shadow-md); }
.boton-ver:active { transform: translateY(1px); }
.boton-ver i { transition: transform .2s ease; }
.boton-ver:hover i { transform: translateX(3px); }

/* Estado vacío */
.empty-state {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 56px 24px;
  box-shadow: var(--shadow-sm);
  margin-top: 24px;
}
.empty-state i { font-size: 2.4rem; color: var(--accent); }
.empty-state h2 { margin: 14px 0 8px; }
.empty-state p { color: var(--muted); margin: 0; font-size: 1.05rem; }

@media (max-width: 768px) {
  .page-header { padding: 40px 18px 46px; border-radius: 0 0 22px 22px; }
  .ofertas-grid { grid-template-columns: 1fr; gap: 16px; }
}
