/**
 * PREMIUM EFFECTS - Efectos Visuales de Última Generación
 * Llevando el diseño al siguiente nivel
 */

/* ============================================
   EFECTOS DE PARALLAX Y PROFUNDIDAD 3D
   ============================================ */

/* Efecto de profundidad en scroll */
.parallax-container {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.parallax-layer {
  transition: transform 0.3s ease-out;
}

/* Efecto de bruma flotante (Floating mist) */
.floating-mist {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(240, 185, 11, 0.1) 0%,
    transparent 60%
  );
  animation: floatMist 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes floatMist {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.3;
  }
  33% {
    transform: translate(30px, -30px) scale(1.1);
    opacity: 0.5;
  }
  66% {
    transform: translate(-30px, 30px) scale(0.9);
    opacity: 0.3;
  }
}

/* Halo de luz pulsante alrededor de elementos importantes */
.halo-effect {
  position: relative;
}

.halo-effect::after {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(
    circle,
    rgba(240, 185, 11, 0.3) 0%,
    transparent 70%
  );
  border-radius: inherit;
  animation: haloPulse 3s ease-in-out infinite;
  pointer-events: none;
  z-index: -1;
}

@keyframes haloPulse {
  0%, 100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

/* ============================================
   EFECTOS DE PARTICULAS Y LÍNEAS CONECTADAS
   ============================================ */

/* Líneas de conexión animadas */
.connection-lines {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
}

.connection-lines svg {
  width: 100%;
  height: 100%;
  stroke: rgba(240, 185, 11, 0.2);
  animation: flowPath 10s linear infinite;
}

@keyframes flowPath {
  0% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 1000;
  }
}

/* Partículas flotantes doradas */
.golden-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.golden-particles::before,
.golden-particles::after {
  content: '';
  position: absolute;
  width: 4px;
  height: 4px;
  background: #f0b90b;
  border-radius: 50%;
  box-shadow: 0 0 10px #f0b90b;
  animation: particleMove 15s linear infinite;
}

.golden-particles::before {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.golden-particles::after {
  top: 60%;
  right: 15%;
  animation-delay: 7.5s;
}

@keyframes particleMove {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translate(200px, -200px);
    opacity: 0;
  }
}

/* ============================================
   EFECTOS DE HOVER ULTRA AVANZADOS
   ============================================ */

/* Magnetic hover effect */
.magnetic-hover {
  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

/* El elemento "sigue" al cursor */
.magnetic-hover:hover {
  cursor: pointer;
}

/* Rayos de luz en hover */
.glow-rays {
  position: relative;
  overflow: hidden;
}

.glow-rays::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: radial-gradient(
    circle,
    rgba(240, 185, 11, 0.4) 0%,
    transparent 70%
  );
  transform: translate(-50%, -50%);
  transition: width 0.4s, height 0.4s;
}

.glow-rays:hover::before {
  width: 300px;
  height: 300px;
}

/* Shimmer effect en hover */
.shimmer-hover {
  position: relative;
  overflow: hidden;
}

.shimmer-hover::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    45deg,
    transparent 30%,
    rgba(255, 255, 255, 0.1) 50%,
    transparent 70%
  );
  transform: rotate(45deg);
  transition: transform 0.6s;
}

.shimmer-hover:hover::after {
  transform: rotate(45deg) translate(100%, 100%);
}

/* ============================================
   EFECTOS DE TEXTO AVANZADOS
   ============================================ */

/* Texto con efecto de holograma */
.hologram-text {
  position: relative;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f0b90b 50%,
    #ffffff 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: hologramShift 3s ease-in-out infinite;
}

@keyframes hologramShift {
  0%, 100% {
    filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(20deg);
  }
}

/* Texto con efecto de reflexión */
.reflected-text {
  position: relative;
  display: inline-block;
}

.reflected-text::after {
  content: attr(data-text);
  position: absolute;
  top: 100%;
  left: 0;
  background: linear-gradient(
    180deg,
    rgba(240, 185, 11, 0.3) 0%,
    transparent 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: scaleY(-1) skewX(5deg);
  transform-origin: top;
}

/* ============================================
   EFECTOS DE CARDS ULTRA PREMIUM
   ============================================ */

/* Card con efecto de profundidad 3D */
.card-3d {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card-3d-inner {
  transform-style: preserve-3d;
  transition: transform 0.5s;
}

.card-3d:hover .card-3d-inner {
  transform: rotateY(5deg) rotateX(-5deg);
}

/* Card con efecto de levitación */
.levitating-card {
  animation: levitate 4s ease-in-out infinite;
}

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

/* Card con efecto de energía fluyendo */
.energy-flow-card {
  position: relative;
}

.energy-flow-card::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    #f0b90b,
    transparent,
    #f0b90b,
    transparent
  );
  background-size: 400% 400%;
  border-radius: inherit;
  z-index: -1;
  animation: energyFlow 3s linear infinite;
  opacity: 0;
  transition: opacity 0.3s;
}

