.valor {
  background-color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 30px;
  margin-bottom: 30px;
}

.valor p {
  text-align: justify;
  padding: 0.5rem 1rem;
  color: black;
  font-size: 1rem;
  line-height: 1.6;
}

.title-especialidades h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}

.imagen-selection {
  display: flex;
  justify-content: center;
  width: 100%;
}

.imagen-selection img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 10px;
}

.puntos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.puntos button {
  width: 100%;
  max-width: 320px;
  border-radius: 15px;
  padding: 1rem;
  background: linear-gradient(to right, #00b9cd, #6484c4);
  border: none;
  font-weight: bold;
  font-size: 1rem;
  color: white;
  text-align: left;
  cursor: pointer;
  transition: background 0.3s ease;
}

.puntos button:hover {
  background: linear-gradient(to left, #224369, #3b46dd);
}

@media (min-width: 768px) {
  .valor {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    text-align: left;
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .title-especialidades {
    grid-column: 1 / 3;
  }

  .valor p {
    grid-column: 1 / 3;
    font-size: 1.2rem;
    padding: 0 1rem;
    text-align: center;
  }

  .imagen-selection {
    justify-content: center;
    grid-column: 1 / 2;
  }

  .puntos {
    align-items: flex-start;
    grid-column: 2 / 3;
    justify-content: center;
  }

  .puntos button {
    max-width: 100%;
    font-size: 1.3rem;
  }
}

@media (min-width: 1024px) {
  .valor {
    grid-template-columns: 1fr 1fr;
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .valor p {
    font-size: 1.4rem;
  }

  .puntos button {
    font-size: 1.5rem;
  }
}
