/* "Qué gana tu consultorio" — four outcome cards. From the Que Gana design.
   Reuses .reveal / .js-reveal from how-it-works.css and js/reveal.js. */

.benefits {
  background: var(--surface);
  color: var(--on-surface);
  padding-block: 48px 44px;
  scroll-margin-top: calc(var(--header-h) + var(--space-4));
}

.benefits__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.benefits__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-lime);
}
.benefits__eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: currentColor;
}

.benefits__title {
  font-size: var(--text-display);
  font-weight: var(--fw-bold);
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

.benefits__lead {
  font-size: var(--text-body);
  line-height: 1.55;
  color: var(--on-surface-muted);
}

.benefits__grid {
  display: grid;
  gap: 14px;
  margin-top: 32px;
}
/* Stagger the reveal + count (see reveal.js); timing math lives in the
   shared rule in how-it-works.css. */
.benefits__card:nth-child(2) { --reveal-i: 1; }
.benefits__card:nth-child(3) { --reveal-i: 2; }
.benefits__card:nth-child(4) { --reveal-i: 3; }

.benefits__card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: 22px 20px;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 20px;
  background: rgb(255 255 255 / 0.055);
}
/* The fourth card (staff takeover) is the featured one, in sky. */
.benefits__card--featured {
  position: relative;
  overflow: hidden;
  background: rgb(157 196 213 / 0.14);
  border-color: rgb(157 196 213 / 0.32);
}

.benefits__card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.benefits__num {
  font-size: 2rem;
  font-weight: var(--fw-extralight);
  line-height: 1;
  color: var(--color-lime);
}
.benefits__rule {
  flex: 1;
  height: 1px;
  background: rgb(255 255 255 / 0.16);
}
.benefits__card--featured .benefits__rule { background: rgb(157 196 213 / 0.32); }
.benefits__mark {
  height: 22px;
  width: auto;
  opacity: 0.9;
}

.benefits__card-title {
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  line-height: 1.2;
}
.benefits__card-text {
  font-size: 1rem;
  line-height: 1.5;
  color: rgb(255 255 255 / 0.82);
}
.benefits__card--featured .benefits__card-text { color: rgb(255 255 255 / 0.86); }

.benefits__close {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 0.18);
  font-size: 1.3125rem;
  font-weight: var(--fw-light);
  line-height: 1.35;
}

@media (min-width: 900px) {
  .benefits { padding-block: 88px; }

  .benefits__intro {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: end;
  }
  .benefits__title { line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
  .benefits__lead { max-width: 46ch; margin-bottom: 6px; font-size: 1.1875rem; line-height: 1.6; }

  .benefits__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 56px;
  }
  .benefits__card {
    gap: 14px;
    padding: 36px 34px;
    min-height: 230px;
    border-radius: 24px;
  }
  .benefits__num { font-size: 2.75rem; }
  .benefits__card-title { font-size: 1.625rem; line-height: 1.18; }
  .benefits__card-text { max-width: 40ch; font-size: var(--text-body); line-height: 1.55; }

  .benefits__close {
    margin-top: var(--space-16);
    padding-top: 32px;
    font-size: 1.875rem;
  }
}
