/* ==========================================================================
   Business — Steps (Figma mod 2, nodo 538:1131)
   Desktop first; móvil en media queries.
   ========================================================================== */

.section-business-steps.section-wrapper {
  /* #FCFBEB + 120px 80px en diseño */
  padding-block: 120px 60px;
  padding-inline: 5rem;
  box-sizing: border-box;
}

.section-business-steps__inner {
  max-width: 90rem;
  margin-inline: auto;
}

/* Cabecera: H2 60px verde; subtítulo 20px / 26px verde oscuro, max 842px */
.section-business-steps__header {
  text-align: center;
  margin: 0 auto 5rem;
}

.section-business-steps__title {
  margin: 0 0 2.5rem;
  font-family: "Avantt", "Poppins", sans-serif;
  font-weight: 500;
  line-height: 1;
  color: var(--section-bg-green, #00cd65) !important;
  text-wrap: balance;
}

@media (min-width: 1024px) {
  .section-business-steps__title {
    font-size: 28px;

  }
}

.section-business-steps__title-highlight {
  color: var(--section-bg-green, #00cd65);
}

.section-business-steps__subtitle {
  margin: 0 auto;
  max-width: 52.625rem;
  font-family: "Poppins", sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
  color: var(--section-bg-dark, #005146);
}

.section-business-steps__subtitle p {
  margin: 0 0 0.75em;
}

.section-business-steps__subtitle p:last-child {
  margin-bottom: 0;
}

.section-wrapper--dark .section-business-steps__title,
.section-wrapper--green .section-business-steps__title {
  color: var(--color-heading, var(--color-text));
}

.section-wrapper--dark .section-business-steps__subtitle,
.section-wrapper--green .section-business-steps__subtitle {
  color: var(--color-text, inherit);
}

.section-business-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Fila: max 1064px, gap 80px; paso 2 = reverse (texto | imagen) */
.business-step__row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 5rem;
  width: 100%;
  max-width: 66.5rem;
}

.business-step__row--reverse {
  flex-direction: row-reverse;
}

/* Bloque móvil + decoración */
.business-step__media {
  position: relative;
  flex: 0 0 auto;
  width: 21.25rem;
  min-height: 29.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* “Pastilla” verde oscuro detrás del phone (Figma vector) */
.business-step__media-frame {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 21.25rem;
  height: 21.2rem;
  transform: translate(-50%, -50%);
  background-color: var(--section-bg-dark, #005146);
  border-radius: 63px 63px 13px 63px;
  z-index: 0;
  pointer-events: none;
}

.business-step--reverse .business-step__media-frame {
  transform: translate(-50%, -50%);
}

.business-step__media-img-wrap {
  position: relative;
  z-index: 1;
  width: 16.625rem;
  max-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.business-step__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  max-height: 29.5rem;
}

/* --------------------------------------------------------------------------
   Reveal: solo el wrap de la imagen (el marco .business-step__media-frame
   queda fijo). Disparo vía [data-reveal-visible] en .business-step__media.
   Imagen a la izq → der; reverse (imagen der): der → izq.
   -------------------------------------------------------------------------- */
body.has-step-media-reveal .business-step__media[data-business-step-reveal]:not([data-reveal-visible="true"]) .business-step__media-img-wrap {
  opacity: 0;
  transform: translate3d(-2.75rem, 0, 0);
  transition: none;
}

body.has-step-media-reveal .business-step--reverse .business-step__media[data-business-step-reveal]:not([data-reveal-visible="true"]) .business-step__media-img-wrap {
  transform: translate3d(2.75rem, 0, 0);
}

body.has-step-media-reveal .business-step__media[data-business-step-reveal] .business-step__media-img-wrap {
  will-change: transform, opacity;
  backface-visibility: hidden;
}

body.has-step-media-reveal .business-step__media[data-business-step-reveal][data-reveal-visible="true"] .business-step__media-img-wrap {
  opacity: 1;
  transform: none;
  transition:
    transform 0.8s cubic-bezier(0.18, 0.82, 0.18, 1) 0.2s,
    opacity 0.6s ease 0.1s;
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .business-step__media[data-business-step-reveal] .business-step__media-img-wrap {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Copy: 410px */
.business-step__content {
  flex: 0 1 25.625rem;
  min-width: 0;
  max-width: 25.625rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.business-step__content-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

[data-step-open="true"] .business-step__content-inner {
  gap: 1.25rem;
}

/* STEP n — texto verde 28px (no pastilla rellena en Figma) */
.business-step__label {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 34px;
  color: var(--section-bg-green, #00cd65);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.business-step__title {
  margin: 0;
  font-family: "Poppins", sans-serif;
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 42px;
  color: var(--section-bg-dark, #005146);
}

.section-wrapper--dark .business-step__title,
.section-wrapper--green .business-step__title {
  color: var(--color-heading, var(--color-text));
}

/* Texto plegable */
.business-step__text {
  display: grid;
  grid-template-rows: 0fr;
  width: 100%;
  transition: grid-template-rows 0.4s ease;
}

.business-step__text-inner {
  min-height: 0;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 20px;
  color: var(--color-text);
  opacity: 0;
  transform: translateY(-4px);
  transition:
    opacity 0.3s ease,
    transform 0.35s ease;
}

.business-step__text-inner p {
  margin: 0 0 0.75rem;
}

.business-step__text-inner p:last-child {
  margin-bottom: 0;
}

.business-step[data-step-open="true"] .business-step__text {
  grid-template-rows: 1fr;
}

.business-step[data-step-open="true"] .business-step__text-inner {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

/* View more: 16px regular + círculo 30px outline verde oscuro (plus / minus) */
.business-step__toggle {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.3;
  color: var(--section-bg-dark, #005146);
  transition:
    opacity 0.2s ease,
    color 0.25s ease;
}

.business-step__toggle:focus-visible {
  outline: 2px solid var(--section-bg-green, #00cd65);
  outline-offset: 4px;
  border-radius: 4px;
}

.business-step__toggle-label {
  transition: color 0.25s ease;
}

.business-step__toggle-icon {
  position: relative;
  flex-shrink: 0;
  width: 1.875rem;
  height: 1.875rem;
  border-radius: 50%;
  box-sizing: border-box;
  background-color: transparent;
  border: 2px solid var(--section-bg-dark, #005146);
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.business-step__toggle-icon::before,
.business-step__toggle-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.6875rem;
  height: 2px;
  border-radius: 9999px;
  background-color: var(--section-bg-dark, #005146);
  transition:
    transform 0.3s ease,
    opacity 0.25s ease,
    background-color 0.3s ease;
}

.business-step__toggle-icon::before {
  transform: translate(-50%, -50%) rotate(0deg);
}

.business-step__toggle-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.business-step[data-step-open="true"] .business-step__toggle-icon::after {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(90deg) scale(0.2);
}

.business-step[data-step-open="true"] .business-step__toggle-icon::before {
  transform: translate(-50%, -50%) rotate(0deg);
}

/* Hover / focus del icono: fondo verde lima, trazos (+/−) crema */
.business-step__toggle:hover .business-step__toggle-label,
.business-step__toggle:focus-visible .business-step__toggle-label {
  color: var(--section-bg-green, #00cd65);
}

.business-step__toggle:hover .business-step__toggle-icon,
.business-step__toggle:focus-visible .business-step__toggle-icon {
  background-color: var(--section-bg-green, #00cd65);
  border-color: var(--section-bg-green, #00cd65);
}

.business-step__toggle:hover .business-step__toggle-icon::before,
.business-step__toggle:hover .business-step__toggle-icon::after,
.business-step__toggle:focus-visible .business-step__toggle-icon::before,
.business-step__toggle:focus-visible .business-step__toggle-icon::after {
  background-color: var(--section-bg-light, #fcfbeb);
}

@media (prefers-reduced-motion: reduce) {

  .business-step__text,
  .business-step__text-inner,
  .business-step__toggle-label,
  .business-step__toggle-icon,
  .business-step__toggle-icon::before,
  .business-step__toggle-icon::after {
    transition: none;
  }
}

@media (max-width: 1023px) {

  /* Figma mod 2 móvil (875:1643): py 42px, px 38px, columna centrada, escalas H3 S / cuerpo 14/18 */
  .section-business-steps.section-wrapper {
    padding-block: 42px 24px;
    padding-inline: 38px;
  }

  .section-business-steps__inner {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }

  .section-business-steps__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 22.375rem;
    margin-inline: auto;
    margin-bottom: 0;
    text-align: center;
  }

  .section-business-steps__title {
    margin: 0;
  }

  .section-business-steps__subtitle {
    max-width: 22.375rem;
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 500;
    line-height: 23px;
    text-align: center;
  }

  .section-business-steps__list {
    gap: 2rem;
  }

  .business-step__row,
  .business-step__row--reverse {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    max-width: 100%;
  }

  .business-step__media {
    width: auto;
    max-width: none;
    min-height: 0;
  }

  .business-step__media-frame {
    width: 180px;
    height: 180px;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    border-radius: 33px 33px 13px 33px;
  }

  .business-step--reverse .business-step__media-frame {
    transform: translate(-50%, -50%);
  }

  .business-step__media-img-wrap {
    width: 142px;
    max-width: 142px;
  }

  .business-step__img {
    width: 142px;
    max-width: 142px;
    height: auto;
    max-height: none;
  }

  .business-step__content {
    align-items: flex-start;
    max-width: 24.375rem;
    text-align: center;
    flex: none;
    gap: 0;
  }

  .business-step__content-inner {
    align-items: flex-start;
    width: 100%;
  }

  .business-step__label {
    font-size: 18px;
    line-height: 24px;
    text-align: center;
  }

  .business-step__title {
    font-size: 22px;
    line-height: 28px;
    text-align: left;
    padding-block: 8px;
  }

  .business-step__toggle {
    justify-content: center;
    font-size: 0.875rem;
    line-height: 18px;
  }

  .business-step__toggle[aria-expanded="false"] {
    margin-top: 12px;
  }

  .business-step__toggle-icon {
    width: 1.5625rem;
    height: 1.5625rem;
  }

  .business-step__toggle-icon::before,
  .business-step__toggle-icon::after {
    width: 0.5625rem;
  }

  .business-step__text-inner {
    font-size: 14px;
    line-height: 18px;
    text-align: left;
  }

  body.has-step-media-reveal .business-step__media[data-business-step-reveal][data-reveal-visible="true"] .business-step__media-img-wrap {
    transition:
      transform 0.55s cubic-bezier(0.18, 0.82, 0.18, 1) 0s,
      opacity 0.45s ease 0s;
  }
}