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

:root {
  --bg: #0b0b10;
  --bg-soft: #12121a;
  --surface: #171721;
  --text: #f2f2f4;
  --text-dim: #a3a3b2;
  --red: #b00404;
  --red-bright: #e11919;
  --gray: #4e4b4d;
  --accent1: #e11919;
  --accent2: #b00404;
  --radius: 14px;
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container { width: min(1120px, 92%); margin-inline: auto; }

/* ===== Header ===== */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10, 10, 18, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
}
.logo {
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.25rem;
  color: var(--text); text-decoration: none; letter-spacing: -0.02em;
}
.logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.nav { display: flex; gap: 1.75rem; }
.nav-link {
  color: var(--text-dim); text-decoration: none;
  font-size: 0.95rem; font-weight: 500;
  transition: color 0.25s ease;
}
.nav-link:hover { color: var(--text); }

.menu-btn { display: none; }

/* ===== Hero ===== */
.hero { padding: 5.5rem 0 7rem; position: relative; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(620px 380px at 12% 8%, rgba(225, 25, 25, 0.13), transparent 70%),
    radial-gradient(700px 420px at 90% 28%, rgba(176, 4, 4, 0.10), transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.gradient-text {
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead {
  margin: 1.4rem 0 2.2rem;
  color: var(--text-dim);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 44ch;
}

.btn.primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2.4rem;
  border-radius: 999px;
  border: none;
  font-family: var(--font-display);
  font-weight: 600; font-size: 1rem;
  color: #fff; text-decoration: none;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  box-shadow: 0 8px 28px rgba(225, 25, 25, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
  cursor: pointer;
}
.dl-icon { width: 1.15em; height: 1.15em; }
.btn.primary:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
  box-shadow: 0 12px 34px rgba(225, 25, 25, 0.55);
}

/* Android-like: si el dispositivo no soporta download attr, forzar de todas formas */
.btn.primary[download] { white-space: nowrap; }

/* ===== TV Mockup ===== */
.hero-visual { position: relative; }
.glow {
  position: absolute; inset: -8% -12%;
  background: radial-gradient(closest-side, rgba(225, 25, 25, 0.2), transparent);
  filter: blur(30px); z-index: -1;
}

/* ===== Mobile overflow guard ===== */
html, body { overflow-x: clip; }

.tv { animation: float 6s ease-in-out infinite; }

.tv-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(110% 80% at 82% -10%, rgba(225, 25, 25, 0.16), transparent 60%),
    radial-gradient(80% 60% at -8% 108%, rgba(176, 4, 4, 0.10), transparent 65%),
    linear-gradient(165deg, #1a1a28, #0d0d16);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  padding: 0.9rem;
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    0 24px 60px rgba(0, 0, 0, 0.55);
}
.tv-stand {
  width: 34%; height: 10px;
  margin: 0 auto;
  background: linear-gradient(90deg, #26263c, #1a1a2c);
  border-radius: 0 0 10px 10px;
  box-shadow: 0 14px 24px rgba(0,0,0,0.45);
}

/* mock app UI */
.ui-bar {
  display: flex; align-items: center; gap: 0.4rem;
  margin-bottom: 0.8rem;
}
.ui-dot { width: 9px; height: 9px; border-radius: 50%; background: #2c2c44; }
.ui-logo {
  margin-left: auto;
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.8rem;
  background: linear-gradient(90deg, var(--accent1), var(--accent2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.ui-banner {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  overflow: hidden;
  background:
    radial-gradient(95% 170% at 90% -20%, rgba(255, 255, 255, 0.20), transparent 55%),
    radial-gradient(70% 130% at -8% 115%, rgba(0, 0, 0, 0.45), transparent 60%),
    linear-gradient(115deg, #9c0505, #e11919 50%, #5f0404);
  border: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 0.9rem;
}
.ui-banner::after {
  content: "";
  position: absolute; top: 0; right: 0; bottom: 0;
  width: 48%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.08));
  pointer-events: none;
}
.ui-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em;
  padding: 0.24rem 0.6rem; border-radius: 999px;
  background: rgba(0,0,0,0.4);
  color: #fff;
  margin-bottom: 0.5rem;
}
.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #fff;
  animation: live-pulse 1.4s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.35; transform: scale(0.65); }
}
.ui-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.ui-sub { font-size: 0.68rem; color: rgba(255,255,255,0.8); margin-top: 0.4rem; }

.ui-play {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff;
  color: #b00404; font-size: 1rem;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.35);
}

.ui-row { display: flex; gap: 0.7rem; }
.ui-card {
  position: relative;
  flex: 1; aspect-ratio: 2 / 3;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.16);
  overflow: hidden;
  display: flex; align-items: flex-end;
  padding: 0.45rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}
.ui-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(165deg, rgba(255,255,255,0.22), transparent 45%);
}
.ui-card .ch {
  position: relative; z-index: 1;
  font-family: var(--font-display); font-weight: 700;
  font-size: 0.58rem; color: #fff;
  background: rgba(0,0,0,0.42);
  padding: 0.16rem 0.5rem; border-radius: 999px;
}
.ui-card.c1 { background: linear-gradient(170deg, #e11919, #7a0404); }
.ui-card.c2 { background: linear-gradient(170deg, #f97316, #a33505); }
.ui-card.c3 { background: linear-gradient(170deg, #8f0606, #2b0202); }
.ui-card.c4 { background: linear-gradient(170deg, #e33a5f, #5c0d1e); }
.hide-m { display: none; }

/* ===== Footer ===== */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.8rem 0;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.copy { color: var(--text-dim); font-size: 0.9rem; }
.footer-nav { display: flex; gap: 1.5rem; }
.footer-nav a {
  color: var(--text-dim); text-decoration: none; font-size: 0.9rem;
  transition: color 0.25s ease;
}
.footer-nav a:hover { color: var(--text); }

/* ===== Animations ===== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: reveal 0.8s ease forwards;
}
.reveal.delay-1 { animation-delay: 0.2s; }

@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .tv { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero { padding: 3.5rem 0 5rem; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-text { justify-self: center; }
  .lead { margin-inline: auto; }
  .hide-m { display: block; }
}

@media (max-width: 640px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-soft);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 1rem 6%;
    gap: 1.1rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  .nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .menu-btn {
    display: flex; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer;
    padding: 6px;
  }
  .menu-btn span {
    width: 22px; height: 2px; background: var(--text);
    border-radius: 2px; transition: all 0.3s ease;
  }
  .menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn.open span:nth-child(2) { opacity: 0; }
  .menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .footer-inner { flex-direction: column; text-align: center; }
}