/* ═══════════════════════════════════════════════════════════
   ANIMATIONS.CSS - Todas las animaciones de la landing page
   ═══════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────────────────── 
   KEYFRAMES - Animaciones principales
   ─────────────────────────────────────────────────────────── */

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes floatSlow {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-30px) rotate(5deg);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes slideInFromLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInFromRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  10%, 30% {
    transform: scale(1.1);
  }
  20%, 40% {
    transform: scale(1);
  }
}

@keyframes logoEntrance {
  0% {
    opacity: 0;
    transform: translateX(-50px) scale(0.8);
  }
  60% {
    transform: translateX(10px) scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes logoGlow {
  0%, 100% {
    filter: brightness(1.15) contrast(1.2) drop-shadow(0 0 5px rgba(255, 107, 157, 0.3));
  }
  50% {
    filter: brightness(1.25) contrast(1.3) drop-shadow(0 0 15px rgba(255, 107, 157, 0.6));
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 182, 193, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(255, 182, 193, 0.6);
  }
}

@keyframes petalFall {
  0% {
    transform: translateY(-100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}

@keyframes scrollWheel {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(10px);
  }
}

@keyframes tickerScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes sparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

/* ─────────────────────────────────────────────────────────── 
   CLASES DE ANIMACIÓN - Para aplicar en HTML
   ─────────────────────────────────────────────────────────── */

.animate-fade-in-down {
  animation: fadeInDown 1s ease-out forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 1s ease-out forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 1s ease-out forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 1s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 1s ease-out forwards;
}

.animate-scale-in {
  animation: scaleIn 0.8s ease-out forwards;
}

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

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-bounce {
  animation: bounce 2s infinite;
}

.animate-heartbeat {
  animation: heartbeat 1.5s ease-in-out infinite;
}

/* ─────────────────────────────────────────────────────────── 
   DELAYS - Para secuenciar animaciones
   ─────────────────────────────────────────────────────────── */

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

.delay-4 {
  animation-delay: 0.8s;
}

.delay-5 {
  animation-delay: 1s;
}

.delay-6 {
  animation-delay: 1.2s;
}

/* ─────────────────────────────────────────────────────────── 
   REVEAL ON SCROLL - Elementos que aparecen al hacer scroll
   ─────────────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal.active.from-left {
  animation: slideInFromLeft 0.8s ease-out forwards;
}

.reveal.active.from-right {
  animation: slideInFromRight 0.8s ease-out forwards;
}

/* ─────────────────────────────────────────────────────────── 
   HOVER EFFECTS - Efectos al pasar el mouse
   ─────────────────────────────────────────────────────────── */

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

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

.hover-glow {
  transition: box-shadow 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(255, 182, 193, 0.5);
}

/* ─────────────────────────────────────────────────────────── 
   LOADING ANIMATIONS - Animaciones de carga
   ─────────────────────────────────────────────────────────── */

.skeleton {
  background: linear-gradient(
    90deg,
    #f0f0f0 25%,
    #e0e0e0 50%,
    #f0f0f0 75%
  );
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* ─────────────────────────────────────────────────────────── 
   RESPONSIVE ANIMATIONS - Ajustes para móviles
   ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .animate-fade-in-down,
  .animate-fade-in-up,
  .animate-fade-in-left,
  .animate-fade-in-right {
    animation-duration: 0.6s;
  }

  .reveal {
    transform: translateY(30px);
  }

  .hover-lift:hover {
    transform: translateY(-5px);
  }
}

/* ─────────────────────────────────────────────────────────── 
   REDUCED MOTION - Respeto a preferencias de accesibilidad
   ─────────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ─────────────────────────────────────────────────────────── 
   SPECIAL EFFECTS - Efectos especiales únicos
   ─────────────────────────────────────────────────────────── */

.gradient-text {
  background: linear-gradient(
    135deg,
    #ff6b9d,
    #c44569,
    #ff6b9d
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease infinite;
}

.sparkle-effect {
  position: relative;
  overflow: hidden;
}

.sparkle-effect::before {
  content: '✨';
  position: absolute;
  top: 10%;
  left: 10%;
  animation: sparkle 2s ease-in-out infinite;
}

.sparkle-effect::after {
  content: '✨';
  position: absolute;
  bottom: 10%;
  right: 10%;
  animation: sparkle 2s ease-in-out infinite 1s;
}

/* ─────────────────────────────────────────────────────────── 
   BUTTON ANIMATIONS - Animaciones para botones
   ─────────────────────────────────────────────────────────── */

.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
  width: 300px;
  height: 300px;
}

/* ─────────────────────────────────────────────────────────── 
   PAGE TRANSITIONS - Transiciones de página
   ─────────────────────────────────────────────────────────── */

.page-transition {
  opacity: 0;
  animation: fadeIn 0.5s ease-out forwards;
}

/* ─────────────────────────────────────────────────────────── 
   SCROLL ANIMATIONS - Animaciones específicas de scroll
   ─────────────────────────────────────────────────────────── */

.parallax {
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sticky-reveal {
  position: sticky;
  top: 100px;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.sticky-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
