/* ZAIDE · estilos compartidos (página principal + panel web) */
@font-face { font-family: "Sora"; src: url("/assets/fonts/sora.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }

:root {
  --bg: #0a0613;
  --bg-2: #110a1f;
  --surface: rgba(255, 255, 255, .035);
  --surface-2: rgba(255, 255, 255, .06);
  --surface-3: rgba(255, 255, 255, .09);
  --border: rgba(196, 167, 255, .13);
  --border-strong: rgba(196, 167, 255, .26);
  --text: #f1ecff;
  --text-2: #c9bfe3;
  --muted: #9488b3;
  --purple: #8b5cf6;
  --purple-2: #a78bfa;
  --purple-3: #c4b5fd;
  --purple-deep: #4c1d95;
  --gold: #f5c451;
  --gold-2: #ffdd8a;
  --gold-3: #c98a1e;
  --cream: #fff4d6;
  --rose: #f0abfc;
  --ok: #4ade80;
  --danger: #fb7185;
  --gold-grad: linear-gradient(135deg, #fff1c2 0%, #f5c451 45%, #d9971f 100%);
  --purple-grad: linear-gradient(135deg, #a78bfa 0%, #7c3aed 50%, #4c1d95 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .7), 0 0 0 1px var(--border);
  --glow-gold: 0 10px 40px -10px rgba(245, 196, 81, .55);
  --glow-purple: 0 10px 50px -12px rgba(139, 92, 246, .7);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Sora", "Inter", system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(139, 92, 246, .22), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(245, 196, 81, .08), transparent 60%),
    radial-gradient(1000px 700px at 50% 120%, rgba(91, 33, 182, .25), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { color: var(--cream); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
::selection { background: rgba(245, 196, 81, .35); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.purple-text {
  background: linear-gradient(135deg, #e9d5ff, #a78bfa 60%, #8b5cf6);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* ---------- botones ---------- */
.btn {
  --bg-btn: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.35em;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-btn);
  color: var(--text);
  font-weight: 600; letter-spacing: .01em;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); border-color: var(--purple-2); color: var(--text); background: var(--surface-3); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-gold {
  background: var(--gold-grad);
  color: #2a1606;
  border-color: transparent;
  box-shadow: var(--glow-gold);
}
.btn-gold:hover { color: #2a1606; background: var(--gold-grad); box-shadow: 0 14px 50px -10px rgba(245, 196, 81, .75); filter: saturate(1.1); }
.btn-purple { background: var(--purple-grad); border-color: transparent; box-shadow: var(--glow-purple); }
.btn-purple:hover { background: var(--purple-grad); filter: brightness(1.1); }
.btn-ghost { background: transparent; }
.btn-sm { padding: .5em .95em; font-size: .9rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }

.chip {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .35em .85em;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(139, 92, 246, .12);
  color: var(--purple-3);
  font-size: .82rem; font-weight: 600;
}
.chip-gold { background: rgba(245, 196, 81, .1); border-color: rgba(245, 196, 81, .35); color: var(--gold-2); }
.dot { width: .5em; height: .5em; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px -30px rgba(0, 0, 0, .8);
}

/* ---------- barra de navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  background: rgba(10, 6, 19, .72);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: .14em; color: var(--text); }
.brand:hover { color: var(--text); }
.brand img { width: 36px; height: 36px; filter: drop-shadow(0 4px 14px rgba(139, 92, 246, .55)); }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { color: var(--text-2); font-weight: 500; padding: 8px 14px; border-radius: 10px; font-size: .95rem; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--border); border-radius: 10px; padding: 8px; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; display: block; }

@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; padding: 12px 16px 18px; background: rgba(10, 6, 19, .96); border-bottom: 1px solid var(--border); margin: 0; }
  .nav.open .nav-links { display: flex; }
  .nav-cta .btn-ghost { display: none; }
  .menu-btn { display: block; margin-left: 0; }
  .nav-cta { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 84px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.6vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -.035em;
  margin: 18px 0 18px;
  font-weight: 800;
}
.hero p.lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--text-2); max-width: 36em; margin: 0 0 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { font-size: 1.02rem; padding: .95em 1.6em; }
.stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 40px; }
.stat b { display: block; font-family: var(--display); font-size: 1.7rem; font-weight: 700; letter-spacing: -.02em; }
.stat span { color: var(--muted); font-size: .88rem; }

.platforms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.platforms span { font-size: .8rem; color: var(--text-2); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }

/* tarjeta "sonando ahora" de muestra */
.np-demo { position: relative; padding: 22px; border-radius: 26px; }
.np-demo::before {
  content: ""; position: absolute; inset: -40px; z-index: -1;
  background: radial-gradient(closest-side, rgba(139, 92, 246, .45), transparent), radial-gradient(closest-side at 80% 90%, rgba(245, 196, 81, .25), transparent);
  filter: blur(30px);
}
.np-demo .art {
  aspect-ratio: 1; border-radius: 18px; position: relative; overflow: hidden;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 241, 194, .9), transparent 30%),
    radial-gradient(circle at 75% 70%, rgba(240, 171, 252, .6), transparent 40%),
    linear-gradient(140deg, #7c3aed, #2e1065 70%);
  display: grid; place-items: end start; padding: 18px;
}
.eq { display: flex; align-items: flex-end; gap: 5px; height: 46px; }
.eq i { width: 7px; border-radius: 4px; background: var(--cream); opacity: .9; animation: eq 1.1s ease-in-out infinite; }
.eq i:nth-child(2) { animation-delay: -.3s; } .eq i:nth-child(3) { animation-delay: -.6s; }
.eq i:nth-child(4) { animation-delay: -.15s; } .eq i:nth-child(5) { animation-delay: -.45s; }
@keyframes eq { 0%, 100% { height: 20%; } 50% { height: 100%; } }
.np-demo h3 { font-family: var(--display); margin: 18px 0 2px; font-size: 1.3rem; }
.np-demo .sub { color: var(--muted); font-size: .95rem; }
.np-demo .bar { height: 6px; border-radius: 6px; background: var(--surface-3); margin: 18px 0 6px; overflow: hidden; }
.np-demo .bar i { display: block; height: 100%; width: 42%; background: var(--gold-grad); border-radius: inherit; animation: grow 14s linear infinite; }
@keyframes grow { from { width: 8%; } to { width: 96%; } }
.np-demo .times { display: flex; justify-content: space-between; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.np-demo .ctrls { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 14px; }
.np-demo .ctrls span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--text-2); }
.np-demo .ctrls span svg { width: 22px; height: 22px; }
.np-demo .ctrls .play { width: 58px; height: 58px; background: var(--gold-grad); color: #2a1606; box-shadow: var(--glow-gold); }
.floating-tag { position: absolute; z-index: 3; padding: 10px 14px; border-radius: 14px; font-size: .85rem; font-weight: 600; background: rgba(17, 10, 31, .9); border: 1px solid var(--border-strong); box-shadow: var(--shadow); display: flex; gap: 8px; align-items: center; }
.floating-tag.t1 { top: 30px; left: -36px; animation: float 6s ease-in-out infinite; }
.floating-tag.t2 { bottom: -16px; right: -30px; animation: float 7s ease-in-out infinite reverse; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 900px) {
  .hero { padding: 48px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .np-demo { max-width: 420px; margin: 0 auto; }
  .floating-tag.t1 { left: -6px; } .floating-tag.t2 { right: -6px; }
}

/* ---------- secciones ---------- */
section { padding: 72px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head h2 { font-family: var(--display); font-size: clamp(1.8rem, 3.6vw, 2.7rem); letter-spacing: -.03em; line-height: 1.12; margin: 14px 0 12px; }
.section-head p { color: var(--text-2); margin: 0; font-size: 1.05rem; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature { padding: 24px; transition: transform .2s ease, border-color .2s ease; }
.feature:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.feature .ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(139, 92, 246, .16); color: var(--purple-3); margin-bottom: 16px;
  border: 1px solid var(--border);
}
.feature.gold .ico { background: rgba(245, 196, 81, .12); color: var(--gold-2); border-color: rgba(245, 196, 81, .25); }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 6px; font-size: 1.05rem; font-family: var(--display); }
.feature p { margin: 0; color: var(--text-2); font-size: .94rem; }
@media (max-width: 1000px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

.showcase { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.showcase h2 { font-family: var(--display); font-size: clamp(1.8rem, 3.4vw, 2.5rem); letter-spacing: -.03em; line-height: 1.12; margin: 14px 0; }
.showcase p { color: var(--text-2); }
.checks { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%; background: var(--gold-grad) ; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm-1.2 14.2-4-4 1.4-1.4 2.6 2.6 5.6-5.6 1.4 1.4-7 7z'/%3E%3C/svg%3E") center / contain no-repeat; }
.mock { padding: 14px; border-radius: 22px; position: relative; }
.mock-bar { display: flex; gap: 6px; padding: 4px 6px 12px; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.mock-body { display: grid; grid-template-columns: 64px 1fr; gap: 12px; }
.mock-side { display: grid; gap: 10px; align-content: start; }
.mock-side i { width: 48px; height: 48px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.mock-side i:first-child { background: var(--purple-grad); }
.mock-main { display: grid; gap: 10px; }
.mock-np { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.mock-np .a { aspect-ratio: 1; border-radius: 12px; background: linear-gradient(140deg, #f5c451, #8b5cf6 70%); }
.mock-line { height: 10px; border-radius: 6px; background: var(--surface-3); margin: 6px 0; }
.mock-line.g { background: var(--gold-grad); width: 55%; }
.mock-line.w45 { width: 45%; } .mock-line.w50 { width: 50%; } .mock-line.w60 { width: 60%; }
.mock-line.w66 { width: 66%; } .mock-line.w70 { width: 70%; } .mock-line.w75 { width: 75%; }
.hero-actions.center { justify-content: center; }
.mock-row { display: grid; grid-template-columns: 36px 1fr 40px; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.mock-row .a { width: 36px; height: 36px; border-radius: 8px; background: linear-gradient(140deg, #a78bfa, #4c1d95); }
.mock-row:nth-child(odd) .a { background: linear-gradient(140deg, #ffdd8a, #c98a1e); }
@media (max-width: 900px) { .showcase { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 26px; position: relative; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  background: var(--gold-grad); color: #2a1606; font-weight: 800; font-family: var(--display); margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-family: var(--display); font-size: 1.1rem; }
.step p { margin: 0; color: var(--text-2); }
.step code { background: rgba(139, 92, 246, .18); color: var(--purple-3); padding: .1em .45em; border-radius: 6px; font-size: .92em; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }

/* ---------- planes ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { padding: 30px 26px; display: flex; flex-direction: column; position: relative; }
.plan h3 { font-family: var(--display); margin: 0; font-size: 1.2rem; }
.plan .price { font-family: var(--display); font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; margin: 14px 0 2px; }
.plan .price small { font-size: 1rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan .desc { color: var(--muted); font-size: .93rem; margin: 0 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; color: var(--text-2); font-size: .95rem; }
.plan li::before { content: "✦"; color: var(--purple-2); flex: none; }
.plan.featured { border-color: rgba(245, 196, 81, .45); background: linear-gradient(180deg, rgba(245, 196, 81, .08), rgba(139, 92, 246, .06)); box-shadow: 0 30px 80px -30px rgba(245, 196, 81, .35); }
.plan.featured li::before { color: var(--gold); }
.plan .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* ---------- preguntas ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { padding: 0; }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--text-2); }

.cta-band { text-align: center; padding: 56px 24px; border-radius: 28px; position: relative; overflow: hidden;
  background: radial-gradient(600px 240px at 50% 0%, rgba(245, 196, 81, .18), transparent 70%), linear-gradient(135deg, rgba(124, 58, 237, .35), rgba(46, 16, 101, .5)); border: 1px solid var(--border-strong); }
.cta-band h2 { font-family: var(--display); font-size: clamp(1.8rem, 3.6vw, 2.6rem); letter-spacing: -.03em; margin: 0 0 10px; }
.cta-band p { color: var(--text-2); margin: 0 0 26px; }

footer.site { border-top: 1px solid var(--border); padding: 40px 0 50px; color: var(--muted); font-size: .92rem; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 18px; }
.foot nav a { color: var(--text-2); }
.foot nav a:hover { color: var(--gold-2); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =======================================================================
   PANEL WEB
   ======================================================================= */
.app { display: grid; grid-template-columns: 84px minmax(0, 1fr); min-height: calc(100vh - 68px); }
.rail { border-right: 1px solid var(--border); padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; background: rgba(10, 6, 19, .55); position: sticky; top: 68px; height: calc(100vh - 68px); overflow-y: auto; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail-label { font-size: .64rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 2px 0 4px; }
.guild-btn { position: relative; width: 52px; height: 52px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; padding: 0; overflow: visible; display: grid; place-items: center; font-weight: 700; color: var(--text-2); transition: border-radius .2s, border-color .2s, transform .15s; flex: none; }
.guild-btn img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.guild-btn:hover { border-radius: 14px; border-color: var(--purple-2); }
.guild-btn.active { border-radius: 14px; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 196, 81, .2); }
.guild-btn .badge { position: absolute; right: -3px; bottom: -3px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; }
.guild-btn .badge i { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.guild-btn.add { border-style: dashed; color: var(--gold); font-size: 1.5rem; font-weight: 400; }

.main { padding: 26px clamp(16px, 3vw, 36px) 60px; min-width: 0; }
.main-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-bottom: 20px; }
.main-head h1 { font-family: var(--display); font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: -.02em; margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.voice-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: .86rem; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); }
.voice-chip.ok { border-color: rgba(74, 222, 128, .35); color: #bbf7d0; background: rgba(74, 222, 128, .07); }
.voice-chip.warn { border-color: rgba(245, 196, 81, .35); color: var(--gold-2); background: rgba(245, 196, 81, .07); }
.voice-chip svg { width: 16px; height: 16px; }

.search { display: flex; gap: 10px; margin-bottom: 22px; }
.search-box { flex: 1; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 16px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); transition: border-color .2s, box-shadow .2s; min-width: 0; }
.search-box:focus-within { border-color: var(--purple-2); box-shadow: 0 0 0 4px rgba(139, 92, 246, .15); }
.search-box svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search-box input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; padding: 14px 0; font-size: 1rem; }
.search-box input::placeholder { color: var(--muted); }
.search-box select { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 7px 10px; font-size: .85rem; max-width: 150px; color: var(--text-2); }
.search-box select option { background: #1a1030; }

.grid-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; align-items: start; }
@media (max-width: 1150px) { .grid-main { grid-template-columns: minmax(0, 1fr); } }

/* reproductor */
.player { padding: 22px; position: relative; overflow: hidden; }
.player-bg { position: absolute; inset: -30%; background-size: cover; background-position: center; filter: blur(60px) saturate(1.4); opacity: .35; z-index: 0; transition: background-image .5s; }
.player > *:not(.player-bg) { position: relative; z-index: 1; }
.player-top { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 20px; align-items: center; }
.cover { aspect-ratio: 1; width: 100%; border-radius: 18px; object-fit: cover; background: linear-gradient(140deg, #7c3aed, #2e1065); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .9); }
.cover.ph { display: grid; place-items: center; color: var(--gold-2); }
.cover.ph svg { width: 44px; height: 44px; }
.track-meta { min-width: 0; }
.track-meta .src { margin-bottom: 10px; }
.track-title { font-family: var(--display); font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 700; line-height: 1.2; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); }
a.track-title:hover { color: var(--gold-2); }
.track-artist { color: var(--text-2); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-req { color: var(--muted); font-size: .85rem; margin-top: 6px; }

.progress { margin-top: 22px; }
.progress-track { position: relative; height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .1); cursor: pointer; touch-action: none; }
.progress-track.locked { cursor: default; }
.progress-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--gold-grad); box-shadow: 0 0 18px rgba(245, 196, 81, .45); }
.progress-fill::after { content: ""; position: absolute; right: -7px; top: 50%; width: 14px; height: 14px; border-radius: 50%; transform: translateY(-50%) scale(0); background: var(--cream); box-shadow: 0 0 0 4px rgba(245, 196, 81, .3); transition: transform .15s; }
.progress-track:not(.locked):hover .progress-fill::after { transform: translateY(-50%) scale(1); }
.progress-fill.live { width: 100% !important; background: linear-gradient(90deg, rgba(251, 113, 133, .2), rgba(251, 113, 133, .8)); box-shadow: none; }
.times { display: flex; justify-content: space-between; margin-top: 8px; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }

.controls { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 14px; }
.ibtn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid transparent; background: transparent; color: var(--text-2); cursor: pointer; transition: background .2s, color .2s, transform .12s; position: relative; flex: none; }
.ibtn:hover { background: var(--surface-3); color: var(--text); }
.ibtn:active { transform: scale(.94); }
.ibtn svg { width: 22px; height: 22px; }
.ibtn.on { color: var(--gold); }
.ibtn.on::after { content: ""; position: absolute; bottom: 4px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.ibtn .mini { position: absolute; top: 6px; right: 5px; font-size: .58rem; font-weight: 800; color: var(--gold); }
.ibtn.play { width: 64px; height: 64px; background: var(--gold-grad); color: #2a1606; box-shadow: var(--glow-gold); }
.ibtn.play:hover { color: #2a1606; background: var(--gold-grad); filter: brightness(1.06); }
.ibtn.play svg { width: 28px; height: 28px; }
.ibtn[disabled] { opacity: .35; pointer-events: none; }

.player-extra { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.vol { display: flex; align-items: center; gap: 8px; flex: 1 1 200px; min-width: 160px; }
.pe-btns { display: flex; gap: 2px; margin-left: auto; }
.vol svg { width: 20px; height: 20px; color: var(--text-2); flex: none; }
.vol output { width: 38px; text-align: right; font-size: .85rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
input[type=range] { -webkit-appearance: none; appearance: none; flex: 1; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--purple-2) var(--p, 50%), rgba(255, 255, 255, .12) var(--p, 50%)); outline: none; cursor: pointer; min-width: 0; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--cream); border: 0; box-shadow: 0 0 0 4px rgba(167, 139, 250, .3); }
input[type=range]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--cream); border: 0; box-shadow: 0 0 0 4px rgba(167, 139, 250, .3); }
.select { background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 8px 12px; font-size: .88rem; color: var(--text-2); cursor: pointer; }
.select option { background: #1a1030; }
.toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .88rem; color: var(--text-2); background: none; border: 0; padding: 0; }
.toggle .sw { width: 38px; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, .14); position: relative; transition: background .2s; }
.toggle .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle[aria-pressed="true"] .sw { background: var(--purple); }
.toggle[aria-pressed="true"] .sw::after { transform: translateX(16px); }

.empty { text-align: center; padding: 40px 24px; color: var(--text-2); }
.empty .big { width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 16px; display: grid; place-items: center; background: rgba(139, 92, 246, .14); color: var(--purple-3); border: 1px solid var(--border); }
.empty .big svg { width: 34px; height: 34px; }
.empty h3 { font-family: var(--display); color: var(--text); margin: 0 0 6px; }
.empty p { margin: 0 auto; max-width: 30em; font-size: .95rem; }

/* pestañas + listas */
.panel-box { padding: 8px; min-height: 200px; }
.tabs { display: flex; gap: 4px; padding: 6px; border-bottom: 1px solid var(--border); margin-bottom: 8px; overflow-x: auto; scrollbar-width: none; align-items: center; }
.tab { padding: 9px 14px; border-radius: 10px; border: 0; background: none; color: var(--text-2); font-weight: 600; cursor: pointer; white-space: nowrap; font-size: .93rem; }
.tab:hover { background: var(--surface-2); color: var(--text); }
.tab[aria-selected="true"] { background: rgba(245, 196, 81, .12); color: var(--gold-2); }
.tab .n { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 999px; font-size: .75rem; background: var(--surface-3); color: var(--text-2); }
.tabs .spacer { flex: 1; }
.list-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 10px 10px; color: var(--muted); font-size: .86rem; flex-wrap: wrap; }
.list-head .actions { display: flex; gap: 6px; flex-wrap: wrap; }

.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; max-height: 620px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(167, 139, 250, .3) transparent; }
.row { display: grid; grid-template-columns: 28px 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 12px; transition: background .15s; position: relative; }
.row:hover { background: var(--surface-2); }
.row.dragging { opacity: .4; }
.row.drop-before::before, .row.drop-after::after { content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: var(--gold); border-radius: 2px; }
.row.drop-before::before { top: -1px; } .row.drop-after::after { bottom: -1px; }
.row .idx { color: var(--muted); font-size: .85rem; text-align: center; font-variant-numeric: tabular-nums; }
.row[draggable="true"] .idx { cursor: grab; }
.row .thumb { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: linear-gradient(140deg, #a78bfa, #4c1d95); }
.row .t { min-width: 0; }
.row .t b { display: block; font-weight: 600; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .t span { display: block; color: var(--muted); font-size: .83rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .r { display: flex; align-items: center; gap: 2px; color: var(--muted); font-size: .83rem; font-variant-numeric: tabular-nums; }
.row .r .dur { margin-right: 6px; }
.row .act { opacity: 0; transition: opacity .15s; display: flex; gap: 2px; }
.row:hover .act, .row:focus-within .act { opacity: 1; }
@media (hover: none) { .row .act { opacity: 1; } .row .r .dur { display: none; } }
.sbtn { width: 32px; height: 32px; border-radius: 9px; border: 0; background: none; color: var(--text-2); display: grid; place-items: center; cursor: pointer; }
.sbtn:hover { background: var(--surface-3); color: var(--text); }
.sbtn.gold { color: var(--gold); }
.sbtn.danger:hover { color: var(--danger); }
.sbtn svg { width: 18px; height: 18px; }
.sbtn[disabled] { opacity: .3; pointer-events: none; }

.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 6px; }
.pl-card { text-align: left; padding: 10px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; transition: border-color .2s, transform .15s; }
.pl-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.pl-cover { aspect-ratio: 1; border-radius: 12px; overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; background: linear-gradient(140deg, #7c3aed, #2e1065); margin-bottom: 10px; }
.pl-cover img { width: 100%; height: 100%; object-fit: cover; }
.pl-cover.one { grid-template-columns: 1fr; }
.pl-cover.none { display: grid; place-items: center; grid-template-columns: 1fr; color: var(--gold-2); }
.pl-cover.none svg { width: 36px; height: 36px; }
.pl-cover.fav { background: linear-gradient(140deg, #f0abfc, #7c3aed); }
.pl-card b { display: block; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-card span { font-size: .8rem; color: var(--muted); }
.pl-card.new { display: grid; place-items: center; text-align: center; border-style: dashed; color: var(--gold-2); min-height: 150px; }
.pl-card.new svg { width: 30px; height: 30px; margin: 0 auto 6px; }
.pl-detail-head { display: flex; align-items: center; gap: 12px; padding: 4px 8px 12px; flex-wrap: wrap; }
.pl-detail-head h3 { margin: 0; font-family: var(--display); font-size: 1.15rem; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.result-actions { display: flex; gap: 4px; }

/* login */
.login-wrap { min-height: calc(100vh - 68px); display: grid; place-items: center; padding: 32px 16px; }
.login-card { width: min(460px, 100%); padding: 40px 32px; text-align: center; position: relative; }
.login-card::before { content: ""; position: absolute; inset: -60px; z-index: -1; background: radial-gradient(closest-side, rgba(139, 92, 246, .35), transparent); filter: blur(20px); }
.login-card img.logo { width: 72px; height: 72px; margin: 0 auto 18px; filter: drop-shadow(0 10px 30px rgba(139, 92, 246, .6)); }
.login-card h1 { font-family: var(--display); margin: 0 0 8px; font-size: 1.7rem; letter-spacing: -.02em; }
.login-card p { color: var(--text-2); margin: 0 0 26px; }
.login-card .btn { width: 100%; padding: 1em; font-size: 1.02rem; }
.login-card .fine { font-size: .8rem; color: var(--muted); margin: 18px 0 0; }
.login-card .alt { margin-top: 12px; }

.user-chip { display: flex; align-items: center; gap: 10px; padding: 4px 6px 4px 4px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); }
.user-chip img { width: 32px; height: 32px; border-radius: 50%; }
.user-chip b { font-size: .9rem; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip button { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 6px; border-radius: 50%; display: grid; place-items: center; }
.user-chip button:hover { color: var(--danger); background: var(--surface-2); }
.user-chip svg { width: 18px; height: 18px; }
@media (max-width: 560px) { .user-chip b { display: none; } }

.demo-banner { background: linear-gradient(90deg, rgba(245, 196, 81, .16), rgba(139, 92, 246, .16)); border-bottom: 1px solid var(--border); text-align: center; padding: 8px 16px; font-size: .88rem; color: var(--gold-2); }
.demo-banner a { color: var(--cream); font-weight: 600; text-decoration: underline; }

/* avisos */
.toasts { position: fixed; z-index: 90; bottom: 20px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); pointer-events: none; }
.toast { pointer-events: auto; padding: 12px 16px; border-radius: 14px; background: rgba(23, 14, 41, .96); border: 1px solid var(--border-strong); box-shadow: var(--shadow); font-size: .93rem; display: flex; gap: 10px; align-items: center; animation: tin .25s ease; }
.toast.err { border-color: rgba(251, 113, 133, .5); }
.toast.ok { border-color: rgba(245, 196, 81, .45); }
.toast svg { width: 18px; height: 18px; flex: none; }
.toast.err svg { color: var(--danger); } .toast.ok svg { color: var(--gold); }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }

.modal-back { position: fixed; inset: 0; z-index: 80; background: rgba(5, 2, 12, .7); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: tin .2s ease; }
.modal { width: min(420px, 100%); padding: 24px; }
.modal h3 { margin: 0 0 14px; font-family: var(--display); }
.modal p { color: var(--text-2); margin: 0; }
.modal input[type=text] { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface-2); outline: none; }
.modal input[type=text]:focus { border-color: var(--purple-2); }
.modal .pick { display: grid; gap: 6px; max-height: 300px; overflow-y: auto; margin-bottom: 4px; }
.modal .pick button { text-align: left; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; display: flex; justify-content: space-between; gap: 10px; }
.modal .pick button:hover { border-color: var(--gold); }
.modal .pick span { color: var(--muted); font-size: .85rem; }
.modal .row-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

.skeleton { background: linear-gradient(90deg, var(--surface) 25%, var(--surface-3) 50%, var(--surface) 75%); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }
.sk-line { width: 220px; height: 20px; }

@media (max-width: 760px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .rail { position: sticky; top: 68px; z-index: 30; height: auto; flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 10px 16px; border-right: 0; border-bottom: 1px solid var(--border); background: rgba(10, 6, 19, .9); backdrop-filter: blur(12px); }
  .rail-label { display: none; }
  .guild-btn { width: 46px; height: 46px; }
  .player-top { grid-template-columns: 96px minmax(0, 1fr); gap: 14px; }
  .controls { gap: 4px; }
  .ibtn { width: 40px; height: 40px; }
  .search { flex-direction: column; }
  .row { grid-template-columns: 22px 40px minmax(0, 1fr) auto; gap: 8px; padding: 8px 6px; }
  .row .thumb { width: 40px; height: 40px; }
}
@media (max-width: 420px) {
  .player-top { grid-template-columns: 1fr; }
  .cover { max-width: 220px; margin: 0 auto; }
  .track-meta { text-align: center; }
}

/* ---------- App de Android ---------- */
.apk-info { color: var(--muted); font-size: .9rem; margin-top: 14px; }
.phone { margin: 0; border-radius: 34px; padding: 9px; background: linear-gradient(160deg, #2a1a4a, #120a22); box-shadow: var(--shadow), 0 30px 80px -30px rgba(139, 92, 246, .55); }
.phone img { display: block; width: 100%; height: auto; border-radius: 26px; aspect-ratio: 9 / 20; object-fit: cover; }
.phones { position: relative; display: flex; justify-content: center; align-items: center; min-height: 520px; }
.phones .phone { width: min(250px, 46%); }
.phones .front { position: relative; z-index: 2; transform: translateX(18%) rotate(3deg); }
.phones .back { position: absolute; z-index: 1; transform: translateX(-38%) rotate(-6deg) scale(.92); opacity: .8; }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.gallery figcaption { text-align: center; color: var(--text-2); font-weight: 600; font-size: .9rem; padding: 12px 0 4px; }
.app-band { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.app-band .phones { min-height: 440px; }
.app-band .phones .phone { width: min(210px, 44%); }
@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-band { grid-template-columns: 1fr; }
  .phones { min-height: 420px; margin-top: 12px; }
}
@media (max-width: 480px) { .gallery { gap: 12px; } .phone { border-radius: 24px; padding: 6px; } .phone img { border-radius: 19px; } }
.app-band h2 { font-family: var(--display); font-size: clamp(1.8rem, 3.4vw, 2.5rem); letter-spacing: -.03em; line-height: 1.12; margin: 14px 0; }
.app-band p { color: var(--text-2); }
@media (min-width: 1001px) { .features.six { grid-template-columns: repeat(3, 1fr); } }
