/* ==========================================================================
   DELEITE AUTOMERCADO LECHERÍA — LUXURY GOURMET RETAIL DESIGN SYSTEM
   Inspired by Erewhon, Whole Foods & Glovo Prime | Awwwards UI/UX Level
   ========================================================================== */

:root {
  --deleite-plum: #4A153B;
  --deleite-plum-light: #5B1B4C;
  --deleite-plum-deep: #2E0B24;
  --deleite-plum-ultra: #1A0514;
  --deleite-gold: #E5B842;
  --deleite-gold-bright: #F3C623;
  --deleite-cream: #FAF8F5;
  --deleite-white: #FFFFFF;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
  scroll-behavior: smooth;
  background-color: var(--deleite-cream);
  color: #1F121C;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Plus Jakarta Sans', 'Outfit', sans-serif;
  letter-spacing: -0.025em;
}

/* Custom Selection & Scrollbar */
::selection {
  background: var(--deleite-gold);
  color: var(--deleite-plum-deep);
}

::-webkit-scrollbar {
  width: 10px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #F2ECE4;
}
::-webkit-scrollbar-thumb {
  background: #4A153B;
  border-radius: 9999px;
  border: 2px solid #F2ECE4;
}
::-webkit-scrollbar-thumb:hover {
  background: #5B1B4C;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==========================================================================
   AURORA & GLASSMORPHISM SURFACES
   ========================================================================== */

.bg-aurora-plum {
  background-color: var(--deleite-plum-deep);
  background-image:
    radial-gradient(circle at 12% 18%, rgba(229, 184, 66, 0.22) 0%, transparent 42%),
    radial-gradient(circle at 86% 22%, rgba(145, 38, 118, 0.45) 0%, transparent 48%),
    radial-gradient(circle at 50% 88%, rgba(243, 198, 35, 0.16) 0%, transparent 52%),
    linear-gradient(145deg, #2E0B24 0%, #4A153B 52%, #1E0617 100%);
}

.bg-aurora-card {
  background:
    radial-gradient(120% 120% at 90% 10%, rgba(229, 184, 66, 0.22) 0%, rgba(91, 27, 76, 0.1) 45%, transparent 100%),
    linear-gradient(160deg, #4A153B 0%, #2E0B24 100%);
}

.glass-nav {
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(74, 21, 59, 0.08);
  box-shadow:
    0 12px 36px -8px rgba(46, 11, 36, 0.12),
    0 2px 6px -1px rgba(46, 11, 36, 0.05),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.7);
}

.glass-plum {
  background: rgba(46, 11, 36, 0.88);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(229, 184, 66, 0.25);
  box-shadow:
    0 24px 48px -12px rgba(26, 5, 20, 0.55),
    inset 0 1px 0 0 rgba(255, 255, 255, 0.14);
}

.bento-card {
  border-radius: 1.75rem;
  transition:
    transform 0.55s var(--ease-out-expo),
    box-shadow 0.55s var(--ease-out-expo),
    border-color 0.4s ease;
  box-shadow:
    0 10px 30px -10px rgba(46, 11, 36, 0.07),
    0 2px 8px -2px rgba(46, 11, 36, 0.04);
}

.bento-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 24px 48px -12px rgba(74, 21, 59, 0.16),
    0 8px 16px -6px rgba(74, 21, 59, 0.08);
}

/* Illuminated Cursor Glow on Ecosystem Bento Cards */
.bento-spotlight {
  position: relative;
  overflow: hidden;
}
.bento-spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    550px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(243, 198, 35, 0.15),
    transparent 45%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}
.bento-spotlight:hover::before {
  opacity: 1;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS & MICRO-INTERACTIONS
   ========================================================================== */

@keyframes marqueeScroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.animate-marquee {
  display: flex;
  width: max-content;
  animation: marqueeScroll 34s linear infinite;
}
.animate-marquee:hover {
  animation-play-state: paused;
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(0.6deg);
  }
}

.animate-float {
  animation: floatSlow 6s ease-in-out infinite;
}

@keyframes storyRingSpin {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.story-ring {
  padding: 3.5px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #F3C623 0%, #E5B842 25%, #D946EF 60%, #4A153B 100%);
  background-size: 220% 220%;
  animation: storyRingSpin 4s ease infinite;
  transition: transform 0.4s var(--ease-spring), box-shadow 0.4s ease;
}

.story-ring:hover {
  transform: scale(1.07) translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(229, 184, 66, 0.45);
}

.story-ring.seen {
  background: linear-gradient(135deg, #D6D3D1, #A8A29E);
  animation: none;
}

@keyframes cartPop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.18) rotate(-2deg);
  }
  75% {
    transform: scale(0.95) rotate(1deg);
  }
  100% {
    transform: scale(1);
  }
}

.animate-cart-pop {
  animation: cartPop 0.48s var(--ease-spring);
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.animate-tab-enter {
  animation: fadeSlideUp 0.45s var(--ease-out-expo) forwards;
}

/* Scroll Reveal Classes */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s var(--ease-out-expo),
    transform 0.7s var(--ease-out-expo);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Magnetic CTA Button */
.btn-magnetic {
  transition:
    transform 0.35s var(--ease-out-expo),
    box-shadow 0.35s var(--ease-out-expo),
    background-color 0.25s ease;
}
.btn-magnetic:hover {
  transform: translateY(-2px) scale(1.015);
}
.btn-magnetic:active {
  transform: translateY(0) scale(0.985);
}

/* Story Progress Bar Fill */
.story-progress-bar {
  transition: width 0.1s linear;
}
