:root {
  --bg: #05000a;
  --purple: #a855f7;
  --cyan: #00f0ff;
  --pink: #ff2aff;
  --text: #f1eaff;
  --text-light: #c4a8ff;
  --card: rgba(18, 10, 40, 0.6);
  --border: rgba(168, 85, 247, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Exo 2', sans-serif;
  color: var(--text);
  min-height: 100vh;
  
  /* FONDO ABYSSAL (Profundidad Gaming Elegante) */
  background: radial-gradient(circle at center, #1a0b2e 0%, #05000a 60%, #000000 100%);
  background-attachment: fixed; /* Mantiene el fondo estático mientras bajas */
  
  transition: opacity 0.2s ease-in-out;
  overflow-x: hidden;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2.5rem;
  position: relative;
  z-index: 2;
}

/* =========================================
   HEADER & LOGO (ILUMINACIÓN RESTAURADA)
   ========================================= */
header {
  padding: 8rem 0 6rem;
  text-align: center;
}

.logo-container {
  position: relative;
  display: inline-block;
  margin-bottom: 1.8rem;
  /* Movimiento amplio restaurado */
  animation: floatGlow 10s ease-in-out infinite; 
  filter: drop-shadow(0 0 35px rgba(168, 85, 247, 0.5));
  z-index: 1;
}

.custom-logo {
  max-width: 250px;
  height: auto;
  transition: all 0.8s ease;
  /* Animación de pulso intenso + escáner */
  animation: 
    pearPulse 4.2s ease-in-out infinite alternate,
    scanLine 9s linear infinite;
  position: relative;
  will-change: filter, transform;
}

/* Efecto de escáner láser sobre el logo */
.custom-logo::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -60px; width: 40px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.7), transparent);
  animation: scanMove 9s linear infinite;
  pointer-events: none;
  z-index: 2;
  opacity: 0.6;
  filter: blur(8px);
}

/* Destello puntual */
.custom-logo::after {
  content: "";
  position: absolute;
  top: 30%; left: 60%; width: 12px; height: 12px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 15px white;
  animation: sparkle 5s infinite;
  opacity: 0;
  pointer-events: none;
}

.logo-main {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(5.5rem, 11vw, 9rem);
  font-weight: 800;
  letter-spacing: 0.25em;
  background: linear-gradient(90deg, var(--purple), var(--cyan), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 25px rgba(168,85,247,0.45);
  animation: pulse 10s ease-in-out infinite alternate;
  line-height: 1.1;
}

.logo-sub {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: 0.9em;
  color: var(--text-light);
  margin-top: 0.9rem;
  opacity: 0.9;
}

/* =========================================
   BARRA SOCIAL
   ========================================= */
.social-bar {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: rgba(18, 10, 40, 0.4);
  backdrop-filter: blur(10px);
  padding: 15px 10px;
  border-radius: 12px;
  border: 1px solid rgba(168, 85, 247, 0.25);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #c4a8ff;
  font-size: 1.6rem;
  text-decoration: none;
  border-radius: 50%;
  background: rgba(168, 85, 247, 0.15);
  transition: all 0.3s ease;
  cursor: pointer;
}

.social-icon:hover {
  transform: translateX(8px) scale(1.15);
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: white;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.6);
}

/* =========================================
   SECCIONES & CARDS
   ========================================= */
.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.8rem;
  font-weight: 800;
  text-align: center;
  margin: 6rem 0 4rem;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 20px rgba(168,85,247,0.4);
}

.servers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.8rem;
  margin-bottom: 8rem;
}

.game-card {
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
  display: block;
  text-decoration: none;
  color: inherit;
  will-change: transform;
}

.game-card:hover {
  transform: translateY(-10px);
  border-color: var(--cyan);
  box-shadow: 0 20px 60px rgba(0,240,255,0.15);
  background: rgba(25, 15, 50, 0.8);
}

.card-media {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
  filter: brightness(0.8) contrast(1.1);
}

.game-card:hover .card-media img {
  transform: scale(1.06);
  filter: brightness(1) contrast(1.1);
}

