/* ==========================================================================
   VARIABLES & SETUP (TIKTOK THEME)
   ========================================================================== */
:root {
  --clr-bg: #0b0f19;
  --clr-surface: rgba(37, 244, 238, 0.05);
  --clr-surface-hover: rgba(37, 244, 238, 0.1);
  --clr-text: #f8f9fa;
  --clr-muted: #a0aec0;
  
  --clr-accent: #ffffff;
  --clr-tiktok-pink: #FE2C55;
  --clr-tiktok-cyan: #25F4EE;
  
  --font-head: 'Syne', sans-serif;
  --font-body: 'Plus Jakarta 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.08);
}

html {
  scroll-behavior: smooth;
  user-select: none;
}

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

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-cyan { color: var(--clr-tiktok-cyan); }
.text-pink { color: var(--clr-tiktok-pink); }

.text-tiktok {
  color: #fff;
  text-shadow: 2px 0 var(--clr-tiktok-pink), -2px 0 var(--clr-tiktok-cyan);
}

/* ==========================================================================
   BACKGROUND (NEON THEME)
   ========================================================================== */
#neon-bg {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: var(--clr-bg);
  z-index: -3;
}
.neon-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  animation: orbFloat 20s infinite alternate ease-in-out;
}
.orb-cyan {
  width: 400px; height: 400px;
  background: var(--clr-tiktok-cyan);
  top: -10%; left: -10%;
}
.orb-pink {
  width: 500px; height: 500px;
  background: var(--clr-tiktok-pink);
  bottom: -20%; right: -10%;
  animation-delay: -10s;
}
.orb-mid {
  width: 300px; height: 300px;
  background: #9b5de5;
  top: 40%; left: 40%;
  animation-duration: 25s;
}

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

.scanline-overlay {
  position: fixed; top:0; left:0; width:100vw; height:100vh;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1));
  background-size: 100% 4px;
  z-index: -2;
  pointer-events: none;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
#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(11, 15, 25, 0.85);
  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: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.nav-links a:hover { color: var(--clr-tiktok-cyan); }
.nav-cta {
  background: linear-gradient(45deg, var(--clr-tiktok-cyan), var(--clr-tiktok-pink));
  color: #fff; padding: 0.75rem 1.5rem; border-radius: 50px; font-weight: 800; font-size: 0.85rem;
  box-shadow: 0 4px 15px rgba(254, 44, 85, 0.4);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37, 244, 238, 0.5); }
.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-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 TikTok Logo */
.tt-3d-wrapper {
  margin: 0 auto 2rem; width: 120px; height: 120px; position: relative;
  transform-style: preserve-3d; animation: float3d 6s ease-in-out infinite;
}
.tt-logo-svg { position: absolute; top:0; left:0; width:100%; height:100%; fill: #fff; }
.tt-shadow-pink { transform: translateZ(-10px) translateX(5px); fill: var(--clr-tiktok-pink); filter: blur(2px); }
.tt-shadow-cyan { transform: translateZ(-5px) translateX(-5px); fill: var(--clr-tiktok-cyan); filter: blur(2px); }
.tt-main { transform: translateZ(10px); }

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

/* Stats */
.hero-stats { display: flex; justify-content: center; gap: 3rem; margin-top: 2rem; }
.hero-stat .stat-num { font-size: 2.5rem; font-weight: 900; font-family: var(--font-head); color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.5); }
.hero-stat .stat-label { font-size: 0.9rem; text-transform: uppercase; color: var(--clr-muted); letter-spacing: 1px; }

/* ==========================================================================
   SECTIONS & GLASS
   ========================================================================== */
section { padding: 6rem 2rem; max-width: 1200px; margin: 0 auto; }
.glass { background: var(--clr-surface); backdrop-filter: var(--glass-blur); border: var(--glass-border); border-radius: 24px; padding: 3rem; }
.section-title { text-align: center; margin-bottom: 1rem; }
.section-sub { text-align: center; color: var(--clr-muted); max-width: 700px; margin: 0 auto 3rem; }

/* ==========================================================================
   BENEFITS GRID
   ========================================================================== */
