/* --------------------------------------------------------------------------
 * HB Asesor Olfativo 1.3.2 · Compact Professional Home
 * Visual layer scoped exclusively to the displayHome block.
 * Loaded after front.css so the cascade can remain clean and predictable.
 * -------------------------------------------------------------------------- */

.hbff-visibility--home,
.hbff-visibility--home * {
  box-sizing: border-box;
}

.hbff-visibility--home {
  --hbff-teal: #143c42;
  --hbff-teal-soft: #2d6f72;
  --hbff-champagne: #d6b06a;
  --hbff-ivory: #f7f2ea;
  --hbff-ink: #1e2328;
  --hbff-line: #e6ded2;

  position: relative;
  isolation: isolate;
  width: min(calc(100% - 32px), 1280px);
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 310px);
  grid-template-areas: "copy action";
  align-items: center;
  gap: clamp(28px, 3.4vw, 48px);
  margin: clamp(20px, 2.4vw, 30px) auto;
  padding: clamp(26px, 2.4vw, 32px) clamp(30px, 3.6vw, 46px);
  overflow: hidden;
  border: 1px solid rgba(214, 176, 106, .68);
  border-radius: 20px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(45, 111, 114, .72), transparent 31%),
    linear-gradient(118deg, #10373d 0%, var(--hbff-teal) 54%, #205f63 100%);
  box-shadow: 0 16px 36px rgba(20, 60, 66, .14);
}

.hbff-visibility--home::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 auto 0 0;
  width: 5px;
  height: auto;
  border-radius: 20px 0 0 20px;
  background: linear-gradient(180deg, #f0d9a9, var(--hbff-champagne), #5e9695);
}

.hbff-visibility--home::after {
  content: '';
  position: absolute;
  z-index: -1;
  right: -105px;
  bottom: -255px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(214, 176, 106, .14);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 31px, rgba(247, 242, 234, .055) 32px 33px);
  opacity: .78;
  transform: none;
  pointer-events: none;
}

/* The legacy illustration occupied an entire column and caused the excessive
   height. It stays in the template for easy rollback but never affects layout. */
