/* El encuadre principal identifica la portada en las dos versiones del sitio. */
html[lang="en"] body:has(.hero-wrapper) {
  .metrics-card {
    container-type: inline-size;
  }
  .metrics-card h5 {
    font-size: clamp(.8125rem, .95vw, 1rem);
    line-height: 1.4;
    letter-spacing: .09em;
  }
  .metrics-card :is(h4, .heading-2) {
    font-size: clamp(1.25rem, 13cqi, 2.5rem);
    line-height: 1.1;
    overflow-wrap: normal;
  }
  .metrics-card .heading-2 > .outline-white {
    font-size: inherit;
    line-height: inherit;
  }
  .metrics-card .metrics-flex {
    gap: clamp(.5rem, 4cqi, .875rem);
  }
  .metrics-flex img[width="64"] {
    flex: none;
    width: clamp(1.75rem, 17cqi, 3.5rem);
    height: auto;
  }
  .reviews-text {
    text-align: start;
    text-wrap: pretty;
    font-size: clamp(1.65rem, 3.8vw, 3.5rem);
    line-height: 1.2;
  }
  .reviews-arrow.right {
    right: 0;
    bottom: 0;
  }

  @media (min-width: 480px) and (max-width: 1100px) {
    .metrics-grid-quarter {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 20rem));
      justify-content: center;
      align-items: stretch;
    }
    .metrics-card {
      width: 100%;
      min-width: 0;
      max-width: none;
      min-height: clamp(14rem, 36vw, 20rem);
      max-height: none;
      padding: clamp(1.25rem, 3vw, 2rem);
    }
  }

  @media (min-width: 992px) {
    .card-flex {
      display: grid;
      grid-template-columns: minmax(0, 2.05fr) repeat(2, minmax(0, 1fr));
    }
    .card-flex > .card-block {
      min-width: 0;
      align-items: stretch;
    }
    .card-flex :is(img, .card-large-short, .card-small-short) {
      width: 100%;
      min-width: 0;
      max-width: 100%;
    }
    .card-flex img { object-fit: cover; }
  }

  @media (max-width: 479px) {
    .card-flex > .card-block {
      width: 100%;
      min-width: 0;
    }
    .card-flex :is(.text-block-2, .text-block-3, .text-block-4, .text-block-5) {
      font-size: clamp(1.65rem, 7.4vw, 2.15rem);
      line-height: 1.1;
    }
  }
}
