/* ===== ANIMACIONES MODERNAS ===== */

:root {
  --primary: #667eea;
  --primary-dark: #5a67d8;
  --secondary: #f093fb;
  --accent: #f5576c;
  --dark: #1a202c;
  --light: #f7fafc;
  --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 20px 40px rgba(0,0,0,0.15);
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* Selection color */
::selection {
  background: var(--primary);
  color: white;
}

/* ===== ENTRY ANIMATIONS ===== */

.fade-in-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.animate {
  opacity: 1;
  transform: translateY(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scale-in.animate {
  opacity: 1;
  transform: scale(1);
}

.slide-from-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.8s ease;
}

.slide-from-left.animate {
  opacity: 1;
  transform: translateX(0);
}

.slide-from-right {
  opacity: 0;
  transform: translateX(60px);
  transition: all 0.8s ease;
}

.slide-from-right.animate {
  opacity: 1;
  transform: translateX(0);
}

/* ===== HOVER EFFECTS ===== */

.card-hover {
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}

.card-hover:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
}

.image-zoom {
  overflow: hidden;
}

.image-zoom img {
  transition: transform 0.6s ease;
}

.image-zoom:hover img {
  transform: scale(1.1);
}

.btn-glow {
  position: relative;
  transition: all 0.3s ease;
}

.btn-glow:hover {
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.6);
  transform: translateY(-2px);
}

/* ===== GRADIENTS ===== */

.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.animated-gradient {
  background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

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

/* ===== FLOATING ANIMATION ===== */

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

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

/* ===== PULSE EFFECT ===== */

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4); }
  50% { box-shadow: 0 0 0 20px rgba(102, 126, 234, 0); }
}

.pulse-btn {
  animation: pulse 2s infinite;
}

/* ===== SCROLL PROGRESS ===== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 9999;
  transition: width 0.1s;
}

/* ===== GLASSMORPHISM ===== */

.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
}

/* ===== STAGGER ANIMATION ===== */

.stagger-item {
  opacity: 0;
  transform: translateY(30px);
}

.stagger-item.animate {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== SHIMMER EFFECT ===== */

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

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

/* ===== REVEAL ANIMATION ===== */

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

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

/* ===== BOUNCE IN ===== */

@keyframes bounceIn {
  0% { opacity: 0; transform: scale(0.3); }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.9); }
  100% { opacity: 1; transform: scale(1); }
}

.bounce-in {
  animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* ===== UNDERLINE SWEEP ===== */

.underline-sweep {
  position: relative;
  display: inline-block;
}

.underline-sweep::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.4s ease;
}

.underline-sweep:hover::after {
  width: 100%;
}

/* ===== MAGNETIC BUTTON ===== */

.magnetic-btn {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===== LOADING SKELETON ===== */

.skeleton {
  background: #e0e0e0;
  position: relative;
  overflow: hidden;
}

.skeleton::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: skeleton-shine 1.5s infinite;
}

@keyframes skeleton-shine {
  100% { left: 100%; }
}
