/* ============ RESET & TOKENS ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #06070c;
  --bg-alt: #0b0d15;
  --surface: #12141e;
  --surface-2: #191c29;
  --border: rgba(255,255,255,0.08);
  --text: #eef2f7;
  --text-dim: #a8b8cc;
  --text-mute: #6e7891;
  --accent: #e50914;
  --accent-2: #b91c1c;
  --gold: #ffb020;
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --font-display: "Bebas Neue", "Outfit", sans-serif;
  --font-body: "DM Sans", "Outfit", system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: 0.5px; line-height: 1.05; }

.noise-overlay {
  position: fixed; inset: 0; pointer-events: none; z-index: 2;
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.5;
}

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

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.2px;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(229,9,20,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(229,9,20,0.5); }
.btn-ghost {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-xl { padding: 20px 44px; font-size: 18px; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(6,7,12,0.7);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 1px;
  white-space: nowrap;
}
.logo-accent { color: var(--accent); }
.logo-icon {
  width: 30px;
  height: 30px;
  margin-right: 9px;
  border-radius: 8px;
  flex-shrink: 0;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-size: 14px; font-weight: 600; color: var(--text-dim);
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-burger {
  display: none; flex-direction: column; gap: 5px; padding: 6px;
}
.nav-burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

/* ============ LANGUAGE SWITCHER ============ */
.lang-switcher { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.4px;
  color: var(--text);
}
.lang-btn:hover { background: rgba(255,255,255,0.1); }
.lang-caret { font-size: 10px; color: var(--text-mute); transition: transform .2s; }
.lang-switcher.open .lang-caret { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 140px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px;
  box-shadow: 0 16px 36px rgba(0,0,0,0.45);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 10;
}
.lang-switcher.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px; font-weight: 700;
  color: var(--text-dim);
  text-align: left;
}
.lang-option:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.lang-option.active { color: var(--text); background: rgba(229,9,20,0.12); }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 170px 24px 60px;
  overflow: hidden;
}
.hero-glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse at center, rgba(229,9,20,0.28) 0%, rgba(229,9,20,0) 65%);
  filter: blur(20px);
  z-index: 0;
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.pill {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(229,9,20,0.12);
  border: 1px solid rgba(229,9,20,0.35);
  color: #ff8a90;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(42px, 7vw, 76px);
  color: var(--text);
}
.hero-sub {
  margin: 24px auto 0;
  max-width: 560px;
  color: var(--text-dim);
  font-size: 17px;
}
.hero-ctas {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-top: 34px;
}
.trust-row {
  margin-top: 22px;
  display: flex; gap: 22px; justify-content: center; flex-wrap: wrap;
  font-size: 13px; color: var(--text-mute); font-weight: 600;
}

.live-viewers {
  margin-top: 18px;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--text-dim); font-weight: 600;
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.6);
  animation: live-pulse 1.8s infinite;
}
@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.5); }
  70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}

/* Marquee */
.marquee {
  position: relative; z-index: 1;
  margin-top: 64px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex; gap: 14px; width: max-content;
  animation: marquee-scroll 38s linear infinite;
}
.marquee-item {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13.5px; font-weight: 700;
  white-space: nowrap;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============ STATS BAR ============ */
.stats-bar {
  max-width: var(--container);
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border-bottom: 1px solid var(--border);
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  color: var(--accent);
}
.stat-label { font-size: 13px; color: var(--text-mute); font-weight: 600; }

/* ============ SECTIONS ============ */
.section { padding: 90px 24px; max-width: var(--container); margin: 0 auto; }
.section-alt { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%); max-width: none; }
.section-alt > * { max-width: var(--container); margin-left: auto; margin-right: auto; }
.section-dark { background: var(--bg-alt); max-width: none; }
.section-dark > * { max-width: var(--container); margin-left: auto; margin-right: auto; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 40px; flex-wrap: wrap;
}
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.eyebrow {
  display: block; font-size: 12.5px; font-weight: 800; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }
.section-desc { color: var(--text-dim); max-width: 340px; font-size: 15px; }
.section-head.center .section-desc { max-width: 480px; margin-top: 12px; }

/* ============ CAROUSEL (cartelera) ============ */
.carousel {
  display: flex; gap: 20px; overflow-x: auto; padding-bottom: 12px;
  scroll-snap-type: x mandatory;
}
.carousel::-webkit-scrollbar { height: 6px; }
.carousel::-webkit-scrollbar-thumb { background: var(--surface-2); border-radius: 10px; }

.movie-card {
  scroll-snap-align: start;
  min-width: 220px; max-width: 220px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .25s ease, border-color .25s ease;
}
.movie-card:hover { transform: translateY(-6px); border-color: rgba(229,9,20,0.4); }
.movie-poster {
  height: 300px;
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
}
.movie-poster img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.movie-card:hover .movie-poster img { transform: scale(1.05); }
.movie-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--accent); color: #fff;
  font-size: 10.5px; font-weight: 800;
  padding: 4px 9px; border-radius: 999px;
  letter-spacing: 0.4px;
  z-index: 1;
}
.movie-info { padding: 14px 16px 18px; }
.movie-info h3 { font-family: var(--font-body); font-size: 15px; font-weight: 800; margin-bottom: 4px; }
.movie-meta { font-size: 12px; color: var(--text-mute); font-weight: 600; }

