/**
 * Barra de beneficios — pie del hero
 * Referencia: docs/referencia-visual.png
 */

.hero__benefits {
  margin-top: auto;
  padding-bottom: clamp(0.75rem, 1.8vh, 1.35rem);
  flex-shrink: 0;
  position: relative;
  z-index: 4;
  transform: translateY(clamp(-2.5rem, -4.5vh, -1.8rem));
}

.benefits-bar {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0.65rem;
  background: linear-gradient(
    180deg,
    rgba(55, 55, 55, 0.45) 0%,
    rgba(18, 17, 17, 0.88) 28%,
    rgba(0, 0, 0, 0.94) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04),
    0 6px 20px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}

.benefits-bar__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.benefits-bar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.5rem, 0.7vw, 0.75rem);
  min-width: 0;
  padding: clamp(0.75rem, 1.3vh, 1.1rem) 0.75rem;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.benefits-bar__item:last-child {
  border-right: none;
}

.benefits-bar__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: clamp(1.9rem, 2.3vw, 2.35rem);
  height: clamp(1.9rem, 2.3vw, 2.35rem);
}

.benefits-bar__icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.benefits-bar__text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.benefits-bar__line {
  display: block;
  color: #ffffff;
  font-family: var(--esac-font-family-nav);
  font-size: clamp(0.84rem, 1.05vw, 1.02rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.18;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Desktop (992px - 1199.98px) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .benefits-bar__item {
    padding: clamp(0.6rem, 1vh, 0.85rem) 0.4rem;
    gap: 0.4rem;
  }

  .benefits-bar__icon {
    width: clamp(1.5rem, 1.8vw, 1.9rem);
    height: clamp(1.5rem, 1.8vw, 1.9rem);
  }

  .benefits-bar__line {
    font-size: clamp(0.72rem, 0.85vw, 0.84rem);
  }
}

/* Tablet & pantallas intermedias (<= 991.98px) */
@media (max-width: 991.98px) {
  .hero__benefits {
    transform: none;
    margin-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .benefits-bar__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .benefits-bar__item {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    justify-content: center;
    padding: clamp(0.85rem, 1.2vh, 1.25rem) 0.85rem;
  }

  .benefits-bar__item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.14);
  }

  .benefits-bar__item:nth-last-child(-n + 2) {
    border-bottom: none;
  }

  .benefits-bar__item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    border-right: none;
    justify-content: center;
  }
}

/* Mobile (<= 575.98px) */
@media (max-width: 575.98px) {
  .hero__benefits {
    transform: none;
    margin-top: 1.25rem;
    padding-bottom: 1.25rem;
  }

  .benefits-bar__list {
    grid-template-columns: 1fr;
  }

  .benefits-bar__item,
  .benefits-bar__item:nth-child(odd) {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    justify-content: center;
  }

  .benefits-bar__item:last-child {
    border-bottom: none;
    justify-content: center;
  }

  .benefits-bar__line {
    white-space: normal;
  }
}
