:root {
  --bg: #fbfbfe;
  --surface: #ffffff;
  --text: #15152a;
  --muted: #5b5b78;
  --line: rgba(20, 20, 50, 0.1);
  --green: #1db954;
  --green-dark: #0e7838;
  --hero: linear-gradient(160deg, #0b0a18 0%, #1b1f3b 55%, #0e7838 140%);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #090814;
    --surface: #131226;
    --text: #f2f2fb;
    --muted: #a3a3c2;
    --line: rgba(255, 255, 255, 0.12);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green-dark); }
@media (prefers-color-scheme: dark) { a { color: var(--green); } }
.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }
header.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
}
header.top.solid, header.top.over.scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
header.top.over:not(.scrolled) { border-bottom: 1px solid transparent; }
header.top.over:not(.scrolled) .brand,
header.top.over:not(.scrolled) nav.main a { color: #fff; }
header.top.over:not(.scrolled) nav.main a { opacity: .85; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.5px; color: var(--text); text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
nav.main { display: flex; align-items: center; gap: 20px; flex-wrap: nowrap; white-space: nowrap; }
nav.main a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
nav.main a:hover { color: var(--text); }
.lang { position: relative; }
.lang select {
  appearance: none; background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.badges { display: flex; gap: 12px; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px;
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.22); color: #fff; font-weight: 700; font-size: 14px;
}
.badge.primary { background: var(--green); border-color: var(--green); color: #07140b; }
section.block { padding: 72px 0; }
section.block h2 { font-size: clamp(26px, 4vw, 38px); letter-spacing: -1px; margin: 0 0 12px; }
section.block .lead { color: var(--muted); max-width: 60ch; margin: 0 0 36px; font-size: 18px; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.card h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.3px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.cta-band { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 40px; text-align: center; }
.cta-band h2 { margin-bottom: 10px; }
.doc { padding: 120px 0 88px; }
.doc .wrap { max-width: 780px; }
.doc h1 { font-size: clamp(32px, 5vw, 46px); letter-spacing: -1.4px; margin: 0 0 6px; line-height: 1.1; }
.doc .updated { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.doc .notice { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; font-size: 14px; color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 22px; letter-spacing: -0.5px; margin: 40px 0 10px; }
.doc p, .doc li { font-size: 16px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .toc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 22px; margin: 0 0 8px; }
.doc .toc ol { margin: 6px 0 0; padding-left: 20px; columns: 2; column-gap: 28px; font-size: 14px; }
@media (max-width: 640px) { .doc .toc ol { columns: 1; } }
footer.site { border-top: 1px solid var(--line); padding: 36px 0 52px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer.site nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer.site a { color: var(--muted); }
.tmdb { font-size: 12px; max-width: 70ch; margin-top: 14px; }

/* ── Portada ───────────────────────────────────────────── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: #090814; color: #fff; }
.slides, .shade { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: -2%; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1);
  animation: slide 36s linear infinite; animation-delay: calc(var(--i) * 6s);
  will-change: opacity, transform;
}
.slide:first-child { opacity: 1; }
@keyframes slide {
  0%   { opacity: 0; transform: scale(1); }
  4.7% { opacity: 1; }
  16.7% { opacity: 1; }
  21.4% { opacity: 0; transform: scale(1.09); }
  100% { opacity: 0; transform: scale(1.09); }
}
.shade {
  background:
    linear-gradient(180deg, rgba(9,8,20,.62) 0%, rgba(9,8,20,.28) 38%, rgba(9,8,20,.9) 100%),
    radial-gradient(80% 60% at 20% 40%, rgba(29,185,84,.18), transparent 70%);
}
.hero-in { position: relative; padding: 120px 0 110px; will-change: transform, opacity; }
.eyebrow { text-transform: uppercase; letter-spacing: .22em; font-size: 12px; font-weight: 800; color: var(--green); margin: 0 0 18px; }
.hero h1 { font-size: clamp(42px, 8vw, 84px); line-height: 1.02; letter-spacing: -2.5px; margin: 0 0 22px; max-width: 15ch; text-shadow: 0 2px 30px rgba(0,0,0,.35); }
.hero .sub { font-size: clamp(17px, 2.3vw, 22px); max-width: 54ch; color: rgba(255,255,255,.86); margin: 0 0 34px; }
.badges { display: flex; gap: 12px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; padding: 13px 22px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24); color: #fff; font-weight: 700; font-size: 14px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.badge.primary { background: var(--green); border-color: var(--green); color: #06130a; box-shadow: 0 10px 34px rgba(29,185,84,.35); }
.eq { display: flex; align-items: flex-end; gap: 5px; height: 34px; margin-top: 38px; }
.eq i { width: 5px; border-radius: 3px; background: var(--green); height: 100%; transform-origin: bottom; animation: eq 1.1s ease-in-out infinite; opacity: .9; }
.eq i:nth-child(2n) { animation-duration: 1.4s; } .eq i:nth-child(3n) { animation-duration: .9s; }
.eq i:nth-child(1) { animation-delay: -.2s; } .eq i:nth-child(2) { animation-delay: -.7s; } .eq i:nth-child(3) { animation-delay: -.4s; }
.eq i:nth-child(4) { animation-delay: -.9s; } .eq i:nth-child(5) { animation-delay: -.1s; } .eq i:nth-child(6) { animation-delay: -.6s; }
.eq i:nth-child(7) { animation-delay: -.3s; } .eq i:nth-child(8) { animation-delay: -.8s; } .eq i:nth-child(9) { animation-delay: -.5s; }
@keyframes eq { 0%, 100% { transform: scaleY(.18); } 50% { transform: scaleY(1); } }
.cue { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; color: #fff; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.35); animation: bob 2s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
.rise { opacity: 0; transform: translateY(26px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: var(--d, 0ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ── Aparición al hacer scroll ─────────────────────────── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ── Géneros en carrusel ───────────────────────────────── */
section.genres { padding-bottom: 24px; overflow: hidden; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.track { display: flex; gap: 16px; width: max-content; animation: marquee 60s linear infinite; padding: 6px 0; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
.gcard { position: relative; width: 210px; height: 270px; border-radius: 24px; background-size: cover; background-position: center; flex: none; overflow: hidden; transition: transform .4s ease; }
.gcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(9,8,20,.85)); }
.gcard span { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; color: #fff; font-weight: 800; font-size: 17px; letter-spacing: -.3px; line-height: 1.2; }
.gcard:hover { transform: translateY(-6px) scale(1.02); }

/* ── Funciones y pasos ─────────────────────────────────── */
.card { transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--green) 55%, var(--line)); box-shadow: 0 18px 40px rgba(0,0,0,.12); }
.card.reveal.in:hover { transform: translateY(-5px); }
.ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; margin-bottom: 16px; color: #06130a; background: linear-gradient(135deg, var(--green), #6ee79a); box-shadow: 0 8px 22px rgba(29,185,84,.28); }
.steps { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 28px; position: relative; }
.step { padding: 8px 4px; }
.step .num { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; font-weight: 800; font-size: 18px; color: var(--green); border: 2px solid var(--green); margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -.3px; }
.step p { margin: 0; color: var(--muted); }
.cta-band { background: linear-gradient(135deg, color-mix(in srgb, var(--green) 14%, var(--surface)), var(--surface)); }

@media (prefers-reduced-motion: reduce) {
  .slide, .eq i, .cue, .track { animation: none !important; }
  .slide:first-child { opacity: 1; }
  .rise, .reveal { opacity: 1; transform: none; animation: none; transition: none; }
}
@media (max-width: 640px) {
  .hero-in { padding: 110px 0 100px; }
  .gcard { width: 160px; height: 220px; }
  header.top .wrap { min-height: 60px; }
  nav.main { gap: 12px; }
  nav.main a { display: none; }
  .brand { font-size: 18px; }
}

section[id] { scroll-margin-top: 76px; }

/* ── Historia: escuchar lo mismo, ahora ─────────────────── */
.badge.ghost { background: transparent; }
a.badge { text-decoration: none; transition: background .25s ease, transform .25s ease; }
a.badge:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.live-grid { display: grid; gap: 56px; grid-template-columns: 1.05fr .95fr; align-items: center; }
.lsteps { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 22px; }
.lstep { display: flex; gap: 18px; align-items: flex-start; }
.lstep .num { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-weight: 800; color: #06130a; background: linear-gradient(135deg, var(--green), #6ee79a); box-shadow: 0 8px 22px rgba(29,185,84,.28); }
.lstep h3 { margin: 4px 0 4px; font-size: 19px; letter-spacing: -.3px; }
.lstep p { margin: 0; color: var(--muted); }
.demo { position: relative; display: grid; place-items: center; padding: 38px 0 46px; isolation: isolate; }
.ring { position: absolute; width: 300px; height: 300px; border-radius: 50%; border: 2px solid rgba(29,185,84,.5); opacity: 0; animation: ring 4.5s ease-out infinite; z-index: -1; }
.ring.r2 { animation-delay: 1.5s; } .ring.r3 { animation-delay: 3s; }
@keyframes ring { 0% { transform: scale(.55); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
.dcard { width: min(340px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 22px; box-shadow: 0 30px 70px rgba(0,0,0,.28); }
.dtop { display: flex; align-items: center; gap: 14px; }
.art { width: 60px; height: 60px; border-radius: 16px; background: linear-gradient(135deg, #6c3fd6, #1db954); display: grid; place-items: center; }
.eqs { display: flex; align-items: flex-end; gap: 3px; height: 24px; }
.eqs i { width: 4px; height: 100%; border-radius: 2px; background: #fff; transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.eqs i:nth-child(2) { animation-delay: -.3s; } .eqs i:nth-child(3) { animation-delay: -.6s; } .eqs i:nth-child(4) { animation-delay: -.15s; } .eqs i:nth-child(5) { animation-delay: -.45s; }
.dsong { font-weight: 800; font-size: 18px; letter-spacing: -.3px; }
.dlive { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--green); margin-top: 2px; }
.dlive b { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; transform: scale(.7); } }
.davatars { display: flex; margin: 22px 0 14px; min-height: 48px; }
.av { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: rgba(255,255,255,.92); border: 3px solid var(--surface); margin-left: -10px; opacity: 0; transform: scale(0); animation: pop 9s ease infinite; animation-delay: calc(var(--k) * .8s); }
.av:first-child { margin-left: 0; }
.av.a1 { background: linear-gradient(135deg, #f4a261, #e76f51); } .av.a2 { background: linear-gradient(135deg, #4895ef, #3a0ca3); }
.av.a3 { background: linear-gradient(135deg, #06d6a0, #118ab2); } .av.a4 { background: linear-gradient(135deg, #e85d75, #5b2a86); }
@keyframes pop { 0% { opacity: 0; transform: scale(0); } 6% { opacity: 1; transform: scale(1.18); } 9%, 86% { opacity: 1; transform: scale(1); } 94%, 100% { opacity: 0; transform: scale(.6); } }
.dcount { font-size: 15px; color: var(--muted); min-height: 24px; opacity: 0; animation: fadein 9s ease infinite; animation-delay: 3.4s; }
.dcount strong { color: var(--text); font-size: 18px; }
@keyframes fadein { 0% { opacity: 0; transform: translateY(6px); } 6%, 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; } }
.dbtn { position: relative; margin-top: 16px; height: 48px; border-radius: 999px; border: 2px solid var(--green); display: grid; place-items: center; font-weight: 800; color: var(--green); overflow: hidden; animation: press 9s ease infinite; animation-delay: 3.4s; }
.dbtn span { grid-area: 1 / 1; }
.dbtn .t2 { opacity: 0; color: #06130a; }
.dbtn .t1 { animation: t1 9s ease infinite; animation-delay: 3.4s; }
.dbtn .t2 { animation: t2 9s ease infinite; animation-delay: 3.4s; }
@keyframes press { 0%, 38% { background: transparent; transform: none; } 42% { transform: scale(.96); } 46%, 84% { background: var(--green); transform: none; } 92%, 100% { background: transparent; } }
@keyframes t1 { 0%, 42% { opacity: 1; } 46%, 84% { opacity: 0; } 92%, 100% { opacity: 1; } }
@keyframes t2 { 0%, 42% { opacity: 0; } 46%, 84% { opacity: 1; } 92%, 100% { opacity: 0; } }
.dcap { position: absolute; bottom: 8px; margin: 0; font-size: 12px; color: var(--muted); }
.diff { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--green) 6%, transparent)); }
.dgrid { display: grid; gap: 18px 36px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 28px; }
.dcell { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); transition: transform .35s ease, border-color .35s ease; }
.dcell:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--green) 55%, var(--line)); }
.dcell .tick { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #06130a; background: linear-gradient(135deg, var(--green), #6ee79a); }
.dcell h3 { margin: 2px 0 4px; font-size: 18px; letter-spacing: -.3px; }
.dcell p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .live-grid { grid-template-columns: 1fr; gap: 36px; } }
@media (prefers-reduced-motion: reduce) {
  .ring, .eqs i, .dlive b { animation: none !important; }
  .av, .dcount { animation: none !important; opacity: 1; transform: none; }
  .dbtn, .dbtn .t1, .dbtn .t2 { animation: none !important; }
  .dbtn .t2 { display: none; }
}

section.block h2, .cta-band h2 { line-height: 1.12; }
.lead { line-height: 1.5; }
