/* ==========================================================================
   abba.app — sitio comercial
   Tokens, base, componentes y secciones. Dark por defecto, light opcional.
   ========================================================================== */

:root {
  --bg: #0b0c17;
  --bg-2: #0f1022;
  --surface: #151a2c;
  --surface-2: #1b2136;
  --surface-3: #232a47;
  --border: rgba(255, 255, 255, .08);
  --border-2: rgba(255, 255, 255, .14);
  --text: #f4f3fb;
  --text-2: #b7b6cd;
  --text-3: #7f7e9c;

  --p: #8b5cf6;
  --p2: #7c3aed;
  --p-soft: #a78bfa;
  --p-deep: #4c1d95;
  --p-glow: rgba(124, 58, 237, .55);
  --teal: #2dd4bf;
  --amber: #f59e0b;
  --green: #22c55e;
  --sky: #38bdf8;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Montserrat', 'Inter', system-ui, sans-serif;
  --mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --nav-h: 72px;

  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --ease-soft: cubic-bezier(.22, .61, .36, 1);

  --shadow-card: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 24px 60px -28px rgba(0, 0, 0, .7);
  --shadow-pop: 0 30px 80px -30px rgba(0, 0, 0, .8);
  --glass: rgba(11, 12, 23, .78);
}

[data-theme="light"] {
  --bg: #f7f6fd;
  --bg-2: #efedfa;
  --surface: #ffffff;
  --surface-2: #f2f0fc;
  --surface-3: #e9e5fb;
  --border: rgba(23, 21, 58, .09);
  --border-2: rgba(23, 21, 58, .16);
  --text: #17153a;
  --text-2: #4b4970;
  --text-3: #7e7ca3;
  --p-soft: #7c3aed;
  --p-glow: rgba(124, 58, 237, .32);
  --teal: #0d9488;
  --amber: #d97706;
  --sky: #0284c7;
  --shadow-card: 0 20px 50px -28px rgba(23, 21, 58, .3);
  --shadow-pop: 0 30px 80px -34px rgba(23, 21, 58, .35);
  --glass: rgba(247, 246, 253, .82);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s ease, color .4s ease;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -.02em; color: var(--text); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { color: var(--text); font-weight: 700; }
::selection { background: rgba(139, 92, 246, .4); }

:focus-visible { outline: 2px solid var(--p-soft); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--p2); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ---------- reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .85s var(--ease-out), transform .85s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-d="1"] { --d: 1; } [data-d="2"] { --d: 2; } [data-d="3"] { --d: 3; }
[data-d="4"] { --d: 4; } [data-d="5"] { --d: 5; }

/* ---------- layout ---------- */
.section { position: relative; padding: clamp(84px, 9vw, 136px) 0; }
.section-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section-inner-narrow { max-width: 860px; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.kicker {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}
.kicker-center { display: block; text-align: center; }
.section-title {
  font-size: clamp(2rem, 3.9vw, 3.15rem);
  line-height: 1.1;
  text-wrap: balance;
}
.section-sub {
  margin-top: 18px;
  font-size: 1.125rem; line-height: 1.65;
  color: var(--text-2);
  text-wrap: pretty;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 12px;
  font-weight: 700; font-size: .95rem; line-height: 1; white-space: nowrap;
  transition: transform .18s var(--ease-out), box-shadow .3s var(--ease-out), background-color .2s ease, border-color .2s ease;
}
.btn:active { transform: scale(.97); transition-duration: .1s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary {
  background: var(--p2); color: #fff;
  box-shadow: 0 10px 28px -10px rgba(124, 58, 237, .65);
}
.btn-primary:hover { background: var(--p); transform: translateY(-2px); box-shadow: 0 18px 38px -12px rgba(124, 58, 237, .75); }
.btn-ghost {
  background: rgba(139, 92, 246, .08); border: 1px solid var(--border-2); color: var(--text);
}
.btn-ghost:hover { background: rgba(139, 92, 246, .16); border-color: rgba(139, 92, 246, .5); transform: translateY(-2px); }
.btn-lg { padding: 16px 26px; font-size: 1rem; border-radius: 14px; }
.btn-nav { padding: 11px 18px; border-radius: 11px; font-size: .9rem; }
.w100 { width: 100%; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 10px;
  display: inline-grid; place-items: center;
  color: var(--text-2); border: 1px solid var(--border);
  background: rgba(139, 92, 246, .06);
  transition: color .2s ease, background-color .2s ease, transform .16s var(--ease-out);
}
.icon-btn:hover { color: var(--text); background: rgba(139, 92, 246, .16); }
.icon-btn:active { transform: scale(.94); }
#theme-toggle { color: var(--amber); border-color: rgba(139, 92, 246, .35); }
[data-theme="light"] #theme-toggle { color: var(--p2); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  transition: background-color .4s ease, box-shadow .4s ease;
}
.nav.is-scrolled, .nav.is-open {
  background: var(--glass);
  box-shadow: 0 1px 0 var(--border);
}
@supports (backdrop-filter: blur(14px)) {
  .nav.is-scrolled, .nav.is-open { backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); }
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 24px; height: 100%;
  display: flex; align-items: center; gap: 24px;
}
.nav-logo img { width: 128px; height: auto; }
.nav-links { display: flex; gap: 6px; margin: 0 auto; }
.nav-links a {
  position: relative; padding: 8px 12px; font-weight: 600; font-size: .95rem; color: var(--text); white-space: nowrap;
  border-radius: 8px; transition: color .2s ease;
}
.nav-links a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px;
  background: var(--p-soft); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a.is-current::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.nav-text-link {
  display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .92rem; color: var(--text-2);
  padding: 8px 6px; transition: color .2s ease;
}
.nav-text-link:hover { color: var(--text); }
.menu-toggle { display: none; }
.nav-mobile {
  position: absolute; top: var(--nav-h); left: 0; right: 0;
  padding: 8px 24px 24px; display: flex; flex-direction: column; gap: 4px;
  background: var(--bg); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .7);
  border-bottom: 1px solid var(--border);
}
.nav-mobile a:not(.btn) { padding: 12px 8px; font-weight: 600; font-size: 1.05rem; border-bottom: 1px solid var(--border); }
.nav-mobile .btn { margin-top: 14px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(48px, 8vh, 96px)) 0 clamp(64px, 8vh, 96px);
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: clip;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(124, 58, 237, .10), transparent 60%),
    var(--bg);
}
.hero-glow {
  position: absolute; top: 50%; left: 68%;
  width: min(80vw, 820px); height: min(80vw, 820px);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at center, rgba(124, 58, 237, .78) 0%, rgba(124, 58, 237, .38) 26%, rgba(124, 58, 237, .1) 50%, transparent 68%);
  filter: blur(30px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: 1180px; width: 100%; margin: 0 auto; padding: 0 24px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 32px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(56, 189, 248, .14); color: #bfe6ff;
  border: 1px solid rgba(56, 189, 248, .3);
  font-size: .82rem; font-weight: 600;
  margin-bottom: 22px;
}
[data-theme="light"] .hero-badge { background: rgba(2, 132, 199, .1); color: #0369a1; border-color: rgba(2, 132, 199, .25); }
.hero-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sky); box-shadow: 0 0 0 3px rgba(56, 189, 248, .25); }
.hero-title {
  font-size: clamp(2.3rem, 3.65vw, 3.4rem);
  line-height: 1.08;
  max-width: 19.5ch;
  text-wrap: balance;
}
.hero-sub {
  margin-top: 24px;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.6;
  color: var(--text-2);
  max-width: 52ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--text-2); font-weight: 500; }
