/* Sugerido: app/assets/stylesheets/components/mas_section.css */
.mediation-hero {
  --mediation-blue: #636260;
  --mediation-red: #FB809D;
  --mediation-red-hover: #FB809D;
  --mediation-white: #FDEAF2;
  align-items: center;
  background: var(--mediation-white);
  box-sizing: border-box;
  color: var(--mediation-blue);
  display: flex;
  font-family: "Sarabun", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  justify-content: center;
  min-height: min(760px, 100svh);
  overflow-x: clip;
  padding: clamp(48px, 7vw, 96px) clamp(16px, 4vw, 40px) clamp(40px, 6vw, 64px);
  scroll-margin-top: var(--navbar-height, 88px);
  width: 100%;
}

.mediation-hero__inner {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 3vw, 30px);
  margin: 0 auto;
  max-width: min(1120px, 100%);
  width: 100%;
}

.mediation-hero__intro {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vw, 20px);
  max-width: min(780px, 100%);
  width: 100%;
}

.mediation-hero__eyebrow {
  font-size: clamp(20px, 3.4vw, 36px);
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  max-width: 40ch;
  text-align: center;
}

.mediation-hero__cta {
  align-items: center;
  background: var(--mediation-red);
  border-radius: 30px;
  box-sizing: border-box;
  color: var(--mediation-white);
  display: grid;
  gap: clamp(10px, 2vw, 16px);
  grid-template-columns: 1fr auto;
  max-width: 100%;
  padding: clamp(18px, 3vw, 25px);
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.mediation-hero__cta:hover,
.mediation-hero__cta:focus-visible {
  background: var(--mediation-red-hover);
  box-shadow: 0 12px 30px rgba(224, 45, 40, 0.2);
  color: var(--mediation-white);
  transform: translateY(-1px);
}

.mediation-hero__cta:focus-visible {
  outline: 3px solid rgba(15, 105, 180, 0.35);
  outline-offset: 4px;
}

.mediation-hero__cta-text {
  display: block;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-wrap: balance;
}

.mediation-hero__cta-text strong {
  font-size: clamp(23px, 3vw, 25px);
  font-weight: 800;
  white-space: nowrap;
}

.mediation-hero__cta-icon {
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 700;
  line-height: 1;
}

.mediation-hero__benefits {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 980px;
  width: 100%;
}

.mediation-benefit {
  align-items: center;
  background: #aba9a5;
  border-radius: 14px;
  box-sizing: border-box;
  color: var(--mediation-white);
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  min-height: 150px;
  padding: 20px 16px;
  text-align: center;
  width: 100%;
}

.mediation-benefit__link {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: opacity 0.2s ease, text-underline-offset 0.2s ease;
}

.mediation-benefit__link:hover,
.mediation-benefit__link:focus {
  color: #fff;
  opacity: 0.82;
  text-underline-offset: 5px;
}
.mediation-benefit__icon {
  font-size: 37px;
  line-height: 1;
  color: #fff;
}

.mediation-benefit__title {
  /* font-size: 37px;
  line-height: 1; */
  color: #fff;
}

@media (max-width: 767px) {
  .mediation-hero__benefits {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

@media (min-width: 1200px) {
  .mediation-hero__eyebrow {
    max-width: 100%;
  }
}

@media (max-width: 1024px) {
  .mediation-hero {
    min-height: auto;
  }

  .mediation-hero__benefits {
    width: min(100%, 720px);
  }
}

@media (max-width: 767px) {
  .mediation-hero {
    min-height: auto;
    padding: 48px 16px 40px;
  }

  .mediation-hero__intro {
    gap: 14px;
  }

  .mediation-hero__eyebrow {
    max-width: 14ch;
  }

  .mediation-hero__cta {
    border-radius: 24px;
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .mediation-hero__cta-text strong {
    white-space: normal;
  }

  .mediation-hero__cta-icon {
    font-size: 34px;
  }

  .mediation-hero__benefits {
    margin-top: 10px;
    width: 100%;
  }

  .mediation-hero__benefits-track,
  .mediation-hero__benefits-track .mediation-benefit {
    min-height: 190px;
  }
}

@media (max-width: 380px) {
  .mediation-hero {
    padding-left: 12px;
    padding-right: 12px;
  }

  .mediation-hero__cta {
    padding: 18px 14px;
  }

  .mediation-hero__benefits-track,
  .mediation-hero__benefits-track .mediation-benefit {
    min-height: 210px;
  }
}

@keyframes mediation-benefit-slide {
  0%,
  26% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  33%,
  100% {
    opacity: 0;
    transform: translateX(-18px) scale(0.98);
  }
}

@keyframes mediation-benefit-dot {
  0%,
  26% {
    background: var(--mediation-blue);
    transform: scale(1.22);
  }

  33%,
  100% {
    background: rgba(15, 105, 180, 0.28);
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mediation-hero__benefits-track,
  .mediation-hero__benefits-dots {
    display: none;
  }

  .mediation-hero__benefits-list {
    display: grid;
    gap: 10px;
  }

  .mediation-benefit {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
