@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800;900&display=swap');

:root {
  /* Brand Colors from User */
  --color-primary: #a307fd; /* Purple */
  --color-primary-light: #c368fd;
  --color-secondary: #1438ef; /* Deep Blue */
  --color-secondary-light: #73cef6;
  --color-accent: #ff0000; /* Red */
  
  /* Additional UI Colors for Dark Mode */
  --bg-dark: #070913;
  --bg-card: rgba(15, 18, 35, 0.7);
  --bg-card-hover: rgba(25, 30, 55, 0.9);
  --text-main: #f8f9fa;
  --text-muted: #8b92b0;
  --border-color: rgba(163, 7, 253, 0.3);

  /* Typography: Changed to Outfit for a more futuristic/tech vibe */
  --font-family: 'Outfit', sans-serif;
  
  /* Spacing */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
}

/* Base Reset & Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  /* subtle grid pattern for background */
  background-image: linear-gradient(rgba(20, 56, 239, 0.03) 1px, transparent 1px),
  linear-gradient(90deg, rgba(20, 56, 239, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
}

/* Ambient Lighting Effects */
.ambient-light {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -1 !important;
  opacity: 0.3;
  pointer-events: none;
}
.ambient-light-purple { background: rgba(163, 7, 253, 0.4); }
.ambient-light-blue { background: rgba(20, 56, 239, 0.4); }
.ambient-light-cyan { background: rgba(115, 206, 246, 0.3); }

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-normal);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.5px;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); text-transform: uppercase;}
h2 { font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase;}
.subtitle { color: var(--text-muted); font-size: 1.2rem; margin-bottom: var(--spacing-lg); }

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary-light), var(--color-accent));
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shine 5s linear infinite;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

/* Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}
.section { padding: var(--spacing-xl) 0; position: relative; z-index: 2; }
.text-center { text-align: center; }

/* Buttons with VR identity (Cyber/Neon style) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: all var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}

.btn-primary {
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  color: #fff;
}
.btn-primary::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: all 0.5s;
}
.btn-primary:hover::before {
  left: 100%;
}
.btn-primary:hover {
  box-shadow: 0 0 20px var(--color-primary);
  transform: translateY(-2px);
}

.btn-outline {
  border: none;
  background: 
    linear-gradient(to bottom right, transparent 7px, var(--color-secondary-light) 7px, var(--color-secondary-light) 8.5px, transparent 8.5px) top left / 12px 12px no-repeat,
    linear-gradient(to top left, transparent 7px, var(--color-secondary-light) 7px, var(--color-secondary-light) 8.5px, transparent 8.5px) bottom right / 12px 12px no-repeat,
    linear-gradient(180deg, var(--color-secondary-light) 1px, transparent 1px),
    linear-gradient(0deg, var(--color-secondary-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-secondary-light) 1px, transparent 1px),
    linear-gradient(-90deg, var(--color-secondary-light) 1px, transparent 1px),
    rgba(20, 56, 239, 0.1);
  color: var(--text-main);
  position: relative;
}
.btn-outline:hover {
  background: var(--color-secondary-light);
  color: #000;
  box-shadow: 0 0 20px var(--color-secondary-light);
}

/* Glassmorphism & Unique Card Identity */
.glass-card {
  border: none;
  background: 
    linear-gradient(to bottom right, transparent 14.1px, var(--border-color) 14.1px, var(--border-color) 15.6px, transparent 15.6px) top left / 24px 24px no-repeat,
    linear-gradient(to top left, transparent 14.1px, var(--border-color) 14.1px, var(--border-color) 15.6px, transparent 15.6px) bottom right / 24px 24px no-repeat,
    linear-gradient(180deg, var(--border-color) 1px, transparent 1px),
    linear-gradient(0deg, var(--border-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-color) 1px, transparent 1px),
    linear-gradient(-90deg, var(--border-color) 1px, transparent 1px),
    var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-normal);
  position: relative;
  clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
}
.glass-card:hover {
  background: 
    linear-gradient(to bottom right, transparent 14.1px, var(--color-secondary-light) 14.1px, var(--color-secondary-light) 15.6px, transparent 15.6px) top left / 24px 24px no-repeat,
    linear-gradient(to top left, transparent 14.1px, var(--color-secondary-light) 14.1px, var(--color-secondary-light) 15.6px, transparent 15.6px) bottom right / 24px 24px no-repeat,
    linear-gradient(180deg, var(--color-secondary-light) 1px, transparent 1px),
    linear-gradient(0deg, var(--color-secondary-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-secondary-light) 1px, transparent 1px),
    linear-gradient(-90deg, var(--color-secondary-light) 1px, transparent 1px),
    var(--bg-card-hover);
  box-shadow: 0 10px 30px rgba(115, 206, 246, 0.15);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1rem 0;
  border-radius: 0;
  clip-path: none; /* Override clip-path for navbar */
  border-bottom: 1px solid var(--border-color);
  background: rgba(7, 9, 19, 0.8);
}
.navbar::before, .navbar::after {
  display: none !important; /* Quitar las esquinas diagonales de glass-card */
}
.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-menu {
  display: flex;
  gap: 2rem;
}
.nav-menu a {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  position: relative;
  letter-spacing: 1px;
  text-decoration: none !important;
}
.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 0%; height: 2px;
  background: var(--color-secondary-light);
  transition: width var(--transition-fast);
}
.nav-menu a:hover::after, .nav-menu a.active::after {
  width: 100%;
}
.nav-menu a:hover, .nav-menu a:focus, .nav-menu a.active {
  color: var(--color-secondary-light);
  text-decoration: none !important;
}
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding-top: 120px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  /* overflow: hidden removed to allow glow to bleed down */
}
/* Glowing Orbs */
.hero-section::before, .hero-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: 0;
  opacity: 0.5;
  animation: floatOrb 10s ease-in-out infinite alternate;
}
.hero-section::before {
  top: -10%; left: -10%;
  width: 500px; height: 500px;
  background: var(--color-primary);
}
.hero-section::after {
  bottom: -10%; right: -10%;
  width: 400px; height: 400px;
  background: var(--color-secondary);
  animation-delay: -5s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(50px, 50px) scale(1.2); }
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: var(--spacing-lg);
  font-weight: 300;
  border-left: 3px solid var(--color-accent);
  padding-left: 1rem;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-image img {
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(163, 7, 253, 0.4));
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-20px); }
  100% { transform: translateY(0px); }
}

