/* ===== JOBS PAGE LAYOUT ===== */

main.jobs-page {
  flex: 1 0 auto;
  display: block;
  max-width: 960px;
  margin: 0 auto;
  padding-top: calc(var(--header-h) + 20px);
  padding-bottom: 3rem;
  box-sizing: border-box;
  text-align: center;
}

/* Logo grande visible */
.jobs-page .logo {
  display: block;
  width: 360px;
  margin: 0 auto 1rem auto;
  opacity: 1;
}

/* Título JOBS */
.jobs-page h1 {
  font-size: 2.2rem;
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #111;
}

/* ===== IFRAME DOVER ===== */

.jobs-embed {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  min-height: 140px;
}

.jobs-embed iframe {
  width: 100%;
  border: none;
  min-height: 140px;
  height: 140px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

/* ===== PLACEHOLDER WHILE IFRAME LOADS ===== */

.jobs-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem;

  background: #fafafa;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);

  font-size: 0.95rem;
  color: #777;
  transition: opacity 0.25s ease;
  z-index: 1;
}

.jobs-placeholder.hidden {
  opacity: 0;
  pointer-events: none;
}

/* small spinner */
.jobs-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #ccc;
  border-top-color: #111;
  animation: jobs-spin 0.8s linear infinite;
}

@keyframes jobs-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== BLOQUES INFO ===== */

.jobs-info-grid {
  max-width: 760px;
  margin: 1.5rem auto 0;
  padding: 0 2rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.jobs-card {
  background: #fafafa;
  border-radius: 16px;
  padding: 1.8rem 2rem;
  text-align: left;
  line-height: 1.7;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.jobs-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.jobs-card h2 {
  font-size: 1.5rem;
  margin: 0 0 1rem;
  color: #111;
}

.jobs-card p {
  font-size: 1.02rem;
  margin: 0 0 1.2rem;
  color: #333;
}

.jobs-card ul {
  margin: 0.5rem 0 0;
  padding-left: 1.3rem;
}

.jobs-card li {
  margin-bottom: 0.5rem;
  font-size: 1.02rem;
  color: #333;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 768px) {
  main.jobs-page {
    padding-top: calc(var(--header-h) + 14px);
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .jobs-page h1 {
    font-size: 2rem;
  }

  .jobs-info-grid {
    padding: 0 0.5rem;
  }

  .jobs-card {
    padding: 1.6rem 1.4rem;
  }

  .jobs-card h2 {
    font-size: 1.3rem;
  }

  .jobs-card p,
  .jobs-card li {
    font-size: 0.98rem;
  }
}
