.section-where-buy {
  padding: 4rem 0;
}

.section-where-buy .content-where-buy {
  padding: 0 1rem;
  padding-right: 0;
  overflow-x: hidden;
  overflow-y: hidden;
  transition: overflow-x 0.3s ease;
}

.section-where-buy .content-where-buy .title-where-buy {
  margin-bottom: 2rem;
}

.section-where-buy .content-where-buy .title-where-buy h2 {
  font-size: 26px;
  margin: 0;
  font-family: var(--font-medium);
}

/* En móvil, el segundo h2 (sin salto de línea) está oculto */
.section-where-buy .content-where-buy .title-where-buy h2:last-child {
  display: none;
}

.section-where-buy .content-where-buy .wrapper-where-buy {
  display: flex;
  flex-direction: row;
  gap: 10px;
  /* Corregido: overflow-x para el scroll horizontal */
  overflow-x: scroll;
  /* Ocultar la barra de scroll visualmente */
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.section-where-buy .content-where-buy .wrapper-where-buy::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.section-where-buy .content-where-buy .wrapper-where-buy .card-martket {
  min-width: 250px;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #ededed;
  border-radius: 10px;
  cursor: grab;
}

.section-where-buy .content-where-buy .wrapper-where-buy .card-martket img {
  width: auto;
  transform: scale(0.825);
}

.section-where-buy .content-where-buy .wrapper-where-buy .card-martket:last-child {
  margin-right: 1.5rem;
}

@media only screen and (min-width: 768px) {
  .section-where-buy {
    padding: 8rem 0;
    padding-bottom: 5rem;
  }
  .section-where-buy .content-where-buy .title-where-buy h2 {
    font-size: 2.5rem;
    text-align: center;
  }
  /* En desktop, ocultamos el primer h2 (con salto de línea) y mostramos el segundo */
  .section-where-buy .content-where-buy .title-where-buy h2:first-child {
    display: none;
  }
  .section-where-buy .content-where-buy .title-where-buy h2:last-child {
    display: block;
  }
}

@media only screen and (min-width: 960px) {
  .section-where-buy .content-where-buy .wrapper-where-buy .card-martket {
    min-width: 285px;
    height: 200px;
    cursor: grab;
  }

  .section-where-buy .content-where-buy .title-where-buy h2:last-child {
    display: inline;
    margin-left: calc(260px + 1%);
  }
}

@media only screen and (min-width: 1300px) {
  .section-where-buy .content-where-buy {
    overflow: visible;
    padding: 0;
    width: 100%;
    margin: auto;
    max-width: 1280px;
  }
  
  .section-where-buy .content-where-buy .wrapper-where-buy .card-martket {
    min-width: 400px;
    height: 260px;
  }
  .section-where-buy .content-where-buy .wrapper-where-buy .card-martket img {
    transform: unset;
    width: 300px;
  }

  .section-where-buy .content-where-buy .title-where-buy h2:last-child {
    margin-left: 260px;
  }
}