.playlists-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.playlist-card {
  padding: 2rem; text-align: center; transition: var(--transition);
  background: rgba(255,255,255,0.02); border: var(--glass-border); border-radius: 20px;
}
.playlist-card:hover { transform: translateY(-5px); background: rgba(255,255,255,0.05); }
.benefit-icon { font-size: 3rem; margin-bottom: 1rem; }
.cyan-glow { text-shadow: 0 0 20px var(--clr-tiktok-cyan); }
.pink-glow { text-shadow: 0 0 20px var(--clr-tiktok-pink); }
.accent-glow { text-shadow: 0 0 20px #f3d913; }

/* ==========================================================================
   CAROUSEL
   ========================================================================== */
.carousel-viewport { overflow: hidden; width: 100%; padding: 2rem 0; margin-bottom: 2rem; }
.carousel-track { display: flex; gap: 2rem; width: max-content; animation: scrollCarousel 30s linear infinite; }
.carousel-track:hover { animation-play-state: paused; }

.clip-card {
  display: block; width: 260px; height: 460px; border-radius: 16px; position: relative;
  overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1); transition: var(--transition);
}
.clip-card:hover { transform: scale(1.02); border-color: var(--glow, #fff); box-shadow: 0 0 20px var(--glow, rgba(255,255,255,0.5)); }
.clip-phone { width: 100%; height: 100%; position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 1rem; }
.clip-bg { position: absolute; top:0; left:0; width:100%; height:100%; z-index:-1; }
.clip-hashtag { position: absolute; top: 1rem; left: 1rem; font-weight: 800; font-size: 0.9rem; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.clip-sidebar { position: absolute; right: 10px; bottom: 80px; display: flex; flex-direction: column; gap: 1rem; align-items: center; }
.clip-btn { font-size: 1.2rem; display: flex; flex-direction: column; align-items: center; color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.clip-btn span { font-size: 0.7rem; font-weight: 700; margin-top: 5px; }
.clip-btn.disc { width: 40px; height: 40px; border-radius: 50%; background: #111; display: flex; align-items: center; justify-content: center; animation: spin 4s linear infinite; border: 2px solid #333; margin-top: 10px; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.clip-bottom { margin-top: auto; }
.clip-user { font-weight: 800; font-size: 1rem; margin-bottom: 5px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.clip-caption { font-size: 0.85rem; line-height: 1.3; margin-bottom: 10px; text-shadow: 0 2px 4px rgba(0,0,0,0.5); }
.clip-sound { font-size: 0.75rem; display: flex; align-items: center; gap: 5px; overflow: hidden; white-space: nowrap; }

@keyframes scrollCarousel {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 1rem)); } /* Accounts for gap */
}
.carousel-cta { text-align: center; }
.btn-outline {
  display: inline-block; padding: 1rem 2rem; border: 2px solid rgba(255,255,255,0.2); border-radius: 50px;
  font-weight: 700; transition: var(--transition);
}
.btn-outline:hover { background: #fff; color: #111; }

/* ==========================================================================
   ECOSYSTEM MAP
   ========================================================================== */
.ecosystem-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; 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: #fff; color: #111; transform: scale(1.05); animation-play-state: paused; }
.ecosystem-node svg { width: 24px; height: 24px; fill: currentColor; }
.ecosystem-node.tt-node { border-color: var(--clr-tiktok-cyan); box-shadow: 0 0 15px rgba(37,244,238,0.2); }
.ecosystem-node.tt-node:hover { background: var(--clr-tiktok-cyan); color: #000; box-shadow: 0 0 25px rgba(37,244,238,0.5); }
.wa-node { grid-column: 2 / 3; }
@media (max-width: 900px) { .wa-node { grid-column: 1 / -1; justify-self: center; width: max-content; } }
@keyframes floatCards { from { transform: translateY(0); } to { transform: translateY(-10px); } }

/* ==========================================================================
   VIDEO DESTACADO
   ========================================================================== */
.tiktok-embed-outer { margin: 0 auto; display: flex; justify-content: center; }

/* ==========================================================================
   CTA SUSCRIPCION
   ========================================================================== */
.cta-box { text-align: center; background: linear-gradient(135deg, rgba(254,44,85,0.2) 0%, rgba(37,244,238,0.1) 100%); border: 1px solid rgba(254,44,85,0.3); }
.btn-large {
  display: inline-block; background: var(--clr-tiktok-pink); 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(254,44,85,0.4);
}
.btn-large:hover { transform: scale(1.05); box-shadow: 0 15px 40px rgba(254,44,85,0.6); color:#fff; }

/* ==========================================================================
   FAQ & FOOTER (Copied from base logic)
   ========================================================================== */
.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-tiktok-cyan); 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); }

.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: #fff; transition: var(--transition); }
.footer-social a:hover { background: var(--clr-tiktok-cyan); transform: translateY(-3px); }
.footer-social a:hover svg { fill: #000; }
.footer-brand { font-family: var(--font-head); font-size: 1.25rem; font-weight: 900; letter-spacing: 2px; margin-bottom: 0.5rem; }

/* MOBILE NAV */
@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); }
}

/* Animations that are missing */
.scroll-down-chevron {
  display: block; margin: 4rem auto 0; width: 45px; height: 45px; color: var(--clr-tiktok-cyan);
  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); }
}