/* Tabs */
.tabs-container {
  padding: 2rem;
  margin-top: 2rem;
}
.tabs-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}
.tab-link {
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
}
.tab-link.active, .tab-link:hover {
  color: var(--color-secondary-light);
  border: 1px solid var(--color-secondary-light);
  background: rgba(115, 206, 246, 0.1);
  box-shadow: 0 0 10px rgba(115, 206, 246, 0.2);
}
.tab-pane {
  display: none;
  animation: fadeInUp 0.4s ease;
}
.tab-pane.active {
  display: block;
}
.tab-image {
  max-width: 300px;
  margin: 0 auto 2rem;
  /* Para PNGs transparentes, drop-shadow respeta la forma de la imagen, box-shadow crea un cuadro */
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.6));
}
.tab-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Aliados (Diseño Holográfico Sci-Fi) */
.aliados-section {
  padding-bottom: 2rem;
}
.aliados-swiper {
  padding: 2rem 0;
}
.aliados-swiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.aliados-swiper .swiper-slide a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(15,18,35,0.8) 70%);
  border-radius: 12px;
  border: 1px solid rgba(115,206,246,0.3);
  box-shadow: 0 0 15px rgba(115,206,246,0.1), inset 0 0 20px rgba(0,0,0,0.8);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  z-index: 1;
  padding: 10px; /* Reducido para dar más espacio al logo */
}
.aliados-swiper .swiper-slide a:hover {
  transform: scale(1.1) translateY(-10px);
  border-color: var(--color-secondary-light);
  box-shadow: 0 15px 30px rgba(115,206,246,0.4), inset 0 0 10px rgba(115,206,246,0.2);
  z-index: 10;
}
.aliados-swiper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Fotos Comunidad Swiper */
.fotos-swiper {
  padding-bottom: 3.5rem;
}
.fotos-swiper .swiper-slide {
  cursor: pointer;
}
.fotos-swiper .swiper-slide img,
.fotos-swiper .swiper-slide video {
  border-radius: 12px;
  width: 100%;
  height: 300px;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.1);
  transition: transform 0.3s ease, border-color 0.3s ease;
  pointer-events: none; /* El clic lo atrapa el .swiper-slide */
}
.fotos-swiper .swiper-slide:hover img,
.fotos-swiper .swiper-slide:hover video {
  transform: scale(1.02);
  border-color: var(--color-primary-light);
}
.swiper-pagination-bullet {
  background: var(--color-primary-light) !important;
}
.fotos-swiper-wrapper .swiper-button-next,
.fotos-swiper-wrapper .swiper-button-prev {
  color: var(--color-primary-light);
  top: 40%;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.fotos-swiper-wrapper .swiper-button-next::after {
  content: '\276F';
  font-family: "Outfit", sans-serif;
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
  text-shadow: 0 0 10px rgba(0,0,0,0.8);
  margin-left: 2px; /* Corrección óptica por el pico de la flecha */
}
.fotos-swiper-wrapper .swiper-button-prev::after {
  content: '\276E';
  font-family: "Outfit", sans-serif;
  font-weight: 900;
  font-size: 2rem;
  line-height: 1;
  text-shadow: 0 0 10px rgba(0,0,0,0.8);
  margin-right: 2px; /* Corrección óptica por el pico de la flecha */
}

/* Custom Lightbox Styles */
#custom-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
#custom-lightbox.active {
  opacity: 1;
  pointer-events: all;
  backdrop-filter: blur(5px);
}
#custom-lightbox img,
#custom-lightbox video {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0,0,0,0.8);
  transform: scale(0.9);
  transition: transform 0.3s ease;
  display: none; /* Hide by default, show based on content type */
}
#custom-lightbox img.active,
#custom-lightbox video.active {
  display: block;
}
#custom-lightbox.active img,
#custom-lightbox.active video {
  transform: scale(1);
}
#custom-lightbox .close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 100000;
  transition: color 0.3s ease;
}
#custom-lightbox .close-btn:hover {
  color: var(--color-primary-light);
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}
.stat-card {
  padding: 3rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.stat-card::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(163,7,253,0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
}
.stat-card:hover::before {
  opacity: 1;
}
.stat-number {
  font-size: 3.5rem;
  background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 10px rgba(115,206,246,0.5));
}
.stat-label {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Advanced Tilt & Hover Tech Effects */
.tilt-effect {
  transform-style: preserve-3d;
  transform: perspective(1000px);
}

/* Streamers (Extreme Tech Vibe) */
.streamer-card {
  padding: 2.5rem 1rem;
  text-align: center;
  margin: 15px 10px 40px; /* Extra bottom margin for hover jump */
  position: relative;
  background: linear-gradient(180deg, rgba(15,18,35,0.9) 0%, rgba(7,9,19,0.95) 100%);
  border: 1px solid rgba(163, 7, 253, 0.2);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.8);
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1;
}
.streamer-card:hover {
  transform: translateY(-15px) scale(1.05);
  border-color: var(--color-primary-light);
  box-shadow: 0 20px 40px rgba(163, 7, 253, 0.3), 0 0 20px rgba(115,206,246,0.2) inset;
  z-index: 10;
}
/* Rotating Neon Border for Avatar */
.streamer-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  padding: 5px;
  background: var(--bg-dark);
  position: relative;
  z-index: 2;
}
.streamer-img-wrapper {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 1.5rem;
}
.streamer-img-wrapper::before {
  content: '';
  position: absolute;
  top: -4px; left: -4px; right: -4px; bottom: -4px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--color-primary), var(--color-secondary-light), var(--color-accent), var(--color-primary));
  background-size: 300% 300%;
  z-index: 1;
  animation: spinGradient 4s linear infinite;
}
@keyframes spinGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}
.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  color: var(--text-main);
  border: 1px solid rgba(255,255,255,0.1);
}
.social-icons a:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(20, 56, 239, 0.4);
}