.hbff-visibility--home .hbff-visibility__visual {
  display: none;
  width: 0;
  height: 0;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.hbff-visibility--home .hbff-visibility__copy {
  grid-area: copy;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 810px;
  min-width: 0;
  align-self: center;
}

.hbff-visibility--home .hbff-visibility__copy::after {
  display: none;
}

.hbff-visibility--home .hbff-visibility__eyebrow {
  width: auto;
  max-width: 100%;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  margin: 0 0 9px;
  padding: 4px 10px;
  border: 1px solid rgba(214, 176, 106, .28);
  border-radius: 999px;
  color: #f0d9a9;
  background: rgba(255, 255, 255, .045);
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: normal;
}

.hbff-visibility--home h2 {
  width: 100%;
  max-width: 810px;
  margin: 0 0 8px;
  color: #fff;
  font-family: inherit;
  font-size: clamp(40px, 3.25vw, 50px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.038em;
  text-wrap: balance;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .11);
}

.hbff-visibility--home p {
  width: 100%;
  max-width: 680px;
  margin: 0;
  color: rgba(247, 242, 234, .82);
  font-family: inherit;
  font-size: clamp(14px, 1.1vw, 16px);
  font-weight: 400;
  line-height: 1.45;
}

.hbff-visibility--home .hbff-visibility__benefits {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  overflow: visible;
}

.hbff-visibility--home .hbff-visibility__benefits > .hbff-benefit {
  width: auto;
  min-width: 0;
  min-height: 32px;
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin: 0;
  padding: 5px 10px;
  overflow: hidden;
  border: 1px solid rgba(230, 222, 210, .20);
  border-radius: 999px;
  color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
  white-space: nowrap;
}

/* Neutralize the historical `.benefits span` rule on the nested label. */
.hbff-visibility--home .hbff-visibility__benefits .hbff-benefit-label {
  display: inline;
  width: auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  font-family: inherit;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hbff-visibility--home .hbff-benefit-icon {
  position: relative;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin: 0;
  padding: 0;
  color: #f0d9a9;
}

.hbff-visibility--home .hbff-visibility__action {
  grid-area: action;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 310px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-self: end;
  gap: 7px;
  margin: 0;
  padding: 0;
}

.hbff-visibility--home .hbff-visibility__action::before {
  content: 'HB';
  position: absolute;
  z-index: -1;
  right: 14px;
  top: 50%;
  color: rgba(247, 242, 234, .045);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 118px;
  line-height: 1;
  transform: translateY(-55%);
  pointer-events: none;
}

.hbff-visibility--home .hbff-visibility__button {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 7px 8px 7px 19px;
  border: 1px solid rgba(247, 242, 234, .56);
  border-radius: 999px;
  color: var(--hbff-teal);
  background: linear-gradient(108deg, #f4dfb4 0%, var(--hbff-champagne) 62%, #edcf91 100%);
  box-shadow: 0 12px 25px rgba(0, 0, 0, .17);
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.hbff-visibility--home .hbff-visibility__button > span {
  display: block;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: inherit;
  background: transparent;
  box-shadow: none;
  font: inherit;
}

.hbff-visibility--home .hbff-visibility__button i {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(214, 176, 106, .82);
  border-radius: 50%;
  color: #f0d9a9;
  background: var(--hbff-teal);
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}

.hbff-visibility--home .hbff-visibility__button:hover,
.hbff-visibility--home .hbff-visibility__button:focus {
  color: var(--hbff-teal);
  transform: translateY(-1px);
  filter: brightness(1.025);
  box-shadow: 0 15px 29px rgba(0, 0, 0, .20);
}

.hbff-visibility--home .hbff-visibility__button:focus-visible {
  outline: 3px solid rgba(240, 217, 169, .68);
  outline-offset: 3px;
}

.hbff-visibility--home .hbff-visibility__action small {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0 4px;
  color: rgba(247, 242, 234, .74);
  background: transparent;
  font-family: inherit;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
}

@media (max-width: 980px) and (min-width: 701px) {
  .hbff-visibility--home {
    width: min(calc(100% - 28px), 1280px);
    grid-template-columns: minmax(0, 1fr) minmax(220px, 270px);
    gap: 22px;
    margin: 18px auto;
    padding: 22px 26px;
  }

  .hbff-visibility--home h2 {
    font-size: clamp(34px, 4.3vw, 42px);
  }

  .hbff-visibility--home .hbff-visibility__action {
    max-width: 270px;
  }
}

@media (max-width: 700px) {
  .hbff-visibility--home {
    width: auto;
    display: block;
    margin: 16px 12px 20px;
    padding: 20px 18px 18px;
    border-radius: 18px;
    background:
      radial-gradient(circle at 93% 5%, rgba(45, 111, 114, .64), transparent 27%),
      linear-gradient(145deg, #10373d 0%, var(--hbff-teal) 58%, #205f63 100%);
  }

  .hbff-visibility--home::before {
    inset: 0 0 auto 0;
    width: auto;
    height: 4px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(90deg, #f0d9a9, var(--hbff-champagne), #5e9695);
  }

  .hbff-visibility--home::after {
    right: -250px;
    bottom: -330px;
    width: 500px;
    height: 500px;
    opacity: .55;
  }

  .hbff-visibility--home .hbff-visibility__eyebrow {
    min-height: 22px;
    margin-bottom: 8px;
    padding: 4px 8px;
    font-size: 8.7px;
    letter-spacing: .14em;
  }

  .hbff-visibility--home h2 {
    max-width: none;
    margin-bottom: 8px;
    font-size: clamp(30px, 8.8vw, 36px);
    line-height: 1.02;
    letter-spacing: -.04em;
  }

  .hbff-visibility--home p {
    max-width: none;
    font-size: 13.5px;
    line-height: 1.42;
  }

  .hbff-visibility--home .hbff-visibility__benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 13px;
  }

  .hbff-visibility--home .hbff-visibility__benefits > .hbff-benefit {
    width: 100%;
    min-height: 40px;
    justify-content: center;
    gap: 4px;
    padding: 5px 4px;
    border-radius: 11px;
  }

  .hbff-visibility--home .hbff-visibility__benefits .hbff-benefit-label {
    font-size: 0;
    text-align: center;
  }

  .hbff-visibility--home .hbff-visibility__benefits .hbff-benefit-label::after {
    content: attr(data-short);
    font-size: 9.5px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .hbff-visibility--home .hbff-benefit-icon {
    flex-basis: 14px;
    width: 14px;
    height: 14px;
    min-width: 14px;
  }

  .hbff-visibility--home .hbff-visibility__action {
    width: 100%;
    max-width: none;
    margin-top: 13px;
  }

  .hbff-visibility--home .hbff-visibility__action::before {
    display: none;
  }

  .hbff-visibility--home .hbff-visibility__button {
    min-height: 49px;
    padding: 7px 7px 7px 17px;
    font-size: 13.5px;
  }

  .hbff-visibility--home .hbff-visibility__button i {
    flex-basis: 33px;
    width: 33px;
    height: 33px;
    font-size: 18px;
  }

  .hbff-visibility--home .hbff-visibility__action small {
    font-size: 9.2px;
  }
}

@media (max-width: 370px) {
  .hbff-visibility--home {
    margin-inline: 10px;
    padding-inline: 15px;
  }

  .hbff-visibility--home h2 {
    font-size: 29px;
  }

  .hbff-visibility--home .hbff-visibility__benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hbff-visibility--home .hbff-visibility__benefits > .hbff-benefit:last-child {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hbff-visibility--home .hbff-visibility__button {
    transition: none;
  }
}
