/* ==========================================================================
   Workers — Steps Workers (Figma Casu Website, nodo 602:1753)
   Desktop first; valores en px. Entrada escalonada vía data-section-steps-workers-reveal.
   ========================================================================== */

.section-steps-workers.section-wrapper {
  padding-block: 0 120px;
  box-sizing: border-box;
}

.section-steps-workers__inner {
  max-width: 1440px;
  margin-inline: auto;
}

.section-steps-workers__header {
  text-align: center;
  margin: 0 auto 48px;
  max-width: 900px;
}

.section-steps-workers__title {
  margin: 0;
  font-family: "Avantt", "Poppins", sans-serif;
  font-size: 60px;
  font-weight: 500;
  line-height: 60px;
  color: var(--section-bg-dark);
  text-wrap: balance;
}

.section-steps-workers__media {
  margin: 0 auto 64px;
  max-width: 1280px;
  height: 450px;
  border-radius: 126px 126px 26px 126px;
  overflow: hidden;
  background: #ffffff;
}

.section-steps-workers__media-img {
  display: block;
  width: 100%;
  height: 450px;
  object-fit: cover;
  object-position: center;
}

.section-steps-workers__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 80px;
  max-width: 1064px;
  margin-inline: auto;
}

.section-steps-workers__item {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
}

.section-steps-workers__item-copy {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  text-align: center;
  width: 100%;
}

.section-steps-workers__step-label {
  font-family: "Poppins", sans-serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 34px;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.56px;
}

.section-steps-workers__illustration {
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.section-steps-workers__illustration-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.section-steps-workers__item-title {
  font-family: "Poppins", sans-serif;
  font-size: 36px;
  font-weight: 500;
  line-height: 42px;
  color: var(--color-text);
}

.section-steps-workers__item-desc {
  margin: 0;
  max-width: 410px;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 20px;
  color: var(--color-text);
}

.section-steps-workers__item-desc p {
  margin: 0 0 12px;
}

.section-steps-workers__item-desc p:last-child {
  margin-bottom: 0;
}

/* Entrada al scroll: JS añade .is-in-view cuando ≥50% del módulo es visible (misma lógica que section-cards). */
.section-steps-workers[data-section-steps-workers-reveal] .section-steps-workers__item {
  opacity: 0;
  transform: translate3d(0, -40px, 0);
  transition:
    opacity 0.6s ease-out,
    transform 0.6s ease-out;
  transition-delay: calc(var(--section-steps-workers-stagger, 0) * 0.5s);
  will-change: opacity, transform;
}

.section-steps-workers[data-section-steps-workers-reveal].is-in-view .section-steps-workers__item {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .section-steps-workers[data-section-steps-workers-reveal] .section-steps-workers__item {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }
}

/* Figma node 926:178 (mod 3) — solo móvil / tablet <1024px */
@media (max-width: 1023px) {
  .section-steps-workers.section-wrapper {
    padding-block: 42px;
    padding-inline: 16px;
    box-sizing: border-box;
  }

  .section-steps-workers__item-title {
    font-size: 22px;
    line-height: 28px;
  }

  .section-steps-workers__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    box-sizing: border-box;
    width: 100%;
  }

  .section-steps-workers__header {
    margin: 0;
    max-width: 358px;
  }

  /* Alineado con tokens H2 móvil (--section-h2-title-font-size-mobile) */
  .section-steps-workers__title {
    font-size: var(--section-h2-title-font-size-mobile);
    line-height: var(--section-h2-title-line-height-mobile);
    text-align: center;
    max-width: 100%;
  }

  .section-steps-workers__media {
    width: 100%;
    max-width: 358px;
    height: 201px;
    margin: 0;
    border-radius: 54px 54px 12px 54px;
    overflow: hidden;
  }

  .section-steps-workers__media-img {
    width: 100%;
    height: 201px;
    object-fit: cover;
    object-position: center;
  }

  .section-steps-workers__list {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: none;
    width: 100%;
  }

  .section-steps-workers__item {
    gap: 24px;
  }

  .section-steps-workers__item-copy {
    gap: 8px;
    padding-inline: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Figma: ancho ilustración 100px, alto por paso */
  .section-steps-workers__illustration {
    width: 100px;
    height: 120px;
  }

  .section-steps-workers__item:nth-child(1) .section-steps-workers__illustration {
    height: 120px;
  }

  .section-steps-workers__item:nth-child(2) .section-steps-workers__illustration {
    height: 106px;
  }

  .section-steps-workers__item:nth-child(3) .section-steps-workers__illustration {
    height: 88px;
  }

  .section-steps-workers__item:nth-child(4) .section-steps-workers__illustration {
    height: 115px;
  }

  /* H5 S */
  .section-steps-workers__step-label {
    font-size: 18px;
    line-height: 24px;
    letter-spacing: 0;
  }

  /* Body Large S — ya coincide H4 título 22/28 */
  .section-steps-workers__item-desc {
    max-width: 314px;
    width: 100%;
    font-size: 14px;
    line-height: 18px;
  }

  .section-steps-workers__item-desc p {
    margin: 0 0 8px;
  }
}