.locations-section {
  display: flex;
  width: 1100px;
  height: 424px;
  margin: 50px auto;
  background-color: #d84e22;
  border-radius: 10px;
  overflow: hidden;
  flex-wrap: wrap; /* Permite que los elementos se ajusten cuando la pantalla es más pequeña */
}

.map-container {
  width: 50%;
  height: 100%;
}

#map {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.routes-box {
  width: 50%;
  height: 100%;
  background-color: #d84e22;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  box-sizing: border-box;
}

.routes-box h2 {
  text-align: center;
  margin-bottom: 20px;
  font-size: 2rem;
}

.routes-box ul {
  list-style: none;
  padding-left: 0;
}

.routes-box li {
  margin-bottom: 10px;
  padding-left: 40px;
  position: relative;
  font-size: 1rem;
}

.routes-box li::before {
  padding-left: 16px;
  content: "📍";
  position: absolute;
  left: 0;
}

h1 {
  text-align: center;
  margin: 30px 0 20px;
  color: #2c3e50;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Centra las tarjetas horizontalmente */
  gap: 30px;
  padding: 0 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  width: 360px;
  height: 460px;
  background: #d84e22;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 20px;
  box-sizing: border-box;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  width: 330px !important;
  height: 370px !important;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.product-card h3 {
  margin-top: 10px;
  font-size: 1.1rem;
  text-align: center;
  color: white;
}

/* Media Query para pantallas más pequeñas */
@media (max-width: 768px) {
  .locations-section {
    flex-direction: column; /* Apilar los bloques uno sobre otro */
    width: 100%; /* Ancho completo */
    height: auto; /* Ajustar la altura automáticamente */
  }

  .map-container,
  .routes-box {
    width: 100%; /* Que cada contenedor ocupe todo el ancho */
    height: 300px; /* Ajustar la altura de cada bloque si es necesario */
  }

  .routes-box h2 {
    font-size: 1.5rem; /* Ajustar el tamaño del título */
  }

  .routes-box ul {
    padding-left: 20px;
  }

  .routes-box li {
    font-size: 0.9rem; /* Reducir tamaño de texto */
  }
}
