/* ==========================================================================
   Emanuel Educación Financiera - Custom Stylesheet & Design Tokens
   Corporate Modern & Shopify-Style CRO Theme
   ========================================================================== */

/* --------------------------------------------------------------------------
   Typography Rules & Base Settings
   -------------------------------------------------------------------------- */
body {
  font-family: 'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.font-heading,
.font-display-lg,
.font-headline-md,
.font-headline-sm,
.font-outfit {
  font-family: 'DM Sans', 'Outfit', system-ui, sans-serif;
  letter-spacing: -0.02em;
}

/* --------------------------------------------------------------------------
   Custom Scrollbar (Drawer Cart & Overflow Containers)
   -------------------------------------------------------------------------- */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 9999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* --------------------------------------------------------------------------
   Glassmorphism & Surface Utilities
   -------------------------------------------------------------------------- */
.glass-card {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(196, 198, 206, 0.35);
  box-shadow: 0 4px 16px rgba(0, 15, 34, 0.06);
}

.glass-card-dark {
  background-color: rgba(10, 37, 64, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

/* --------------------------------------------------------------------------
   CRO Button & Pulsating Glow Animation (Green Success #22C55E)
   -------------------------------------------------------------------------- */
@keyframes shadow-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7), 0 4px 14px rgba(34, 197, 94, 0.35);
  }
  50% {
    box-shadow: 0 0 0 14px rgba(34, 197, 94, 0), 0 6px 22px rgba(34, 197, 94, 0.6);
  }
}

@keyframes shadowPulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
  }
  50% {
    box-shadow: 0 0 30px rgba(34, 197, 94, 0.8), 0 0 10px rgba(34, 197, 94, 0.6);
  }
}

.animate-shadow-pulse {
  animation: shadow-pulse 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.cro-button {
  background-color: #22c55e;
  color: #ffffff;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.35);
}

.cro-button:hover {
  background-color: #16a34a;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.5);
  transform: translateY(-1px);
}

.cro-button:active {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   3D Staggered Float Animations (Hero Ebooks Stack)
   -------------------------------------------------------------------------- */
@keyframes float-card-1 {
  0%, 100% {
    transform: translate(-25%, 10px) rotate(-10deg) scale(0.9);
    z-index: 10;
    filter: brightness(0.8);
    box-shadow: -10px 15px 30px rgba(0, 15, 34, 0.4);
  }
  50% {
    transform: translate(-28%, -8px) rotate(-7deg) scale(0.9);
    z-index: 10;
    filter: brightness(0.9);
    box-shadow: -15px 25px 45px rgba(0, 15, 34, 0.55);
  }
}

@keyframes float-card-2 {
  0%, 100% {
    transform: translate(25%, 15px) rotate(10deg) scale(0.9);
    z-index: 20;
    filter: brightness(0.8);
    box-shadow: 10px 15px 30px rgba(0, 15, 34, 0.4);
  }
  50% {
    transform: translate(28%, -5px) rotate(7deg) scale(0.9);
    z-index: 20;
    filter: brightness(0.9);
    box-shadow: 15px 25px 45px rgba(0, 15, 34, 0.55);
  }
}

@keyframes float-card-3 {
  0%, 100% {
    transform: translate(0, 0px) rotate(0deg) scale(1);
    z-index: 30;
    filter: brightness(1);
    box-shadow: 0 25px 50px -12px rgba(0, 15, 34, 0.6);
  }
  50% {
    transform: translate(0, -16px) rotate(-1deg) scale(1.02);
    z-index: 30;
    filter: brightness(1.05);
    box-shadow: 0 35px 65px -10px rgba(0, 15, 34, 0.75);
  }
}

.animate-float-card-1 {
  animation: float-card-1 7s ease-in-out infinite;
  transform-origin: center bottom;
  will-change: transform, filter, box-shadow;
}

.animate-float-card-2 {
  animation: float-card-2 6s ease-in-out infinite;
  transform-origin: center bottom;
  will-change: transform, filter, box-shadow;
}

.animate-float-card-3 {
  animation: float-card-3 8s ease-in-out infinite;
  transform-origin: center bottom;
  will-change: transform, filter, box-shadow;
}

/* --------------------------------------------------------------------------
   Testimonials Carousel Transitions
   -------------------------------------------------------------------------- */
#testimonials-container {
  overflow: hidden;
  position: relative;
  width: 100%;
}

#testimonials-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* --------------------------------------------------------------------------
   FAQ Accordion Transitions
   -------------------------------------------------------------------------- */
details[open] summary svg.faq-chevron,
details[open] summary i.faq-chevron {
  transform: rotate(180deg);
}

summary::-webkit-details-marker {
  display: none;
}

/* --------------------------------------------------------------------------
   Badge & Micro-interactions
   -------------------------------------------------------------------------- */
.badge-discount {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.badge-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* --------------------------------------------------------------------------
   Bank Banner Shimmer & Gentle Sparkle Animation
   -------------------------------------------------------------------------- */
@keyframes shimmer-glow {
  0% {
    background-position: -200% 0;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
  }
  50% {
    box-shadow: 0 0 35px rgba(34, 197, 94, 0.6), 0 0 15px rgba(107, 255, 143, 0.4);
  }
  100% {
    background-position: 200% 0;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
  }
}

.animate-shimmer-glow {
  background: linear-gradient(90deg, #006e2f 0%, #00a847 25%, #22c55e 50%, #00a847 75%, #006e2f 100%);
  background-size: 200% 100%;
  animation: shimmer-glow 4s ease-in-out infinite;
}

