#benefits {
  padding-bottom: 50px;
  padding-top: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#benefits h1 {
  font-size: 2em;
  text-align: center;
  color: #4A4A4A;
}

.p_beneficios {

  font-size: 1.2rem;
  font-weight: 500;
  color: #4A4A4A;
  background-color: #ecf0f1;
  padding: 15px;
  border-radius: 8px;
  display: inline-block;
  max-width: 700px;
  margin: 0 auto;
  margin: 25px;
}

.beneficios-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  padding-bottom: 40px;
}

.beneficios-container p {
  font-weight: 600;
  font-size: 1.1em;
}

.beneficio {
  flex: 0 0 calc(33.333% - 20px);
  max-width: 250px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  background-color: #a6afff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.beneficio:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

@media (max-width: 1024px) {
  #benefits {
      padding: 0;
      margin: 50px;
  }
}

@media (max-width: 768px) {
  #benefits {
      margin: 5px;
  }

  #benefits h1 {
      margin-top: 50px;
  }
}

@media (max-width: 576px) {
  .beneficio {
      flex: 1 1 100%;
      max-width: 80%;
      height: 150px;
  }
}
