/* Hispano Tempo — CSS Animations (replaces Framer Motion) */

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(24px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Intersection Observer triggers .is-visible */
.animate-on-scroll {
  opacity: 0;
}

.animate-on-scroll.is-visible {
  animation: fade-in-up 0.6s ease-out forwards;
}

/* Stagger children */
.stagger-children.is-visible > *:nth-child(1) { animation-delay: 0ms; }
.stagger-children.is-visible > *:nth-child(2) { animation-delay: 100ms; }
.stagger-children.is-visible > *:nth-child(3) { animation-delay: 200ms; }
.stagger-children.is-visible > *:nth-child(4) { animation-delay: 300ms; }
.stagger-children.is-visible > *:nth-child(5) { animation-delay: 400ms; }
.stagger-children.is-visible > *:nth-child(6) { animation-delay: 500ms; }
.stagger-children.is-visible > *:nth-child(7) { animation-delay: 600ms; }

/* Smooth page transition — hidden until i18n ready */
html:not(.i18n-ready) body {
  opacity: 0;
}
html.i18n-ready body {
  opacity: 1;
  transition: opacity 0.2s ease-in;
}

/* Carousel base */
.carousel-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

/* Video placeholder */
.video-placeholder {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  background: linear-gradient(135deg, #f0f0f0, #e8e8e8);
}
.video-placeholder .play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pain point card hover */
.pain-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pain-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

/* Module card (packages) */
.module-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.module-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

/* Closing section background shimmer */
.closing-gradient {
  background: linear-gradient(135deg,
    rgba(4, 209, 133, 0.05) 0%,
    rgba(244, 235, 217, 0.3) 50%,
    rgba(224, 122, 95, 0.08) 100%
  );
}

/* Marketing consent highlight */
.marketing-checkbox-highlight {
  background: rgba(4, 209, 133, 0.05);
  border: 1px solid rgba(4, 209, 133, 0.2);
  border-radius: 0.75rem;
  padding: 1rem;
  transition: border-color 0.2s ease;
}
.marketing-checkbox-highlight:has(input:checked) {
  border-color: #04d185;
  background: rgba(4, 209, 133, 0.1);
}