/* Footer */
.footer {
  padding-bottom: 0;
}
.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 3rem;
  margin-bottom: 0;
  clip-path: polygon(0 20px, 100% 0, 100% 100%, 0 100%);
  border-bottom: none;
  border-left: none;
  border-right: none;
}
.footer-col h4 {
  color: var(--color-secondary-light);
  margin-bottom: 1.5rem;
}
.footer-col ul li {
  margin-bottom: 0.5rem;
}
.footer-col ul li a:hover {
  color: var(--color-primary-light);
}
.social-icons-footer {
  display: flex;
  gap: 1rem;
}
.social-icons-footer a {
  font-size: 1.5rem;
  color: var(--text-muted);
}
.social-icons-footer a:hover {
  color: var(--text-main);
}
.copyright {
  color: var(--text-muted);
  font-size: 0.875rem;
  padding: 1.5rem;
  background: rgba(0,0,0,0.5);
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Swiper custom */
.swiper-container {
  padding-top: 25px; /* Evita que overflow:hidden recorte los saltos de hover */
  padding-bottom: 25px;
}
.swiper-pagination-bullet {
  background: var(--color-primary-light) !important;
}

/* Responsive Navbar & General */
@media (max-width: 768px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-buttons { justify-content: center; }
  .hero-subtitle { border-left: none; border-bottom: 3px solid var(--color-accent); padding-left: 0; padding-bottom: 1rem;}
  
  /* Navbar Mobile */
  .navbar-container {
    width: 100%;
    padding: 0 1.5rem;
  }
  .navbar img {
    width: 130px; /* Un poco más grande pero contenido */
  }
  .mobile-menu-toggle {
    display: block;
    padding: 0.5rem;
    font-size: 1.8rem;
  }
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(7, 9, 19, 0.95);
    backdrop-filter: blur(15px);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-menu a {
    display: block;
    padding: 0.5rem 0;
    font-size: 1.1rem;
  }
}

/* =========================================
   ASYMMETRIC & CYBERPUNK REDESIGN UTILITIES
   ========================================= */

/* 1. Neon Glowing Orbs Backgrounds */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  opacity: 0.15;
  z-index: -1 !important;
  pointer-events: none;
}
.orb-magenta {
  background: var(--color-primary);
  width: 50vw; height: 50vw;
  max-width: 600px; max-height: 600px;
}
.orb-blue {
  background: var(--color-secondary);
  width: 60vw; height: 60vw;
  max-width: 700px; max-height: 700px;
}
.orb-red {
  background: var(--color-accent);
  width: 40vw; height: 40vw;
  max-width: 500px; max-height: 500px;
}

/* 2. Asymmetric Shape Dividers (Perfect Sync) */
.diagonal-section {
  position: relative;
  z-index: 1;
  padding: 8rem 0; 
  margin-top: -4rem; /* Overlaps previous section for seamless cut */
}
.diagonal-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  clip-path: polygon(0 4rem, 100% 0, 100% calc(100% - 4rem), 0 100%);
  background: var(--bg-card);
  z-index: -1;
}
.diagonal-section.reverse::before {
  clip-path: polygon(0 0, 100% 4rem, 100% 100%, 0 calc(100% - 4rem));
  background: transparent;
}

