
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
body { font-family: 'Poppins', sans-serif; }
.gradient-bg { background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%); }
.card-hover { transition: all 0.3s ease; }
.card-hover:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(79,70,229,0.2); }
.category-active { background: linear-gradient(135deg, #4f46e5 0%, #3730a3 100%); color: white; }
.cart-badge { animation: bounce 0.5s ease-in-out; }
@keyframes bounce { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
.modal-backdrop { backdrop-filter: blur(10px); }

#mobileMenu {
  transition: max-height .4s ease, opacity .35s ease, transform .35s ease;
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  border-radius: 0 0 12px 12px;
}
#mobileMenu.open {
  max-height: 300px;  /* ajusta según enlaces */
  opacity: 1;
  transform: translateY(0);
}
/* --- Modal PRO --- */
.modal-shell { max-height: 92vh; display: flex; flex-direction: column; }
.modal-body { overflow-y: auto; }

.modal-img-box { background: #f3f4f6; height: 48vh; }
@media (min-width: 768px) { .modal-img-box { height: 60vh; } }

/* Si la imagen es apaisada, bajamos un poco la altura para que se vea más grande en ancho */
.modal-img-box.landscape { height: 42vh; }
@media (min-width: 768px) { .modal-img-box.landscape { height: 58vh; } }

/* --- Modal FX: fade + scale --- */
.modal-enter { 
  opacity: 0; 
  transform: scale(0.97); 
  transition: opacity .18s ease, transform .18s ease;
}
.modal-open {
  opacity: 1; 
  transform: scale(1);
}

/* Flechas navegación */
.modal-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.92);
  color: #111827;
  border-radius: 9999px;
  padding: .5rem .7rem;
  box-shadow: 0 10px 20px rgba(0,0,0,.12);
}
.modal-nav-btn:hover { background: #ffffff; }
#modalPrev { left: .5rem; }
#modalNext { right: .5rem; }

/* Miniaturas */
#modalThumbs {
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-top: .5rem;
}
.modal-thumb {
  width: 56px; height: 56px;
  background: #fff;
  border-radius: .5rem;
  border: 2px solid transparent;
  flex: 0 0 auto;
  cursor: pointer;
}
.modal-thumb img {
  width: 100%; height: 100%; object-fit: cover; border-radius: .4rem;
}
.modal-thumb.active { border-color: #4f46e5; }
/* === Modal: 2 columnas en desktop === */
.modal-body{
  display: grid;
  grid-template-columns: 1fr;   /* móvil: 1 col */
  gap: 2rem;
}
@media (min-width: 1024px){     /* >= lg */
  .modal-body{
    grid-template-columns: 1.2fr 0.8fr; /* izquierda (imagen) / derecha (info) */
    align-items: start;
  }
}

/* Imagen del modal: ocupar alto y contener sin recortar */
.modal-img-box{
  background: #f3f4f6;
  height: 60vh;                 /* móvil */
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
@media (min-width: 1024px){
  .modal-img-box{ height: 70vh; } /* desktop un poco más alto */
}
#modalProductImage{
  width: 100%;
  height: 100%;
  object-fit: contain;          /* que la obra no se deforme */
}
