/* =====================================================================
   Martec — Trabaja con nosotros
   Página de la convocatoria de personal.
   ===================================================================== */

body {
  background: var(--gray);
}

.tk {
  width: 70%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 0 84px;
  display: flex;
  flex-direction: column;
  row-gap: 32px;
}

/* =====================================================================
   PORTADA
   ===================================================================== */
.tk-hero {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 44px 48px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  row-gap: 30px;
}

.tk-hero__eyebrow {
  display: inline-block;
  align-self: flex-start;
  background: var(--green-tint);
  color: var(--green-deep);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 7px 14px;
}

.tk-hero__title {
  font-size: clamp(34px, 5.4vw, 58px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
}

.tk-hero__title em {
  font-style: normal;
  color: var(--green-deep);
}

.tk-hero__lead {
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.6;
  color: #333;
  max-width: 62ch;
}

.tk-role {
  background: var(--ink);
  border-radius: var(--radius-card);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  row-gap: 16px;
}

.tk-role__puesto {
  color: var(--white);
  font-size: clamp(26px, 3.8vw, 40px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
}

.tk-role__tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.tk-role__chip {
  display: inline-flex;
  align-items: center;
  background: var(--green);
  color: var(--ink);
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 20px;
}

.tk-role__pill {
  display: inline-flex;
  align-items: center;
  column-gap: 10px;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-pill);
  font-size: 16px;
  font-weight: 700;
  padding: 10px 20px;
}

.tk-role__pill svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: var(--green-deep);
}

/* =====================================================================
   REMUNERACIÓN
   ===================================================================== */
.tk-pay {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  background: var(--green-deep);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
}

.tk-pay__item {
  background: var(--green-deep);
  color: var(--white);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  row-gap: 8px;
  justify-content: center;
}

.tk-pay__item + .tk-pay__item {
  border-left: 1px solid rgba(255, 255, 255, 0.35);
}

.tk-pay__amount {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.01em;
}

.tk-pay__label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #d9ffe9;
}

.tk-pay__hint {
  font-size: 14px;
  line-height: 1.4;
  color: #eafff3;
}

.tk-pay__amount--alt {
  color: var(--green);
}

/* =====================================================================
   TARJETAS DE INFORMACIÓN
   ===================================================================== */
.tk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.tk-card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 30px 32px 32px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  row-gap: 18px;
}

.tk-card__head {
  display: flex;
  align-items: center;
  column-gap: 14px;
}

.tk-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
}

.tk-card__icon svg {
  width: 24px;
  height: 24px;
  fill: var(--ink);
}

.tk-card__title {
  font-size: clamp(19px, 2.2vw, 23px);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  margin: 0;
}

.tk-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  row-gap: 12px;
}

.tk-card__list li {
  position: relative;
  padding-left: 32px;
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

.tk-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.6 16.2 5.4 12l-1.4 1.4 5.6 5.6L20.4 8.2 19 6.8z'/%3E%3C/svg%3E")
    center / 15px 15px no-repeat;
}

.tk-card__sub {
  font-size: 15px;
  line-height: 1.5;
  color: #555;
}

.tk-card__row {
  display: flex;
  align-items: flex-start;
  column-gap: 10px;
}

.tk-card__row svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 2px;
  fill: var(--green-deep);
}

.tk-card__row p {
  font-size: 16px;
  line-height: 1.5;
  color: #333;
}

.tk-card__row strong {
  font-weight: 700;
}

.tk-card__hint {
  border-top: 1px dashed var(--line);
  padding-top: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}

/* =====================================================================
   POSTULACIÓN
   ===================================================================== */
.tk-postula {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 40px 48px 44px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  scroll-margin-top: 120px;
}

.tk-postula__title {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 800;
  margin: 0 0 10px;
}

.tk-postula__lead {
  font-size: 16px;
  line-height: 1.6;
  color: #444;
  max-width: 64ch;
  margin-bottom: 26px;
}

.tk-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}

