/* ==========================================================================
   VARIABLES & SETUP
   ========================================================================== */
:root {
  --clr-bg: #151243;
  --clr-surface: rgba(94, 23, 235, 0.15); /* #5e17eb con opacidad */
  --clr-surface-hover: rgba(94, 23, 235, 0.3);
  --clr-text: #f8f9fa;
  --clr-muted: #c2bbe0;
  
  --clr-accent: #f3d913;
  --clr-accent-dark: #d6bc0e;
  --clr-youtube: #f21049;
  
  --font-head: 'Montserrat', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --glass-blur: blur(12px);
  --glass-border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ANTI-COPY SECURITY */
html {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.2;
  margin: 0 0 1rem 0;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -1px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
}

p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

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

.text-accent {
  color: var(--clr-accent);
}

.text-youtube {
  color: var(--clr-youtube);
  text-shadow: 0 0 10px rgba(255,0,0,0.5);
}

/* ==========================================================================
   BACKGROUND (GALAXY/SPACE FEEL)
   ========================================================================== */
#galaxy-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: radial-gradient(circle at 50% 50%, #2a1f6a 0%, #151243 100%);
  z-index: -2;
}
.noise-overlay {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.05;
  z-index: -1;
  pointer-events: none;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
#site-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: var(--transition);
}

#site-header.scrolled {
  padding: 0.75rem 0;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: var(--glass-border);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-links a:hover {
  color: var(--clr-accent);
}

.nav-cta {
  background: var(--clr-youtube);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  box-shadow: 0 4px 15px rgba(255,0,0,0.3);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,0,0,0.5);
  color: #fff;
}

.nav-burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  z-index: 1001;
}

.nav-burger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--clr-text);
  transition: var(--transition);
}

/* ==========================================================================
   HERO SECTION & 3D LOGO
   ========================================================================== */
.section-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  position: relative;
}

.hero-content {
  max-width: 900px;
  padding: 0 2rem;
  z-index: 10;
  perspective: 1000px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--clr-muted);
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

/* 3D YouTube Logo Wrapper */
.yt-3d-wrapper {
  margin: 0 auto 2rem;
  width: 150px;
  height: 100px;
  position: relative;
  transform-style: preserve-3d;
  animation: float3d 6s ease-in-out infinite;
}

.yt-logo-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 20px 30px rgba(255, 0, 0, 0.4));
}

@keyframes float3d {
  0% { transform: translateY(0) rotateX(10deg) rotateY(-10deg); }
  50% { transform: translateY(-20px) rotateX(-5deg) rotateY(15deg); }
  100% { transform: translateY(0) rotateX(10deg) rotateY(-10deg); }
}

/* ==========================================================================
   SECTIONS & LAYOUT (GLASSMORPHISM)
   ========================================================================== */
section {
  padding: 6rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.glass {
  background: var(--clr-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 24px;
  padding: 3rem;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

/* ==========================================================================
   YOUTUBE PLAYLISTS
   ========================================================================== */
.playlists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.playlist-card {
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  background: rgba(94, 23, 235, 0.1);
  border: var(--glass-border);
  border-radius: 20px;
}

.playlist-card:hover {
  transform: translateY(-5px);
  border-color: var(--clr-youtube);
  background: rgba(242, 16, 73, 0.1); /* #f21049 con opacidad */
  box-shadow: 0 10px 30px rgba(242, 16, 73, 0.2);
}

.playlist-card h3 {
  margin-bottom: 0.5rem;
}

.playlist-card .text-muted {
  margin-bottom: 1rem;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ==========================================================================
   ECOSISTEMA MIND MAP
   ========================================================================== */
.ecosystem-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem 0;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .ecosystem-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ecosystem-container {
    grid-template-columns: 1fr;
  }
}

.ecosystem-node {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 2rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  transition: var(--transition);
  animation: floatCards 4s ease-in-out infinite alternate;
}

.ecosystem-node:hover {
  background: var(--clr-accent);
  color: #000;
  transform: scale(1.05);
  animation-play-state: paused;
}

.ecosystem-node svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.ecosystem-node:nth-child(even) { animation-delay: 1s; }
.ecosystem-node:nth-child(3n) { animation-delay: 2s; }

@keyframes floatCards {
  from { transform: translateY(0); }
  to { transform: translateY(-15px); }
}

/* ==========================================================================
   STATS COUNTERS
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item {
  padding: 2rem;
}

.stat-number {
  display: block;
  font-family: var(--font-head);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--clr-accent);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--clr-muted);
}

/* ==========================================================================
   CTA SUBSCRIBE
   ========================================================================== */
.cta-box {
  text-align: center;
  background: linear-gradient(135deg, rgba(255,0,0,0.2) 0%, rgba(20,20,20,0.8) 100%);
  border: 1px solid rgba(255,0,0,0.3);
}

.btn-large {
  display: inline-block;
  background: var(--clr-youtube);
  color: #fff;
  padding: 1.25rem 3rem;
  font-size: 1.25rem;
  font-weight: 800;
  border-radius: 50px;
  margin-top: 2rem;
  box-shadow: 0 10px 30px rgba(255,0,0,0.4);
}

.btn-large:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 40px rgba(255,0,0,0.6);
}

/* ==========================================================================
   FAQ SECTION (ACCORDION)
   ========================================================================== */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border: var(--glass-border);
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--clr-text);
  padding: 1.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  font-family: var(--font-head);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--clr-accent);
  transition: var(--transition);
}

