/* Revisión tipográfica y responsive — agosto de 2026 */

:where(h1, h2, h3, summary) {
  text-wrap: balance;
}

:where(p, li, figcaption) {
  text-wrap: pretty;
}

.hero-copy {
  min-width: 0;
}

.hero h1 {
  max-inline-size: 20ch;
  font-size: clamp(2.65rem, 4.4vw, 4rem);
}

.lead,
.section-heading > p:last-child,
.image-split > div > p,
.final-cta .wrap > p {
  max-inline-size: 62ch;
}

.card {
  --card-pad: 32px;
  display: flex;
  flex-direction: column;
}

.card-media {
  margin: calc(var(--card-pad) * -1) calc(var(--card-pad) * -1) 26px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #dfeaf3;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.card:hover .card-media img {
  transform: scale(1.025);
}

.card p {
  margin-block: 0 22px;
}

.card a {
  margin-top: auto;
}

.pain-grid p {
  text-wrap: balance;
}

.steps strong,
.steps span {
  min-width: 0;
}

.final-cta .wrap > p {
  margin-inline: auto;
}

@media (max-width: 900px) {
  .hero h1 {
    max-inline-size: 19ch;
  }

  .split {
    gap: 48px;
  }
}

@media (max-width: 600px) {
  .wrap {
    width: min(100% - 32px, 1160px);
  }

  .nav-wrap {
    gap: 12px;
  }

  .brand img {
    width: 138px;
  }

  .site-header .button-small {
    display: inline-flex;
    margin-left: auto;
    padding: 9px 12px;
    font-size: 0.76rem;
    white-space: nowrap;
  }

  .hero h1 {
    max-inline-size: 16ch;
    font-size: clamp(2.2rem, 10.8vw, 2.7rem);
    line-height: 1.02;
  }

  .hero .actions,
  .final-cta .actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 14px;
  }

  .hero .actions .button,
  .final-cta .actions .button {
    width: 100%;
  }

  .hero .text-link {
    text-align: center;
  }

  .trust-list {
    display: grid;
    gap: 8px;
  }

  .section-heading,
  .section-heading > p:last-child {
    max-width: none;
  }

  .card {
    --card-pad: 26px;
    padding: 26px;
  }

  .image-split {
    gap: 38px;
  }

  .ai-panel {
    padding: 26px;
  }

  .final-cta {
    text-align: left;
  }

  .final-cta .centered {
    justify-content: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .card-media img {
    transition: none;
  }
}

@media (max-width: 360px) {
  .site-header .button-small {
    padding-inline: 10px;
    font-size: 0.7rem;
  }

  .brand img {
    width: 126px;
  }
}