/* 3. Glitch Text Reveal */
.glitch-title {
  position: relative;
  display: inline-block;
  opacity: 0; /* Hidden initially */
}
.is-visible .glitch-title {
  opacity: 1;
  animation: glitch-anim 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
@keyframes glitch-anim {
  0% { transform: translate(0); text-shadow: 0 0 0 transparent; opacity: 0; }
  20% { transform: translate(-4px, 4px); text-shadow: -3px 0 var(--color-accent), 3px 3px var(--color-secondary-light); opacity: 1; }
  40% { transform: translate(-4px, -4px); text-shadow: 3px 0 var(--color-primary), -3px -3px var(--color-secondary-light); }
  60% { transform: translate(4px, 4px); text-shadow: -3px 0 var(--color-accent), 3px 3px var(--color-secondary-light); }
  80% { transform: translate(4px, -4px); text-shadow: 3px 0 var(--color-primary), -3px -3px var(--color-secondary-light); }
  100% { transform: translate(0); text-shadow: 0 0 0 transparent; opacity: 1; }
}

/* 4. HUD / Cyberpunk specific layouts */
.hud-panel {
  background: rgba(7, 9, 19, 0.6);
  border: 1px solid rgba(115,206,246,0.3);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  position: relative;
  box-shadow: 0 0 15px rgba(115,206,246,0.1), inset 0 0 20px rgba(0,0,0,0.8);
}

/* --- GROUP CARDS --- */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}
.group-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.category-section {
  margin-bottom: 4rem;
  position: relative;
}
.category-section .section-title {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  text-transform: uppercase;
  color: var(--color-primary-light);
  text-shadow: 0 0 10px rgba(195, 104, 253, 0.3);
}

@media (max-width: 991px) {
  .groups-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}
@media (max-width: 768px) {
  .groups-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

/* =========================================
   FOOTER
========================================= */
/* =========================================
   MOBILE RESPONSIVENESS FIXES
   ========================================= */
@media (max-width: 768px) {
  /* Tipografía */
  h1 { font-size: 2.2rem; }
  h2 { font-size: 1.8rem; }
  
  /* Hero Section */
  .hero-buttons { 
    flex-direction: column; 
    gap: 1rem;
    padding: 0 1rem;
  }
  .hero-buttons .btn { width: 100%; text-align: center; }

  /* HUD Panel & Tabs */
  .hud-panel { padding: 1rem; }
  .tabs-nav { gap: 0.5rem; }
  .tab-link { padding: 0.5rem 1rem; font-size: 0.9rem; }
  .tab-image { max-width: 100%; }

  /* Asymmetric Sections (Reducir el corte para que no coma tanto espacio) */
  .diagonal-section {
    padding: 4rem 0;
    margin-top: -2rem;
  }
  .diagonal-section::before {
    clip-path: polygon(0 2rem, 100% 0, 100% calc(100% - 2rem), 0 100%);
  }
  .diagonal-section.reverse::before {
    clip-path: polygon(0 0, 100% 2rem, 100% 100%, 0 calc(100% - 2rem));
  }

  /* Stats Grid */
  .stats-grid {
    grid-template-columns: 1fr; /* Apilar en móviles */
    gap: 1.5rem;
  }
  
  /* Orbs */
  .orb {
    filter: blur(80px); /* Reducir el blur en móviles para mejor rendimiento y no manchar toda la pantalla */
    opacity: 0.3;
  }
  }
}

/* ==========================================================================
   Cyberpunk FAQ Styles (details / summary)
   ========================================================================== */
.faq-container {
  position: relative;
  z-index: 5;
}

