/**
 * Metro Life RP - Estilos de Eventos
 * Copyright (c) 2025 Metro Life Studios. Desarrollado por Mercurio & Melman.
 * Todos los derechos reservados.
 * 
 * Este código fuente es propiedad exclusiva de Metro Life Studios.
 * Queda estrictamente prohibida su reproducción, distribución, modificación
 * o uso no autorizado, total o parcial, sin consentimiento expreso por escrito.
 * 
 * El uso indebido de este material está sujeto a acciones legales conforme
 * a la legislación vigente sobre propiedad intelectual y derechos de autor.
 */

:root {
  --bg: #0e151f;
  --bg-secondary: #1a1f2e;
  --white: #ffffff;
  --muted: rgba(255, 255, 255, 0.75);
  --purple-primary: #8b5cf6;
  --purple-dark: #6d28d9;
  --purple-light: #a78bfa;
  --cyan-accent: #06b6d4;
  --glass: rgba(255, 255, 255, 0.04);
  --radius: 12px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

body {
  font-family: 'Montserrat', system-ui, Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.no-scroll {
  overflow: hidden;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ========== PRELOADER ========== */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s, visibility 0.6s;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
}

.preloader-logo {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--white);
  animation: pulse 1.5s ease-in-out infinite;
}

.preloader-logo .logo-accent {
  background: linear-gradient(90deg, var(--purple-primary), var(--purple-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.preloader-sub {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 2px;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

/* ========== HEADER ========== */
.site-header {
  position: fixed;
  top: 18px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 80;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 6px;
  font-size: 18px;
  transition: all 0.3s ease;
  padding: 8px 0;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-text {
  color: var(--white);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.logo:hover .logo-text {
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
}

.logo-accent {
  color: transparent;
  background: linear-gradient(90deg, var(--purple-primary), var(--cyan-accent));
  -webkit-background-clip: text;
  background-clip: text;
  position: relative;
  animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {

  0%,
  100% {
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.6));
  }

  50% {
    filter: drop-shadow(0 0 16px rgba(6, 182, 212, 0.8));
  }
}

.logo:hover .logo-accent {
  animation: none;
  filter: drop-shadow(0 0 20px rgba(139, 92, 246, 0.9));
}

/* Hamburger */
.hamburger {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ========== SIDE MENU ========== */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s;
  z-index: 70;
}

.menu-overlay.show {
  opacity: 1;
  visibility: visible;
}

.side-menu {
  position: fixed;
  top: 0;
  right: -420px;
  width: 380px;
  height: 100%;
  background: linear-gradient(135deg, rgba(14, 21, 31, 0.98), rgba(26, 31, 46, 0.98));
  backdrop-filter: blur(20px);
  box-shadow: -30px 0 80px rgba(0, 0, 0, 0.8);
  z-index: 75;
  transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  border-left: 2px solid rgba(139, 92, 246, 0.2);
}

.side-menu.open {
  right: 0;
}

.side-menu-header {
  padding: 32px 28px;
  border-bottom: 2px solid rgba(139, 92, 246, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.side-menu-logo {
  font-weight: 900;
  letter-spacing: 4px;
  font-size: 20px;
}

.menu-logo-text {
  color: var(--white);
}

.menu-logo-accent {
  color: transparent;
  background: linear-gradient(90deg, var(--purple-primary), var(--purple-dark));
  -webkit-background-clip: text;
  background-clip: text;
}

.close-menu {
  width: 40px;
  height: 40px;
  background: rgba(139, 92, 246, 0.1);
  border: 2px solid rgba(139, 92, 246, 0.3);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
}

.close-menu:hover {
  background: var(--purple-primary);
  border-color: var(--purple-primary);
  transform: rotate(90deg);
}

.close-icon {
  width: 18px;
  height: 18px;
  position: relative;
}

.close-icon::before,
.close-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
}

.close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.side-menu-content {
  flex: 1;
  padding: 32px 28px;
  overflow-y: auto;
}

.side-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple-primary);
  margin-bottom: 24px;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.side-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  color: var(--white);
  text-decoration: none;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 2px solid transparent;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.side-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 100%;
  background: var(--purple-primary);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.side-link:hover::before,
.side-link.active::before {
  transform: scaleY(1);
}

.side-link:hover {
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateX(8px);
}

.side-link.active {
  background: rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.2);
}

.link-icon {
  font-size: 22px;
  filter: drop-shadow(0 2px 8px rgba(139, 92, 246, 0.3));
}

.link-text {
  flex: 1;
  font-size: 16px;
  font-weight: 600;
}

.link-arrow {
  font-size: 18px;
  color: var(--purple-primary);
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.side-link:hover .link-arrow,
.side-link.active .link-arrow {
  opacity: 1;
  transform: translateX(0);
}

.side-menu-footer {
  padding: 24px 28px;
  border-top: 2px solid rgba(139, 92, 246, 0.1);
}

.footer-text {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

/* ========== PARTICLES ========== */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* ========== EVENTS HERO ========== */
.events-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 80px 24px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  z-index: 1;
}

/* Floating shapes */
.floating-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-primary), var(--purple-dark));
  opacity: 0.1;
  animation: float-shape 20s ease-in-out infinite;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  left: -100px;
  animation-delay: 0s;
}

.shape-2 {
  width: 200px;
  height: 200px;
  top: 50%;
  right: -50px;
  animation-delay: -5s;
}

.shape-3 {
  width: 150px;
  height: 150px;
  bottom: -50px;
  left: 20%;
  animation-delay: -10s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  top: 30%;
  left: 10%;
  animation-delay: -15s;
}

.shape-5 {
  width: 250px;
  height: 250px;
  bottom: 10%;
  right: 20%;
  animation-delay: -8s;
}

@keyframes float-shape {

  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  25% {
    transform: translate(30px, -30px) rotate(90deg);
  }

  50% {
    transform: translate(-20px, 20px) rotate(180deg);
  }

  75% {
    transform: translate(10px, -10px) rotate(270deg);
  }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

/* Event Icon */
.event-icon {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-icon svg {
  width: 80px;
  height: 80px;
  color: var(--purple-primary);
  filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.5));
  animation: icon-float 3s ease-in-out infinite;
}

@keyframes icon-float {

  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-10px) rotate(5deg);
  }
}

.icon-pulse {
  position: absolute;
  inset: 0;
  border: 2px solid var(--purple-primary);
  border-radius: 50%;
  animation: pulse-out 2s ease-out infinite;
}

.icon-pulse.delay-1 {
  animation-delay: 0.6s;
}

.icon-pulse.delay-2 {
  animation-delay: 1.2s;
}

@keyframes pulse-out {
  0% {
    transform: scale(0.8);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* Main Title */
.main-title {
  font-size: clamp(32px, 7vw, 64px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
}

.title-word {
  opacity: 0;
  transform: translateY(40px);
  animation: word-appear 0.8s ease forwards;
  color: var(--white);
  text-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
}

.title-word:nth-child(1) {
  animation-delay: 0.5s;
}

.title-word:nth-child(2) {
  animation-delay: 0.7s;
}

.title-word:nth-child(3) {
  animation-delay: 0.9s;
}

.title-word:nth-child(4) {
  animation-delay: 1.1s;
}

.title-word:nth-child(5) {
  animation-delay: 1.3s;
}

.title-word.highlight {
  background: linear-gradient(90deg, var(--purple-primary), var(--cyan-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 30px rgba(139, 92, 246, 0.5));
}

@keyframes word-appear {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtitle */
.subtitle {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 48px;
  opacity: 0;
  animation: fade-in 1s ease forwards;
  animation-delay: 1.5s;
}

.sparkle {
  display: inline-block;
  animation: sparkle 1.5s ease-in-out infinite;
}

.sparkle:last-child {
  animation-delay: 0.5s;
}

@keyframes sparkle {

  0%,
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }

  50% {
    transform: scale(1.3) rotate(15deg);
    opacity: 0.7;
  }
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

/* Features Preview */
.features-preview {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  opacity: 0;
  animation: fade-in 1s ease forwards;
  animation-delay: 1.8s;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: rgba(139, 92, 246, 0.1);
  border: 2px solid rgba(139, 92, 246, 0.2);
  border-radius: 50px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  background: rgba(139, 92, 246, 0.2);
  border-color: var(--purple-primary);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.2);
}

.feature-icon {
  font-size: 24px;
  animation: bounce 2s ease-in-out infinite;
}

.feature-item:nth-child(2) .feature-icon {
  animation-delay: 0.3s;
}

.feature-item:nth-child(3) .feature-icon {
  animation-delay: 0.6s;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.feature-item span {
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
}

/* Back Button */
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: linear-gradient(90deg, var(--purple-primary), var(--purple-dark));
  color: var(--white);
  text-decoration: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1px;
  box-shadow: 0 8px 30px rgba(139, 92, 246, 0.3);
  transition: all 0.3s ease;
  opacity: 0;
  animation: fade-in 1s ease forwards;
  animation-delay: 2s;
  position: relative;
  overflow: hidden;
}

.btn-back::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 ease;
}

.btn-back:hover::before {
  left: 100%;
}

.btn-back:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 60px rgba(139, 92, 246, 0.5);
}

.btn-icon {
  font-size: 18px;
  transition: transform 0.3s ease;
}

.btn-back:hover .btn-icon {
  transform: translateX(-5px);
}

/* Decoration Bottom */
.decoration-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(to top, var(--bg), transparent);
  z-index: 1;
}

/* ========== FOOTER ========== */
.site-footer {
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(139, 92, 246, 0.1);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .side-menu {
    width: 100%;
    right: -100%;
  }

  .main-title {
    font-size: clamp(28px, 8vw, 48px);
    gap: 8px 12px;
  }

  .features-preview {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .feature-item {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .event-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 32px;
  }

  .event-icon svg {
    width: 60px;
    height: 60px;
  }
}