.energy-flow-card:hover::before {
  opacity: 1;
}

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

/* ============================================
   EFECTOS DE ICONOS Y BADGES
   ============================================ */

/* Icono rotando con glow */
.icon-spin-glow {
  display: inline-block;
  transition: all 0.5s ease;
  filter: drop-shadow(0 0 10px rgba(240, 185, 11, 0.5));
}

.icon-spin-glow:hover {
  transform: rotate(360deg) scale(1.2);
  filter: drop-shadow(0 0 20px rgba(240, 185, 11, 0.8));
}

/* Badge con efecto de partículas */
.badge-particles {
  position: relative;
  overflow: visible;
}

.badge-particles::before,
.badge-particles::after {
  content: '⚡';
  position: absolute;
  font-size: 0.6em;
  opacity: 0;
  animation: badgeSparkle 2s ease-in-out infinite;
}

.badge-particles::before {
  top: -5px;
  left: 10px;
}

.badge-particles::after {
  bottom: -5px;
  right: 10px;
  animation-delay: 1s;
}

@keyframes badgeSparkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0) translateY(0);
  }
  50% {
    opacity: 1;
    transform: scale(1.5) translateY(-10px);
  }
}

/* ============================================
   EFECTOS DE BOTONES AVANZADOS
   ============================================ */

/* Botón con efecto de expansión de ondas */
.btn-wave-effect {
  position: relative;
  overflow: hidden;
}

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

.btn-wave-effect:active::before {
  width: 300px;
  height: 300px;
}

/* Botón con efecto de resplandor que se mueve */
.btn-moving-glow {
  position: relative;
  background: linear-gradient(
    135deg,
    #f0b90b 0%,
    #ffd700 50%,
    #f0b90b 100%
  );
  background-size: 200% 200%;
  animation: gradientMove 3s ease infinite;
}

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

/* ============================================
   EFECTOS DE FONDO DINÁMICOS
   ============================================ */

/* Olas de luz moviéndose */
.light-waves {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(240, 185, 11, 0.03) 2px,
    rgba(240, 185, 11, 0.03) 4px
  );
  animation: waveMove 20s linear infinite;
  pointer-events: none;
}

@keyframes waveMove {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(100px);
  }
}

/* Estrellas parpadeantes */
.twinkling-stars {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
}

.twinkling-stars::before,
.twinkling-stars::after {
  content: '✦';
  position: absolute;
  color: rgba(240, 185, 11, 0.5);
  font-size: 1rem;
  animation: twinkle 3s ease-in-out infinite;
}

.twinkling-stars::before {
  top: 20%;
  left: 15%;
}

.twinkling-stars::after {
  top: 70%;
  right: 20%;
  animation-delay: 1.5s;
}

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

/* ============================================
   EFECTOS DE LOADING AVANZADOS
   ============================================ */

/* Spinner dorado con resplandor */
.spinner-golden {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(240, 185, 11, 0.2);
  border-top-color: #f0b90b;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 20px rgba(240, 185, 11, 0.5);
}

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

/* ============================================
   EFECTOS DE CURSOR PERSONALIZADO
   ============================================ */

/* Cursor dorado personalizado */
.cursor-gold {
  cursor: none;
}

.cursor-gold::after {
  content: '◉';
  position: fixed;
  color: #f0b90b;
  font-size: 20px;
  pointer-events: none;
  z-index: 9999;
  animation: cursorPulse 1s ease-in-out infinite;
}

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

/* ============================================
   UTILIDADES RÁPIDAS
   ============================================ */

/* Aplicar a cualquier elemento para efecto premium */
.make-premium {
  position: relative;
  transition: all 0.3s ease;
}

.make-premium::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(
    135deg,
    transparent,
    rgba(240, 185, 11, 0.3),
    transparent
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box,
                linear-gradient(#fff 0 0);
  -webkit-mask-composite: exclude;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
}

.make-premium:hover::before {
  opacity: 1;
}

.make-premium:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(240, 185, 11, 0.3);
}

/* Efecto de vidrio esmerilado ultra premium */
.glass-ultra {
  background: #0a0a0a;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(240, 185, 11, 0.3);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.8),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

