* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --deep-purple: #6B46C1;
  --royal-blue: #3B82F6;
  --soft-purple: #A78BFA;
  --light-blue: #93C5FD;
  --periwinkle: #C7D2FE;
  --lavender: #E0E7FF;
  --soft-white: #faf8f8;
  --cream-purple: #F3F4FF;
  --light-gray: #e6eeee;
  --text-dark: #374151;
  --text-medium: #6B7280;
  --text-light: #9CA3AF;
  --accent-purple: #8B5CF6;
  --accent-blue: #2563EB;
  --elegant-shadow: 0 8px 25px rgba(107, 70, 193, 0.15);
  --premium-shadow: 0 15px 35px rgba(139, 92, 246, 0.2);
  --glow-shadow: 0 0 20px rgba(167, 139, 250, 0.8);
}

body {
  font-family: 'Comic Neue', 'Nunito', 'Quicksand', cursive, sans-serif;
  background: linear-gradient(135deg, var(--cream-purple) 0%, var(--soft-white) 50%, var(--light-gray) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  color: var(--text-dark);
  line-height: 1.7;
}

/* Mantener la animación de fondo original */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(107, 70, 193, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(30px, -30px) rotate(120deg); }
  66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* Decoraciones de tienda flotantes */
body::after {
  content: '🛍️ 💳 🏪 📦 💰 🎁 🛒 💎';
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  font-size: 2rem;
  opacity: 0.1;
  animation: sparkleFloat 15s linear infinite;
  pointer-events: none;
  z-index: -1;
  white-space: nowrap;
}

@keyframes sparkleFloat {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Hero section elegante */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 5%;
  background: 
    radial-gradient(circle at 30% 20%, rgba(107, 70, 193, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 70% 60%, rgba(59, 130, 246, 0.3) 0%, transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(167, 139, 250, 0.3) 0%, transparent 40%);
}

.hero-content {
  max-width: 700px;
  text-align: center;
  position: relative;
  z-index: 2;
  background: var(--soft-white);
  padding: 60px 50px;
  border-radius: 50px;
  box-shadow: var(--premium-shadow);
  border: 3px solid var(--soft-purple);
  position: relative;
  overflow: hidden;
}

.hero-content h1 {
  font-size: 4.2rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #000000 0%, #eff1f2 25%, #e9e6e6 50%, #f0f0f2 75%, #0F172A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 3px 3px 0px rgba(97, 64, 162, 0.9), 0 0 30px rgba(59, 130, 246, 0.3);
  position: relative;
  letter-spacing: -0.5px;
  filter: drop-shadow(0 4px 8px rgba(30, 58, 138, 0.2));
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  0% {
    filter: drop-shadow(0 4px 8px rgba(30, 58, 138, 0.2));
  }
  100% {
    filter: drop-shadow(0 6px 15px rgba(59, 130, 246, 0.4));
  }
}

.hero-content .lead {
  font-size: 1.3rem;
  color: var(--text-medium);
  margin-bottom: 40px;
  line-height: 1.6;
  font-weight: 500;
  position: relative;
}

.hero-content .btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--deep-purple), var(--royal-blue));
  color: white;
  padding: 18px 35px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 8px;
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
  border: none;
  box-shadow: var(--elegant-shadow);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-content .btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 50px;
  z-index: -1;
}

.hero-content .btn:hover::after {
  opacity: 1;
}

.hero-content .btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: var(--glow-shadow), var(--premium-shadow);
  text-decoration: none;
  color: white;
}

