/* ===================================================
   EAM - Institucion Universitaria
   Estilos personalizados
   =================================================== */

* { scroll-behavior: smooth; }

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.glass-light {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Animated gradient background */
.gradient-bg {
  background: linear-gradient(-45deg, #0f172a, #1e3a5f, #0f172a, #1a365d);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Floating animation */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
}
.animate-float { animation: float 6s ease-in-out infinite; }
.animate-float-delay { animation: float 6s ease-in-out 2s infinite; }
.animate-float-delay-2 { animation: float 6s ease-in-out 4s infinite; }

/* Glow effect */
.glow { box-shadow: 0 0 60px rgba(59, 130, 246, 0.3); }
.glow-gold { box-shadow: 0 0 60px rgba(251, 191, 36, 0.3); }

/* Text gradient */
.text-gradient {
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 50%, #fbbf24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Shine effect */
.shine {
  position: relative;
  overflow: hidden;
}
.shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
.shine:hover::before { left: 100%; }

/* Card hover effects */
.card-3d {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}
.card-3d:hover {
  transform: translateY(-12px) rotateX(5deg);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.3);
}

/* Magnetic button effect */
.btn-magnetic {
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-magnetic:hover {
  transform: scale(1.05);
  box-shadow: 0 20px 40px -10px rgba(59, 130, 246, 0.5);
}

/* Stagger animation */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.stagger-1 { animation: fadeInUp 0.6s ease forwards 0.1s; opacity: 0; }
.stagger-2 { animation: fadeInUp 0.6s ease forwards 0.2s; opacity: 0; }
.stagger-3 { animation: fadeInUp 0.6s ease forwards 0.3s; opacity: 0; }
.stagger-4 { animation: fadeInUp 0.6s ease forwards 0.4s; opacity: 0; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Navbar */
.navbar-scrolled {
  background: rgba(15, 23, 42, 0.95) !important;
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* Mobile menu */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.mobile-menu.active { max-height: 400px; }

/* Slider */
.slider-track {
  display: flex;
  transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.slide { min-width: 100%; }

/* Dot indicators */
.dot {
  transition: all 0.3s ease;
}
.dot.active {
  width: 32px;
  background: #3b82f6;
}

/* News card */
.news-card img {
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.news-card:hover img { transform: scale(1.1); }

/* Counter */
.counter-number { font-variant-numeric: tabular-nums; }

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #3b82f6; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #60a5fa; }

/* Grid pattern */
.grid-pattern {
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Noise texture */
.noise::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

/* Pulse ring */
@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(2); opacity: 0; }
}
.pulse-ring::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: inherit;
  animation: pulse-ring 2s ease-out infinite;
}
