/* =============================================
   VitaView AI - Landing Page Animations (Static)
   Substitui Framer Motion por CSS puro
   ============================================= */

/* Scroll-triggered entrance animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for children */
.animate-on-scroll[data-delay="1"] { transition-delay: 0.1s; }
.animate-on-scroll[data-delay="2"] { transition-delay: 0.2s; }
.animate-on-scroll[data-delay="3"] { transition-delay: 0.3s; }
.animate-on-scroll[data-delay="4"] { transition-delay: 0.4s; }
.animate-on-scroll[data-delay="5"] { transition-delay: 0.5s; }
.animate-on-scroll[data-delay="6"] { transition-delay: 0.6s; }
.animate-on-scroll[data-delay="7"] { transition-delay: 0.7s; }
.animate-on-scroll[data-delay="8"] { transition-delay: 0.8s; }

/* Navbar slide-in from top */
@keyframes slideDownFromTop {
  from { transform: translateY(-100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

nav {
  animation: slideDownFromTop 0.5s ease-out;
}

/* Hero stagger animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-stagger > * {
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
}

.hero-stagger > *:nth-child(1) { animation-delay: 0.3s; }
.hero-stagger > *:nth-child(2) { animation-delay: 0.5s; }
.hero-stagger > *:nth-child(3) { animation-delay: 0.7s; }
.hero-stagger > *:nth-child(4) { animation-delay: 0.9s; }
.hero-stagger > *:nth-child(5) { animation-delay: 1.1s; }

/* Floating animation (badges, decorative elements) */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Gentle pulse for avatars/icons */
@keyframes gentlePulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.animate-gentle-pulse {
  animation: gentlePulse 3s ease-in-out infinite;
}

/* Upload box glow animation */
@keyframes uploadGlow {
  0%, 100% { box-shadow: 0 0 0 4px rgba(33, 33, 33, 0.1); }
  50% { box-shadow: 0 0 0 8px rgba(33, 33, 33, 0.2); }
}

.animate-upload-glow {
  animation: uploadGlow 2s ease-in-out infinite;
}

/* Audio visualizer bars */
@keyframes barPulse1 { 0%, 100% { height: 12px; } 50% { height: 24px; } }
@keyframes barPulse2 { 0%, 100% { height: 18px; } 50% { height: 32px; } }
@keyframes barPulse3 { 0%, 100% { height: 8px; } 50% { height: 28px; } }

.visualizer-bar:nth-child(1) { animation: barPulse1 0.8s ease-in-out infinite; }
.visualizer-bar:nth-child(2) { animation: barPulse2 0.7s ease-in-out infinite 0.1s; }
.visualizer-bar:nth-child(3) { animation: barPulse3 0.9s ease-in-out infinite 0.2s; }
.visualizer-bar:nth-child(4) { animation: barPulse1 0.75s ease-in-out infinite 0.15s; }
.visualizer-bar:nth-child(5) { animation: barPulse2 0.85s ease-in-out infinite 0.25s; }

/* File fly-in animations */
@keyframes fileFlyIn {
  0% { opacity: 0; transform: translateX(-30px) translateY(30px) rotate(-10deg); }
  100% { opacity: 1; transform: translateX(0) translateY(0) rotate(0); }
}

.animate-file-fly {
  animation: fileFlyIn 0.6s ease-out forwards;
}

/* Scanning line animation */
@keyframes scanLine {
  0% { top: 0; }
  100% { top: 100%; }
}

.animate-scan-line {
  animation: scanLine 2s ease-in-out infinite;
}

/* Background blob float */
@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(10px, -10px) scale(1.05); }
  66% { transform: translate(-5px, 5px) scale(0.95); }
}

.animate-blob-float {
  animation: blobFloat 15s ease-in-out infinite;
}

/* Hover effects (replacing whileHover) */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hover-scale {
  transition: transform 0.2s ease;
}

.hover-scale:hover {
  transform: scale(1.03);
}

.hover-scale-sm:hover {
  transform: scale(1.01);
}

/* Cookie consent slide-up */
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-banner {
  animation: slideUp 0.5s ease-out 1s both;
}

.cookie-banner.hidden {
  animation: none;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Scroll-to-top button */
.scroll-to-top {
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.scroll-to-top.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.scroll-to-top:hover {
  transform: scale(1.1) translateY(-5px);
}

/* Mobile menu */
.mobile-menu-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-panel {
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu-panel.open {
  transform: translateX(0);
}

/* FAQ accordion */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, margin-top 0.3s ease;
  margin-top: 0;
}

.faq-answer.open {
  max-height: 500px;
  opacity: 1;
  margin-top: 16px;
}

.faq-chevron {
  transition: transform 0.3s ease;
}

.faq-chevron.open {
  transform: rotate(180deg);
}

/* Chart bar width animation */
.chart-bar {
  width: 0;
  transition: width 0.8s ease-out;
}

.chart-bar.visible {
  /* Width set via inline style */
}

/* Smooth scroll for the whole page */
html {
  scroll-behavior: smooth;
}
