/* ===== Page Header ===== */
.page-header {
  position: relative;
  padding: 10rem 0 6rem;
  margin-top: 80px;
  background: linear-gradient(135deg, rgb(52, 71, 149) 0%, rgb(123, 121, 177) 50%, rgb(229, 179, 91) 100%);
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,101.3C1248,85,1344,75,1392,69.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>')
    no-repeat bottom;
  background-size: cover;
}

.page-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(52, 71, 149, 0.9) 0%, rgba(229, 179, 91, 0.8) 100%), url("../images/ofertas_laboral_header.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-header .container {
  position: relative;
  z-index: 2;
  text-align: center;
  color: white;
}

.page-title {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease;
}

.page-subtitle {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  animation: fadeInUp 0.8s ease 0.2s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== Why Join Section ===== */
.why-join {
  padding: 5rem 0;
  background: var(--bg-light);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.benefit-card {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  text-align: center;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.benefit-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.benefit-icon svg {
  width: 40px;
  height: 40px;
}

.benefit-card h3 {
  color: var(--text-dark);
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.benefit-card p {
  color: var(--text-light);
  line-height: 1.8;
}

/* ===== Job Openings Section ===== */
.job-openings {
  padding: 5rem 0;
}

.job-filter {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.job-filter-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--border-color);
  background: white;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: var(--transition-fast);
}

.job-filter-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.job-filter-btn.active {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(229, 179, 91, 0.3);
}

.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.job-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  border-left: 4px solid var(--primary-color);
  opacity: 0;
  animation: slideInLeft 0.5s ease forwards;
}

.job-card:nth-child(1) {
  animation-delay: 0.1s;
}
.job-card:nth-child(2) {
  animation-delay: 0.2s;
}
.job-card:nth-child(3) {
  animation-delay: 0.3s;
}
.job-card:nth-child(4) {
  animation-delay: 0.4s;
}
.job-card:nth-child(5) {
  animation-delay: 0.5s;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.job-card:hover {
  transform: translateX(8px);
  box-shadow: var(--shadow-lg);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.job-title-section {
  flex: 1;
}

.job-title {
  font-size: 1.6rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.job-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.job-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.95rem;
}

.job-meta-item svg {
  width: 18px;
  height: 18px;
  color: var(--primary-color);
}

.job-department {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
}

.job-description {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.job-requirements {
  margin-bottom: 1.5rem;
}

.job-requirements h4 {
  color: var(--text-dark);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.job-requirements ul {
  list-style: none;
  padding: 0;
}

.job-requirements li {
  padding: 0.4rem 0;
  color: var(--text-light);
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.job-requirements li::before {
  content: "✓";
  color: var(--accent-color);
  font-weight: bold;
  flex-shrink: 0;
}

.job-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

.job-salary {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary-color);
}

.job-apply-btn {
  background: var(--gradient-accent);
  color: white;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 12px rgba(185, 114, 101, 0.3);
}

.job-apply-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(185, 114, 101, 0.4);
}

/* ===== No Jobs ===== */
.no-jobs {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-light);
}

.no-jobs svg {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  opacity: 0.5;
}

.no-jobs h3 {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.no-jobs p {
  font-size: 1.1rem;
}

/* ===== Application Section ===== */
.application-section {
  padding: 5rem 0;
  background: var(--bg-light);
}

.application-container {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}

.application-info h3 {
  font-size: 1.8rem;
  color: var(--text-dark);
  margin-bottom: 2rem;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.process-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(229, 179, 91, 0.3);
}

.step-content h4 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.step-content p {
  color: var(--text-light);
  line-height: 1.6;
  margin: 0;
}

/* ===== Application Form ===== */
.application-form {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: var(--transition-fast);
  background: var(--bg-light);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  background: white;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* ===== File Upload ===== */
.file-upload {
  position: relative;
}

.file-upload input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.file-upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-fast);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.file-upload-label:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(229, 179, 91, 0.3);
}

.file-upload-label svg {
  width: 20px;
  height: 20px;
}

.file-name {
  display: block;
  color: var(--text-light);
  font-size: 0.9rem;
  font-style: italic;
}

/* ===== Responsive Design ===== */
@media (max-width: 968px) {
  .application-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .page-title {
    font-size: 2.5rem;
  }

  .page-subtitle {
    font-size: 1.1rem;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .job-header {
    flex-direction: column;
  }

  .job-footer {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .job-apply-btn {
    width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 8rem 0 4rem;
  }

  .job-filter-btn {
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
  }

  .job-title {
    font-size: 1.3rem;
  }

  .application-form {
    padding: 1.5rem;
  }
}