.tk-field {
  display: flex;
  flex-direction: column;
  row-gap: 7px;
  min-width: 0;
}

.tk-field--wide {
  grid-column: 1 / -1;
}

.tk-field__label {
  font-size: 15px;
  font-weight: 600;
}

.tk-field__req {
  color: #d64545;
}

.tk-field__input,
.tk-field__area {
  width: 100%;
  border: 1px solid #000;
  border-radius: 6px;
  background: transparent;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  padding: 11px 14px;
}

.tk-field__area {
  resize: vertical;
  min-height: 84px;
  line-height: 1.5;
}

.tk-field__input::placeholder,
.tk-field__area::placeholder {
  color: #767676;
}

.tk-field__input:focus,
.tk-field__area:focus {
  outline: none;
  border-color: var(--green-deep);
  box-shadow: 0 0 0 2px rgba(72, 213, 151, 0.3);
}

.tk-field__input.is-invalid,
.tk-field__area.is-invalid {
  border-color: #d64545;
  background: #fffafa;
}

.tk-field__error {
  font-size: 13px;
  line-height: 1.4;
  color: #d64545;
  margin: 0;
}

.tk-field__error:empty {
  display: none;
}

.tk-alert {
  display: none;
  border: 1px solid #d64545;
  background: #fdecec;
  color: #a32020;
  border-radius: var(--radius-pill);
  font-size: 15px;
  line-height: 1.5;
  padding: 12px 18px;
  margin: 0 0 22px;
}

.tk-alert.is-visible {
  display: block;
}

.tk-postula__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 26px;
  margin-top: 26px;
}

.tk-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  column-gap: 10px;
  background: #000;
  border: 1px solid #000;
  border-radius: var(--radius-pill);
  color: #fff;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 600;
  padding: 15px 34px;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.tk-button svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: var(--green);
}

.tk-button:hover,
.tk-button:focus-visible {
  background: var(--green-deep);
  border-color: var(--green-deep);
  transform: translateY(-2px);
}

.tk-button--ghost {
  background: var(--white);
  border-color: var(--ink);
  color: var(--ink);
}

.tk-button--ghost svg {
  fill: var(--green-deep);
}

.tk-button--ghost:hover,
.tk-button--ghost:focus-visible {
  background: var(--green);
  border-color: var(--green);
  color: var(--ink);
}

.tk-postula__note {
  font-size: 14px;
  line-height: 1.55;
  color: #555;
  margin-top: 18px;
}

/* =====================================================================
   BANDA FINAL
   ===================================================================== */
.tk-band {
  background: var(--ink);
  border-radius: var(--radius-card);
  padding: 30px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 28px;
}

.tk-band__text {
  display: flex;
  align-items: center;
  column-gap: 16px;
}

.tk-band__text svg {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  fill: var(--green);
}

.tk-band__title {
  color: var(--white);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 4px;
}

.tk-band__text p {
  font-size: 15px;
  color: #cfcfcf;
}

.tk-band__numero {
  display: flex;
  align-items: center;
  column-gap: 14px;
  color: var(--green);
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.tk-band__numero svg {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  fill: var(--green);
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1322px) {
  .tk {
    width: 92%;
  }
}

@media (max-width: 981px) {
  .tk-hero,
  .tk-postula {
    padding-left: 28px;
    padding-right: 28px;
  }

  .tk-pay {
    grid-template-columns: minmax(0, 1fr);
  }

  .tk-pay__item + .tk-pay__item {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.35);
  }

  .tk-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 665px) {
  .tk {
    width: 92%;
    padding: 28px 0 72px;
    row-gap: 24px;
  }

  .tk-hero,
  .tk-postula,
  .tk-card,
  .tk-band {
    padding: 26px 20px 30px;
    border-radius: 16px;
  }

  .tk-role {
    padding: 22px 20px;
    border-radius: 16px;
  }

  .tk-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .tk-postula__actions {
    flex-direction: column;
  }

  .tk-button {
    width: 100%;
  }

  .tk-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .tk-band__numero {
    font-size: 28px;
  }
}
