/* Cards dos Benefícios */
.grid-beneficios {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /* Centraliza quando tem menos */
  gap: 24px;
  max-width: 1140px;
  margin: 40px auto;
  padding: 0 20px;
}

.card-beneficio-link {
  text-decoration: none;
  flex: 1 1 240px;
  /* mínimo de 240px */
  max-width: 260px;
  /* largura máxima pra não esticar */
}

.card-beneficio {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
  transition: all 0.3s ease;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}




.beneficio-img-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  transition: transform 0.4s ease;
  z-index: 1;
}



/* Mini logo no centro */
.beneficio-mini-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  width: 80px;
  /* Definido tamanho quadrado */
  height: 80px;
  /* Definido tamanho quadrado */
  border-radius: 8px;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.beneficio-mini-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}




/* Escurecer nos cantos ao passar mouse */
.beneficio-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

/* Cartela branca com a oferta */
.beneficio-oferta {
  position: absolute;
  bottom: -100px;
  left: 0;
  right: 0;
  background: #fff;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  text-align: center;
  transition: bottom 0.4s ease;
  z-index: 2;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

/* Hover: zoom no fundo, mostrar overlay e cartela */
.card-beneficio:hover .beneficio-img-wrapper {
  transform: scale(1.08);
}

.card-beneficio:hover .beneficio-overlay {
  opacity: 1;
}

.card-beneficio:hover .beneficio-oferta {
  bottom: 0;
}

.card-info {
  position: absolute;
  bottom: -50px;
  /* escondido inicialmente */
  left: 0;
  width: 100%;
  background: #ffffff;
  color: #333;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  transition: bottom 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  z-index: 2;
}

.card-beneficio:hover .card-info {
  bottom: 0;
  opacity: 1;
}


/*  */


