/* ============================================================================
   PREMIUM CARDS STYLES - Muebles Vianny
   ============================================================================
   Estilos premium para tarjetas de categorías y productos
   - Efectos de vidrio (glass-morphism)
   - Animaciones suaves y fluidas
   - Hover effects elegantes
   - Sombras difusas premium
   =========================================================================== */

/* ========== CATEGORY CARDS (Colecciones Infantiles) ========== */
.bg-white.rounded-2xl.shadow-lg {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px rgba(162, 89, 198, 0.12) !important;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

.bg-white.rounded-2xl.shadow-lg::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
  z-index: 1;
  pointer-events: none;
}

.bg-white.rounded-2xl.shadow-lg:hover::before {
  left: 100%;
}

.bg-white.rounded-2xl.shadow-lg:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 16px 48px rgba(162, 89, 198, 0.25) !important;
  background: rgba(255, 255, 255, 0.95) !important;
}

/* ========== PRODUCT CARD IMAGES ========== */
.bg-white.rounded-2xl.shadow-lg img {
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  filter: brightness(1);
}

.bg-white.rounded-2xl.shadow-lg:hover img {
  transform: scale(1.08) rotate(2deg);
  filter: brightness(1.1);
}

/* ========== TEXT STYLING IN CARDS ========== */
.bg-white.rounded-2xl.shadow-lg h3 {
  transition: all 0.3s ease;
  color: #1a1a2e;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.bg-white.rounded-2xl.shadow-lg:hover h3 {
  color: #a259c6;
  text-shadow: 0 2px 8px rgba(162, 89, 198, 0.15);
}

.bg-white.rounded-2xl.shadow-lg p {
  transition: all 0.3s ease;
  color: #6c6c6c;
  line-height: 1.6;
}

/* ========== CATEGORY LINKS ========== */
.text-\[\#a259c6\].font-semibold {
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  display: inline-block;
}

.text-\[\#a259c6\].font-semibold::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #a259c6, #f953c6);
  transition: width 0.3s ease;
}

.text-\[\#a259c6\].font-semibold:hover::after {
  width: 100%;
}

.text-\[\#a259c6\].font-semibold:hover {
  color: #f953c6;
  transform: translateX(4px);
}

/* ========== FEATURED PRODUCTS CARDS ========== */
.aspect-square.overflow-hidden {
  position: relative;
  background: linear-gradient(135deg, #f0f0f0 0%, #ffffff 100%);
  transition: all 0.4s ease;
}

.aspect-square.overflow-hidden img {
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  filter: saturate(1) brightness(1);
}

.bg-white.rounded-xl:hover .aspect-square.overflow-hidden img {
  transform: scale(1.1) rotate(-3deg);
  filter: saturate(1.2) brightness(1.05);
}

/* ========== PRIMARY ACTION BUTTONS ========== */
.bg-\[\#a259c6\].text-white,
.bg-\[\#FFB6B9\].text-slate-900 {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 0 6px 20px rgba(162, 89, 198, 0.25);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.bg-\[\#a259c6\].text-white::before,
.bg-\[\#FFB6B9\].text-slate-900::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3), transparent);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  z-index: 0;
}

.bg-\[\#a259c6\].text-white:hover::before,
.bg-\[\#FFB6B9\].text-slate-900:hover::before {
  width: 400px;
  height: 400px;
}

.bg-\[\#a259c6\].text-white:hover,
.bg-\[\#FFB6B9\].text-slate-900:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 12px 32px rgba(162, 89, 198, 0.35);
}

/* ========== FAQ SECTIONS ========== */
.bg-white.rounded-lg.shadow-md {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(162, 89, 198, 0.1);
  box-shadow: 0 4px 16px rgba(127, 156, 245, 0.1) !important;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.bg-white.rounded-lg.shadow-md:hover {
  transform: translateX(4px);
  box-shadow: 0 8px 24px rgba(162, 89, 198, 0.15) !important;
}

.bg-white.rounded-lg.shadow-md button {
  transition: all 0.3s ease;
}

.bg-white.rounded-lg.shadow-md button:hover {
  background: rgba(162, 89, 198, 0.05);
}

/* ========== ICONS & SVG ELEMENTS ========== */
.bg-white.rounded-lg.shadow-md svg {
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  color: #a259c6;
}

.bg-white.rounded-lg.shadow-md button:hover svg {
  transform: rotate(180deg) scale(1.2);
  color: #f953c6;
}

/* ========== GRADIENT TEXT ========== */
.text-\[#a259c6\] {
  background: linear-gradient(135deg, #a259c6, #f953c6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
  transition: all 0.3s ease;
}

/* ========== ANIMATION KEYFRAMES ========== */
@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(162, 89, 198, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(162, 89, 198, 0.6);
  }
}

/* ========== BACKDROP SUPPORT FALLBACK ========== */
@supports not (backdrop-filter: blur(10px)) {
  .bg-white.rounded-2xl.shadow-lg {
    background: rgba(255, 255, 255, 0.98) !important;
  }
  .bg-white.rounded-lg.shadow-md {
    background: rgba(255, 255, 255, 0.98) !important;
  }
}

/* ========== RESPONSIVE TWEAKS ========== */
@media (max-width: 768px) {
  .bg-white.rounded-2xl.shadow-lg:hover {
    transform: translateY(-8px) scale(1.01);
  }

  .bg-\[\#a259c6\].text-white:hover,
  .bg-\[\#FFB6B9\].text-slate-900:hover {
    transform: scale(1.03) translateY(-1px);
  }

  .aspect-square.overflow-hidden img {
    transition: all 0.3s ease;
  }

  .bg-white.rounded-xl:hover .aspect-square.overflow-hidden img {
    transform: scale(1.05) rotate(-1deg);
  }
}

/* ========== DARK MODE SUPPORT ========== */
@media (prefers-color-scheme: dark) {
  .bg-white.rounded-2xl.shadow-lg {
    background: rgba(30, 30, 46, 0.92) !important;
    border-color: rgba(162, 89, 198, 0.2);
  }

  .bg-white.rounded-2xl.shadow-lg h3 {
    color: #f0f0f0;
  }

  .bg-white.rounded-2xl.shadow-lg p {
    color: #b0b0b0;
  }
}