details {
  background: rgba(12, 16, 36, 0.94);
  border: 1px solid rgba(163, 7, 253, 0.35);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  transition: all var(--transition-normal);
  position: relative;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

details[open] {
  border-color: var(--color-secondary-light);
  box-shadow: 0 0 20px rgba(115, 206, 246, 0.2), 0 8px 30px rgba(0, 0, 0, 0.8);
  background: rgba(16, 22, 48, 0.98);
}

summary {
  padding: 1.5rem 2rem;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  color: #ffffff !important;
  background: rgba(20, 27, 60, 0.75);
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Remove default arrow */
summary::-webkit-details-marker {
  display: none;
}
summary {
  list-style: none;
}

/* Custom animated arrow */
summary::after {
  content: '\f107'; /* FontAwesome angle-down */
  font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'FontAwesome';
  font-weight: 900;
  color: var(--color-secondary-light);
  transition: transform var(--transition-normal);
  font-size: 1.5rem;
}

details[open] summary::after {
  transform: rotate(180deg);
  color: var(--color-primary-light);
}

summary:hover {
  background: rgba(30, 40, 85, 0.95);
  color: var(--color-secondary-light) !important;
}

.faq__content {
  padding: 0 2rem 1.8rem 2rem;
  color: #f1f5f9;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  animation: fadeIn 0.4s ease;
}

.faq__content p {
  margin-top: 1.5rem;
  font-size: 1.05rem;
  color: #e2e8f0;
  line-height: 1.7;
}

.faq__content a {
  color: var(--color-secondary-light);
  text-decoration: underline;
  word-break: break-all;
}

.faq__content a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px var(--color-secondary-light);
}

.faq__content li {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
  color: #e2e8f0;
  position: relative;
  padding-left: 1.5rem;
  list-style: none;
}

.faq__content li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--color-primary-light);
  font-weight: 800;
}

/* ==========================================================================
   Netflix-Style App Sliders (appsgratis.html)
   ========================================================================== */
.rail-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 4px solid var(--color-primary-light);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.netflix-slider {
  padding: 1rem 0 3rem 0;
  overflow: visible !important;
}

.netflix-slider .swiper-slide {
  width: 250px; /* Fixed width for standard cards */
  height: 350px;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.netflix-slider .swiper-slide:hover {
  transform: scale(1.05) translateY(-10px);
  z-index: 10;
}

.app-card {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-decoration: none;
  position: relative;
}

.app-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  box-shadow: inset 0 0 20px rgba(163,7,253,0);
  border-radius: inherit;
  transition: all 0.3s ease;
  pointer-events: none;
}

.app-card:hover::after {
  box-shadow: inset 0 0 20px rgba(115,206,246,0.3);
  border: 1px solid var(--color-secondary-light);
}

.app-image-container {
  width: 100%;
  height: 200px; /* Adjust as needed */
  background: #0d1126;
  overflow: hidden;
  position: relative;
}

.app-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.app-card:hover .app-image {
  transform: scale(1.1);
}

.app-info {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.app-title {
  color: var(--text-main);
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.app-downloads {
  color: var(--color-secondary-light);
  font-size: 0.9rem;
  font-weight: 600;
}

.app-rating {
  color: #ffc107; /* Star color */
  font-size: 0.9rem;
  font-weight: 600;
}

/* Skeleton Loader */
.skeleton {
  background: linear-gradient(90deg, #1e2341 25%, #2a3055 50%, #1e2341 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

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

/* Swiper navigation arrows */
.swiper-button-next, .swiper-button-prev {
  color: var(--color-secondary-light) !important;
  background: rgba(13, 17, 38, 0.8);
  border-radius: 50%;
  width: 50px !important;
  height: 50px !important;
  border: 1px solid var(--color-secondary-light);
  backdrop-filter: blur(5px);
}
.swiper-button-next::after, .swiper-button-prev::after {
  font-size: 1.5rem !important;
}
.swiper-button-next.swiper-button-disabled, .swiper-button-prev.swiper-button-disabled {
  opacity: 0 !important;
}

/* Fotos Comunidad Swiper */
.fotos-swiper .swiper-slide {
  height: 300px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(12, 16, 38, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fotos-swiper .swiper-slide:hover {
  transform: translateY(-5px);
  border-color: var(--color-secondary-light);
  box-shadow: 0 12px 30px rgba(115, 206, 246, 0.25);
}
.fotos-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.fotos-swiper .swiper-slide:hover img {
  transform: scale(1.05);
}