/* ============ CLASSICS GRID ============ */
.grid-classics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.classic-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform .25s ease, border-color .25s ease;
}
.classic-card:hover { transform: translateY(-6px); border-color: rgba(255,176,32,0.4); }
.classic-poster {
  height: 210px;
  overflow: hidden;
  background: var(--surface-2);
}
.classic-poster img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.classic-card:hover .classic-poster img { transform: scale(1.05); }
.classic-info { padding: 14px 16px 18px; }
.classic-info h3 { font-family: var(--font-body); font-size: 14.5px; font-weight: 800; margin-bottom: 6px; }
.classic-rating { font-size: 12.5px; color: var(--gold); font-weight: 700; }
.classic-meta { font-size: 11.5px; color: var(--text-mute); font-weight: 600; margin-top: 2px; }

/* ============ FEATURES ============ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 30px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .25s ease, border-color .25s ease;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(229,9,20,0.35); }
.feature-icon { font-size: 30px; margin-bottom: 16px; }
.feature-card h3 { font-family: var(--font-body); font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-dim); }

/* ============ TESTIMONIALS ============ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.stars { color: var(--gold); font-size: 15px; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card p { font-size: 14.5px; color: var(--text-dim); margin-bottom: 16px; font-style: italic; }
.testimonial-author { font-size: 13px; font-weight: 700; color: var(--text-mute); }

/* ============ FAQ ============ */
.faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  font-weight: 800; font-size: 15px;
  text-align: left;
}
.faq-toggle { color: var(--accent); font-size: 20px; transition: transform .25s; }
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
}
.faq-answer p { padding: 0 22px 18px; color: var(--text-dim); font-size: 14px; }
.faq-item.open .faq-answer { max-height: 200px; }

/* ============ FINAL CTA ============ */
.final-cta {
  position: relative;
  text-align: center;
  padding: 100px 24px;
  overflow: hidden;
}
.final-cta-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(229,9,20,0.22) 0%, transparent 60%);
}
.final-cta h2 { position: relative; font-size: clamp(28px, 4.5vw, 44px); max-width: 640px; margin: 0 auto; }
.final-cta p { position: relative; color: var(--text-dim); margin: 18px auto 32px; max-width: 460px; }
.final-cta .btn { position: relative; }

/* ============ TOAST (social proof) ============ */
.toast {
  position: fixed; left: 20px; bottom: 20px; z-index: 200;
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  transform: translateY(140%);
  opacity: 0;
  transition: transform .5s cubic-bezier(.2,.9,.3,1.2), opacity .4s;
  max-width: 280px;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  flex-shrink: 0;
}
.toast-body { font-size: 13px; }
.toast-time { color: var(--text-mute); font-size: 11.5px; margin-top: 2px; }

/* ============ DOWNLOAD MODAL ============ */
.download-modal {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.download-modal.show { opacity: 1; pointer-events: auto; }
.download-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(3,4,7,0.75);
  backdrop-filter: blur(4px);
}
.download-modal-card {
  position: relative;
  width: 100%; max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px 30px;
  text-align: center;
  transform: translateY(16px) scale(.97);
  transition: transform .3s cubic-bezier(.2,.9,.3,1.2);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.download-modal.show .download-modal-card { transform: translateY(0) scale(1); }
.download-modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: var(--text-dim);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.download-modal-close:hover { background: rgba(255,255,255,0.12); color: var(--text); }
.download-modal-icon { font-size: 42px; margin-bottom: 16px; }
.download-modal-card h3 { font-family: var(--font-body); font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.download-modal-card p { font-size: 14.5px; color: var(--text-dim); }
.download-modal-progress {
  margin-top: 22px; height: 6px; border-radius: 999px;
  background: rgba(255,255,255,0.08); overflow: hidden; display: none;
}
.download-modal-progress.show { display: block; }
.download-modal-progress-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
  transition: width 1.6s cubic-bezier(.3,.8,.4,1);
}
.download-modal-apk-btn {
  display: none;
  width: 100%;
  margin-top: 20px;
}
.download-modal-apk-btn.show { display: inline-flex; }
.download-modal-warning {
  display: none;
  margin-top: 14px;
  font-size: 12px;
  color: var(--gold);
  line-height: 1.5;
}
.download-modal-warning.show { display: block; }

/* ============ FOOTER ============ */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 60px 24px 24px; }
.footer-inner {
  max-width: var(--container); margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px;
}
.footer-brand p { color: var(--text-mute); font-size: 13.5px; margin-top: 14px; max-width: 280px; }
.footer-col h4 { font-size: 13px; margin-bottom: 14px; color: var(--text-mute); text-transform: uppercase; letter-spacing: 0.6px; }
.footer-col a { display: block; font-size: 14px; color: var(--text-dim); margin-bottom: 10px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  max-width: var(--container); margin: 40px auto 0;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-mute); text-align: center;
}

/* ============ SCROLL REVEAL ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-classics { grid-template-columns: repeat(3, 1fr); }
  .testimonials { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .grid-classics { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 20px; }
  .hero { padding: 130px 20px 40px; }
  .footer-inner { grid-template-columns: 1fr; }
}