.hero-trust svg { color: var(--green); stroke: none; }

.hero-visual { position: relative; min-height: 560px; }
.hero-stage {
  position: relative; height: 600px; width: 100%;
  perspective: 1500px;
}
.hero-stage .phone { position: absolute; will-change: transform; }
.phone-a { left: 6%; top: 44px; --pw: 268px; transform: rotateY(14deg) rotateX(3deg) rotateZ(-7deg); }
.phone-b { right: 2%; top: 4px; --pw: 240px; transform: rotateY(-18deg) rotateX(2deg) rotateZ(8deg); }
.hero-stage.is-ready .phone {
  transform:
    translate3d(var(--tx, 0px), var(--ty, 0px), 0)
    rotateY(calc(var(--by) + var(--ry, 0deg)))
    rotateX(calc(var(--bx) + var(--rx, 0deg)))
    rotateZ(var(--bz));
}
.phone-a { --by: 14deg; --bx: 3deg; --bz: -7deg; }
.phone-b { --by: -18deg; --bx: 2deg; --bz: 8deg; }
.hero-stage .phone::after { content: none; }

@keyframes phoneIn {
  from { opacity: 0; transform: translateY(40px) scale(.96); }
  to { opacity: 1; transform: none; }
}
.hero-stage { animation: phoneIn 1.1s var(--ease-out) both; animation-delay: .15s; }