.card-info {
  padding: 2rem;
}

.card-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: #e0d0ff;
}

.card-desc {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #d0c8ff;
  opacity: 0.9;
}

.status {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: #7affe0;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* =========================================
   TRAILERS
   ========================================= */
.trailers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin: 4rem 0 8rem;
}

.trailer-card {
  background: rgba(0, 0, 0, 0.6);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
  transition: all 0.4s ease;
}

.trailer-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: #00f0ff;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.3), 0 0 60px rgba(168, 85, 247, 0.1);
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  cursor: pointer;
  background: black;
}

.teaser-video {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(1.05) contrast(1.1) saturate(1.2);
  transition: filter 0.5s ease;
}

.play-overlay {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 5rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 20px #00f0ff;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 2;
  animation: playPulse 2s infinite;
}

.video-container:hover .play-overlay {
  color: #fff;
  transform: translate(-50%, -50%) scale(1.1);
  text-shadow: 0 0 30px #00f0ff, 0 0 60px #ff2aff;
}

.video-container.playing .play-overlay {
  opacity: 0;
  animation: none;
}

/* =========================================
   NOTICIAS
   ========================================= */
.news-section {
  max-width: 900px;
  margin: 5rem auto 10rem;
}

.news-item {
  padding: 2rem 0;
  border-bottom: 1px solid rgba(168,85,247,0.15);
  transition: padding-left 0.3s ease;
}

.news-item:hover {
  padding-left: 1.5rem;
  background: linear-gradient(90deg, rgba(168,85,247,0.05), transparent);
}

.news-date {
  font-size: 0.9rem;
  color: #00f0ff;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.news-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e0d0ff;
  margin-bottom: 0.8rem;
}

.news-excerpt {
  font-size: 1.05rem;
  color: #c8bfff;
  line-height: 1.6;
  opacity: 0.85;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
  text-align: center;
  padding: 5rem 0 4rem;
  color: #d0c8ff;
  font-size: 1.1rem;
  border-top: 1px solid rgba(168,85,247, 0.2);
  background: linear-gradient(to top, rgba(168, 85, 247, 0.05), transparent);
  position: relative;
  z-index: 10;
}

footer:hover {
  color: #f1eaff;
  text-shadow: 0 0 15px rgba(168, 85, 247, 0.3);
  transition: all 0.4s ease;
}

/* =========================================
   ANIMACIONES (KEYFRAMES)
   ========================================= */
@keyframes pulse {
  from { text-shadow: 0 0 35px rgba(168,85,247,0.5); }
  to   { text-shadow: 0 0 55px rgba(0,240,255,0.45); }
}

/* FLOTACIÓN AMPLIA (Restaurado el rango de -22px) */
@keyframes floatGlow {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  50% { transform: translateY(-22px) rotate(1.5deg) scale(1.02); }
}

/* PULSO INTENSO (Restaurado brillo y sombras dobles) */
@keyframes pearPulse {
  0% {
    filter: 
      brightness(1) 
      drop-shadow(0 0 15px #a855f7) 
      drop-shadow(0 0 30px #00f0ff);
  }
  50% {
    filter: 
      brightness(1.35) 
      drop-shadow(0 0 45px #ff2aff) 
      drop-shadow(0 0 80px #00f0ff);
  }
  100% {
    filter: 
      brightness(1.1) 
      drop-shadow(0 0 25px #a855f7) 
      drop-shadow(0 0 50px #00f0ff);
  }
}

@keyframes scanMove {
  0%   { transform: translateX(0); opacity: 0; }
  10%  { opacity: 0.5; }
  50%  { opacity: 0.2; }
  100% { transform: translateX(400px); opacity: 0; }
}

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 1; transform: scale(1.5); }
}

@keyframes playPulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
}

/* =========================================
   SCROLLBAR CYBERPUNK
   ========================================= */
::-webkit-scrollbar {
  width: 8px;
  background: #05000a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #a855f7, #00f0ff);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff2aff, #00f0ff);
  box-shadow: 0 0 10px #00f0ff;
}