/* Legacy-parity text rendering: the old Creditas site sets
 * -webkit-font-smoothing: antialiased globally, which renders type
 * lighter/thinner on macOS. Webflow Code Components live in isolated
 * shadow roots, so this must be declared per-component on :host to
 * inherit into the shadow tree (the property does not cross the
 * shadow boundary). Without it, Blink defaults to subpixel smoothing
 * and identical 400-weight text looks heavier than the old site. */
:host {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/**
 * HeroImage — full-width hero image matching the live beneficios hero
 * (.css-pqk0iu > .css-10eb3u5 > .css-1kumu5j > next/image). Fills its
 * container, preserves the image's intrinsic aspect ratio, object-fit
 * cover, with the live drop-shadow + box-shadow. Ports next/image's
 * responsive behaviour to a plain <img> (width:100% + height:auto keeps
 * the natural aspect ratio, so no padding-top spacer is needed).
 */

:host {
  display: block;
  width: 100%;
}

.hero-image-old,
.hero-image-old *,
.hero-image-old *::before,
.hero-image-old *::after {
  box-sizing: border-box;
}

.hero-image-old {
  width: 100%;
  max-width: 600px;
  /* margin: 20px;
  padding: 30px; */

  /* Matches the legacy creditas-site HeroImage (components/Image): a plain
   * responsive image, no shadow. Capped at 600px; object-fit cover so any
   * height-constrained crop covers rather than letterboxes. */
  .img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
  }
}

