/* ===== TIPOGRAFÍAS PERSONALIZADAS ===== */
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700;900&family=Rajdhani:wght@300;400;600;700&display=swap');

/* ===== VARIABLES ADICIONALES PARA ANIMACIONES ===== */
:root {
  /* Duraciones de animación */
  --duration-fast: 0.2s;
  --duration-normal: 0.4s;
  --duration-slow: 0.8s;
  --duration-extra-slow: 1.2s;

  /* Curvas de animación avanzadas */
  --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --ease-back: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
  --ease-circ: cubic-bezier(0.785, 0.135, 0.15, 0.86);

  /* Efectos de filtro */
  --filter-glow: drop-shadow(0 0 20px rgba(42, 208, 208, 0.5));
  --filter-blur: blur(0.5px);
  --filter-brightness: brightness(1.1);
}

/* ===== UTILIDADES DE ANIMACIÓN ===== */
.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.animate-spin {
  animation: spin 1s linear infinite;
}

.animate-ping {
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* ===== KEYFRAMES ADICIONALES ===== */
@keyframes ping {

  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

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

/* ===== EFECTOS DE HOVER AVANZADOS ===== */
.hover-lift {
  transition: transform var(--duration-normal) var(--ease-expo);
}

.hover-lift:hover {
  transform: translateY(-8px) scale(1.02);
}

.hover-glow {
  transition: filter var(--duration-normal) ease;
}

.hover-glow:hover {
  filter: var(--filter-glow);
}

/* ===== GRADIENTES ADICIONALES ===== */
.gradient-text-primary {
  background: linear-gradient(135deg, var(--primary-blue), var(--secondary-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.gradient-border {
  border: 2px solid transparent;
  background: linear-gradient(var(--dark-bg), var(--dark-bg)) padding-box,
    linear-gradient(135deg, var(--primary-blue), var(--secondary-cyan)) border-box;
}

/* ===== ESTADOS DE LOADING ===== */
.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

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

  100% {
    background-position: -200% 0;
  }
}

/* ===== EFECTOS DE TEXTO ===== */
.text-shadow-glow {
  text-shadow: 0 0 20px rgba(42, 208, 208, 0.5);
}

.text-stroke {
  -webkit-text-stroke: 1px rgba(42, 208, 208, 0.5);
}

/* ===== UTILIDADES DE LAYOUT ===== */
.full-height {
  height: 100vh;
}

.center-flex {
  display: flex;
  justify-content: center;
  align-items: center;
}

.grid-responsive {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

/* ===== ANIMACIONES DE ENTRADA ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeIn var(--duration-slow) var(--ease-expo) forwards;
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  animation: slideInLeft var(--duration-slow) var(--ease-expo) forwards;
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  animation: slideInRight var(--duration-slow) var(--ease-expo) forwards;
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  animation: scaleIn var(--duration-slow) var(--ease-back) forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

/* ===== EFECTOS DE PARTÍCULAS CSS ===== */
.particles-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.particle {
  position: absolute;
  background: radial-gradient(circle, var(--secondary-cyan), transparent);
  border-radius: 50%;
  opacity: 0.3;
  animation: floatParticle 6s linear infinite;
}

@keyframes floatParticle {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }

  10% {
    opacity: 0.3;
  }

  90% {
    opacity: 0.3;
  }

  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

/* ===== MODO DARK PERSONALIZADO ===== */
.dark-mode {
  --text-primary: #F7FAFC;
  --text-secondary: #CBD5E0;
  --dark-bg: #0A0A0A;
  --light-bg: #1A202C;
}

/* ===== EFECTOS DE GLASSMORPHISM ===== */
.glass-effect {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* ===== ANIMACIONES DE HOVER PARA ICONOS ===== */
.icon-hover {
  transition: all var(--duration-normal) var(--ease-elastic);
}

.icon-hover:hover {
  transform: rotateY(180deg) scale(1.2);
  color: var(--secondary-cyan);
}

/* ===== EFECTOS DE SCROLL ===== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all var(--duration-slow) var(--ease-expo);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ===== UTILIDADES DE ESPACIADO ===== */
.spacing-xs {
  margin: 0.25rem;
}

.spacing-sm {
  margin: 0.5rem;
}

.spacing-md {
  margin: 1rem;
}

.spacing-lg {
  margin: 2rem;
}

.spacing-xl {
  margin: 3rem;
}

/* ===== EFECTOS DE NEÓN ===== */
.neon-glow {
  box-shadow:
    0 0 5px var(--secondary-cyan),
    0 0 10px var(--secondary-cyan),
    0 0 15px var(--secondary-cyan),
    0 0 20px var(--secondary-cyan);
  animation: neonPulse 2s infinite alternate;
}

@keyframes neonPulse {
  from {
    box-shadow:
      0 0 5px var(--secondary-cyan),
      0 0 10px var(--secondary-cyan),
      0 0 15px var(--secondary-cyan),
      0 0 20px var(--secondary-cyan);
  }

  to {
    box-shadow:
      0 0 10px var(--secondary-cyan),
      0 0 20px var(--secondary-cyan),
      0 0 30px var(--secondary-cyan),
      0 0 40px var(--secondary-cyan);
  }
}

/* ===== RESPONSIVE UTILITIES ===== */
@media (max-width: 768px) {
  .mobile-hidden {
    display: none;
  }

  .mobile-full {
    width: 100%;
  }

  .mobile-center {
    text-align: center;
  }
}

@media (min-width: 769px) {
  .desktop-hidden {
    display: none;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .no-print {
    display: none;
  }

  body {
    background: white;
    color: black;
  }

  a {
    text-decoration: underline;
  }
}