/* Sección premium */
.premium-detalle {
  margin-top: 12rem;
  margin-bottom: 3rem;
  display: flex;
  justify-content: center;
  gap: 80px;
  padding: 50px;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
  background-color: #ffffff;
}

/* Contenedor de la galería */
.galeria {
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* Esto permitirá que las imágenes se ajusten en diferentes filas si no hay suficiente espacio */
  justify-content: center;
}

/* Miniaturas */
.miniaturas {
  display: flex;
  flex-direction: column;
  gap: 15px;
  opacity: 0.4;
}


/* Imágenes miniatura */
.thumb {
  width: 80px;
  height: 80px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.3s;
}

.thumb:hover {
  border: 2px solid #007bff;
}

/* Imagen principal */
.imagen-principal img {
  width: 420px;
  height: 420px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

/* Descripción */
.descripcion {
  max-width: 600px;
  font-size: 1.5rem;
}

.descripcion h2 {
  font-size: 3rem;
  margin-bottom: 2rem;
}

.descripcion p {
  margin-bottom: 2.5rem;
  line-height: 1.7;
}

/* Botones de cantidad */
.cantidad-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 35px;
}

#cantidad {
  width: 70px;
  height: 50px;
  text-align: center;
  font-size: 20px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

.btn-cantidad {
  padding: 12px 25px;
  font-size: 26px;
  background-color: #eee;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.2s;
  font-weight: bold;
}

.btn-cantidad:hover {
  background-color: #ddd;
}

/* Botones de acción */
.botones-acciones {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 4rem;
}

.btn-comprar,
.btn-agregar {
  font-size: 1.4rem;
  padding: 18px 36px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-agregar {
  background-color: #007bff;
  color: white;
}

.btn-agregar:hover {
  background-color: #0056b3;
}

/* Recomendaciones */
.recomendaciones {
  padding: 60px 40px;
  text-align: center;
}

.recomendaciones .titulo-container h2 {
  font-size: 32px;
  font-family: 'Playfair Display', serif;
  margin-bottom: 10px;
}

.recomendaciones .decorador {
  border-top: 2px solid #000;
  width: 40%;
  margin: 0 auto 0px;
}

.recomendaciones-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Centra los productos en el contenedor */
  gap: 10rem; /* Espacio entre productos */
}

.producto {
  width: 20rem; /* Controla el tamaño del producto */
  text-align: center; /* Alinea el texto al centro */
}

.fullscreen-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  cursor: pointer; /* Para que el usuario sepa que puede cerrar haciendo clic */
}

.fullscreen-container img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
}


/* Ajuste en móvil */
@media (max-width: 768px) {
  .navbar {
    height: 12%;
    background: black;
}
  .galeria {
    flex-direction: column;
    align-items: center;
    flex-direction: row-reverse; /* Invertimos el orden */
  }

  .miniaturas {
    flex-direction: row;
    justify-content: center;
    opacity: 1;
    margin-top: 15px;
  }

  .thumb {
    width: 60px;
    height: 60px;
  }

  /* Aquí ajustamos la imagen principal para móvil */
  .imagen-principal {
    width: 100%;
    padding: 0;
    margin: 0 auto;
  }

  .imagen-principal img {
    width: 100%; /* Imagen al 100% del ancho */
    height: auto; /* Mantiene la relación de aspecto */
    object-fit: cover; /* Asegura que la imagen cubra el área sin deformarse */
    border-radius: 0;
  }

  /* Descripción para móvil */
  .descripcion {
    font-size: 1.2rem;
    padding: 0 20px;
  }

  .descripcion h2 {
    font-size: 2rem;
  }

  .descripcion p {
    font-size: 1rem;
  }
}

/* Botones en móvil */
@media (max-width: 768px) {
  .btn-comprar,
  .btn-agregar {
    font-size: 1.2rem;
    padding: 14px 30px;
    width: 100%;
    max-width: 300px;
  }

  .cantidad-container {
    gap: 10px;
  }

  #cantidad {
    width: 80px;
    height: 60px;
    font-size: 18px;
  }

  .btn-cantidad {
    font-size: 20px;
    padding: 20px 40px;
  }

  .botones-acciones {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }
}

/* Recomendaciones en móvil */
@media (max-width: 768px) {
  .recomendaciones-grid {
    flex-direction: column;
    gap: 2rem;
  }

  .producto {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }

  .recomendaciones .titulo-container h2 {
    font-size: 24px;
  }

  .recomendaciones .decorador {
    width: 60%;
  }
}
