/* Efectos visuales adicionales para replicar exactamente React */

/* Partículas de fondo animadas */
@keyframes floatParticles {
  0% {
    transform: translateY(100vh) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) translateX(100px) rotate(360deg);
    opacity: 0;
  }
}

.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 50%;
  animation: floatParticles 8s linear infinite;
  opacity: 0;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-delay: 1s; }
.particle:nth-child(3) { left: 30%; animation-delay: 2s; }
.particle:nth-child(4) { left: 40%; animation-delay: 3s; }
.particle:nth-child(5) { left: 50%; animation-delay: 4s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; }
.particle:nth-child(7) { left: 70%; animation-delay: 6s; }
.particle:nth-child(8) { left: 80%; animation-delay: 7s; }
.particle:nth-child(9) { left: 90%; animation-delay: 8s; }

/* Efectos de brillo en hover */
.glow-effect {
  position: relative;
}

.glow-effect::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, transparent, var(--primary-color), transparent);
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.glow-effect:hover::before {
  opacity: 0.7;
}

/* Efectos de texto brillante */
.text-glow-hover:hover {
  text-shadow: 
    0 0 5px var(--primary-color),
    0 0 10px var(--primary-color),
    0 0 15px var(--primary-color);
  transition: text-shadow 0.3s ease;
}

/* Animaciones de loading mejoradas */
.loading-dots::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary-color);
  animation: loadingDots 1.4s infinite both;
  margin-left: 4px;
}

@keyframes loadingDots {
  0%, 80%, 100% {
    box-shadow: 
      0 0 var(--primary-color),
      12px 0 transparent,
      24px 0 transparent;
  }
  40% {
    box-shadow: 
      0 0 transparent,
      12px 0 var(--primary-color),
      24px 0 transparent;
  }
  80% {
    box-shadow: 
      0 0 transparent,
      12px 0 transparent,
      24px 0 var(--primary-color);
  }
}

/* Efectos de typewriter */
.typewriter {
  overflow: hidden;
  border-right: 2px solid var(--primary-color);
  white-space: nowrap;
  margin: 0 auto;
  animation: 
    typing 3.5s steps(40, end),
    blink-caret 0.75s step-end infinite;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--primary-color); }
}

/* Efectos de parallax suaves */
.parallax-slow {
  transition: transform 0.1s ease-out;
}

/* Hover effects para botones mejorados */
.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::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;
}

.btn-glow:hover::before {
  left: 100%;
}

/* Card hover effects mejorados */
.card-3d {
  perspective: 1000px;
}

.card-3d:hover {
  transform: rotateY(5deg) rotateX(5deg);
}

/* Efectos de glassmorphism */
.glass-effect {
  background: rgba(26, 26, 26, 0.4);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Efectos de neon */
.neon-text {
  text-shadow:
    0 0 5px var(--primary-color),
    0 0 10px var(--primary-color),
    0 0 15px var(--primary-color),
    0 0 20px var(--primary-color);
}

.neon-border {
  border: 2px solid var(--primary-color);
  box-shadow:
    0 0 5px var(--primary-color),
    inset 0 0 5px var(--primary-color);
}

/* Animaciones de entrada escalonadas */
.stagger-animation > * {
  opacity: 0;
  transform: translateY(30px);
  animation: staggerFadeIn 0.6s ease forwards;
}

.stagger-animation > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-animation > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-animation > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-animation > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-animation > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-animation > *:nth-child(6) { animation-delay: 0.6s; }

@keyframes staggerFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Efectos de scroll reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Cursor personalizado en elementos interactivos */
.interactive-cursor {
  cursor: none;
}

.custom-cursor {
  position: fixed;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  mix-blend-mode: difference;
}

.custom-cursor.hover {
  transform: scale(1.5);
  background: rgba(245, 200, 66, 0.8);
}

/* Efectos de background patterns */
.pattern-dots {
  background-image: radial-gradient(
    circle,
    rgba(245, 200, 66, 0.1) 1px,
    transparent 1px
  );
  background-size: 20px 20px;
}

.pattern-grid {
  background-image: 
    linear-gradient(rgba(245, 200, 66, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 200, 66, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Efectos de loading skeleton */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--secondary-bg) 25%,
    var(--accent-bg) 50%,
    var(--secondary-bg) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Efectos de video overlay */
.video-overlay {
  position: relative;
}

.video-overlay::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    45deg,
    rgba(0, 0, 0, 0.3) 0%,
    transparent 50%,
    rgba(245, 200, 66, 0.1) 100%
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-overlay:hover::after {
  opacity: 1;
}

/* Responsive utilities adicionales */
@media (max-width: 480px) {
  .particles {
    display: none; /* Desactivar partículas en móviles muy pequeños */
  }
  
  .card-3d {
    perspective: none;
  }
  
  .card-3d:hover {
    transform: none;
  }
  
  .neon-text {
    text-shadow: 0 0 5px var(--primary-color);
  }
}

/* Efectos de focus mejorados para accesibilidad */
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  box-shadow: 0 0 10px rgba(245, 200, 66, 0.5);
}

/* Efectos de reducción de movimiento para accesibilidad */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .particles {
    display: none;
  }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
  :root {
    --primary-bg: #050505;
    --secondary-bg: #0f0f0f;
    --accent-bg: #1f1f1f;
  }
}

/* Print styles */
@media print {
  .particles,
  .auth-background,
  .video-overlay {
    display: none !important;
  }
  
  .header,
  .footer {
    position: static !important;
  }
  
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }
}