/* Títulos elegantes */
.section-title {
  font-size: 2.8rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 60px;
  background: linear-gradient(45deg, var(--deep-purple), var(--royal-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 8px;
  background: linear-gradient(90deg, var(--deep-purple), var(--royal-blue), var(--soft-purple));
  border-radius: 50px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translateX(-50%) scale(1); }
  50% { transform: translateX(-50%) scale(1.1); }
}

/* Cards elegantes */
.card {
  background: var(--soft-white);
  border: 3px solid var(--soft-purple);
  border-radius: 35px;
  box-shadow: var(--elegant-shadow);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(107, 70, 193, 0.1), rgba(59, 130, 246, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::after {
  opacity: 1;
}

.card:hover {
  transform: translateY(-15px) rotate(2deg);
  box-shadow: var(--glow-shadow), var(--premium-shadow);
  border-color: var(--accent-purple);
}

.card-img-top {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 30px 30px 0 0;
  transition: all 0.4s ease;
  filter: brightness(1.1) saturate(1.2);
}

.card:hover .card-img-top {
  transform: scale(1.05);
  filter: brightness(1.2) saturate(1.3);
}

.card-body {
  padding: 30px 25px;
  position: relative;
  z-index: 1;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 15px;
  position: relative;
}

.card-text {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(45deg, var(--deep-purple), var(--royal-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Category boxes elegantes */
.category-box {
  background: var(--soft-white);
  border: 3px solid var(--periwinkle);
  border-radius: 30px;
  padding: 35px 20px;
  text-align: center;
  box-shadow: var(--elegant-shadow);
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  position: relative;
  height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.category-box::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(107, 70, 193, 0.2), transparent);
  transform: rotate(45deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.category-box:hover::before {
  opacity: 1;
  animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% { transform: rotate(45deg) translateX(-100%); }
  100% { transform: rotate(45deg) translateX(100%); }
}

.category-box:hover {
  transform: translateY(-12px) scale(1.05) rotate(-2deg);
  box-shadow: var(--glow-shadow), var(--premium-shadow);
  border-color: var(--accent-purple);
}

.category-box img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 15px;
  transition: all 0.4s ease;
  filter: brightness(1.1) saturate(1.3);
}

.category-box:hover img {
  transform: scale(1.3) rotate(10deg);
  filter: brightness(1.2) saturate(1.4);
}

.category-box h5 {
  font-size: 1.1rem;
  font-weight: 700;
  background: linear-gradient(45deg, var(--deep-purple), var(--royal-blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Features section elegante */
.py-5 .card {
  background: linear-gradient(135deg, var(--soft-white) 0%, var(--cream-purple) 100%);
  border: 2px solid var(--lavender);
  border-radius: 25px;
  transition: all 0.3s ease;
  position: relative;
}

.py-5 .card:hover {
  transform: translateY(-8px) rotate(1deg);
  box-shadow: var(--elegant-shadow);
  border-color: var(--soft-purple);
}

.py-5 .card h5 {
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 15px;
}

.py-5 .card .text-muted {
  color: var(--text-medium) !important;
}

/* Footer elegante */
footer {
  background: linear-gradient(135deg, var(--deep-purple) 0%, var(--royal-blue) 50%, var(--accent-purple) 100%) !important;
  border-top: 3px solid var(--accent-purple);
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '🛍️ 💳 🏪 📦 🎁 🛒 💎 ⭐';
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 1.5rem;
  opacity: 0.3;
  animation: twinkle 4s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}

footer p, footer small {
  position: relative;
  z-index: 1;
  color: white;
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

/* Links */
.col-md-2 a {
  text-decoration: none;
  color: inherit;
}

.col-md-2 a:hover {
  text-decoration: none;
  color: inherit;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 20px;
    height: auto;
    min-height: 100vh;
  }

  .hero-content {
    padding: 50px 35px;
    margin: 30px 0;
    border-radius: 35px;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content .lead {
    font-size: 1.2rem;
  }

  .hero-content .btn {
    padding: 16px 30px;
    font-size: 1rem;
    display: block;
    margin: 10px auto;
    max-width: 220px;
  }

  .section-title {
    font-size: 2.2rem;
    margin-bottom: 50px;
  }

  .category-box {
    height: 180px;
  }

  .category-box img {
    width: 50px;
    height: 50px;
  }

  .card-img-top {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .hero-content {
    padding: 40px 25px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .category-box {
    height: 160px;
  }
}

/* Animaciones elegantes */
@media (prefers-reduced-motion: no-preference) {
  .card {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
    animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  }

  .card:nth-child(1) { animation-delay: 0.1s; }
  .card:nth-child(2) { animation-delay: 0.2s; }
  .card:nth-child(3) { animation-delay: 0.3s; }
  .card:nth-child(4) { animation-delay: 0.4s; }
  .card:nth-child(5) { animation-delay: 0.5s; }
  .card:nth-child(6) { animation-delay: 0.6s; }

  @keyframes bounceIn {
    0% {
      opacity: 0;
      transform: translateY(30px) scale(0.9);
    }
    60% {
      opacity: 1;
      transform: translateY(-10px) scale(1.05);
    }
    100% {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
  }

  .category-box {
    opacity: 0;
    transform: translateY(20px) scale(0.8) rotate(5deg);
    animation: popIn 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
  }

  .col-md-2:nth-child(1) .category-box { animation-delay: 0.1s; }
  .col-md-2:nth-child(2) .category-box { animation-delay: 0.2s; }
  .col-md-2:nth-child(3) .category-box { animation-delay: 0.3s; }
  .col-md-2:nth-child(4) .category-box { animation-delay: 0.4s; }
  .col-md-2:nth-child(5) .category-box { animation-delay: 0.5s; }
  .col-md-2:nth-child(6) .category-box { animation-delay: 0.6s; }
  .col-md-2:nth-child(7) .category-box { animation-delay: 0.7s; }

  @keyframes popIn {
    to {
      opacity: 1;
      transform: translateY(0) scale(1) rotate(0deg);
    }
  }
}

/* Scrollbar elegante */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--cream-purple);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--deep-purple), var(--royal-blue));
  border-radius: 10px;
  border: 2px solid var(--soft-white);
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-purple), var(--accent-blue));
}
#listaProductos {
    z-index: 1000;
}
.form-container {
    /* ... tus estilos existentes ... */
    position: relative;
    z-index: 10;
}