/* ==========================================================================
   Component: Image + Text — Figma mod 2 (fondo + máscara 84px / 40px)
   ========================================================================== */

.section-image-text.section-wrapper {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--section-padding-y-lg);
}

.section-image-text__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.section-image-text__bg-el {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  opacity: 0.1;
}

.section-image-text__wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 130px;
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
}

.section-image-text__media {
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Móvil: imagen arriba si va a la izquierda en desktop; si va a la derecha, texto arriba */
.section-image-text--image-left .section-image-text__media {
  order: -1;
}

/* Máscara tipo Figma (sustituye mask-image SVG) */
.section-image-text__mask {
  width: 100%;
  max-width: 521px;
  aspect-ratio: 521 / 652;
  max-height: 660px;
  border-radius: 87px 87px 18px 87px;
  overflow: hidden;
  margin-inline: auto;
}

.section-image-text__mask img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-image-text__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  width: 100%;
  margin-inline: auto;
  text-align: left;
}

.section-image-text .section-wrapper--heading-left .section-image-text__title,
.section-image-text__title {
  margin: 0;
  max-width: none;
  color: var(--color-heading, var(--color-text));
  text-align: left;
}

.section-image-text__title-accent {
  color: var(--section-bg-green, var(--color-brand-green));
}

.section-image-text__description {
  width: 100%;
  font-family: "Poppins", sans-serif;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.22;
  color: var(--color-text);
  text-align: left;
}

.section-image-text__description strong {
  color: var(--color-text-muted);
}

.section-image-text__description p {
  margin: 0 0 1rem;
}

.section-image-text__description p:last-child {
  margin-bottom: 0;
}

.section-image-text__highlight {
  width: 100%;
  color: var(--color-text-muted, var(--section-bg-green));
  text-align: left;
}

@media (max-width: 1023px) {


  .home [data-image-text-index="2"] .section-image-text__bg-el {
    object-position: -830px center;
  }

  .home [data-image-text-index="7"] .section-image-text__bg-el {
    object-position: -50px center;
  }
}

@media (min-width: 1024px) {
  .section-image-text__wrapper {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .section-image-text--image-left .section-image-text__wrapper {
    flex-direction: row;
  }

  .section-image-text--image-right .section-image-text__wrapper {
    flex-direction: row-reverse;
  }

  .section-image-text--image-left .section-image-text__media,
  .section-image-text--image-right .section-image-text__media {
    order: 0;
  }

  .section-image-text__media {
    justify-content: flex-start;
  }

  .section-image-text--image-right .section-image-text__media {
    justify-content: flex-end;
  }

  .section-image-text__mask {
    margin-inline: 0;
  }

  .section-image-text__content {
    flex: 1 1 0;
    align-items: flex-start;
    margin-inline: 0;
    text-align: left;
    width: 100%;
  }

  .section-image-text .section-wrapper--heading-left .section-image-text__title,
  .section-image-text__title {
    text-align: left;
  }
}

/* Móvil — Figma node 642:2363 (mod 2): columna, imagen arriba, radios y tipografía específicos */
@media (max-width: 1023px) {
  .section-image-text.section-wrapper {
    padding-block: 42px;
    padding-inline: 16px;
  }

  .section-image-text__wrapper {
    flex-direction: column;
    gap: 32px;
  }

  /* Siempre imagen primero en móvil (el diseño no invierte texto/imagen) */
  .section-image-text--image-left .section-image-text__media,
  .section-image-text--image-right .section-image-text__media {
    order: -1;
  }

  .section-image-text__content {
    order: 0;
    gap: 24px;
    padding-inline: 16px;
    box-sizing: border-box;
    align-items: flex-start;
  }

  /* Máscara: 279px alto; TL/TR/BL 67px, BR 14px */
  .section-image-text__mask {
    aspect-ratio: auto;
    width: 100%;
    max-width: none;
    height: 279px;
    max-height: none;
    margin-inline: 0;
    border-radius: 54px 54px 12px 54px;
  }

  /* H2 S — Avantt SemiBold 28 / línea 1 */
  .section-image-text .section-image-text__title,
  .section-image-text .section-wrapper--heading-left .section-image-text__title {
    font-family: "Avantt", "Poppins", sans-serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 1;
    text-align: left;
  }

  /* Body Large S — Poppins Regular 14 / 18 */
  .section-image-text__description {
    font-size: 14px;
    font-weight: 300;
    line-height: 18px;
    text-align: left;
  }
}