.faq-question.active::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  color: var(--clr-muted);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  text-align: center;
  padding: 4rem 2rem;
  border-top: var(--glass-border);
  margin-top: 4rem;
}

.footer-social {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  transition: var(--transition);
}

.footer-social svg {
  width: 20px;
  height: 20px;
  fill: var(--clr-accent);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--clr-accent);
  transform: translateY(-3px);
}

.footer-social a:hover svg {
  fill: #111;
}

.footer-brand {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   MOBILE RESPONSIVENESS
   ========================================================================== */
@media (max-width: 768px) {
  .nav-burger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    padding: 6rem 2rem;
    transition: var(--transition);
    border-left: var(--glass-border);
    z-index: 999;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-cta {
    display: none;
  }
  
  .nav-links .nav-cta {
    display: inline-block;
    text-align: center;
    margin-top: 1rem;
  }

  .nav-burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .nav-burger.active span:nth-child(2) {
    opacity: 0;
  }
  .nav-burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Additional Custom CSS for new requests */

/* Stars Background */
#galaxy-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: radial-gradient(circle at 50% 50%, #2a1f6a 0%, #151243 100%),
              radial-gradient(1.5px 1.5px at 20px 30px, #fff, rgba(0,0,0,0)),
              radial-gradient(2.5px 2.5px at 80px 100px, #f3d913, rgba(0,0,0,0)),
              radial-gradient(1px 1px at 150px 180px, #fff, rgba(0,0,0,0)),
              radial-gradient(2px 2px at 200px 50px, #fff, rgba(0,0,0,0)),
              radial-gradient(1.5px 1.5px at 300px 120px, #fff, rgba(0,0,0,0)),
              radial-gradient(1px 1px at 500px 250px, #fff, rgba(0,0,0,0)),
              radial-gradient(2.5px 2.5px at 400px 300px, #fff, rgba(0,0,0,0)),
              radial-gradient(1.5px 1.5px at 100px 400px, #fff, rgba(0,0,0,0));
  background-repeat: repeat;
  background-size: 100% 100%, 300px 300px, 400px 400px, 200px 200px, 500px 500px, 350px 350px, 450px 450px, 600px 600px, 250px 250px;
  animation: moveGalaxy 150s linear infinite;
  z-index: -2;
}

@keyframes moveGalaxy {
  from { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 0 0, 300px 300px, 400px 400px, 200px 200px, 500px 500px, 350px 350px, 450px 450px, 600px 600px, 250px 250px; }
}

.shooting-star {
  position: absolute;
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, rgba(255,255,255,1), rgba(255,255,255,0));
  animation: shootingStar 6s linear infinite;
  opacity: 0;
  transform: rotate(-45deg);
}

.shooting-star:nth-child(1) { top: 10%; left: 80%; animation-delay: 2s; }
.shooting-star:nth-child(2) { top: 30%; left: 60%; animation-delay: 4s; }
.shooting-star:nth-child(3) { top: 50%; left: 90%; animation-delay: 7s; }

@keyframes shootingStar {
  0% { transform: translateX(0) translateY(0) rotate(-45deg); opacity: 1; width: 100px; }
  20% { transform: translateX(-500px) translateY(500px) rotate(-45deg); opacity: 0; width: 0px; }
  100% { opacity: 0; }
}

/* Chevron */
.scroll-down-chevron {
  display: block;
  margin: 4rem auto 0;
  width: 45px;
  height: 45px;
  color: var(--clr-accent);
  animation: bounceChevron 2s infinite;
  transition: var(--transition);
}

.scroll-down-chevron:hover {
  color: #fff;
  transform: scale(1.1);
}

.scroll-down-chevron svg {
  width: 100%;
  height: 100%;
}

@keyframes bounceChevron {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-15px); }
  60% { transform: translateY(-7px); }
}

/* Glowing Ecosystem */
.ecosystem-node {
  background: rgba(94, 23, 235, 0.2) !important;
  border: 1px solid var(--clr-accent) !important;
  box-shadow: 0 0 15px rgba(243, 217, 19, 0.3), inset 0 0 10px rgba(94, 23, 235, 0.5) !important;
  animation: floatNodes 3s ease-in-out infinite alternate, glowNodes 3s ease-in-out infinite alternate !important;
  color: #fff !important;
}

@keyframes glowNodes {
  from { box-shadow: 0 0 10px rgba(243, 217, 19, 0.2), inset 0 0 10px rgba(94, 23, 235, 0.3); }
  to { box-shadow: 0 0 25px rgba(243, 217, 19, 0.6), inset 0 0 20px rgba(94, 23, 235, 0.8); }
}

.ecosystem-node:hover {
  background: var(--clr-accent) !important;
  color: #151243 !important;
  box-shadow: 0 0 35px rgba(243, 217, 19, 0.9) !important;
  animation-play-state: paused !important;
}

.ecosystem-node:hover svg {
  fill: #151243 !important;
}

/* Grid Whatsapp Centered */
.ecosystem-node.wa-node {
  grid-column: 2 / 3;
}

@media (max-width: 900px) {
  .ecosystem-node.wa-node {
    grid-column: 1 / -1; 
    justify-self: center;
    width: max-content;
  }
}
