* {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
}
.menuApartament {
  background-color: #3c5d32;
  display: flex;
  justify-content: space-evenly;
  padding: 0.5rem;
  text-decoration: none;
}
.menuApartament ul{
    width:100%;
    display:flex;
    justify-content: space-evenly;
    
}
.menuApartament li {
  color: #e1e2b3;
  list-style: none;
  cursor: pointer;
  padding: 0.5rem;
  letter-spacing: 2px;
  font-size: 17px;
}
.container-box {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1rem;
}
.contentImg {
  display: flex;
  flex-wrap: wrap;
  width: 30%;
  height: auto;
  position: relative;
  right: 1.5rem;
  top: 1.5rem;
}

.contentImg img {
  max-width: 100%;
  height: auto;
}
.container-box-son {
  max-width: 300px;
  max-height: 600px;
  background-image: url("../img/fondo-12.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  flex-wrap: nowrap;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0rem 1rem 0rem;
}
.info_box_area {
  text-align: center;
}
.info_box_area h4,
.contentDistribution h4 {
  color: #e1e2b3;
  font-weight: 300;
  letter-spacing: 1px;
  margin-top:1.5rem;
}
.optionContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  color: #e1e2b3;
}

.option {
  display: flex;
  gap: 0rem;
  flex-direction: column;
  padding: 0.3rem 1rem 0.3rem 1rem;
  border-top-left-radius: 25px;
  border-bottom-right-radius: 25px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 11px;
}
.container-box-son h2 {
  color: #e1e2b3;
  font-weight: 550;
  letter-spacing: 1px;
}
#listDistribution {
  display: flex;
  flex-wrap: wrap;
  gap: 2px; /* separación entre cajas */
  justify-content: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

#listDistribution li {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  width: 150px; /* solo ocupa lo necesario */
  max-width: 120px; /* límite para que no se descuadre con textos largos */
  text-align: center;
  box-sizing: border-box;
  font-size: 12px;
  color: #e1e2b3;
text-overflow: ellipsis;
}
#listDistribution li figure {
  width: 100%;
  margin: 0.5rem;
   word-wrap: break-word;   /* opción 1 */
  white-space: normal;  
}

.contentDistribution {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

#amenitiesImg {
  max-width: 30px;
  margin-bottom: 0.5rem;
}
#room1::before {
  content: "1 HABITACION";
}
#room2::before {
  content: "2 HABITACIONES";
}
#room3::before {
  content: "3 HABITACIONES";
}

@media (min-width: 320px) and (max-width:425px) {
  .container-box {
    width: 100%;
    height: auto;
  }
  .contentImg {
    display: flex;
    flex-wrap: wrap;
    width: 150%;
    height: auto;
  }
  #listDistribution li {
    max-width: 120px; /* límite para que no se descuadre con textos largos */
    font-size: 10px;
  }
  
  .contentImg img {
    max-width: 100%;
    height: auto;
  }
  .option {
  display: flex;
  gap: 0rem;
  padding: 0.1rem 1rem 0.1rem 1rem;  
  background: rgba(255, 255, 255, 0.1);
  font-size: 10px;
  letter-spacing: 0.5px;
}
  .container-box-son {
    max-width: 100%;
    gap: 2rem;
    margin-bottom: 3rem;
  }
  .container-box-son h2 {
    font-size: 13px;
  }
  .info_box_area h4,
  .contentDistribution h4 {
    font-size: 10px;
  }
  .optionContainer{
    gap:0.5rem
  }
  .option-label {
    font-size: 10px;
    
  }
  #listDistribution {
    display: flex;
    flex-wrap: nowrap;
    gap: 2px; /* separación entre cajas */
    justify-content: start;
    align-items: start;
    padding: 0;
    margin: 0;
    list-style: none;
    overflow-x: auto;
  }
  .menuApartament {
    width: 100%;
  }


  #room1::before {
    content: "1";
  }
  #room2::before {
    content: "2";
  }
  #room3::before {
    content: "3";
  }
}

@media (max-width: 768px) {
  .contentImg {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    height: auto;
  }
  #listDistribution li {
    max-width: 100px; /* límite para que no se descuadre con textos largos */
    font-size: 10px;
  }
  .contentImg img {
    max-width: 100%;
    height: auto;
  }
  .container-box {
    width: 100%;
  }
  .menuApartament {
    width: 100%;
  }

  #room1::before {
    content: "1";
  }
  #room2::before {
    content: "2";
  }
  #room3::before {
    content: "3";
  }
}
