/* =============================================
   TRABAJA CON NOSOTROS PAGE
   ============================================= */

/* ----- HERO ----- */
.trab-hero {
  background-color: #f0eade;
  padding-block: clamp(40px, 5vw, 72px);
}

.trab-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.trab-hero__label {
  font-family: "DM Sans", Helvetica;
  font-weight: 600;
  font-size: clamp(14px, 1.5vw, 24px);
  color: #01579e;
  letter-spacing: .05em;
  margin: 0;
}

.trab-hero__title {
  font-family: var(--h-2-font-family);
  font-weight: var(--h-2-font-weight);
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.15;
  color: #1e1e1e;
  margin: 0;
}

.trab-hero__line {
  border: none;
  border-top: 1px solid #ccc;
  width: clamp(240px, 50%, 768px);
  margin: 8px 0 0;
}

/* ----- INTRO ----- */
.trab-intro__inner {
  display: flex;
  gap: clamp(32px, 5vw, 80px);
  align-items: flex-start;
}

.trab-intro__text {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mt-16 { margin-top: 16px; }

.trab-intro__image {
  flex: 0 0 clamp(240px, 40%, 560px);
}

.trab-intro__image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
}

/* ----- FORM SECTION ----- */
.trab-form {
  margin-top: 40px;
  background-color: #fff;
  border-radius: 24px;
  padding: clamp(28px, 4vw, 64px);
  box-shadow: var(--sombra-cajas);
}

.trab-form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px) clamp(24px, 4vw, 60px);
}

.trab-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trab-form__field--full {
  grid-column: 1 / -1;
}

.trab-form__label {
  font-family: "DM Sans", Helvetica;
  font-weight: 600;
  font-size: clamp(15px, 1.3vw, 20px);
  color: #000;
}

.trab-form__input,
.trab-form__textarea {
  font-family: var(--p-font-family);
  font-size: clamp(14px, 1.1vw, 17px);
  color: #1e1e1e;
  background-color: #fff;
  border: 1px solid #d1d1d1;
  padding: 14px 16px;
  outline: none;
  transition: border-color .2s;
  width: 100%;
  border-radius: 0;
}

.trab-form__input:focus,
.trab-form__textarea:focus {
  border-color: #01579e;
}

.trab-form__textarea {
  resize: vertical;
  min-height: 120px;
}

/* File upload */
.trab-form__file-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.trab-form__file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.trab-form__file-btn {
  cursor: pointer;
  padding: 12px 24px;
  font-size: clamp(14px, 1.1vw, 17px);
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.trab-form__file-name {
  font-family: "DM Sans", Helvetica;
  font-size: clamp(13px, 1vw, 17px);
  color: #666;
  word-break: break-all;
}

/* Checkbox */
.trab-form__field--checkbox {
  justify-content: center;
}

.trab-form__check-label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "DM Sans", Helvetica;
  font-weight: 600;
  font-size: clamp(15px, 1.3vw, 20px);
  color: #000;
  cursor: pointer;
  user-select: none;
}

.trab-form__check {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.trab-form__check-custom {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 2px solid #d1d1d1;
  background: #fff;
  flex-shrink: 0;
  position: relative;
  transition: border-color .2s, background .2s;
}

.trab-form__check:checked + .trab-form__check-custom {
  background-color: #01579e;
  border-color: #01579e;
}

.trab-form__check:checked + .trab-form__check-custom::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 7px;
  height: 13px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* Submit */
.trab-form__submit-wrap {
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 4vw, 48px);
}

.trab-form__submit {
  min-width: 220px;
  border: none;
  font-family: "Gabarito", Helvetica;
  cursor: pointer;
}

/* ----- ACTIVE NAV LINK ----- */
.nav-link--active {
  color: #01579e !important;
  font-weight: 700 !important;
}

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

/* --- Tablet (641px – 1024px) --- */
@media (max-width: 1024px) {
  .trab-intro__inner {
    flex-direction: column;
  }
  .trab-intro__image {
    flex: none;
    width: 100%;
    max-width: 580px;
  }
  .trab-form__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
  }
  .trab-hero__title {
    font-size: clamp(26px, 4vw, 44px);
  }
}

/* --- Mobile (≤ 640px) --- */
@media (max-width: 640px) {
  /* Hero */
  .trab-hero {
    padding-block: 32px;
  }
  .trab-hero__title {
    font-size: clamp(24px, 7vw, 32px);
  }
  .trab-hero__label {
    font-size: 13px;
  }
  .trab-hero__line {
    width: 100%;
  }

  /* Intro */
  .trab-intro__inner {
    flex-direction: column;
    gap: 24px;
  }
  .trab-intro__text {
    gap: 12px;
  }
  .trab-intro__image {
    flex: none;
    width: 100%;
    max-width: 100%;
  }

  /* Form */
  .trab-form {
    padding: 20px 16px;
    border-radius: 16px;
  }
  .trab-form__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .trab-form__field--full {
    grid-column: auto;
  }
  .trab-form__field--checkbox {
    justify-content: flex-start;
  }
  .trab-form__label {
    font-size: 15px;
  }
  .trab-form__input,
  .trab-form__textarea {
    font-size: 15px;
    padding: 12px 14px;
  }
  .trab-form__file-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .trab-form__file-btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .trab-form__submit-wrap {
    margin-top: 24px;
  }
  .trab-form__submit {
    width: 100%;
    min-width: unset;
  }
}

/* --- Small mobile (≤ 400px) --- */
@media (max-width: 400px) {
  .trab-hero__title {
    font-size: 22px;
  }
  .trab-form {
    padding: 16px 12px;
  }
}
