/* Made For — carrusel de tipos de negocio */

.gastro-made-for {
  --gastro-made-for-word-height: 64px;
  --gastro-made-for-word-step: 76px;

  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 64px);
  padding: 80px 40px;
  box-sizing: border-box;
  overflow: hidden;
  background: #fff;
}

.gastro-made-for__content {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 8px;
  align-items: center;
  width: 100%;
  height: 848px;
}

.gastro-made-for__title {
  grid-column: 1 / span 8;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  height: var(--gastro-made-for-word-height);
  margin: 0;
  font-family: 'Proxima Nova A', 'Proxima Nova Alt', 'Proxima Nova', sans-serif;
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -2.24px;
  color: #282834;
  white-space: nowrap;
  font-feature-settings: 'salt' on, 'calt' off;
}

.gastro-made-for__title-prefix {
  flex: 0 0 auto;
}

.gastro-made-for__word-window {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 440px;
  height: var(--gastro-made-for-word-height);
  overflow: visible;
  color: #4850e5;
}

.gastro-made-for__word-track {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  transform: translateY(calc(-10 * var(--gastro-made-for-word-step)));
}

.gastro-made-for__word-track[data-animate='true'] {
  transition: transform 800ms cubic-bezier(0.7, -0.4, 0.4, 1.4);
}

.gastro-made-for__word-track[data-animate='false'] .gastro-made-for__word {
  transition: none;
}

.gastro-made-for__word {
  display: block;
  height: var(--gastro-made-for-word-height);
  color: #e7e9f4;
  line-height: var(--gastro-made-for-word-height);
  opacity: 0;
  transition:
    opacity 800ms cubic-bezier(0.7, -0.4, 0.4, 1.4),
    color 800ms cubic-bezier(0.7, -0.4, 0.4, 1.4);
}

.gastro-made-for__word[data-state='active'] {
  color: #4850e5;
  opacity: 1;
}

.gastro-made-for__word[data-state='idle'] {
  color: #e7e9f4;
}

.gastro-made-for__image-stage {
  position: relative;
  grid-column: 10 / span 3;
  justify-self: center;
  width: 360px;
  height: 360px;
}

.gastro-made-for__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 800ms cubic-bezier(0, 0, 0.58, 1);
}

.gastro-made-for__image[data-state='active'] {
  opacity: 1;
}

@media only screen and (max-width: 1919px) {
  .gastro-made-for__title {
    font-size: 56px;
    letter-spacing: -2.24px;
  }

  .gastro-made-for__word-window {
    width: 440px;
  }
}

@media only screen and (min-width: 1024px) and (max-width: 1365px) {
  .gastro-made-for {
    --gastro-made-for-word-height: 40px;
    --gastro-made-for-word-step: 52px;
  }

  .gastro-made-for__title {
    grid-column: 1 / span 9;
    font-size: 40px;
    letter-spacing: -1.6px;
  }

  .gastro-made-for__word-window {
    width: 340px;
    justify-content: center;
  }

  .gastro-made-for__image-stage {
    width: 312px;
    height: 312px;
  }
}

@media only screen and (min-width: 768px) and (max-width: 1023px) {
  .gastro-made-for {
    --gastro-made-for-word-height: 40px;
    --gastro-made-for-word-step: 52px;

    min-height: calc(100vh - 64px);
    padding: 80px 40px;
  }

  .gastro-made-for__content {
    min-height: 480px;
  }

  .gastro-made-for__title {
    grid-column: 1 / -1;
    font-size: 40px;
    letter-spacing: -1.6px;
  }

  .gastro-made-for__word-window {
    width: 340px;
    height: var(--gastro-made-for-word-height);
  }

  .gastro-made-for__image-stage {
    display: none;
  }
}

@media only screen and (max-width: 767px) {
  .gastro-made-for {
    --gastro-made-for-word-height: 32px;
    --gastro-made-for-word-step: 44px;

    padding: 80px 0;
    height: auto;
  }

  .gastro-made-for__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    min-height: 0;
    height: auto;
    padding: 88px 24px;
    box-sizing: border-box;
  }

  .gastro-made-for__title {
    order: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    height: auto;
    font-size: 32px;
    line-height: 100%;
    letter-spacing: -1.28px;
    white-space: normal;
  }

  .gastro-made-for__word-window {
    display: inline-flex;
    width: 100%;
    height: var(--gastro-made-for-word-height);
    overflow: hidden;
  }

  .gastro-made-for__word {
    font-size: 32px;
    line-height: 100%;
    letter-spacing: -1.28px;
  }

  .gastro-made-for__image-stage {
    order: 1;
    align-self: flex-start;
    width: 144px;
    height: 148px;
  }

  .gastro-made-for__image {
    width: 184px;
    height: 184px;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .gastro-made-for__word-track,
  .gastro-made-for__word,
  .gastro-made-for__image {
    transition: none;
  }
}
