/* Contenedor general con fondo translúcido y padding */
.favorite-section {
  background: linear-gradient(90deg, #001f39 0%,  #14324e  100%); 
  backdrop-filter: blur(10px);
  padding: 4% 2%;
  border-radius: 15px;
  margin: 5% auto;
  max-width: 1400px;
  margin-top: 10%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2); 
}

/* Encabezado principal */
.favorite-header {
  display: flex;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff; 
  text-align: center;
  align-items: center;
  gap: 18px;
  line-height: 1.2;
  margin-bottom: 5rem;


  /* padding: 5rem; */
}

/* Sub-encabezados de grupo */
.groupFavorite-header {
  text-align: center;
  margin: 8rem 0 1.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  padding-bottom: 0.5rem;
}

/* Contenedor de items */
.groupFavorite {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem; 
  flex-wrap: wrap;
  margin-bottom: 4rem;
  background-color: #f6f5f5;
  padding: 2rem;
  border-radius: 8px;
}

/* Imagen de cada item */
.groupFavorite img {
  width: 100px;
  height: 150px;
  border-radius: 10px;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

/* Contenedor individual de cada item */
.item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s ease-in-out;
}

.item:hover {
  transform: scale(1.05);
}

/* --- Responsive --- */
@media screen and (max-width: 700px) {
  .favorite-section {
    margin-top: -5%;
    padding: 2rem 2rem;
   
  }

  .favorite-header {
    font-size: 1.5rem; 
    margin: 2rem 0;
    margin-bottom: 6rem;
    line-height: 1.2; 
  }

  .groupFavorite-header {
    font-size: 1.2rem;
    margin: 2rem 0 1.2rem 0;
    padding-bottom: 0.4rem;
  }

  .groupFavorite {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
  }

  .item {
    margin-bottom: 1.5rem;
  }

  .groupFavorite img {
    width: 100px;
    height: 150px;
  }
}