/* ---------- phone frame ---------- */
.phone {
  --pw: 280px;
  --ph-bg: #0d0c14; --ph-bg2: #191728; --ph-bg3: #201e32;
  --ph-border: #2a2740; --ph-border2: #3a3660;
  --ph-text: #e8e6f5; --ph-text2: #a09dc0; --ph-text3: #6b689a;
  --ph-p: #8b5cf6; --ph-p-soft: #a78bfa;
  position: relative;
  width: var(--pw); height: calc(var(--pw) * 2.08);
  font-size: calc(var(--pw) / 26);
  font-family: var(--font);
  border-radius: calc(var(--pw) * .165);
  background: linear-gradient(160deg, #2b2c36, #14151c 60%, #1e1f28);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .10),
    0 0 0 4px #0a0a0f,
    0 0 0 5px rgba(255, 255, 255, .06),
    0 40px 80px -24px rgba(0, 0, 0, .85),
    0 0 60px -10px rgba(124, 58, 237, .25);
  transform-style: preserve-3d;
  line-height: 1.35;
  color: var(--ph-text);
  user-select: none;
}
.phone::before {
  content: ""; position: absolute; z-index: 5;
  top: calc(var(--pw) * .052); left: 50%; transform: translateX(-50%);
  width: calc(var(--pw) * .3); height: calc(var(--pw) * .078);
  background: #05050a; border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.phone::after {
  content: ""; position: absolute;
  right: calc(var(--pw) * -.014); top: 24%;
  width: calc(var(--pw) * .014); height: 12%;
  background: #2a2b34; border-radius: 0 3px 3px 0;
}
.phone-screen {
  position: absolute; inset: calc(var(--pw) * .028);
  border-radius: calc(var(--pw) * .14);
  overflow: hidden;
  background: var(--ph-bg);
  transform: translateZ(1px);
}
.phone-screen::after {
  content: ""; position: absolute; left: 50%; bottom: calc(var(--pw) * .025); transform: translateX(-50%);
  width: 36%; height: calc(var(--pw) * .016); border-radius: 999px; background: rgba(255, 255, 255, .55); z-index: 6;
}
.scr { position: absolute; inset: 0; background: var(--ph-bg); }
.scr[data-screen] {
  opacity: 0; transform: scale(.985);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
  pointer-events: none;
}
.scr[data-screen].is-on { opacity: 1; transform: none; }

/* splash */
.scr-splash { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2em;
  background: radial-gradient(70% 45% at 50% 45%, #1c1638 0%, var(--ph-bg) 70%); }
.splash-icon { width: 8.5em; height: 8.5em; filter: drop-shadow(0 0 1.6em rgba(139, 92, 246, .55)); }
.splash-word { font-family: var(--display); font-weight: 800; font-size: 2.6em; color: #fff; letter-spacing: -.02em; }
.splash-word span { color: var(--ph-p-soft); font-weight: 700; }

/* login */
.scr-login { display: flex; flex-direction: column; align-items: center; padding: 6.5em 2.2em 0; text-align: center; }
.login-icon { width: 4.6em; height: 4.6em; }
.login-word { font-family: var(--display); font-weight: 800; font-size: 1.9em; color: #fff; margin-top: .5em; letter-spacing: -.02em; }
.login-word span { color: var(--ph-p-soft); font-weight: 700; }
.login-kicker { font-size: .8em; letter-spacing: .18em; text-transform: uppercase; color: var(--ph-text3); margin: .6em 0 2.4em; font-weight: 600; }
.login-label { align-self: flex-start; font-size: .8em; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ph-text3); margin: 0 0 .5em .2em; }
.login-input {
  width: 100%; text-align: left; background: var(--ph-bg3); border: 1px solid var(--ph-border2);
  border-radius: .9em; padding: 1em 1.1em; font-size: 1.15em; color: var(--ph-text); margin-bottom: 1.3em;
}
.login-pin { display: flex; gap: .7em; align-items: center; height: 3.3em; }
.login-pin i { width: .75em; height: .75em; border-radius: 50%; background: var(--ph-p-soft); }
.login-btn {
  width: 100%; margin-top: .4em; background: var(--ph-p); color: #fff; font-weight: 700; font-size: 1.1em;
  border-radius: .9em; padding: 1.05em; display: flex; align-items: center; justify-content: center; gap: .5em;
  box-shadow: 0 .8em 2em -.8em rgba(139, 92, 246, .8);
}
.login-consent { display: flex; align-items: center; gap: .6em; margin-top: 1.6em; font-size: .85em; color: var(--ph-text2); }
.login-check { width: 1.3em; height: 1.3em; border-radius: .35em; background: var(--ph-p); flex: none; position: relative; }
.login-check::after { content: ""; position: absolute; left: .4em; top: .18em; width: .3em; height: .6em; border: solid #fff; border-width: 0 .18em .18em 0; transform: rotate(45deg); }

/* app chrome */
.scr-app { display: flex; flex-direction: column; }
.app-top {
  display: flex; align-items: center; gap: .55em;
  padding: 4.6em 1.3em 0; height: 8.2em; flex: none;
  border-bottom: 1px solid var(--ph-border);
}
.app-top img { width: 2em; height: 2em; }
.app-top b { font-family: var(--display); font-weight: 800; font-size: 1.25em; color: #fff; letter-spacing: -.02em; }
.app-top b span { color: var(--ph-p-soft); font-weight: 700; }
.app-avatar {
  margin-left: auto; width: 2.5em; height: 2.5em; border-radius: 50%; font-style: normal;
  background: var(--ph-p); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 1em;
}
.app-body { padding: 1.4em 1.3em 7em; flex: 1; overflow: hidden; }
.app-h1 { font-family: var(--display); font-weight: 800; font-size: 2em; color: #fff; letter-spacing: -.02em; }
.app-greet { font-family: var(--display); font-weight: 800; font-size: 1.85em; color: #fff; letter-spacing: -.02em; }
.app-greet-sub { font-size: .95em; color: var(--ph-text3); margin: .3em 0 1.3em; }
.app-next {
  background: linear-gradient(180deg, #1e1a3a, #191728); border: 1px solid #3b2f6e;
  border-radius: 1.2em; padding: 1.2em 1.3em; box-shadow: 0 0 2.5em -.8em rgba(139, 92, 246, .5);
}
.app-next-head { display: flex; justify-content: space-between; align-items: center; font-size: .72em; letter-spacing: .14em; text-transform: uppercase; color: var(--ph-p-soft); font-weight: 700; }
.app-next-head em { font-style: normal; background: rgba(20, 184, 166, .16); color: #5eead4; border: 1px solid rgba(20, 184, 166, .35); padding: .35em .8em; border-radius: 999px; letter-spacing: .1em; }
.app-next-title { font-family: var(--display); font-weight: 800; font-size: 1.5em; color: #fff; margin: .55em 0 .5em; }
.app-next-meta { display: flex; align-items: center; gap: .5em; font-size: .92em; color: var(--ph-text2); margin-top: .25em; }
.app-next-meta svg { color: var(--ph-p-soft); }
.app-next-foot { display: flex; align-items: center; gap: .5em; margin-top: 1em; font-size: .9em; color: var(--ph-text2); }
.app-next-foot b { margin-left: auto; background: var(--ph-p); color: #fff; font-weight: 700; padding: .55em 1em; border-radius: .7em; font-size: .9em; }
.dot-live { width: .6em; height: .6em; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 .3em rgba(34, 197, 94, .2); }
.app-aviso {
  margin-top: 1em; background: rgba(245, 158, 11, .07); border: 1px solid rgba(245, 158, 11, .35);
  border-radius: 1em; padding: 1em 1.1em; font-size: .95em; color: var(--ph-text); line-height: 1.4;
}
.app-aviso-head { color: #fbbf24; font-weight: 700; font-size: .95em; margin-bottom: .3em; }
.app-aviso small { display: block; color: var(--ph-text3); font-size: .85em; margin-top: .5em; }
.app-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .8em; margin-top: 1em; }
.app-tile {
  position: relative; background: var(--ph-bg2); border: 1px solid var(--ph-border); border-radius: 1em; padding: 1.1em;
}
.app-tile svg { color: var(--ph-p-soft); width: 1.5em; height: 1.5em; margin-bottom: 1.2em; background: rgba(139, 92, 246, .15); border-radius: .5em; padding: .3em; box-sizing: content-box; }
.app-tile b { display: block; font-weight: 700; color: #fff; font-size: 1.05em; }
.app-tile span { display: block; color: var(--ph-text3); font-size: .8em; margin-top: .15em; }
.tile-badge { position: absolute; top: .8em; right: .8em; background: #f59e0b; color: #1a0f00; font-style: normal; font-weight: 800; font-size: .8em; width: 1.7em; height: 1.7em; border-radius: 50%; display: grid; place-items: center; }
.app-nav {
  position: absolute; left: 0; right: 0; bottom: 0; height: 6.4em; padding: .8em 1em 1.6em;
  background: var(--ph-bg); border-top: 1px solid var(--ph-border);
  display: flex; align-items: center; justify-content: space-around;
}
.app-nav i { position: relative; width: 3.6em; height: 3em; display: grid; place-items: center; border-radius: 1em; color: var(--ph-text3); font-style: normal; }
.app-nav i svg { width: 1.7em; height: 1.7em; }
.app-nav i.on { background: rgba(139, 92, 246, .22); color: #fff; box-shadow: 0 0 1.6em -.4em rgba(139, 92, 246, .8); }
.app-nav i b { position: absolute; top: .1em; right: .3em; background: #f59e0b; color: #1a0f00; font-size: .7em; font-weight: 800; width: 1.7em; height: 1.7em; border-radius: 50%; display: grid; place-items: center; }

.app-chip-row { display: flex; flex-wrap: wrap; gap: .5em; margin-bottom: 1em; }
.chip { display: inline-flex; align-items: center; background: var(--ph-bg3); border: 1px solid var(--ph-border); color: var(--ph-text2); border-radius: 999px; padding: .35em .9em; font-size: .85em; font-weight: 600; }
.chip-key { color: var(--ph-p-soft); border-color: rgba(139, 92, 246, .45); background: rgba(139, 92, 246, .12); font-family: var(--mono); }
.chip-p { color: var(--ph-p-soft); }
.chip-new { color: #4ade80; border-color: rgba(34, 197, 94, .4); background: rgba(34, 197, 94, .1); }
.chip-teal { color: #5eead4; border-color: rgba(20, 184, 166, .4); background: rgba(20, 184, 166, .1); }
.song-head { display: flex; align-items: center; gap: .9em; margin-bottom: .9em; }
.song-art {
  flex: none; width: 3.6em; height: 3.6em; border-radius: .9em; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 1em; color: #fff;
  background: linear-gradient(135deg, #7c3aed, #ec4899 120%);
}
.song-art.alt { background: linear-gradient(135deg, #0ea5e9, #8b5cf6 120%); }
.song-art-lg { width: 4.4em; height: 4.4em; font-size: 1.1em; }
.song-art-sm { width: 2.6em; height: 2.6em; font-size: .8em; border-radius: .6em; }
.song-title { font-weight: 700; color: #fff; font-size: 1.2em; line-height: 1.2; }
.song-artist { color: var(--ph-text3); font-size: .9em; margin-top: .2em; }
.song-star { margin-left: auto; color: var(--ph-text3); flex: none; }
.ens-tools { display: flex; gap: .5em; margin-bottom: 1.1em; }
.ens-tools span { flex: 1; text-align: center; background: var(--ph-bg3); border: 1px solid var(--ph-border); border-radius: .7em; padding: .55em 0; font-size: .85em; font-weight: 700; color: var(--ph-text2); display: flex; align-items: center; justify-content: center; gap: .4em; }
.ens-metro { color: var(--ph-p-soft) !important; border-color: rgba(139, 92, 246, .4) !important; }
.metro-dot { width: .6em; height: .6em; border-radius: 50%; background: var(--ph-p-soft); animation: metro .714s ease-out infinite; }
@keyframes metro { 0% { transform: scale(1.4); opacity: 1; } 60%, 100% { transform: scale(.8); opacity: .45; } }

/* lyric with chords: chords sit at their static inline position */
.lyric { font-size: 1.05em; color: var(--ph-text); }
.lyric-tag { display: inline-block; font-size: .7em; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ph-p-soft); background: rgba(139, 92, 246, .12); border-radius: .5em; padding: .3em .8em; margin: .7em 0 .55em; }
.lyric-tag:first-child { margin-top: 0; }
.ll { position: relative; white-space: nowrap; margin-bottom: .3em; line-height: 1.35; }
.lyric-chords .ll { padding-top: 1.25em; margin-bottom: .45em; }
.c { display: none; position: absolute; top: 0; font-family: var(--mono); font-weight: 600; color: var(--ph-p-soft); font-size: .88em; line-height: 1; letter-spacing: 0; }
.lyric-chords .c { display: inline; }

/* cola de reproducción */
.cola-head { display: flex; gap: .6em; margin: .9em 0 1em; }
.cola-play { flex: 1; display: flex; align-items: center; justify-content: center; gap: .5em; background: var(--ph-p); color: #fff; font-weight: 700; border-radius: .8em; padding: .75em; font-size: .95em; }
.cola-shuffle { display: flex; align-items: center; gap: .45em; border: 1px solid var(--ph-border2); color: var(--ph-text2); border-radius: .8em; padding: .75em 1em; font-size: .9em; font-weight: 600; }
.cola-list { display: grid; gap: .5em; }
.cola-item { display: flex; align-items: center; gap: .8em; background: var(--ph-bg2); border: 1px solid var(--ph-border); border-radius: .9em; padding: .65em .9em; }
.cola-item b { display: block; color: #fff; font-size: .98em; line-height: 1.2; }
.cola-item div > span { color: var(--ph-text3); font-size: .8em; }
.cola-item em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: .8em; color: var(--ph-text3); }
.cola-item.is-playing { border-color: rgba(139, 92, 246, .55); background: rgba(139, 92, 246, .12); }
.eq { margin-left: auto; display: flex; align-items: flex-end; gap: .22em; height: 1.3em; }
.eq b { width: .3em; height: .5em; background: var(--ph-p-soft); border-radius: .15em; }
.scr-cola.is-on .eq b { animation: eq .9s ease-in-out infinite; }
.eq b:nth-child(2) { animation-delay: .25s; } .eq b:nth-child(3) { animation-delay: .5s; }
@keyframes eq { 0%, 100% { height: .45em; } 50% { height: 1.3em; } }
.cola-player {
  position: absolute; left: .9em; right: .9em; bottom: 7.2em; z-index: 4;
  background: linear-gradient(180deg, #221c46, #191728); border: 1px solid #3b2f6e; border-radius: 1.1em; padding: .9em 1em;
  box-shadow: 0 1.2em 2.4em -.8em rgba(0, 0, 0, .85), 0 0 2em -.6em rgba(139, 92, 246, .6);
}
.cola-player-head { display: flex; align-items: center; gap: .8em; }
.cola-pp { width: 2.6em; height: 2.6em; border-radius: 50%; background: var(--ph-p); display: grid; place-items: center; color: #fff; flex: none; }
.cola-player-head b { display: block; color: #fff; font-size: .95em; line-height: 1.2; }
.cola-player-head span { display: block; color: var(--ph-text3); font-size: .78em; }
.cola-player-head em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: .8em; color: var(--ph-text2); }
.cola-progress { height: .35em; background: var(--ph-bg3); border-radius: 1em; margin: .8em 0 .6em; overflow: hidden; }
.cola-progress i { display: block; height: 100%; width: 35%; background: var(--ph-p-soft); border-radius: 1em; }
.scr-cola.is-on .cola-progress i { animation: colaProg 28s linear infinite; }
@keyframes colaProg { from { width: 35%; } to { width: 100%; } }
.cola-ctrls { display: flex; justify-content: center; gap: 2.4em; color: var(--ph-text2); }
.cola-ctrls svg { width: 1.4em; height: 1.4em; }

/* lock screen */
.scr-lock {
  background: linear-gradient(180deg, #2a1a5e 0%, #120f2a 45%, #0a0912 100%);
  padding: 6.5em 1.2em 0; text-align: center;
}
.lock-time { font-family: var(--display); font-weight: 700; font-size: 5.4em; color: #fff; letter-spacing: -.03em; line-height: 1; }
.lock-date { font-size: 1.05em; color: rgba(255, 255, 255, .7); margin: .4em 0 2.4em; font-weight: 500; }
.notif {
  text-align: left; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 1.4em; padding: 1em 1.1em; margin-bottom: .8em; color: #fff;
  box-shadow: 0 1em 2em -1em rgba(0, 0, 0, .6);
}
@supports (backdrop-filter: blur(10px)) { .notif { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } }
.notif-head { display: flex; align-items: center; gap: .5em; font-size: .85em; color: rgba(255, 255, 255, .8); margin-bottom: .35em; }
.notif-head img { width: 1.6em; height: 1.6em; border-radius: .4em; background: #0d0c14; padding: .15em; }
.notif-head em { font-style: normal; margin-left: auto; color: rgba(255, 255, 255, .55); }
.notif b { display: block; font-weight: 700; font-size: 1em; }
.notif p { font-size: .92em; color: rgba(255, 255, 255, .78); line-height: 1.35; }
.scr-lock .notif { opacity: 0; transform: translateY(-14px) scale(.97); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.scr-lock.is-on .notif-1 { opacity: 1; transform: none; transition-delay: .2s; }
.scr-lock.is-on .notif-2 { opacity: 1; transform: none; transition-delay: .55s; }
.scr-lock.is-on .notif-3 { opacity: 1; transform: none; transition-delay: .9s; }

/* admin accordions (roles) */
.acc { background: var(--ph-bg2); border: 1px solid var(--ph-border); border-radius: .9em; margin-bottom: .6em; overflow: hidden; }
.acc.open { border-color: rgba(139, 92, 246, .5); }
.acc.warn { border-color: rgba(245, 158, 11, .5); }
.acc-head { display: flex; justify-content: space-between; align-items: center; padding: .8em 1em; font-weight: 700; font-size: .95em; color: #fff; }
.acc-head em { font-style: normal; font-family: var(--mono); font-size: .85em; color: #4ade80; }
.acc.warn .acc-head em { color: #fbbf24; }
.acc-body { display: flex; flex-wrap: wrap; gap: .5em; padding: 0 1em .9em; }
.pill { font-size: .8em; padding: .35em .8em; border-radius: 999px; border: 1px solid var(--ph-border2); color: var(--ph-text2); }
.pill.on { background: rgba(139, 92, 246, .2); border-color: var(--ph-p); color: #fff; }
.app-btn { margin-top: .6em; background: var(--ph-p); color: #fff; font-weight: 700; text-align: center; border-radius: .8em; padding: .9em; font-size: 1em; display: flex; align-items: center; justify-content: center; gap: .5em; }
.app-btn.ghost { background: transparent; border: 1px solid var(--ph-border2); color: var(--ph-text2); }
.app-toast { margin: .8em auto 1em; width: max-content; background: var(--ph-bg3); border: 1px solid var(--ph-border2); border-radius: .8em; padding: .55em 1.1em; font-size: .85em; font-weight: 600; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7em; }
.tool { background: var(--ph-bg2); border: 1px solid var(--ph-border); border-radius: 1em; padding: 1em; }
.tool svg { width: 1.6em; height: 1.6em; color: var(--ph-p-soft); background: rgba(139, 92, 246, .15); padding: .45em; box-sizing: content-box; border-radius: .6em; margin-bottom: 1em; }
.tool b { display: block; color: #fff; font-size: 1em; }
.tool span { display: block; color: var(--ph-text3); font-size: .78em; margin-top: .2em; line-height: 1.3; }

/* ---------- problema ---------- */
.section-problema { background: var(--bg); }
.problema-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.problema-card {
  position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 34px 26px 30px; text-align: center;
  box-shadow: var(--shadow-card);
  --rx: 0deg; --ry: 0deg;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease-out), border-color .3s ease;
}
.problema-card.is-revealed { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); }
.problema-card:hover { border-color: rgba(139, 92, 246, .45); transition-duration: .15s; }
.problema-icon {
  display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 18px;
  color: var(--p-soft);
}
.problema-icon svg { width: 52px; height: 52px; stroke-width: 1.8; filter: drop-shadow(0 0 14px rgba(139, 92, 246, .35)); }
.problema-card p { font-size: 1rem; line-height: 1.5; color: var(--text); font-weight: 500; text-wrap: pretty; }

/* ---------- tour ---------- */
.section-tour {
  background:
    radial-gradient(900px 500px at 85% 40%, rgba(124, 58, 237, .12), transparent 60%),
    var(--bg-2);
}
.tour { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.tour-steps { display: flex; flex-direction: column; }
.tour-step {
  min-height: 72vh; display: flex; flex-direction: column; justify-content: center;
  opacity: .32; transition: opacity .45s ease;
  padding-right: 24px;
}
.tour-step.is-active { opacity: 1; }
.tour-num { font-family: var(--mono); color: var(--p-soft); font-size: .95rem; font-weight: 500; letter-spacing: .1em; margin-bottom: 14px; }
.tour-step h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.15; margin-bottom: 14px; text-wrap: balance; }
.tour-step p { font-size: 1.1rem; color: var(--text-2); max-width: 46ch; line-height: 1.65; }
.tour-sticky {
  position: sticky; top: calc(var(--nav-h) + 24px);
  height: calc(100vh - var(--nav-h) - 48px); min-height: 640px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
}
.tour-glow {
  position: absolute; inset: 10% -10%; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, var(--p-glow), transparent 62%);
  filter: blur(30px); opacity: .7;
}
.phone-tour { --pw: 292px; position: relative; }
.tour-hint {
  position: absolute; right: -6px; top: 50%; transform: translateY(-50%);
  width: 112px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--text-2); font-size: .74rem; font-weight: 600; line-height: 1.3; text-align: center;
  transition: opacity .45s ease;
}
.tour-hint.is-hidden { opacity: 0; }
.tour-hint-mouse { stroke: var(--p-soft); stroke-width: 2; fill: none; animation: hintBob 2.4s ease-in-out infinite; }
.tour-hint .wheel { animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 65% { transform: translateY(9px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes hintBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@media (hover: none) {
  .tour-hint-mouse rect, .tour-hint .wheel { display: none; }
  .tour-hint-mouse { height: 40px; }
}
.tour-dots { display: flex; gap: 8px; position: relative; }
.tour-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--border-2); transition: background-color .3s ease, transform .3s var(--ease-out); }
.tour-dots i.on { background: var(--p-soft); transform: scale(1.3); }

/* ---------- funciones ---------- */
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center;
  margin-top: clamp(64px, 8vw, 110px);
}
.feature:first-of-type { margin-top: 16px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--p-soft); margin-bottom: 16px;
}
.eyebrow svg { width: 15px; height: 15px; }
.feature-copy h3 { font-size: clamp(1.6rem, 2.7vw, 2.3rem); line-height: 1.14; margin-bottom: 18px; text-wrap: balance; }
.feature-copy p { font-size: 1.08rem; color: var(--text-2); line-height: 1.65; text-wrap: pretty; }
.feature-copy p + p { margin-top: 14px; }
.feature-note {
  margin-top: 20px !important; display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: 12px; background: rgba(139, 92, 246, .08); border: 1px solid rgba(139, 92, 246, .22);
  font-size: .95rem !important; color: var(--text) !important;
}
.feature-note svg { flex: none; color: var(--p-soft); margin-top: 3px; }

.demo {
  position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 22px; box-shadow: var(--shadow-card);
  --ph-bg: var(--surface); --ph-bg2: var(--surface-2); --ph-bg3: var(--surface-3);
  --ph-border: var(--border); --ph-border2: var(--border-2);
  --ph-text: var(--text); --ph-text2: var(--text-2); --ph-text3: var(--text-3);
  --ph-p: var(--p); --ph-p-soft: var(--p-soft);
}
.demo .song-title { color: var(--text); }
.demo .song-art { color: #fff; }

/* demo youtube */
.demo-input {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg); border: 1px solid var(--border-2); border-radius: 14px; padding: 8px 8px 8px 14px;
  font-family: var(--mono); font-size: .9rem; color: var(--text-2); min-height: 52px;
}
.demo-yt-icon { color: #ff4d4d; flex: none; }
.demo-typed { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
.demo-caret { width: 2px; height: 18px; background: var(--p-soft); animation: caret 1s steps(2) infinite; flex: none; }
.demo-yt.is-done .demo-caret { display: none; }
@keyframes caret { 50% { opacity: 0; } }
.demo-btn {
  flex: none; background: var(--p2); color: #fff; font-weight: 700; padding: 10px 16px; border-radius: 10px; font-size: .9rem;
  transition: transform .16s var(--ease-out), background-color .2s ease;
}
.demo-btn:hover { background: var(--p); }
.demo-btn:active { transform: scale(.96); }
.demo-btn.is-busy { background: var(--surface-3); color: var(--text-3); pointer-events: none; }
.demo-steps { margin: 18px 0 0; display: grid; gap: 8px; }
.demo-steps li {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
  background: var(--surface-2); border: 1px solid transparent;
  opacity: .35; transform: translateX(-6px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out), border-color .3s ease;
  font-size: .92rem;
}
.demo-steps li.is-active { opacity: 1; transform: none; border-color: rgba(139, 92, 246, .3); }
.demo-steps li.is-done { opacity: 1; transform: none; }
.demo-steps li i {
  flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border-2); position: relative;
  transition: border-color .3s ease, background-color .3s ease;
}
.demo-steps li.is-active i { border-color: var(--p-soft); border-top-color: transparent; animation: spin .8s linear infinite; }
.demo-steps li.is-done i { border-color: var(--green); background: var(--green); animation: none; }
.demo-steps li.is-done i::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid #0b0c17; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.demo-steps li span { font-weight: 600; color: var(--text); }
.demo-steps li em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: .78rem; color: var(--text-3); text-align: right; }
@keyframes spin { to { transform: rotate(360deg); } }
.demo-result { margin-top: 18px; opacity: 0; transform: translateY(12px) scale(.98); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.demo-yt.is-done .demo-result { opacity: 1; transform: none; }
.song-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: 16px; font-size: 13px; }
.song-card .song-head { margin-bottom: 12px; }
.song-card .song-title { font-size: 1.15rem; }
.song-card .song-artist { font-size: .85rem; }
.song-lyric-preview { color: var(--text-2); font-size: .9rem; line-height: 1.6; margin: 4px 0 12px; }
.song-lyric-preview .lyric-tag { font-size: .68rem; margin: 6px 8px 4px 0; vertical-align: middle; }
.song-actions { display: flex; gap: 8px; }
.song-actions span { flex: 1; text-align: center; background: var(--surface-3); border: 1px solid var(--border); border-radius: 9px; padding: 8px 0; font-weight: 600; font-size: .85rem; color: var(--text-2); }
.demo-replay {
  display: none; margin: 14px auto 0; align-items: center; gap: 6px;
  font-size: .82rem; font-weight: 600; color: var(--text-3); padding: 6px 12px; border-radius: 8px;
  border: 1px solid var(--border); transition: color .2s ease, border-color .2s ease;
}
.demo-yt.is-done .demo-replay { display: inline-flex; }
.demo-replay:hover { color: var(--text); border-color: var(--border-2); }
.demo-replay:hover { color: var(--text); }
.demo-yt { padding-top: 22px; }
.demo-yt.is-done .demo-input { pointer-events: none; }

/* demo rol */
.demo-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 4px; }
.seg-btn { padding: 8px 16px; border-radius: 9px; font-weight: 600; font-size: .9rem; color: var(--text-2); transition: background-color .2s ease, color .2s ease, transform .16s var(--ease-out); }
.seg-btn:active { transform: scale(.97); }
.seg-btn.is-on { background: var(--p2); color: #fff; }
.demo-controls { display: inline-flex; align-items: center; gap: 6px; transition: opacity .3s ease; }
.demo-controls.is-hidden { opacity: .25; pointer-events: none; }
.ctl {
  min-width: 38px; height: 38px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border-2);
  font-weight: 700; font-size: 1.05rem; display: grid; place-items: center; color: var(--text);
  transition: background-color .2s ease, transform .16s var(--ease-out), border-color .2s ease;
}
.ctl:hover { background: var(--surface-3); border-color: rgba(139, 92, 246, .5); }
.ctl:active { transform: scale(.95); }
.ctl-wide { padding: 0 12px; font-family: var(--mono); font-size: .85rem; font-weight: 500; }
.key-badge {
  min-width: 46px; height: 38px; display: grid; place-items: center; font-family: var(--mono); font-weight: 600; font-size: 1.05rem;
  color: var(--p-soft); background: rgba(139, 92, 246, .12); border: 1px solid rgba(139, 92, 246, .45); border-radius: 10px;
}
.key-badge.is-bump { animation: bump .35s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.15); } }
.lyric-demo { font-size: 1.05rem; padding: 4px 4px 0; }
.lyric-demo .ll { white-space: normal; }
.lyric-demo.lyric-chords .ll { padding-top: 1.3em; }
.lyric-demo .c { transition: color .2s ease; }
.lyric-demo .c.is-swap { animation: chordSwap .32s var(--ease-out); }
@keyframes chordSwap { 0% { opacity: 0; transform: translateY(-4px); } 100% { opacity: 1; transform: none; } }
.demo-hint { margin-top: 16px; font-size: .85rem; color: var(--text-3); }

/* demo avisos */
.demo-avisos { padding: 26px; background: linear-gradient(180deg, rgba(42, 26, 94, .55), var(--surface) 70%); }
.notif-stack { display: grid; gap: 10px; font-size: 13.5px; }
.notif-stack .notif { margin: 0; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .12); }
[data-theme="light"] .notif-stack .notif { background: #fff; color: var(--text); border-color: var(--border); }
[data-theme="light"] .notif-stack .notif p, [data-theme="light"] .notif-stack .notif-head, [data-theme="light"] .notif-stack .notif-head em { color: var(--text-2); }
[data-theme="light"] .demo-avisos { background: linear-gradient(180deg, rgba(124, 58, 237, .12), var(--surface) 70%); }
.cal-event {
  margin-top: 16px; display: flex; gap: 14px; align-items: center;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 12px 14px;
}
.cal-date { flex: none; width: 54px; text-align: center; background: var(--bg); border-radius: 10px; padding: 6px 0; border: 1px solid var(--border); }
.cal-date b { display: block; font-family: var(--display); font-size: 1.4rem; line-height: 1; color: var(--text); }
.cal-date span { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--p-soft); font-weight: 700; margin-top: 3px; }
.cal-body b { display: block; font-size: .95rem; color: var(--text); }
.cal-body span { display: block; font-size: .82rem; color: var(--text-2); margin-top: 2px; }
.cal-body small { display: block; font-size: .78rem; color: var(--text-3); margin-top: 3px; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: clamp(64px, 8vw, 110px); }
.bento-card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow-card);
  transition: border-color .3s ease, transform .4s var(--ease-out);
}
.bento-card:hover { border-color: rgba(139, 92, 246, .35); transform: translateY(-3px); }
.bento-wide { grid-column: span 2; }
.bento-icon {
  display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  color: var(--p-soft); background: rgba(139, 92, 246, .12); border: 1px solid rgba(139, 92, 246, .22);
}
.bento-card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.bento-card p { color: var(--text-2); font-size: .98rem; line-height: 1.6; text-wrap: pretty; }
.bento-visual { margin-top: 18px; display: grid; gap: 8px; }
.hist-row, .rep-row {
  display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 8px 12px; font-size: .88rem; font-weight: 600; color: var(--text);
}
.hist-row em, .rep-row em { margin-left: auto; font-style: normal; font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; }
.hist-warn, .rep-warn { color: #fbbf24; background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .3); }
.hist-ok, .rep-ok { color: #4ade80; background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .3); }
[data-theme="light"] .hist-warn, [data-theme="light"] .rep-warn { color: #b45309; }
[data-theme="light"] .hist-ok, [data-theme="light"] .rep-ok { color: #15803d; }
.bento-offline { display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; font-size: .88rem; font-weight: 600; color: var(--text); flex-wrap: wrap; }
.bento-offline em { margin-left: auto; font-style: normal; font-size: .78rem; padding: 3px 9px; border-radius: 999px; color: #4ade80; background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .3); }
[data-theme="light"] .bento-offline em { color: #15803d; }
.off-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); flex: none; }

/* ---------- roles ---------- */
.section-roles { background: var(--bg-2); }
.roles-tabs { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-bottom: 40px; }
.role-tab {
  padding: 11px 20px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--text-2);
  border: 1px solid var(--border); background: var(--surface);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .16s var(--ease-out);
}
.role-tab:hover { color: var(--text); border-color: var(--border-2); }
.role-tab:active { transform: scale(.97); }
.role-tab.is-on { background: var(--p2); border-color: var(--p2); color: #fff; }
.role-panel {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 80px); align-items: center;
  animation: panelIn .45s var(--ease-out);
}
.role-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.role-copy h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); line-height: 1.2; margin-bottom: 22px; text-wrap: balance; }
.role-list { display: grid; gap: 12px; }
.role-list li { position: relative; padding-left: 30px; font-size: 1.05rem; color: var(--text-2); line-height: 1.5; }
.role-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(139, 92, 246, .16); border: 1px solid rgba(139, 92, 246, .45);
}
.role-list li::after {
  content: ""; position: absolute; left: 6px; top: 8px; width: 4px; height: 8px;
  border: solid var(--p-soft); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.role-phone { display: flex; justify-content: center; position: relative; }
.role-phone::before {
  content: ""; position: absolute; inset: 0 10%; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, var(--p-glow), transparent 65%); filter: blur(30px); opacity: .6;
}
.phone-sm { --pw: 250px; position: relative; }

/* ---------- herramientas ---------- */
.tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tool-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px;
  box-shadow: var(--shadow-card); transition: border-color .3s ease, transform .4s var(--ease-out);
}
.tool-card:hover { border-color: rgba(45, 212, 191, .4); transform: translateY(-3px); }
.tool-icon {
  display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  color: var(--p-soft); background: rgba(139, 92, 246, .12); border: 1px solid rgba(139, 92, 246, .22);
}
.tool-card h3 { font-size: 1.3rem; margin-bottom: 10px; }
.tool-card p { color: var(--text-2); font-size: .98rem; line-height: 1.6; }

/* ---------- comparación ---------- */
.compare { border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-card); }
.compare-row { display: grid; grid-template-columns: 1.05fr 1fr 1.1fr; border-top: 1px solid var(--border); }
.compare-row:first-child { border-top: 0; }
.compare-row > span { padding: 18px 20px; font-size: .95rem; line-height: 1.5; color: var(--text-2); }
.compare-row > span:first-child { font-weight: 700; color: var(--text); }
.compare-head > span { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); padding-top: 16px; padding-bottom: 16px; background: var(--surface-2); }
.compare-abba { background: rgba(139, 92, 246, .08); color: var(--text) !important; font-weight: 500; border-left: 1px solid rgba(139, 92, 246, .25); }
.compare-head .compare-abba { color: var(--p-soft) !important; }

/* ---------- misión ---------- */
.section-mision {
  background:
    radial-gradient(800px 400px at 50% 50%, rgba(124, 58, 237, .12), transparent 70%),
    var(--bg);
  text-align: center;
}
.mision-text {
  font-family: var(--display); font-weight: 700; letter-spacing: -.015em;
  font-size: clamp(1.35rem, 2.6vw, 2.05rem); line-height: 1.4; color: var(--text);
  text-wrap: pretty; margin-top: 8px;
}
.mision-text strong { color: var(--p-soft); }
.mision-text .w { display: inline-block; transition: opacity .25s ease; }

/* ---------- pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px 28px; box-shadow: var(--shadow-card); }
.step-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; margin-bottom: 18px;
  background: var(--p2); color: #fff; font-family: var(--display); font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 8px 20px -8px rgba(124, 58, 237, .8);
}
.step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.step p { color: var(--text-2); line-height: 1.6; }

/* ---------- precio ---------- */
.section-pricing { background: var(--bg-2); }
.price-card {
  max-width: 520px; margin: 0 auto; background: var(--surface); border: 1px solid rgba(139, 92, 246, .3); border-radius: 28px;
  padding: 36px; text-align: center; position: relative; box-shadow: var(--shadow-pop);
}
.price-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: 29px; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(139, 92, 246, .6), transparent 40%, transparent 60%, rgba(45, 212, 191, .4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.price-toggle { display: inline-flex; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 4px; margin-bottom: 26px; }
.price-toggle-btn { padding: 9px 18px; border-radius: 9px; font-weight: 600; font-size: .92rem; color: var(--text-2); display: inline-flex; align-items: center; gap: 8px; transition: background-color .2s ease, color .2s ease; }
.price-toggle-btn.is-on { background: var(--p2); color: #fff; }
.price-toggle-btn em { font-style: normal; font-size: .7rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(34, 197, 94, .15); color: #4ade80; }
.price-toggle-btn.is-on em { background: rgba(255, 255, 255, .2); color: #fff; }
.price-amount { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.price-currency { font-weight: 700; color: var(--text-3); font-size: 1rem; }
.price-number { font-family: var(--display); font-weight: 800; font-size: clamp(3rem, 6vw, 4.2rem); letter-spacing: -.03em; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.price-period { color: var(--text-2); font-weight: 600; }
.price-hint { margin-top: 8px; color: var(--text-3); font-size: .9rem; min-height: 1.4em; }
.price-features { margin: 26px 0 26px; display: grid; gap: 12px; text-align: left; }
.price-features li { display: flex; align-items: flex-start; gap: 12px; color: var(--text); font-size: .98rem; line-height: 1.45; }
.price-features svg { flex: none; color: var(--p-soft); stroke: none; margin-top: 2px; }
.price-foot { margin-top: 16px; font-size: .84rem; color: var(--text-3); line-height: 1.5; }

/* ---------- instalar ---------- */
.install-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 900px; margin: 0 auto; }
.install-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-card); }
.install-card h3 { font-size: 1.35rem; margin-bottom: 16px; }
.install-card ol { list-style: none; counter-reset: paso; display: grid; gap: 10px; }
.install-card ol li { position: relative; padding-left: 38px; color: var(--text-2); line-height: 1.5; counter-increment: paso; }
.install-card ol li::before {
  content: counter(paso); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: var(--p-soft);
  background: rgba(139, 92, 246, .12); border: 1px solid rgba(139, 92, 246, .3);
}
.install-note { margin-top: 16px; font-size: .88rem; color: var(--text-3); line-height: 1.5; }
.install-warn {
  max-width: 900px; margin: 22px auto 0; display: flex; gap: 14px; align-items: flex-start;
  background: rgba(34, 197, 94, .07); border: 1px solid rgba(34, 197, 94, .25); border-radius: 14px; padding: 16px 18px;
  color: var(--text-2); line-height: 1.55; font-size: .95rem;
}
.install-warn svg { flex: none; color: #4ade80; margin-top: 2px; }
[data-theme="light"] .install-warn svg { color: #15803d; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: border-color .3s ease; }
.faq-item.is-open { border-color: rgba(139, 92, 246, .4); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left;
  padding: 20px 22px; font-weight: 600; font-size: 1.05rem; color: var(--text);
}
.faq-q svg { flex: none; color: var(--text-3); transition: transform .3s var(--ease-out), color .2s ease; }
.faq-item.is-open .faq-q svg { transform: rotate(180deg); color: var(--p-soft); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease-out); }
.faq-a > div { overflow: hidden; }
.faq-a p { padding: 0 22px 22px; color: var(--text-2); line-height: 1.65; }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }

/* ---------- cierre ---------- */
.section-closing { text-align: center; overflow: clip; background: var(--bg-2); }
.closing-glow { position: absolute; left: 50%; top: 50%; width: min(90vw, 900px); height: 500px; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(ellipse at center, var(--p-glow), transparent 65%); filter: blur(40px); opacity: .8; }
.section-closing .section-inner { position: relative; }
.closing-title { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.1; text-wrap: balance; max-width: 18ch; margin: 0 auto 18px; }
.closing-sub { font-size: 1.15rem; color: var(--text-2); margin-bottom: 30px; }
.closing-note { margin-top: 18px; font-size: .86rem; color: var(--text-3); }
.contact-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin-top: 28px; }
.contact-row a {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text-2); font-size: .9rem; font-weight: 600;
  transition: color .2s ease, border-color .2s ease, transform .18s var(--ease-out);
}
.contact-row a:hover { color: var(--text); border-color: rgba(139, 92, 246, .5); transform: translateY(-2px); }
.contact-row a:active { transform: scale(.97); }
.contact-row svg { color: var(--p-soft); flex: none; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 44px 0 36px; background: var(--bg); }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.footer-brand p { margin-top: 12px; color: var(--text-3); font-size: .9rem; max-width: 34ch; line-height: 1.5; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-left: auto; }
.footer-links a { font-size: .92rem; font-weight: 500; color: var(--text-2); transition: color .2s ease; }
.footer-links a:hover { color: var(--text); }
.footer-contact { width: 100%; display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.footer-contact a { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--text-2); transition: color .2s ease; }
.footer-contact a:hover { color: var(--text); }
.footer-contact svg { color: var(--p-soft); flex: none; }
.footer-copy { width: 100%; color: var(--text-3); font-size: .84rem; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .tour-hint { position: static; transform: none; width: auto; margin-top: -8px; gap: 6px; font-size: .7rem; }
  .tour-hint-mouse { width: 24px; height: 40px; }
  .phone-tour { --pw: 250px; }
  .tour-sticky { min-height: 600px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 9px; font-size: .9rem; }
  .nav-text-link { display: none; }
}
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-grid; }
}
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 24px; }
  .hero { min-height: 0; padding-top: calc(var(--nav-h) + 48px); }
  .hero-title { max-width: none; }
  .hero-visual { min-height: 0; margin-top: 24px; }
  .hero-stage { height: 560px; max-width: 520px; margin: 0 auto; }
  .hero-glow { left: 50%; top: 70%; }
  .problema-grid { grid-template-columns: repeat(2, 1fr); }
  .tour { grid-template-columns: 1fr; gap: 0; }
  .tour-sticky { order: -1; position: sticky; top: var(--nav-h); height: auto; min-height: 0; padding: 14px 0 12px; gap: 12px;
    background: var(--bg-2); z-index: 3; }
  .section-tour { background: var(--bg-2); }
  .tour-glow { display: none; }
  .phone-tour { --pw: min(180px, 17vh); }
  .tour-sticky { padding: 8px 0 6px; gap: 8px; }
  .tour-hint { gap: 2px; font-size: .68rem; margin-top: -4px; }
  .tour-hint-mouse { height: 22px; }
  .tour-step { min-height: 88vh; padding: 60vh 0 4vh; justify-content: flex-start; text-align: center; align-items: center; }
  .tour-step h3 { font-size: 1.5rem; }
  .tour-step p { font-size: 1rem; }
  .feature, .feature-b { grid-template-columns: 1fr; gap: 28px; }
  .feature-b .feature-visual { order: 2; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento-wide { grid-column: span 2; }
  .role-panel { grid-template-columns: 1fr; gap: 32px; }
  .role-phone { order: 2; }
  .tools-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 1fr; }
  .compare-head { display: none; }
  .compare-row > span { padding: 12px 18px; }
  .compare-row > span:first-child { padding-top: 18px; padding-bottom: 4px; }
  .compare-row > span:nth-child(2)::before { content: "Hoy: "; font-weight: 700; color: var(--text-3); }
  .compare-row > span:last-child { padding-bottom: 18px; border-left: 0; }
  .compare-row > span.compare-abba::before { content: "abba.app: "; font-weight: 700; color: var(--p-soft); }
}
@media (max-width: 760px) {
  .btn-nav { display: none; }
  .nav-actions { gap: 8px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 36px; }
  .hero { padding-top: calc(var(--nav-h) + 32px); text-align: left; }
  .hero-cta .btn { width: 100%; }
  .hero-badge { font-size: .76rem; padding: 6px 12px; }
  .hero-stage { height: 480px; max-width: 420px; }
  .phone-a { --pw: 210px; left: 2%; top: 30px; }
  .phone-b { --pw: 190px; right: 0; top: 0; }
  .problema-grid { grid-template-columns: 1fr; }
  .problema-card { transform: none !important; }
  .bento, .install-grid { grid-template-columns: 1fr; }
  .bento-wide { grid-column: auto; }
  .tools-grid { grid-template-columns: 1fr; }
  .demo { padding: 16px; }
  .demo-avisos { padding: 18px; }
  .demo-steps li em { display: none; }
  .price-card { padding: 28px 22px; }
  .footer-links { margin-left: 0; }
  .roles-tabs { gap: 6px; }
  .role-tab { padding: 9px 14px; font-size: .88rem; }
  .phone-sm { --pw: 230px; }
}
@media (max-width: 400px) {
  .hero-stage { height: 430px; }
  .phone-a { --pw: 186px; }
  .phone-b { --pw: 170px; }
}

/* motion: only truly decorative loops are gated */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
