/* InputSync · inputsync.es */
:root {
  --bg: #0b0b0d; --bg-2: #111114; --panel: #16161a; --panel-2: #1d1d22; --line: #26262d; --line-2: #34343d;
  --fg: #f3f3f5; --fg-2: #c9c9d1; --muted: #8e8e99; --accent: #f97316; --accent-2: #fdba74; --accent-deep: #c2410c;
  --accent-wash: rgba(249, 115, 22, .12); --twitch: #9146ff; --ok: #22c55e;
  --r: 14px; --max: 1160px; --ease: cubic-bezier(.2, .9, .3, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.6 Inter, 'Segoe UI', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.wrap { width: min(var(--max), 100% - 40px); margin: 0 auto; }
::selection { background: var(--accent); color: #1c0a02; }
::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-thumb { background: #2c2c33; border-radius: 99px; border: 3px solid var(--bg); }
.i { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.accent { color: var(--accent); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(11, 11, 13, .78); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: box-shadow .3s, background .3s; }
.nav.scrolled { background: rgba(11, 11, 13, .92); box-shadow: 0 4px 24px rgba(0,0,0,.4); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; filter: drop-shadow(0 4px 10px rgba(249, 115, 22, .35)); }
.brand i { font-style: normal; color: var(--accent); }
.links { display: flex; gap: 22px; margin-left: 8px; }
.links a { color: var(--fg-2); font-size: 14.5px; font-weight: 550; transition: color .2s; }
.links a:hover, .links a.on { color: var(--fg); }
.nav .cta { margin-left: auto; display: flex; gap: 10px; }
.burger { display: none; margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: 10px; background: none; color: var(--fg); font-size: 18px; cursor: pointer; }
@media (max-width: 900px) {
  .links { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px 20px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
  .links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav.open .links { display: flex; }
  .nav .cta { display: none; }
  .burger { display: grid; place-items: center; }
}

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 20px; border-radius: 11px; font-weight: 700; font-size: 15px; border: 1px solid var(--line-2); background: var(--panel); color: var(--fg); cursor: pointer; transition: transform .15s var(--ease), background .2s, border-color .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); border-color: #4a4a55; }
.btn.pri { background: linear-gradient(180deg, #fb923c, var(--accent)); border-color: transparent; color: #1c0a02; box-shadow: 0 10px 30px -10px rgba(249, 115, 22, .7); }
.btn.pri:hover { box-shadow: 0 16px 36px -10px rgba(249, 115, 22, .85); }
.btn.sm { height: 38px; padding: 0 15px; font-size: 14px; }
.btn.twitch { background: var(--twitch); border-color: transparent; color: #fff; }
.btn.discord { background: #5865f2; border-color: transparent; color: #fff; box-shadow: 0 10px 30px -12px rgba(88,101,242,.8); }
.btn.discord:hover { background: #4752c4; }
[data-discord][hidden], [data-ext][hidden] { display: none !important; }
.foot-discord { display: inline-flex; align-items: center; gap: 6px; }
.dc-ic { width: 1.3em; height: 1.3em; fill: currentColor; flex: none; }
.foot-discord .dc-ic { width: 16px; height: 16px; }
@media (max-width: 1100px) { .nav-discord { width: 38px; padding: 0; justify-content: center; } .nav-discord span { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 90px 0 70px; }
.hero::before { content: ""; position: absolute; inset: -40% -10% auto; height: 900px; background: radial-gradient(circle at 30% 30%, rgba(249, 115, 22, .22), transparent 55%), radial-gradient(circle at 80% 10%, rgba(145, 70, 255, .16), transparent 50%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: .7fr 1.3fr; gap: 36px; width: min(calc(var(--max) + 120px), 100% - 40px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--panel); color: var(--fg-2); font-size: 13px; font-weight: 600; }
.eyebrow b { width: 8px; height: 8px; border-radius: 99px; background: var(--ok); box-shadow: 0 0 0 4px rgba(34, 197, 94, .2); }
h1 { margin: 18px 0 18px; font-size: clamp(40px, 6vw, 66px); line-height: 1.02; letter-spacing: -.035em; font-weight: 850; }
h1 .grad { background: linear-gradient(90deg, #fdba74, var(--accent) 50%, #f43f5e, #a855f7, #fdba74); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradShift 6s ease-in-out infinite; }
@keyframes gradShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.lead { margin: 0 0 30px; font-size: 19px; color: var(--fg-2); max-width: 560px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 28px; color: var(--muted); font-size: 14px; }
.trust span { display: inline-flex; align-items: center; gap: 7px; }
.trust .i { color: var(--ok); }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero .actions, .trust { justify-content: center; }
}

/* --- demo: copy of the extension (component) over the app's overlay --- */
.stream { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #0d0821 url(/demo/game.png) center / cover no-repeat; box-shadow: 0 30px 80px -24px rgba(0,0,0,.75), 0 0 0 6px rgba(255,255,255,.02); }
.stream > canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stream iframe { position: absolute; border: 0; background: transparent; }
.stream-ov { left: 0; top: 0; width: 1280px; height: 720px; transform-origin: 0 0; transform: scale(var(--s, 1)); pointer-events: none; z-index: 1; }
/* The extension is laid out at a player-like size (--k from site.js) and scaled to fit. */
.stream-ext { left: 0; top: 0; width: calc(100% / var(--k, 1)); height: calc(100% / var(--k, 1)); transform-origin: 0 0; transform: scale(var(--k, 1)); z-index: 3; color-scheme: normal; }
.stream-top { position: absolute; left: 0; right: 0; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 14px 18px; pointer-events: none; background: linear-gradient(rgba(0,0,0,.45), transparent); }
.tv-live { background: #ef4444; color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: .04em; }
.tv-ch { font-size: 14px; font-weight: 700; color: #fff; text-shadow: 0 1px 4px rgba(0,0,0,.5); }
.tv-demo { margin-left: auto; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 3px 9px; border-radius: 99px; color: #1c0a02; background: var(--accent); }
.stream-hint { position: absolute; left: 0; top: 0; visibility: hidden; white-space: nowrap; z-index: 4; padding: 7px 12px; border-radius: 9px; background: var(--accent); color: #1c0a02; font-size: 13px; font-weight: 800; pointer-events: none; animation: hintBob 1.2s ease-in-out infinite; box-shadow: 0 8px 22px -6px rgba(249,115,22,.8); transition: opacity .3s; }
.stream-hint::after { content: ""; position: absolute; left: 100%; top: 50%; transform: translateY(-50%); border: 6px solid transparent; border-left-color: var(--accent); }
.stream-hint.gone { opacity: 0; animation: none; }
/* Key on the left half: the hint goes to its right, arrow pointing left. */
.stream-hint.flip::after { left: auto; right: 100%; border-left-color: transparent; border-right-color: var(--accent); }
.stream-mute { position: absolute; left: 12px; bottom: 12px; z-index: 4; display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.18); background: rgba(10,10,12,.62); color: #fff; cursor: pointer; backdrop-filter: blur(6px); transition: background .2s, color .2s; }
.stream-mute:hover { background: rgba(10,10,12,.85); }
.stream-mute.off { color: #f87171; border-color: rgba(248,113,113,.45); }
.stream-mute .i { width: 18px; height: 18px; }
@keyframes hintBob { 0%, 100% { translate: 0 0; } 50% { translate: -6px 0; } }
.stream-hint.flip { animation-name: hintBobR; }
@keyframes hintBobR { 0%, 100% { translate: 0 0; } 50% { translate: 6px 0; } }
@media (max-width: 600px) { .stream { aspect-ratio: 4 / 5; } }
.demo-note {margin: 14px auto 0; max-width: 640px; text-align: center; color: var(--muted); font-size: 13.5px; }

/* ---------- features ---------- */
.feat { padding: 80px 0; }
.feat .head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.feat .head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.03em; margin: 0 0 12px; }
.feat .head p { color: var(--fg-2); font-size: 17px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.card { padding: 32px 28px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-2); transition: border-color .25s, transform .25s var(--ease); }
.card:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: 0 12px 40px -12px rgba(249, 115, 22, .12); }
.card-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; margin-bottom: 18px; }
.card-icon .i { width: 24px; height: 24px; }
.card-icon.orange { background: var(--accent-wash); color: var(--accent); }
.card-icon.purple { background: rgba(145, 70, 255, .12); color: var(--twitch); }
.card-icon.green { background: rgba(34, 197, 94, .12); color: var(--ok); }
.card-icon.blue { background: rgba(56, 189, 248, .12); color: #38bdf8; }
.card h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.card p { color: var(--fg-2); font-size: 15px; margin: 0; line-height: 1.55; }

/* ---------- how it works ---------- */
.how { padding: 80px 0; }
.how .head { text-align: center; max-width: 640px; margin: 0 auto 50px; }
.how .head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.03em; margin: 0 0 12px; }
.how .head p { color: var(--fg-2); font-size: 17px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 32px 28px 28px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-2); counter-increment: step; }
.step::before { content: counter(step); position: absolute; top: -16px; left: 24px; width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(180deg, #fb923c, var(--accent)); color: #1c0a02; font-weight: 800; font-size: 15px; display: grid; place-items: center; }
.step h3 { margin: 8px 0 8px; font-size: 17px; font-weight: 700; }
.step p { color: var(--fg-2); font-size: 14.5px; margin: 0; }

/* ---------- effects catalog ---------- */
.catalog { padding: 80px 0; }
.catalog .head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.catalog .head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.03em; margin: 0 0 12px; }
.catalog .head p { color: var(--fg-2); font-size: 17px; }
.cat-dot { width: 8px; height: 8px; border-radius: 99px; flex: none; }
.cat-dot.orange { background: var(--accent); } .cat-dot.pink { background: #fb7185; } .cat-dot.purple { background: #a78bfa; }
.cat-dot.sky { background: #0ea5e9; } .cat-dot.blue { background: #38bdf8; } .cat-dot.green { background: var(--ok); } .cat-dot.cyan { background: #22d3ee; }
.fx-cat { max-width: 920px; margin: 0 auto; padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg-2); }
.fx-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-bottom: 16px; }
.fx-tabs::-webkit-scrollbar { display: none; }
.fx-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border: 0; border-radius: 9px; background: none; color: var(--fg-2); font-family: inherit; font-size: 14px; font-weight: 650; line-height: 1; cursor: pointer; white-space: nowrap; transition: background .2s, color .2s; }
.fx-tabs button:hover { color: var(--fg); }
.fx-tabs button.on { background: var(--panel-2); color: var(--fg); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset; }
.fx-tabs small { font-size: 11px; font-weight: 700; color: var(--muted); }
.fx-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; animation: fxIn .35s var(--ease); }
.fx-grid[hidden] { display: none; }
@keyframes fxIn { from { opacity: 0; transform: translateY(6px); } }
.fx-grid li { padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); transition: border-color .2s, transform .2s var(--ease); }
.fx-grid li:hover { border-color: var(--line-2); transform: translateY(-2px); }
.fx-grid b { display: block; font-size: 14px; color: var(--fg); }
.fx-grid span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; margin-top: 2px; }
.fx-more { margin: 16px 0 0; font-size: 14px; color: var(--fg-2); text-align: center; }
.fx-more a { color: var(--accent); font-weight: 650; }
.fx-more.center { margin-top: 28px; }
kbd { display: inline-block; font: 700 12px/1 Inter, system-ui, sans-serif; padding: 4px 7px; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--panel-2); color: var(--fg); }
.actions-box { max-width: 920px; margin: 20px auto 0; display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; padding: 30px; border-radius: 20px; border: 1px solid var(--line-2); background: linear-gradient(160deg, var(--bg-2), var(--panel)); }
.actions-box h3 { font-size: 24px; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; margin: 0 0 10px; }
.actions-box p { color: var(--fg-2); margin: 0 0 18px; }
.ab-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.ab-list li { color: var(--fg-2); font-size: 14.5px; padding-left: 18px; position: relative; }
.ab-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.ab-list b { color: var(--fg); }
.ab-examples { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: center; }
.ab-ex { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); }
.ab-ex span { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ab-ex b { font-size: 14px; }
@media (max-width: 900px) {
  .actions-box { grid-template-columns: 1fr; padding: 24px; }
}

/* ---------- download page ---------- */
.app-window { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-2); box-shadow: 0 30px 80px -24px rgba(0,0,0,.75), 0 0 0 1px rgba(255,255,255,.02); }
.aw-bar { display: flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; background: var(--panel); border-bottom: 1px solid var(--line); }
.aw-bar i { width: 10px; height: 10px; border-radius: 99px; background: #3a3a44; }
.aw-bar i:first-child { background: #ef4444; } .aw-bar i:nth-child(2) { background: #eab308; } .aw-bar i:nth-child(3) { background: #22c55e; }
.aw-bar span { margin-left: 8px; font-size: 12px; font-weight: 650; color: var(--muted); }
.app-window img { width: 100%; height: auto; }

.dl-hero { position: relative; overflow: hidden; padding: 80px 0 60px; }
.dl-hero::before { content: ""; position: absolute; inset: -30% -10% auto; height: 900px; background: radial-gradient(circle at 25% 30%, rgba(249,115,22,.22), transparent 55%), radial-gradient(circle at 85% 20%, rgba(145,70,255,.18), transparent 50%); pointer-events: none; }
.dl-hero .wrap { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn.dl-main { height: 60px; padding: 0 26px; font-size: 16px; }
.btn.dl-main .i { width: 22px; height: 22px; }
.btn.dl-main span { display: flex; flex-direction: column; line-height: 1.2; }
.btn.dl-main small { font-size: 12px; font-weight: 600; opacity: .7; }
.dl-req { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 14px; }
.dl-req li { display: inline-flex; align-items: center; gap: 8px; }
.dl-req .i { color: var(--fg-2); }
.dl-hero-shot { perspective: 1400px; }
.dl-hero-shot .app-window { transform: rotateY(-8deg) rotateX(3deg); transition: transform .6s var(--ease); }
.dl-hero-shot:hover .app-window { transform: none; }

.dl-tour, .dl-fx { padding: 70px 0; }
.dl-tour .head, .dl-fx .head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.dl-tour .head h2, .dl-fx .head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.03em; margin: 0 0 12px; }
.dl-tour .head p, .dl-fx .head p { color: var(--fg-2); font-size: 17px; margin: 0; }
.tour { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.tour-tabs { display: flex; flex-direction: column; gap: 8px; }
.tour-tabs button { text-align: left; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--fg); font-family: inherit; cursor: pointer; transition: border-color .2s, background .2s; position: relative; }
.tour-tabs button b { display: block; font-size: 15px; }
.tour-tabs button span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.tour-tabs button:hover { border-color: var(--line-2); }
.tour-tabs button.on { border-color: rgba(249,115,22,.5); background: linear-gradient(90deg, var(--accent-wash), var(--bg-2)); }
.tour-tabs button.on::before { content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--accent); }
.tour-shot img { transition: opacity .25s; }
.tour-shot img.fade { opacity: 0; }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.shot { position: relative; padding: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #000; cursor: zoom-in; aspect-ratio: 16 / 9; font-family: inherit; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.shot:hover img { transform: scale(1.05); }
.shot > span { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 22px 12px 10px; background: linear-gradient(transparent, rgba(0,0,0,.85)); color: #fff; font-size: 13.5px; font-weight: 700; text-align: left; }
.tag { font-style: normal; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: 99px; }
.t-real { background: rgba(14,165,233,.25); color: #7dd3fc; } .t-troleo { background: rgba(249,115,22,.25); color: #fdba74; } .t-caos { background: rgba(167,139,250,.25); color: #c4b5fd; } .t-susto { background: rgba(251,113,133,.25); color: #fda4af; }
.t-visual { background: rgba(56,189,248,.25); color: #7dd3fc; } .t-divertido { background: rgba(34,197,94,.25); color: #86efac; }
.fx-note { display: inline-flex; align-items: center; gap: 8px; margin: 14px auto 0 !important; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--panel); font-size: 13.5px !important; color: var(--fg-2) !important; }
.fx-note .i { color: var(--accent); flex: none; }
.fx-try { margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 26px; border-radius: 16px; border: 1px solid rgba(249,115,22,.35); background: linear-gradient(100deg, var(--accent-wash), var(--bg-2) 70%); }
.fx-try b { display: block; font-size: 18px; margin-bottom: 4px; }
.fx-try span { color: var(--fg-2); font-size: 14.5px; }
.fx-try .btn { flex: none; }
@media (max-width: 700px) { .fx-try { flex-direction: column; text-align: center; } }
.fx-links { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fx-link { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--bg-2); transition: border-color .2s, transform .2s var(--ease), background .2s; }
.fx-link:hover { border-color: var(--accent); transform: translateY(-3px); background: var(--panel); }
.fx-link-ic { flex: none; width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent); }
.fx-link-ic .i { width: 22px; height: 22px; }
.fx-link b { display: block; font-size: 17px; margin-bottom: 3px; }
.fx-link small { display: block; font-size: 14px; color: var(--fg-2); line-height: 1.45; }
.fx-link .arrow { flex: none; margin-left: auto; width: 22px; height: 22px; color: var(--accent); transition: transform .2s var(--ease); }
.fx-link:hover .arrow { transform: translateX(4px); }
@media (max-width: 700px) { .fx-links { grid-template-columns: 1fr; } }
.shots-less-wrap { display: flex; justify-content: center; margin-top: 18px; }
.shots-less-wrap:has([hidden]) { display: none; }
.shot.extra { display: none; }
.shots.open .shot.extra { display: block; animation: fxIn .4s var(--ease) both; }
.shots.open .shot-more { display: none; }
.shot-more { cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--fg); background: linear-gradient(135deg, rgba(249,115,22,.18), rgba(145,70,255,.18)), var(--bg-2); border-style: dashed; border-color: var(--line-2); transition: border-color .2s, background .2s; }
.shot-more:hover { border-color: var(--accent); }
.shot-more > span { position: static; padding: 0; background: none; }
.shot-more .more-n { font-size: 34px; font-weight: 900; letter-spacing: -.03em; color: var(--accent); line-height: 1; }
.shot-more .more-t { font-size: 14px; font-weight: 700; color: var(--fg-2); }

.lightbox { padding: 0; border: 0; background: none; max-width: min(1280px, 94vw); width: 100%; overflow: visible; }
.lightbox::backdrop { background: rgba(0,0,0,.85); backdrop-filter: blur(6px); }
.lightbox img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb-close { position: absolute; top: -44px; right: 0; width: 36px; height: 36px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--panel); color: var(--fg); cursor: pointer; font-size: 14px; }

@media (max-width: 900px) {
  .dl-hero .wrap { grid-template-columns: 1fr; text-align: center; }
  .dl-actions, .dl-req { justify-content: center; }
  .dl-hero-shot .app-window { transform: none; }
  .tour { grid-template-columns: 1fr; }
  .tour-tabs { flex-direction: row; overflow-x: auto; }
  .tour-tabs button { flex: none; }
  .tour-tabs button span { display: none; }
  .shots { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) { .shots { grid-template-columns: 1fr; } .fx-cat { padding: 14px; } }

/* ---------- faq ---------- */
.faq { padding: 80px 0; }
.faq .head { text-align: center; margin-bottom: 40px; }
.faq .head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.03em; margin: 0; }
.faq-list { max-width: 720px; margin: 0 auto; }
details { border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); margin-bottom: 10px; transition: border-color .2s; }
details:hover { border-color: var(--line-2); }
details[open] { border-color: var(--accent-wash); }
summary { padding: 18px 24px; font-weight: 700; font-size: 15.5px; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 20px; color: var(--muted); transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
details .answer { padding: 0 24px 18px; color: var(--fg-2); font-size: 15px; line-height: 1.6; }

/* ---------- cta banner ---------- */
.cta-banner { padding: 80px 0 60px; text-align: center; }
.cta-box { padding: 56px 40px; border-radius: 20px; border: 1px solid var(--line-2); background: linear-gradient(170deg, var(--bg-2), var(--panel)); position: relative; overflow: hidden; }
.cta-box::before { content: ""; position: absolute; width: 400px; height: 400px; border-radius: 50%; background: var(--accent); opacity: .08; filter: blur(80px); top: -100px; right: -80px; }
.cta-box h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; letter-spacing: -.025em; margin: 0 0 14px; position: relative; }
.cta-box p { color: var(--fg-2); font-size: 17px; margin: 0 0 28px; position: relative; }
.cta-box .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; position: relative; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 40px 0 32px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; }
.foot-copy { font-size: 13.5px; color: var(--muted); }
.foot-links { display: flex; gap: 20px; margin-left: auto; }
.foot-links a { font-size: 13.5px; color: var(--muted); transition: color .2s; }
.foot-links a:hover { color: var(--fg); }

/* ---------- docs page ---------- */
.docs-page { padding: 60px 0 80px; }
.docs-page .wrap { display: grid; grid-template-columns: 220px 1fr; gap: 48px; }
.docs-nav { position: sticky; top: 88px; align-self: start; }
.docs-nav a { display: block; padding: 8px 14px; border-radius: 8px; color: var(--fg-2); font-size: 14px; font-weight: 550; transition: background .2s, color .2s; margin-bottom: 2px; }
.docs-nav a:hover, .docs-nav a.on { background: var(--panel-2); color: var(--fg); }
.docs-body h2 { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 48px 0 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.docs-body h1 { font-size: clamp(32px, 4.5vw, 44px); line-height: 1.1; margin: 0 0 22px; }
.docs-body h2:first-child, .docs-body h1 + h2 { margin-top: 0; border: none; padding: 0; }
.docs-body h3 { font-size: 19px; font-weight: 700; margin: 28px 0 8px; }
.docs-body p, .docs-body li { color: var(--fg-2); font-size: 15.5px; line-height: 1.65; }
.docs-body ul { padding-left: 22px; }
.docs-body code { background: var(--panel-2); padding: 2px 7px; border-radius: 5px; font-size: 14px; }
.docs-body .info { padding: 16px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--panel); margin: 18px 0; font-size: 14.5px; color: var(--fg-2); }
.docs-body .info b { color: var(--accent); }
.docs-page .wrap > * { min-width: 0; }
.docs-body .info.warn { border-color: rgba(234,179,8,.35); background: rgba(234,179,8,.06); }
.docs-body .info.warn b { color: #facc15; }
.docs-body a:not([class]) { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.docs-body em { color: var(--fg); font-style: normal; font-weight: 650; }
.docs-nav-t { display: block; margin: 16px 14px 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.docs-nav-t:first-child { margin-top: 0; }
.docs-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.docs-card { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); }
.docs-card b { display: block; font-size: 15px; margin-bottom: 4px; color: var(--fg); }
.docs-card span { font-size: 14px; color: var(--fg-2); line-height: 1.5; }
.docs-steps { list-style: none; counter-reset: st; padding: 0 !important; display: flex; flex-direction: column; gap: 12px; }
.docs-steps li { counter-increment: st; position: relative; padding: 14px 18px 14px 58px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-2); }
.docs-steps li::before { content: counter(st); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(180deg, #fb923c, var(--accent)); color: #1c0a02; font-weight: 800; font-size: 14px; }
.docs-steps b { color: var(--fg); }
.docs-table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 14.5px; }
.docs-table th { text-align: left; padding: 11px 16px; background: var(--panel); color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.docs-table td { padding: 11px 16px; border-top: 1px solid var(--line); color: var(--fg-2); vertical-align: top; }
.docs-table tbody tr:hover td { background: rgba(255,255,255,.02); }
.docs-table code { white-space: nowrap; }
.docs-help { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 16px; }
.docs-help-card { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); transition: border-color .2s, transform .2s var(--ease); }
.docs-help-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.docs-help-card .i { width: 26px; height: 26px; color: var(--accent); margin-bottom: 6px; }
.docs-help-card b { font-size: 16px; color: var(--fg); }
.docs-help-card span { font-size: 13.5px; color: var(--fg-2); }
.docs-help-card.dc { background: linear-gradient(150deg, rgba(88,101,242,.3), var(--bg-2)); border-color: rgba(88,101,242,.5); }
.docs-help-card.dc .i { color: #8b95ff; }
.docs-help-card.dc:hover { border-color: #5865f2; }
@media (max-width: 700px) {
  .docs-cards { grid-template-columns: 1fr; }
  .docs-table { display: block; overflow-x: auto; }
}
@media (max-width: 900px) {
  .docs-page .wrap { grid-template-columns: 1fr; }
  .docs-nav { position: static; display: flex; flex-wrap: wrap; gap: 4px; }
}

/* ---------- profile page ---------- */
.profile-page { padding: 0 0 80px; min-height: 70vh; position: relative; }
.profile-hero { position: absolute; inset: 0 0 auto; height: 360px; overflow: hidden; pointer-events: none; }
.profile-hero-glow { position: absolute; width: 420px; height: 420px; border-radius: 50%; background: var(--accent); opacity: .14; filter: blur(90px); top: -45%; left: 12%; animation: glowFloat 9s ease-in-out infinite alternate; }
.profile-hero-glow.g2 { background: var(--twitch); left: auto; right: 10%; top: -30%; animation-delay: -4s; }
@keyframes glowFloat { to { transform: translate(40px, 30px) scale(1.1); } }
.pf-root { position: relative; padding-top: 36px; }
.profile-loading { padding: 80px 0; text-align: center; color: var(--muted); }

/* login */
.pf-login { display: grid; place-items: center; padding: 30px 0; }
.pf-login-card { width: min(480px, 100%); padding: 40px 36px; border-radius: 22px; border: 1px solid var(--line-2); background: rgba(17,17,20,.85); backdrop-filter: blur(12px); text-align: center; box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); }
.pf-login-card h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 6px; color: var(--fg); }
.pf-login-card .login-subtitle, .pf-login-card .login-feat, .pf-login-card .login-note { font-weight: 400; }
.pf-login-card .login-icon-wrap .i { width: 34px; height: 34px; color: var(--twitch); }
.pf-login-btn { width: 100%; justify-content: center; height: 50px; }
.pf-alert { display: flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 10px 14px; border-radius: 10px; background: rgba(239,68,68,.12); border: 1px solid rgba(239,68,68,.35); color: #fca5a5; font-size: 14px; text-align: left; }

/* header */
.pf-head { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); background: var(--bg-2); }
.pf-cover { height: 130px; background: radial-gradient(circle at 15% 120%, rgba(249,115,22,.55), transparent 55%), radial-gradient(circle at 85% -20%, rgba(145,70,255,.5), transparent 55%), linear-gradient(120deg, #1d1028, #121a2c 60%, #10141c); position: relative; }
.pf-cover::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(transparent, #000 40%, transparent); }
.pf-head-body { display: flex; align-items: flex-end; gap: 22px; padding: 0 28px 24px; margin-top: -52px; position: relative; flex-wrap: wrap; }
.pf-avatar { position: relative; flex: none; }
.pf-avatar img { width: 112px; height: 112px; border-radius: 50%; border: 4px solid var(--bg-2); outline: 3px solid var(--rank, var(--accent)); box-shadow: 0 10px 30px -6px rgba(0,0,0,.6), 0 0 30px -6px var(--rank, var(--accent)); background: var(--panel); }
.pf-rank-pill { position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; background: var(--bg); border: 1px solid var(--rank, var(--line-2)); color: var(--rank); font-size: 11px; font-weight: 800; white-space: nowrap; }
.pf-rank-pill .i { width: 12px; height: 12px; }
.pf-id { flex: 1; min-width: 220px; padding-bottom: 4px; }
.pf-id h1 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 8px; line-height: 1.1; }
.pf-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pf-login { color: var(--muted); font-weight: 600; margin-right: 4px; }
.pf-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); color: var(--fg-2); font-size: 12.5px; font-weight: 650; }
.pf-tag .i { width: 13px; height: 13px; color: var(--accent); }
.pf-tag-str { border-color: rgba(145,70,255,.45); background: rgba(145,70,255,.12); color: #d8b4fe; }
.pf-tag-str .i { color: #c084fc; }
.pf-head-actions { display: flex; gap: 10px; padding-bottom: 4px; }

/* stats */
.pf-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.pf-stat { position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); transition: transform .2s var(--ease), border-color .2s; }
.pf-stat:hover { transform: translateY(-3px); border-color: var(--line-2); }
.pf-stat::after { content: ""; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; background: var(--c); opacity: .1; filter: blur(10px); }
.s-or { --c: var(--accent); } .s-gr { --c: var(--ok); } .s-pu { --c: #a855f7; } .s-bl { --c: #38bdf8; }
.pf-stat-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.pf-stat-ic .i { width: 19px; height: 19px; }
.pf-stat-v { font-size: 28px; font-weight: 850; letter-spacing: -.03em; line-height: 1.1; }
.pf-stat-l { font-size: 13px; font-weight: 700; color: var(--fg-2); margin-top: 2px; }
.pf-stat-s { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* layout + cards */
.pf-grid { display: grid; grid-template-columns: 1fr 340px; gap: 18px; align-items: start; }
.pf-main, .pf-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pf-card { padding: 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-2); }
.pf-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.pf-card-h h3 { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 800; margin: 0; }
.pf-card-h h3 .i { width: 18px; height: 18px; color: var(--accent); }
.pf-count { font-size: 12px; font-weight: 800; padding: 2px 9px; border-radius: 99px; background: var(--panel-2); color: var(--fg-2); }

/* rank */
.pf-rank { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; background: linear-gradient(110deg, color-mix(in srgb, var(--rank) 14%, var(--bg-2)), var(--bg-2) 60%); border-color: color-mix(in srgb, var(--rank) 35%, var(--line)); }
.pf-rank-badge { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: var(--rank); background: color-mix(in srgb, var(--rank) 16%, transparent); border: 1px solid color-mix(in srgb, var(--rank) 40%, transparent); box-shadow: 0 0 30px -8px var(--rank); }
.pf-rank-badge .i { width: 30px; height: 30px; }
.pf-rank-k { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pf-rank-body > b { display: block; font-size: 24px; font-weight: 850; color: var(--rank); margin: 1px 0 10px; }
.pf-progress { height: 9px; border-radius: 99px; background: var(--panel-2); overflow: hidden; }
.pf-progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--rank)); box-shadow: 0 0 12px var(--rank); }
.pf-rank-s { display: block; font-size: 13px; color: var(--fg-2); margin-top: 8px; }
.pf-rank-s b { color: var(--fg); }
.pf-rank-steps { grid-column: 1 / -1; display: flex; gap: 6px; }
.pf-rank-steps span { flex: 1; height: 4px; border-radius: 99px; background: var(--panel-2); }
.pf-rank-steps span.on { background: var(--c); }

/* channels */
.pf-ch-list { display: flex; flex-direction: column; gap: 10px; }
.pf-ch { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); transition: border-color .2s, transform .2s var(--ease), background .2s; }
.pf-ch:hover { border-color: hsl(var(--h) 70% 55% / .6); transform: translateX(4px); background: var(--panel-2); }
.pf-ch-av { position: relative; flex: none; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-weight: 900; font-size: 19px; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 75% 55%), hsl(calc(var(--h) + 40) 70% 40%)); box-shadow: 0 6px 16px -6px hsl(var(--h) 70% 50%); }
.pf-ch-av i { position: absolute; right: -6px; top: -6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: #facc15; color: #422006; border: 2px solid var(--panel); }
.pf-ch-av i .i { width: 11px; height: 11px; fill: currentColor; }
.pf-ch-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.pf-ch-name { display: flex; align-items: center; gap: 6px; font-weight: 750; font-size: 15.5px; }
.pf-ch-go { width: 13px; height: 13px; color: var(--muted); opacity: 0; transition: opacity .2s; }
.pf-ch:hover .pf-ch-go { opacity: 1; }
.pf-ch-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--muted); }
.pf-ch-meta span { display: inline-flex; align-items: center; gap: 5px; }
.pf-ch-meta .i { width: 12px; height: 12px; }
.pf-ch-bar { height: 4px; border-radius: 99px; background: var(--bg); overflow: hidden; max-width: 260px; }
.pf-ch-bar i { display: block; height: 100%; border-radius: inherit; background: hsl(var(--h) 75% 58%); }
.pf-ch-bal { flex: none; text-align: right; display: flex; flex-direction: column; }
.pf-ch-bal b { font-size: 21px; font-weight: 850; color: var(--accent); letter-spacing: -.02em; line-height: 1.1; }
.pf-ch-bal small { font-size: 12px; color: var(--fg-2); font-weight: 650; }
.pf-ch-bal em { font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.pf-empty { text-align: center; padding: 26px 10px 8px; }
.pf-empty-ic { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: var(--accent-wash); color: var(--accent); }
.pf-empty-ic .i { width: 28px; height: 28px; }
.pf-empty b { display: block; font-size: 17px; margin-bottom: 6px; }
.pf-empty p { color: var(--fg-2); font-size: 14px; margin: 0 auto 16px; max-width: 380px; }

/* streamer */
.pf-streamer { border-color: rgba(145,70,255,.35); background: linear-gradient(160deg, rgba(145,70,255,.12), var(--bg-2) 55%); }
.pf-streamer .pf-card-h h3 .i { color: #c084fc; }
.pf-live-dot { font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: rgba(145,70,255,.2); color: #d8b4fe; }
.pf-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pf-mini div { padding: 10px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); text-align: center; }
.pf-mini b { display: block; font-size: 17px; font-weight: 850; }
.pf-mini span { font-size: 11px; color: var(--muted); line-height: 1.3; display: block; }
.pf-streamer h4 { display: flex; align-items: center; gap: 7px; font-size: 13px; margin: 18px 0 8px; color: var(--fg-2); }
.pf-streamer h4 .i { width: 15px; height: 15px; color: #facc15; }
.pf-top { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pf-top li { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 9px; font-size: 13.5px; }
.pf-top li:nth-child(odd) { background: rgba(255,255,255,.025); }
.pf-pos { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 11px; font-weight: 900; background: var(--panel-2); color: var(--fg-2); }
.pf-pos.p1 { background: #facc15; color: #422006; } .pf-pos.p2 { background: #cbd5e1; color: #1e293b; } .pf-pos.p3 { background: #d97706; color: #fff7ed; }
.pf-top-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-top b { color: var(--accent); }

/* side cards */
.pf-tips { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pf-tips li { display: flex; gap: 12px; align-items: flex-start; }
.pf-tips li > .i { flex: none; width: 32px; height: 32px; padding: 7px; border-radius: 9px; background: var(--accent-wash); color: var(--accent); }
.pf-tips b { display: block; font-size: 14px; }
.pf-tips span { font-size: 13px; color: var(--fg-2); }
.pf-fine { margin: 14px 0 0; font-size: 12px; color: var(--muted); }
.ps-links { display: flex; flex-direction: column; gap: 4px; }
.ps-links a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; font-size: 14px; font-weight: 550; color: var(--fg-2); transition: background .2s, color .2s; }
.ps-links a:hover { background: var(--panel-2); color: var(--fg); }
.ps-links .i { width: 16px; height: 16px; color: var(--muted); }
.pf-discord { width: 100%; justify-content: center; margin-top: 12px; }
.pf-dc { border-color: rgba(88,101,242,.45); background: linear-gradient(160deg, rgba(88,101,242,.16), var(--bg-2) 70%); }
.pf-dc-h { display: flex; gap: 12px; align-items: center; }
.pf-dc-h > .dc-ic { width: 38px; height: 38px; padding: 8px; border-radius: 11px; background: #5865f2; color: #fff; }
.pf-dc-h b { display: block; font-size: 15px; }
.pf-dc-h span { font-size: 13px; color: var(--fg-2); }
.pf-danger { border-color: rgba(239,68,68,.3); }
.pf-danger .pf-card-h h3 .i { color: #ef4444; }
.pf-danger p { font-size: 13px; color: var(--fg-2); margin: -6px 0 14px; }

/* plan, avisos y suspensión */
.pf-tag-prem { border-color: rgba(245,197,66,.55); background: linear-gradient(90deg, rgba(245,197,66,.22), rgba(249,115,22,.14)); color: #fde68a; box-shadow: 0 0 18px -6px rgba(245,197,66,.6); }
.pf-tag-prem .i { color: #f5c542; }
.pf-tag-free { transition: border-color .2s; } .pf-tag-free:hover { border-color: var(--accent); }
.pf-tag-ban { border-color: rgba(239,68,68,.5); background: rgba(239,68,68,.12); color: #fca5a5; } .pf-tag-ban .i { color: #ef4444; }
.pf-head.is-prem { border-color: rgba(245,197,66,.45); box-shadow: 0 20px 60px -30px rgba(245,197,66,.45); }
.pf-head.is-prem .pf-cover { background: radial-gradient(circle at 15% 120%, rgba(245,197,66,.55), transparent 55%), radial-gradient(circle at 85% -20%, rgba(249,115,22,.5), transparent 55%), linear-gradient(120deg, #241a08, #1b1220 60%, #10141c); }
.pf-banner { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; padding: 16px 18px; border-radius: 16px; border: 1px solid; }
.pf-banner b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.pf-banner p { margin: 0 0 12px; font-size: 14px; color: var(--fg-2); }
.pf-banner ul { margin: 6px 0 12px; padding-left: 18px; font-size: 14px; color: var(--fg); }
.pf-banner li { margin-bottom: 4px; } .pf-banner li small { color: var(--muted); margin-left: 6px; }
.pf-banner-ic { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.pf-banner-ic .i { width: 21px; height: 21px; }
.pf-banner.warn { border-color: rgba(251,191,36,.5); background: linear-gradient(110deg, rgba(251,191,36,.13), var(--bg-2) 70%); }
.pf-banner.warn .pf-banner-ic { background: rgba(251,191,36,.18); color: #fbbf24; }
.pf-banner.bad { border-color: rgba(239,68,68,.55); background: linear-gradient(110deg, rgba(239,68,68,.14), var(--bg-2) 70%); }
.pf-banner.bad .pf-banner-ic { background: rgba(239,68,68,.18); color: #ef4444; }
.pf-plan { position: relative; overflow: hidden; }
.pf-plan.prem { border-color: rgba(245,197,66,.5); background: linear-gradient(150deg, rgba(245,197,66,.13), var(--bg-2) 55%); }
.pf-plan-glow { position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: #f5c542; opacity: .12; filter: blur(50px); pointer-events: none; }
.pf-plan-top { position: relative; display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.pf-plan-badge { flex: none; width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; color: #231a02; background: linear-gradient(160deg, #fde68a, #f5c542 55%, #f59e0b); box-shadow: 0 10px 30px -8px rgba(245,197,66,.7); }
.pf-plan-badge .i { width: 28px; height: 28px; }
.pf-plan-badge.free { color: var(--accent); background: var(--accent-wash); box-shadow: none; border: 1px solid rgba(249,115,22,.35); }
.pf-plan-name { display: block; font-size: 24px; font-weight: 850; letter-spacing: -.02em; line-height: 1.15; }
.pf-plan.prem .pf-plan-name { background: linear-gradient(90deg, #fde68a, #f5c542, #fb923c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pf-plan-sub { display: block; font-size: 13px; color: var(--fg-2); margin-top: 2px; }
.pf-plan-key { position: relative; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; padding: 10px 14px; border-radius: 12px; background: var(--bg); border: 1px dashed rgba(245,197,66,.45); font-size: 13px; color: var(--muted); }
.pf-plan-key .i { width: 16px; height: 16px; color: #f5c542; }
.pf-plan-key code { margin-left: auto; font: 700 14px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; color: var(--fg); }
.pf-plan-lead { margin: 0 0 10px; font-size: 14px; color: var(--fg-2); }
.pf-perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.pf-perks li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.pf-perks li b { display: block; font-size: 14px; color: var(--fg-2); }
.pf-perks li .i { flex: none; width: 18px; height: 18px; margin-top: 2px; color: #5d5d68; }
.pf-perks li.on { border-color: rgba(245,197,66,.25); }
.pf-perks li.on b { color: var(--fg); }
.pf-perks li.on .i { color: #f5c542; }
.pf-plan-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pf-warn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pf-warn-list li { padding: 10px 12px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line); font-size: 13.5px; }
.pf-warn-list li.new { border-color: rgba(251,191,36,.5); }
.pf-warn-list small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }

@media (max-width: 960px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pf-head-body { flex-direction: column; align-items: center; text-align: center; padding: 0 18px 22px; }
  .pf-tags, .pf-head-actions { justify-content: center; }
  .pf-stat { padding: 14px; } .pf-stat-v { font-size: 22px; }
  .pf-ch { flex-wrap: wrap; }
  .pf-ch-bal { flex-direction: row; align-items: baseline; gap: 6px; width: 100%; justify-content: flex-end; }
  .pf-login-card { padding: 30px 20px; }
}

/* ---------- legal pages ---------- */
.legal { padding: 60px 0 80px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -.025em; margin: 0 0 8px; }
.legal .date { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 20px; font-weight: 700; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--fg-2); font-size: 15.5px; line-height: 1.7; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--accent); text-decoration: underline; }

/* ---------- 404 ---------- */
.four04 { min-height: 70vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 60px 20px; }
.four04 h1 { font-size: 120px; font-weight: 900; letter-spacing: -.06em; background: linear-gradient(180deg, var(--fg), var(--muted)); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0; line-height: 1; }
.four04 p { color: var(--fg-2); font-size: 18px; margin: 12px 0 28px; }

/* ---------- animations ---------- */
.anim { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.anim.visible { opacity: 1; transform: none; }
.anim.d1 { transition-delay: .1s; } .anim.d2 { transition-delay: .2s; } .anim.d3 { transition-delay: .3s; }
.anim.d4 { transition-delay: .4s; } .anim.d5 { transition-delay: .5s; }

/* profile extras */
.login-content { text-align: center; }
.login-icon-wrap { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, rgba(145,70,255,.15), rgba(145,70,255,.05)); display: grid; place-items: center; margin: 0 auto 20px; }
.profile-icon { width: 36px; height: 36px; color: var(--twitch); display: block; }
.login-subtitle { color: var(--fg-2); font-size: 15px; margin: 0 0 24px; }
.login-features { display: flex; flex-direction: column; gap: 10px; text-align: left; margin-bottom: 28px; padding: 20px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.login-feat { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--fg-2); }
.login-feat .i { width: 18px; height: 18px; color: var(--accent); flex: none; }
.login-note { font-size: 12px; color: var(--muted); margin: 16px 0 0; }
.login-note::before { content: "🔒 "; }
.empty-state { padding: 24px 0; text-align: center; }
.profile-loading { padding: 40px 0; text-align: center; color: var(--muted); }
.profile-loading p { margin: 12px 0 0; }
.spin-icon { width: 32px; height: 32px; margin: 0 auto; display: block; color: var(--accent); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn.danger { border-color: #ef4444; color: #ef4444; }
.btn.danger:hover { background: rgba(239, 68, 68, .1); }
.empty-hint { color: var(--muted); font-size: 14px; margin-top: 0; }

/* ---------- cookie banner (blocking overlay) ---------- */
.cookie-banner { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .7); backdrop-filter: blur(8px); opacity: 0; transition: opacity .4s ease; }
.cookie-banner.visible { opacity: 1; }
.cb-inner { width: min(480px, calc(100% - 40px)); padding: 36px 32px 32px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--bg-2); box-shadow: 0 24px 64px -16px rgba(0, 0, 0, .6); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; transform: translateY(20px) scale(.97); transition: transform .4s var(--ease); }
.cookie-banner.visible .cb-inner { transform: none; }
.cb-icon-wrap { width: 64px; height: 64px; border-radius: 16px; background: var(--accent-wash); display: grid; place-items: center; }
.cb-icon { width: 32px; height: 32px; color: var(--accent); }
.cb-text { display: flex; flex-direction: column; gap: 6px; }
.cb-title { font-size: 20px; font-weight: 800; margin: 0; color: var(--fg); letter-spacing: -.02em; }
.cb-desc { font-size: 14px; color: var(--fg-2); margin: 0; line-height: 1.6; }
.cb-desc a { color: var(--accent); text-decoration: underline; }
.cb-actions { display: flex; gap: 10px; width: 100%; }
.cb-actions .btn { flex: 1; justify-content: center; }
/* acoplado abajo: no bloquea, deja leer la página */
.cookie-banner.docked { inset: auto 0 0 0; background: none; backdrop-filter: none; padding: 0 16px 16px; pointer-events: none; }
.cookie-banner.docked .cb-inner { pointer-events: auto; width: min(920px, 100%); flex-direction: row; text-align: left; padding: 16px 20px; gap: 16px; transform: translateY(120%); transition: transform .55s cubic-bezier(.2, .9, .25, 1.15); }
.cookie-banner.docked.visible .cb-inner { transform: none; }
.cookie-banner.docked .cb-icon-wrap { width: 44px; height: 44px; border-radius: 12px; flex: none; }
.cookie-banner.docked .cb-icon { width: 24px; height: 24px; }
.cookie-banner.docked .cb-title { font-size: 15px; }
.cookie-banner.docked .cb-desc { font-size: 13px; }
.cookie-banner.docked .cb-actions { width: auto; flex: none; }
.cookie-banner.on-legal .cb-desc a { display: none; }
.cookie-banner.docking { background: rgba(0, 0, 0, 0); backdrop-filter: none; transition: background .38s ease; }
.cookie-banner.docking .cb-inner { transform: translateY(60vh) scale(.9); opacity: .4; transition: transform .38s ease-in, opacity .38s ease-in; }
@media (max-width: 700px) {
  .cookie-banner.docked .cb-inner { flex-direction: column; text-align: center; }
  .cookie-banner.docked .cb-actions { width: 100%; }
}
@media (max-width: 500px) {
  .cb-inner { padding: 28px 20px 24px; }
  .cb-actions { flex-direction: column-reverse; }
}

/* ---------- planes y precios ---------- */
.plans-hero, .pricing { position: relative; overflow: hidden; padding: 80px 0; }
.plans-bg { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 50% 40% at 70% 20%, rgba(245, 197, 66, .13), transparent 70%), radial-gradient(ellipse 45% 40% at 25% 30%, rgba(249, 115, 22, .14), transparent 70%); }
.plans-bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(ellipse at 50% 30%, #000, transparent 70%); }
.plans-hero .wrap, .pricing .wrap { position: relative; }
.plans-hero .head, .pricing .head, .perks .head, .compare .head { text-align: center; max-width: 680px; margin: 0 auto 46px; }
.plans-hero h1 { font-size: clamp(34px, 5.4vw, 56px); }
.plans-hero .lead { margin: 0 auto; }
.pricing .head h2, .perks .head h2, .compare .head h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.03em; margin: 0 0 12px; }
.pricing .head p, .perks .head p, .compare .head p { color: var(--fg-2); font-size: 17px; margin: 0; }
.plans-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; gap: 24px; }
.plan-card { position: relative; display: flex; flex-direction: column; padding: 30px; text-align: left; border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--panel), var(--bg-2)); box-shadow: 0 24px 70px -30px rgba(0, 0, 0, .8); transition: transform .3s var(--ease), box-shadow .3s; }
.plan-card:hover { transform: translateY(-4px); }
.plan-card.pro { border-color: rgba(245, 197, 66, .65); background: linear-gradient(170deg, rgba(245, 197, 66, .12), var(--panel) 38%, var(--bg-2)); box-shadow: 0 30px 80px -30px rgba(245, 197, 66, .45), 0 0 0 1px rgba(245, 197, 66, .15) inset; }
.plan-ribbon { position: absolute; top: -13px; right: 24px; padding: 5px 12px; border-radius: 99px; background: linear-gradient(90deg, #fde68a, #f5c542, #fb923c); color: #231a02; font-size: 12px; font-weight: 850; letter-spacing: .02em; box-shadow: 0 8px 22px -6px rgba(245, 197, 66, .7); }
.plan-card header { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.plan-ic { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #231a02; background: linear-gradient(160deg, #fde68a, #f5c542 55%, #f59e0b); box-shadow: 0 10px 26px -8px rgba(245, 197, 66, .7); }
.plan-ic .i { width: 24px; height: 24px; }
.plan-ic.free { color: var(--accent); background: var(--accent-wash); border: 1px solid rgba(249, 115, 22, .35); box-shadow: none; }
.plan-name { margin: 0; font-size: 24px; font-weight: 850; letter-spacing: -.02em; }
.plan-card.pro .plan-name { background: linear-gradient(90deg, #fde68a, #f5c542, #fb923c); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-for { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.plan-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.plan-price b { font-size: 50px; font-weight: 900; letter-spacing: -.04em; line-height: 1; }
.plan-price span { font-size: 14px; color: var(--muted); font-weight: 600; }
.plan-k { margin: 22px 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.plan-features { flex: 1; margin: 0 0 24px; padding: 0; list-style: none; }
.plan-features li { display: flex; align-items: flex-start; gap: 11px; margin-bottom: 12px; color: var(--fg-2); line-height: 1.45; font-size: 15px; }
.plan-features li b { color: var(--fg); }
.plan-features li .i { width: 20px; height: 20px; margin-top: 1px; padding: 3px; border-radius: 99px; color: var(--ok); background: rgba(34, 197, 94, .12); }
.plan-card.pro .plan-features li .i { color: #f5c542; background: rgba(245, 197, 66, .14); }
.plan-features li.off { color: #5d5d68; }
.plan-features li.off .i { color: #5d5d68; background: var(--panel-2); }
.plan-card .btn { justify-content: center; width: 100%; height: 48px; }
.plan-trust { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px dashed rgba(245, 197, 66, .3); display: grid; gap: 8px; font-size: 13px; color: var(--fg-2); }
.plan-trust li { display: flex; align-items: center; gap: 8px; }
.plan-trust .i { width: 15px; height: 15px; color: #f5c542; }
.pricing-more { text-align: center; margin: 28px 0 0; }
.pricing-more a { color: var(--accent-2); font-weight: 700; border-bottom: 1px solid rgba(253, 186, 116, .35); transition: border-color .2s; }
.pricing-more a:hover { border-color: var(--accent-2); }

/* lo que desbloquea Premium */
.perks { padding: 40px 0 80px; }
.perk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.perk { display: flex; flex-direction: column; padding: 26px 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg-2); transition: border-color .25s, transform .25s var(--ease); }
.perk:hover { border-color: rgba(245, 197, 66, .4); transform: translateY(-4px); }
.perk-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; }
.perk-ic .i { width: 23px; height: 23px; }
.perk-ic.orange { background: var(--accent-wash); color: var(--accent); }
.perk-ic.purple { background: rgba(145, 70, 255, .12); color: #a78bfa; }
.perk-ic.green { background: rgba(34, 197, 94, .12); color: var(--ok); }
.perk-ic.blue { background: rgba(56, 189, 248, .12); color: #38bdf8; }
.perk h3 { margin: 0 0 8px; font-size: 17px; font-weight: 750; }
.perk p { flex: 1; margin: 0 0 16px; color: var(--fg-2); font-size: 14.5px; line-height: 1.55; }
.perk-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.perk-pill { padding: 4px 10px; border-radius: 99px; background: rgba(245, 197, 66, .1); border: 1px solid rgba(245, 197, 66, .3); color: #fde68a; font-size: 12.5px; font-weight: 700; }
.perks-note { margin: 22px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.perk .btn { margin-top: 16px; align-self: flex-start; }
#usb .steps { margin-top: 48px; }
.shop-badge { margin-left: 6px; padding: 1px 6px; border-radius: 5px; background: rgba(34, 197, 94, .14); color: #86efac; font-size: 10.5px; font-weight: 800; vertical-align: 1px; white-space: nowrap; }
.buy-note { max-width: 560px; width: calc(100% - 32px); padding: 30px; border-radius: var(--r); border: 2px solid var(--accent); background: var(--bg-2); color: var(--fg); box-shadow: 0 0 0 6px rgba(249, 115, 22, .15), 0 30px 80px -20px rgba(0, 0, 0, .8); }
.buy-note::backdrop { background: rgba(0, 0, 0, .75); backdrop-filter: blur(3px); }
.buy-note-ic { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 14px; background: rgba(249, 115, 22, .15); color: var(--accent); }
.buy-note-ic .i { width: 28px; height: 28px; }
.buy-note h2 { margin: 0 0 14px; font-size: 24px; font-weight: 850; }
.buy-note ul { margin: 0 0 24px; padding-left: 20px; color: var(--fg-2); line-height: 1.6; font-size: 15.5px; }
.buy-note li + li { margin-top: 8px; }
.buy-note li b { color: var(--fg); }
.buy-note-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.buy-note-actions .btn.pri[aria-disabled="true"] { opacity: .45; pointer-events: none; box-shadow: none; }
#usb .step a, .plan-features a, .faq .answer a { color: var(--accent); }

/* comparativa */
.compare { padding: 40px 0 80px; scroll-margin-top: 70px; }
.cmp-wrap { max-width: 920px; margin: 0 auto; overflow-x: auto; border-radius: 20px; border: 1px solid var(--line-2); background: var(--bg-2); box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .8); }
.cmp { width: 100%; min-width: 560px; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.cmp th, .cmp td { padding: 14px 20px; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.cmp tbody th { text-align: left; font-weight: 600; color: var(--fg); }
.cmp th small, .cmp td small { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.cmp thead th { padding: 20px; background: var(--panel); font-size: 18px; font-weight: 850; }
.cmp thead th small { margin-top: 2px; font-size: 13px; font-weight: 600; }
.cmp thead th:first-child { width: 50%; }
.cmp .pro { background: rgba(245, 197, 66, .045); }
.cmp thead th.pro { background: linear-gradient(180deg, rgba(245, 197, 66, .2), rgba(245, 197, 66, .06)), var(--panel); color: #fde68a; border-bottom-color: rgba(245, 197, 66, .4); }
.cmp tr.grp th { padding: 22px 20px 10px; background: var(--bg); color: var(--accent-2); font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; text-align: left; }
.cmp tbody tr:not(.grp):hover th, .cmp tbody tr:not(.grp):hover td { background-color: rgba(255, 255, 255, .025); }
.cmp i.y, .cmp i.n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 99px; }
.cmp i.y { background: rgba(34, 197, 94, .14); }
.cmp i.y::before { content: ""; width: 11px; height: 6px; border: solid var(--ok); border-width: 0 0 2.5px 2.5px; transform: translateY(-2px) rotate(-45deg); }
.cmp .pro i.y { background: rgba(245, 197, 66, .18); }
.cmp .pro i.y::before { border-color: #f5c542; }
.cmp i.n { background: var(--panel); }
.cmp i.n::before { content: ""; width: 10px; height: 2.5px; border-radius: 2px; background: #5d5d68; }
.cmp .v { font-size: 17px; font-weight: 850; }
.cmp .t { font-size: 14px; color: var(--fg-2); font-weight: 600; }
.cmp tfoot th, .cmp tfoot td { border-bottom: 0; padding: 20px; }
.cmp tfoot .btn { width: 100%; justify-content: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.step code { padding: 1px 6px; border-radius: 6px; background: var(--panel-2); font-size: 12.5px; white-space: nowrap; }

@media (max-width: 960px) {
  .perk-grid, .steps-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .plans-grid { grid-template-columns: minmax(0, 440px); }
  .plan-card.pro { order: -1; }
  .perk-grid, .steps-4 { grid-template-columns: 1fr; }
  .cmp { min-width: 0; font-size: 13.5px; }
  .cmp th, .cmp td { padding: 11px 8px; }
  .cmp tbody th { padding-left: 14px; }
  .cmp thead th { font-size: 14px; padding: 14px 6px; }
  .cmp thead th:first-child { width: 48%; }
  .cmp th small, .cmp td small { font-size: 11.5px; }
  .cmp .t { font-size: 12.5px; }
  .cmp tfoot td { padding: 14px 6px; }
  .cmp tfoot .btn { padding: 0 8px; font-size: 13px; }
}

/* Placas USB (planes): franja de requisitos + dos columnas compactas (cada fila es un enlace) */
.usb-req { max-width: 980px; margin: 0 auto 16px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 13.5px; color: var(--fg-2); }
.usb-req li { display: flex; gap: 6px; align-items: center; }
.usb-req li .i { flex: none; width: 15px; height: 15px; stroke: #22c55e; }
.usb-req li b { color: var(--fg); }
.usb-req li.no { color: var(--muted); }
.usb-req li.no::before { content: "✕"; color: #f87171; font-size: 12px; font-weight: 800; }
/* Tabla de placas: una fila por modelo, sus tiendas como botones con precio (la más barata resaltada).
   El filtro son radios + :has(), sin JS. En móvil cada fila pasa a tarjeta. */
.usb-shop { max-width: 1040px; margin: 0 auto; }
.usb-filter { display: flex; justify-content: center; gap: 6px; margin: 0 0 14px; flex-wrap: wrap; }
.usb-filter input { position: absolute; opacity: 0; pointer-events: none; }
.usb-filter label { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--bg-2); color: var(--fg-2); font-size: 14px; font-weight: 700; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.usb-filter label .i { width: 16px; height: 16px; }
.usb-filter label:hover { border-color: #4a4a55; color: var(--fg); }
.usb-filter input:checked + label { background: var(--accent-wash); border-color: rgba(249, 115, 22, .6); color: var(--accent-2); }
.usb-filter input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
.usb-shop:has(#usbf-direct:checked) tbody:not([data-k="direct"]),
.usb-shop:has(#usbf-wired:checked) tbody[data-k="direct"] { display: none; }
.usb-tbl-wrap { border-radius: 18px; border: 1px solid var(--line-2); background: var(--bg-2); overflow: hidden; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .8); }
.usb-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.usb-tbl thead th { padding: 13px 16px; background: var(--panel); color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-align: left; border-bottom: 1px solid var(--line-2); }
.usb-tbl th, .usb-tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.usb-tbl tbody tr:last-child > * { border-bottom-color: var(--line-2); }
.usb-tbl tbody:last-child tr:last-child > * { border-bottom: 0; }
.usb-tbl .num { text-align: right; white-space: nowrap; }
.usb-tbl thead th:nth-child(1) { width: 27%; } .usb-tbl thead th:nth-child(2) { width: 9%; } .usb-tbl thead th:nth-child(3) { width: 14%; } .usb-tbl thead th:nth-child(5) { width: 10%; }
.usb-tbl tbody tr:not(.grp):hover > * { background: rgba(255, 255, 255, .022); }
.usb-tbl tbody th b { font-size: 15px; color: var(--fg); }
.usb-tbl tr.grp th { padding: 16px 16px 10px; background: var(--bg); font-size: 15px; font-weight: 850; color: var(--fg); }
.usb-tbl tr.grp small { margin-left: 10px; font-size: 13px; font-weight: 500; color: var(--muted); }
.usb-tbl .g-ic { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 8px; vertical-align: -7px; background: color-mix(in srgb, var(--k) 16%, transparent); color: var(--k); }
.usb-tbl .g-ic .i { width: 15px; height: 15px; }
.usb-tbl tbody[data-k="direct"] { --k: #f97316; }
.usb-tbl tbody[data-k="wired"] { --k: #a78bfa; }
.usb-tbl tbody[data-k="cable"] { --k: #38bdf8; }
.usb-tbl tbody tr:not(.grp) > th { box-shadow: inset 3px 0 0 var(--k); }
.usb-chip { display: inline-block; padding: 3px 8px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line-2); font: 700 12px ui-monospace, Consolas, monospace; color: var(--fg-2); }
.usb-chip.new { border-color: rgba(34, 197, 94, .4); color: #86efac; }
.usb-dash { color: var(--muted); }
.usb-conn { display: block; font-weight: 700; color: var(--fg); white-space: nowrap; }
.usb-tbl td small { display: block; font-size: 12px; color: var(--muted); }
.usb-offs { display: flex; flex-wrap: wrap; gap: 6px; }
.usb-off { display: inline-flex; align-items: center; gap: 10px; padding: 6px 8px 6px 11px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); color: inherit; text-decoration: none; transition: border-color .15s, background .15s, transform .15s; }
.usb-off:hover { border-color: var(--accent); background: var(--panel-2); transform: translateY(-1px); }
.usb-off span { display: flex; flex-direction: column; line-height: 1.2; }
.usb-off b { font-size: 13px; }
.usb-off small { font-size: 11.5px; color: var(--muted); }
.usb-off em { padding: 3px 8px; border-radius: 7px; background: var(--bg); font-style: normal; font-weight: 850; font-size: 13px; white-space: nowrap; }
.usb-off.best { border-color: rgba(34, 197, 94, .45); }
.usb-off.best em { background: rgba(34, 197, 94, .14); color: #86efac; }
.usb-from { font-size: 18px; font-weight: 900; color: var(--fg); }
@media (max-width: 760px) {
  .usb-req { justify-content: flex-start; }
  .usb-tbl thead { display: none; }
  .usb-tbl, .usb-tbl tbody { display: block; }
  .usb-tbl tr:not(.grp) { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 14px 14px 14px 17px; border-bottom: 1px solid var(--line); box-shadow: inset 3px 0 0 var(--k); }
  .usb-tbl tr.grp { display: block; }
  .usb-tbl tr.grp th { display: block; }
  .usb-tbl tr.grp small { display: block; margin: 4px 0 0 36px; }
  .usb-tbl tbody tr:not(.grp) > *, .usb-tbl tbody tr:not(.grp) > th { display: block; padding: 0; border: 0; box-shadow: none; }
  .usb-tbl tr:not(.grp) > th { grid-column: 1; }
  .usb-tbl .usb-from { grid-column: 2; grid-row: 1; }
  .usb-tbl tr:not(.grp) > td:nth-of-type(1) { grid-column: 1; }
  .usb-tbl tr:not(.grp) > td:nth-of-type(2) { grid-column: 2; grid-row: 2; text-align: right; }
  .usb-tbl tr:not(.grp) > td:nth-of-type(3) { grid-column: 1 / -1; }
  .usb-off { flex: 1 1 140px; justify-content: space-between; }
}

/* Selector de idioma (menú superior). El servidor elige el idioma; ?lang= lo cambia y lo recuerda. */
.lang-sw { display: flex; flex: none; margin-left: 10px; height: 38px; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; }
.lang-sw a { display: grid; place-items: center; padding: 0 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .03em; color: var(--muted); transition: color .2s, background .2s; }
.lang-sw a:hover { color: var(--fg); }
.lang-sw a.on { background: var(--panel); color: var(--fg); }
@media (max-width: 900px) { .lang-sw { margin-left: auto; } .nav .burger { margin-left: 8px; } }

/* ---------- tienda: /comprar y /gracias (assets/shop.js) ---------- */
.shop [hidden] { display: none !important; }
.shop { position: relative; padding: 56px 0 90px; min-height: calc(100vh - 140px); }
.shop .wrap { position: relative; }
.shop-head { text-align: center; margin-bottom: 34px; }
.shop-head h1 { margin: 16px 0 10px; font-size: clamp(34px, 5vw, 52px); line-height: 1.05; letter-spacing: -.03em; font-weight: 900; }
.shop-head .lead { margin: 0 auto; }
.shop-pills { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 20px 0 0; padding: 0; }
.shop-pills li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(22, 22, 26, .8); font-size: 13.5px; font-weight: 650; color: var(--fg-2); }
.shop-pills .i { width: 15px; height: 15px; color: var(--accent-2); }
/* Progreso del formulario: shop.js marca el paso activo (.on) y los completos (.done). */
.shop-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 18px 0 4px; padding: 0; }
.shop-steps li { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 700; color: var(--muted); }
.shop-steps li::before { content: ""; height: 4px; border-radius: 4px; background: var(--line-2); transition: background .25s; }
.shop-steps li i { display: none; }
.shop-steps li.done { color: var(--fg-2); }
.shop-steps li.done::before { background: var(--ok); }
.shop-steps li.on { color: var(--accent-2); }
.shop-steps li.on::before { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
/* Campos con icono; marca verde cuando el valor ya es válido. */
.shop-in { position: relative; display: block; }
.shop-in > .i { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); pointer-events: none; transition: color .2s; }
.shop-in:focus-within > .i { color: var(--accent-2); }
.shop-field .shop-in input, .shop-coupon .shop-in input { padding-left: 42px; }
.shop-field .shop-in input { padding-right: 40px; }
.shop-in::after { content: ""; position: absolute; right: 16px; top: 50%; width: 10px; height: 5px; border: solid var(--ok); border-width: 0 0 2.5px 2.5px; transform: translateY(-70%) rotate(-45deg); opacity: 0; transition: opacity .2s; pointer-events: none; }
.shop-field .shop-in:has(input:valid:not(:placeholder-shown))::after { opacity: 1; }
.shop-off { max-width: 720px; margin: 0 auto 24px; padding: 14px 18px; border-radius: 12px; border: 1px solid rgba(251, 191, 36, .45); background: rgba(251, 191, 36, .1); color: #fde68a; font-weight: 600; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; }
.shop-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 26px; align-items: start; max-width: 1000px; margin: 0 auto; }
.shop-form, .shop-sum, .thx-card { border-radius: 18px; border: 1px solid var(--line); background: rgba(17, 17, 20, .92); backdrop-filter: blur(8px); }
.shop-form { padding: 10px 28px 26px; }
.shop-sec { margin: 0; padding: 20px 0 22px; border: 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.shop-sec legend { float: left; width: 100%; margin-bottom: 4px; padding: 0; }
/* Cabecera de cada paso: número + título + subtítulo; se ilumina en el paso activo o completo. */
.shop-leg { display: flex; gap: 12px; align-items: center; }
.shop-leg span { display: flex; flex-direction: column; }
.shop-leg > i { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--accent-wash); border: 1px solid rgba(249, 115, 22, .35); color: var(--accent-2); font-size: 14px; font-weight: 900; font-style: normal; transition: background .2s, color .2s; }
.shop-leg b { font-size: 16.5px; font-weight: 800; color: var(--fg); }
.shop-leg small { font-size: 13px; color: var(--muted); }
.shop-sec:focus-within .shop-leg > i { background: var(--accent); color: #1c0b02; border-color: var(--accent); }
.shop-sec.done .shop-leg > i { background: rgba(34, 197, 94, .16); color: var(--ok); border-color: rgba(34, 197, 94, .45); }
.shop-sec:last-of-type { border-bottom: 0; padding-bottom: 4px; }
.shop-field { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 650; color: var(--fg-2); }
.shop-field em { font-style: normal; font-weight: 500; color: var(--muted); }
.shop-field small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.shop-field input, .shop-coupon input { width: 100%; height: 48px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--panel); color: var(--fg); font: inherit; font-size: 15.5px; font-weight: 500; transition: border-color .2s, box-shadow .2s; }
.shop-field input:focus, .shop-coupon input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249, 115, 22, .2); }
.shop-field.bad input, .shop-field.bad .shop-prefix { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .18); }
.shop-prefix { display: flex; align-items: center; border-radius: 11px; border: 1px solid var(--line-2); background: var(--panel); overflow: hidden; }
.shop-prefix > .i { flex: none; width: 18px; height: 18px; margin-left: 14px; color: #a970ff; }
.shop-prefix b { padding: 0 2px 0 8px; color: var(--muted); font-weight: 600; font-size: 15px; }
.shop-field .shop-prefix input { border: 0; border-radius: 0; padding-left: 2px; background: none; box-shadow: none; }
.shop-prefix:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249, 115, 22, .2); }
.shop-coupon { display: flex; gap: 10px; }
.shop-coupon .shop-in { flex: 1; }
.shop-coupon input { text-transform: uppercase; letter-spacing: .08em; font-family: ui-monospace, Consolas, monospace; }
.shop-coupon input:disabled { color: var(--ok); border-color: rgba(34, 197, 94, .5); }
.shop-coupon .btn { height: 48px; }
.shop-msg { margin: 0; font-size: 14px; font-weight: 600; }
.shop-msg:empty { display: none; }
.shop-msg.ok { color: var(--ok); }
.shop-msg.bad { color: #fca5a5; }
#formMsg { margin-top: 16px; padding: 10px 14px; border-radius: 10px; background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .4); }
.shop-check { display: flex; gap: 12px; align-items: flex-start; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); font-size: 14px; color: var(--fg-2); line-height: 1.5; cursor: pointer; transition: border-color .15s, background .15s; }
.shop-check:hover { border-color: #4a4a55; }
.shop-check:has(input:checked) { border-color: rgba(34, 197, 94, .45); background: rgba(34, 197, 94, .06); }
.shop-check input { flex: none; width: 19px; height: 19px; margin-top: 1px; accent-color: var(--accent); cursor: pointer; }
.shop-check a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.shop-pay { width: 100%; height: 56px; margin-top: 18px; justify-content: center; font-size: 16.5px; }
.shop-pay .i { width: 20px; height: 20px; }
.shop-pay[disabled] { opacity: .65; pointer-events: none; }
.shop-methods { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: center; margin-top: 14px; font-size: 13px; color: var(--fg-2); }
.shop-sec-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: rgba(34, 197, 94, .1); color: #86efac; font-weight: 700; }
.shop-sec-pill .i { width: 14px; height: 14px; }
.shop-brands { display: inline-flex; gap: 5px; }
.shop-brands b { padding: 3px 7px; border-radius: 6px; border: 1px solid var(--line-2); background: var(--panel); font-size: 11px; font-weight: 900; letter-spacing: .03em; color: var(--fg); }
.shop-mor { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.55; text-align: center; }
.shop-mor a { color: var(--accent-2); }

.shop-sum { position: sticky; top: 90px; padding: 24px; }
.shop-sum h2 { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 17px; }
.shop-prod { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.shop-prod img { width: 44px; height: 44px; padding: 8px; border-radius: 12px; background: var(--accent-wash); }
.shop-prod b { display: block; font-size: 16px; }
.shop-prod small { color: var(--muted); font-size: 13px; }
.shop-prod > div { flex: 1; min-width: 0; }
.shop-life { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 99px; background: rgba(245, 197, 66, .14); border: 1px solid rgba(245, 197, 66, .35); color: #fde68a; font-size: 11.5px; font-weight: 800; white-space: nowrap; }
.shop-life .i { width: 13px; height: 13px; }
.shop-lines { margin: 0; padding: 10px 0; }
.shop-lines > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; font-size: 15px; border-bottom: 1px dashed var(--line); }
.shop-lines > div:last-child { border-bottom: 0; }
.shop-lines dt { color: var(--fg-2); }
.shop-lines dd { margin: 0; font-weight: 650; text-align: right; overflow-wrap: anywhere; }
#sumDisc { color: var(--ok); }
.shop-lines .total { padding-top: 14px; border-top: 1px solid var(--line-2); border-bottom: 0; font-size: 19px; }
.shop-lines .total dt { color: var(--fg); font-weight: 800; }
.shop-lines .total dd { font-weight: 900; }
.shop-tag { margin-left: 4px; padding: 1px 8px; border-radius: 99px; background: rgba(34, 197, 94, .14); color: var(--ok); font: 700 12px ui-monospace, Consolas, monospace; }
.shop-note { margin: 0 0 16px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.shop-k { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.shop-list, .shop-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 14px; color: var(--fg-2); }
.shop-list li, .shop-trust li { display: flex; gap: 10px; align-items: flex-start; }
.shop-list .i { margin-top: 4px; color: var(--ok); }
.shop-k2 { margin-top: 22px; }
.shop-next { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.shop-next li { position: relative; display: flex; gap: 12px; padding-bottom: 14px; }
.shop-next li:last-child { padding-bottom: 0; }
.shop-next li:not(:last-child)::before { content: ""; position: absolute; left: 15px; top: 36px; bottom: 4px; width: 2px; border-radius: 2px; background: var(--line-2); }
.shop-next-ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--accent-2); }
.shop-next-ic .i { width: 16px; height: 16px; }
.shop-next div > b { display: block; font-size: 14px; color: var(--fg); }
.shop-next small b { color: var(--fg-2); }
.shop-next small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.shop-trust { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; }
.shop-trust .i { margin-top: 3px; color: var(--accent-2); }

.shop-faq { max-width: 1000px; margin: 46px auto 0; }
.shop-faq h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 22px; letter-spacing: -.01em; }
.shop-faq h2 .i { width: 22px; height: 22px; color: var(--accent-2); }
.shop-faq details { margin-bottom: 8px; border: 1px solid var(--line); border-radius: 12px; background: rgba(17, 17, 20, .92); transition: border-color .15s; }
.shop-faq details[open] { border-color: var(--line-2); }
.shop-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 18px; font-weight: 700; cursor: pointer; list-style: none; }
.shop-faq summary::-webkit-details-marker { display: none; }
.shop-faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--panel); color: var(--accent-2); font-size: 17px; font-weight: 700; transition: transform .2s; }
.shop-faq details[open] summary::after { transform: rotate(45deg); }
.shop-faq details p { margin: 0; padding: 0 18px 16px; color: var(--fg-2); font-size: 14.5px; line-height: 1.6; }
.shop-faq a { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.shop-faq-more { margin: 12px 0 0; font-size: 13px; color: var(--muted); text-align: center; }

.thanks .wrap { max-width: 640px; }
.thx-card { padding: 38px 32px; text-align: center; }
.thx-card h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 38px); letter-spacing: -.02em; }
.thx-card > p { margin: 0 auto 18px; max-width: 460px; color: var(--fg-2); }
.thx-spin { width: 46px; height: 46px; margin: 0 auto 20px; border-radius: 50%; border: 4px solid var(--line-2); border-top-color: var(--accent); animation: thxSpin 1s linear infinite; }
@keyframes thxSpin { to { transform: rotate(360deg); } }
.thx-ic { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: rgba(34, 197, 94, .14); color: var(--ok); box-shadow: 0 0 0 8px rgba(34, 197, 94, .06); }
.thx-ic .i { width: 32px; height: 32px; stroke-width: 3; }
.thx-key { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 8px 0 22px; padding: 20px; border-radius: 14px; border: 1px dashed var(--accent); background: var(--accent-wash); }
.thx-key span { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); }
.thx-key code { font: 800 clamp(19px, 4vw, 26px)/1.3 ui-monospace, Consolas, monospace; letter-spacing: .06em; overflow-wrap: anywhere; user-select: all; }
.thx-steps { margin: 0 auto 22px; padding-left: 22px; max-width: 420px; text-align: left; color: var(--fg-2); font-size: 14.5px; line-height: 1.7; }
.thx-steps a { color: var(--accent-2); text-decoration: underline; }
.thx-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.thx-rec-h { margin: 32px 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); text-align: left; }
.thx-rec { text-align: left; }

@media (max-width: 900px) {
  .shop { padding-top: 34px; }
  .shop-grid { grid-template-columns: 1fr; }
  .shop-sum { position: static; }   /* debajo del formulario: el botón de pago ya enseña el importe */
  .shop-form { padding: 6px 18px 22px; }
  .shop-steps span { font-size: 11px; }
  .thx-card { padding: 30px 18px; }
}
@media print {
  .nav, .foot, .plans-bg, .thx-acts, .thx-steps, #thxCopy { display: none !important; }
  body { background: #fff; color: #000; }
  .thx-card { border: 0; background: none; backdrop-filter: none; }
  .thx-card p, .shop-lines dt, .shop-mor { color: #333; }
}

/* ---- Funciones (bento con capturas) y Pasos: solo en la portada ---- */
#features .cards { grid-template-columns: repeat(6, 1fr); }
#features .card { grid-column: span 2; position: relative; overflow: hidden; }
#features .card:nth-child(1), #features .card:nth-child(3), #features .card:nth-child(7) { grid-column: span 4; padding-right: 42%; min-height: 250px; }
#features .card:nth-child(5), #features .card:nth-child(6) { grid-column: span 3; }
#features .card:hover { transform: none; border-color: var(--accent); box-shadow: none; }
#features .card-icon { background: none; border: 1px solid var(--line-2); color: var(--accent); border-radius: 10px; }
#features .card-shot { position: absolute; right: -6%; top: 50%; width: 46%; transform: translateY(-50%) rotate(-2deg); border-radius: 10px; border: 1px solid var(--line-2); box-shadow: 0 20px 50px -20px #000; }
@media (max-width: 900px) { #features .cards { grid-template-columns: 1fr; } #features .card, #features .card:nth-child(n) { grid-column: auto; padding-right: 28px; min-height: 0; } #features .card-shot { position: static; width: 100%; transform: none; margin-bottom: 16px; } }
#how .steps { gap: 0; border-top: 1px solid var(--line-2); }
#how .step { background: none; border: 0; border-radius: 0; padding: 28px 28px 8px 0; }
#how .step::before { position: static; width: auto; height: auto; background: none; color: transparent; -webkit-text-stroke: 1.2px var(--accent); content: "0" counter(step); font: 800 54px/1 Inter, sans-serif; display: block; margin-bottom: 10px; }
#how .step h3 { margin-top: 0; font-size: 20px; }

/* ---- Aviso: hace falta la extensión de Twitch ---- */
.ext-modal { border: 1px solid var(--line-2); border-radius: 16px; background: var(--panel); color: var(--fg); padding: 30px 30px 26px; width: min(460px, calc(100% - 32px)); box-shadow: 0 30px 80px -20px #000; }
.ext-modal::backdrop { background: rgba(0, 0, 0, .65); backdrop-filter: blur(3px); }
.ext-modal h3 { font-size: 24px; margin: 4px 0 10px; letter-spacing: -.02em; }
.ext-modal p { color: var(--fg-2); margin: 0 0 22px; font-size: 15px; }
.ext-modal .em-eye { color: var(--accent); font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin: 0; }
.em-act { display: flex; flex-wrap: wrap; gap: 10px; }


/* ================= Aviso antes de comprar ================= */
@keyframes bnIn { from { opacity: 0; transform: translateY(18px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes bnRing { 0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, .5); } 100% { box-shadow: 0 0 0 16px rgba(249, 115, 22, 0); } }
.buy-note { max-width: 540px; padding: 0 30px 26px; border: 1px solid var(--line-2); border-radius: 20px; background: linear-gradient(180deg, var(--panel), var(--bg-2)); box-shadow: 0 40px 90px -20px #000, 0 0 0 1px rgba(249, 115, 22, .08); overflow: hidden; }
.buy-note[open] { animation: bnIn .4s var(--ease) both; }
.buy-note::before { content: ""; display: block; height: 4px; margin: 0 -30px; background: linear-gradient(90deg, var(--accent-deep), var(--accent), var(--accent-2)); }
.buy-note-ic { margin-top: 26px; width: 56px; height: 56px; border-radius: 16px; border: 1px solid rgba(249, 115, 22, .35); animation: bnRing 2s ease-out infinite; }
.buy-note h2 { font-size: 26px; letter-spacing: -.02em; margin-bottom: 16px; }
.buy-note ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.buy-note li { position: relative; margin: 0 !important; padding: 14px 16px 14px 50px; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255, 255, 255, .02); font-size: 15px; }
.buy-note li::before { content: ""; position: absolute; left: 16px; top: 15px; width: 22px; height: 22px; border-radius: 50%; background: rgba(34, 197, 94, .15) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 12 10 16 18 8'/></svg>") center / 14px no-repeat; }
.buy-note li:last-child { border-color: rgba(249, 115, 22, .4); background: var(--accent-wash); }
.buy-note li:last-child::before { background: rgba(249, 115, 22, .2) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f97316' stroke-width='3' stroke-linecap='round'><path d='M12 7v6M12 17h.01'/></svg>") center / 14px no-repeat; }
.buy-note-actions { margin-top: 4px; }

/* ================= Pasos de planes (placa USB / activar) ================= */
.steps-4 { gap: 16px; counter-reset: step; }
.steps-4 .step { padding: 70px 22px 24px; border-radius: 16px; border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--panel), var(--bg-2)); overflow: hidden; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.steps-4 .step::before { top: 20px; left: 22px; width: 36px; height: 36px; border-radius: 50%; background: var(--accent-wash); border: 1.5px solid var(--accent); color: var(--accent); font-size: 15px; transition: background .3s, color .3s, transform .3s var(--ease); }
.steps-4 .step::after { content: ""; position: absolute; top: 37px; left: 70px; right: -16px; height: 0; border-top: 2px dashed rgba(249, 115, 22, .35); }
.steps-4 .step:last-child::after { display: none; }
.steps-4 .step:hover { transform: translateY(-5px); border-color: var(--accent); box-shadow: 0 18px 40px -18px rgba(249, 115, 22, .35); }
.steps-4 .step:hover::before { background: var(--accent); color: #1c0a02; transform: scale(1.1); }
.steps-4 .step:last-child { border-color: rgba(249, 115, 22, .45); background: linear-gradient(180deg, rgba(249, 115, 22, .08), var(--bg-2)); }
.steps-4 .step h3 { margin: 0 0 8px; font-size: 17px; }
@media (max-width: 960px) { .steps-4 .step::after { display: none; } }

.links a, .nav .btn { white-space: nowrap; }
.nav .wrap { gap: 20px; }
@media (max-width: 1180px) { .links a { padding: 7px 8px; font-size: 13.5px; } }

/* ---- Animaciones sutiles ---- */
.links a { position: relative; }
.links a::after { content: ""; position: absolute; left: 50%; right: 50%; bottom: -4px; height: 2px; border-radius: 2px; background: var(--accent); transition: left .3s var(--ease), right .3s var(--ease); }
.links a:hover::after, .links a.on::after { left: 0; right: 0; }
.brand img { transition: transform .35s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }
.nav .btn:active, .btn:active { transform: translateY(0) scale(.97); }
.lang-sw a { transition: color .2s, background .2s; }
.faq details { transition: border-color .25s, background .25s; }
.faq details summary { transition: color .2s, padding-left .25s var(--ease); }
.faq details:hover summary { padding-left: 4px; }
.plan-card, .perk, .fx-grid li { transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.plan-card:hover, .perk:hover { transform: translateY(-3px); }
.anim { transition-timing-function: var(--ease); }
/* ---- Selector de idioma ---- */
.lang-sw { align-items: center; gap: 2px; height: 36px; padding: 3px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--panel); overflow: visible; }
.lang-sw::before { content: ""; width: 15px; height: 15px; margin: 0 4px 0 7px; background: var(--muted); -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><circle cx='12' cy='12' r='9'/><path d='M3 12h18M12 3c3 3.2 3 14.8 0 18M12 3c-3 3.2-3 14.8 0 18'/></svg>") center / contain no-repeat; mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'><circle cx='12' cy='12' r='9'/><path d='M3 12h18M12 3c3 3.2 3 14.8 0 18M12 3c-3 3.2-3 14.8 0 18'/></svg>") center / contain no-repeat; }
.lang-sw a { height: 100%; padding: 0 11px; border-radius: 99px; font-size: 12px; transition: color .2s, background .25s; }
.lang-sw a:hover { color: var(--fg); background: var(--panel-2); }
.lang-sw a.on { background: var(--accent); color: #1c0a02; box-shadow: 0 4px 14px -4px rgba(249, 115, 22, .7); }
@media (max-width: 900px) { .lang-sw::before { display: none; } }
/* ---------- /ideas: propón tu idea, mis ideas y tablero (assets/ideas.js) ---------- */
.ideas .profile-loading { margin: 80px auto; }
.idea-top { max-width: 1100px; }
.idea-login, .idea-done { padding: 34px 30px; text-align: center; }
.idea-login h2, .idea-done h2 { margin: 0 0 10px; font-size: 22px; }
.idea-login p, .idea-done p { margin: 0 auto 20px; max-width: 460px; color: var(--fg-2); line-height: 1.6; }
.idea-done-ic { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; background: rgba(34, 197, 94, .14); color: var(--ok); }
.idea-done-ic .i { width: 32px; height: 32px; }
.idea-form textarea { width: 100%; min-height: 150px; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--panel); color: var(--fg); font: inherit; font-size: 15px; line-height: 1.55; resize: vertical; transition: border-color .2s, box-shadow .2s; }
.idea-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249, 115, 22, .2); }
.shop-field.bad textarea, .idea-drop.bad, .shop-check.bad { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .18); }
.idea-count { float: right; font-size: 12px; }
.idea-kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.idea-kind { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 13px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); color: var(--fg-2); text-align: left; font: inherit; cursor: pointer; transition: border-color .15s, background .15s, transform .15s var(--ease); }
.idea-kind:hover { border-color: #4a4a55; transform: translateY(-1px); }
.idea-kind .i { width: 22px; height: 22px; color: var(--muted); margin-bottom: 4px; }
.idea-kind b { font-size: 14.5px; color: var(--fg); }
.idea-kind small { font-size: 12px; color: var(--muted); }
.idea-kind.on { border-color: var(--accent); background: var(--accent-wash); }
.idea-kind.on .i { color: var(--accent-2); }
.idea-cats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.idea-chip { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--panel); color: var(--fg-2); font: inherit; font-size: 13px; font-weight: 650; cursor: pointer; }
.idea-chip.on { border-color: var(--accent); color: var(--accent-2); background: var(--accent-wash); }
.idea-drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 16px; border: 1.5px dashed var(--line-2); border-radius: 14px; background: rgba(22, 22, 26, .6); text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.idea-drop:hover, .idea-drop.on, .idea-drop:focus-visible { border-color: var(--accent); background: var(--accent-wash); outline: none; }
.idea-drop .i { width: 26px; height: 26px; color: var(--accent-2); }
.idea-drop b { font-size: 14.5px; }
.idea-drop small { font-size: 12.5px; color: var(--muted); }
.idea-files { display: flex; flex-direction: column; gap: 8px; }
.idea-files:empty { display: none; }
.idea-file { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); }
.idea-file.bad { border-color: rgba(239, 68, 68, .5); }
.idea-file-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.idea-file-t b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.idea-file-t small { font-size: 12px; color: var(--muted); }
.idea-file.bad small { color: #fca5a5; }
.idea-file-wait { display: grid; place-items: center; width: 56px; height: 42px; border-radius: 8px; background: var(--panel-2); color: var(--muted); font-weight: 900; }
.idea-media.thumb { width: 56px; height: 42px; object-fit: cover; border-radius: 8px; flex: none; }
audio.idea-media.thumb { width: 170px; height: 34px; }
.idea-x { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.idea-x:hover { background: rgba(239, 68, 68, .14); color: #fca5a5; }
.idea-x .i { width: 16px; height: 16px; }
.idea-side h2 { margin: 0 0 14px; }
.idea-side h2.mt { margin-top: 24px; }
.idea-n { min-width: 24px; padding: 2px 8px; border-radius: 99px; background: var(--accent-wash); color: var(--accent-2); font-size: 12.5px; text-align: center; }
.idea-n:empty { display: none; }
.idea-mine { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.idea-mine:last-of-type { border-bottom: 0; }
.idea-mine-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.idea-mine-h b { font-size: 14.5px; line-height: 1.35; }
.idea-mine small { color: var(--muted); font-size: 12.5px; }
.idea-hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.idea-reply { margin: 8px 0 0; padding: 9px 11px; border-radius: 10px; border-left: 3px solid var(--accent); background: var(--panel); font-size: 13.5px; color: var(--fg-2); line-height: 1.5; white-space: pre-line; }
.idea-reply b { display: block; margin-bottom: 2px; font-size: 12px; color: var(--accent-2); text-transform: uppercase; letter-spacing: .04em; }
.idea-adopted { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; font-size: 13.5px; color: #86efac; }
.idea-adopted .i { width: 15px; height: 15px; }
.idea-del { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12.5px; cursor: pointer; }
.idea-del:hover { color: #fca5a5; }
.idea-del .i { width: 14px; height: 14px; }
.idea-steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: flex; flex-direction: column; gap: 12px; }
.idea-steps li { counter-increment: s; position: relative; padding-left: 38px; display: flex; flex-direction: column; }
.idea-steps li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-wash); color: var(--accent-2); font-size: 13px; font-weight: 900; }
.idea-steps b { font-size: 14px; }
.idea-steps span { font-size: 13px; color: var(--muted); }
.idea-st { flex: none; display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 800; white-space: nowrap; border: 1px solid var(--line-2); color: var(--fg-2); }
.idea-st.st-review { color: #93c5fd; border-color: rgba(147, 197, 253, .4); background: rgba(59, 130, 246, .1); }
.idea-st.st-planned { color: var(--accent-2); border-color: rgba(249, 115, 22, .45); background: var(--accent-wash); }
.idea-st.st-done { color: #86efac; border-color: rgba(34, 197, 94, .45); background: rgba(34, 197, 94, .1); }
.idea-st.st-rejected { color: #fca5a5; border-color: rgba(239, 68, 68, .4); background: rgba(239, 68, 68, .08); }
.idea-board { max-width: 1100px; margin: 56px auto 0; }
.idea-board-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.idea-board-h h2 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.02em; }
.idea-board-h p { margin: 0; color: var(--muted); }
.idea-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.idea-seg { display: flex; border: 1px solid var(--line-2); border-radius: 11px; overflow: hidden; }
.idea-seg button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.idea-seg button.on { background: var(--panel-2); color: var(--fg); }
.idea-seg i { font-style: normal; font-size: 11.5px; color: var(--muted); }
.idea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.idea-card { display: flex; gap: 14px; padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg-2); }
.idea-vote { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 54px; height: 62px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); color: var(--fg-2); font: inherit; cursor: pointer; transition: border-color .15s, background .15s, transform .15s var(--ease); }
.idea-vote:hover { border-color: var(--accent); transform: translateY(-1px); }
.idea-vote .i { width: 18px; height: 18px; }
.idea-vote b { font-size: 16px; }
.idea-vote.on { border-color: var(--accent); background: var(--accent-wash); color: var(--accent-2); }
.idea-body { flex: 1; min-width: 0; }
.idea-card-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.idea-kind-t { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.idea-kind-t .i { width: 15px; height: 15px; color: var(--accent-2); }
.idea-card h3 { margin: 8px 0 6px; font-size: 17px; line-height: 1.3; }
.idea-text { margin: 0; font-size: 14px; color: var(--fg-2); line-height: 1.55; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.idea-gal { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.idea-gal img.idea-media, .idea-gal video.idea-media { max-width: 100%; max-height: 180px; border-radius: 10px; border: 1px solid var(--line); }
.idea-gal audio.idea-media { width: 100%; }
.idea-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--accent-2); word-break: break-all; }
.idea-link .i { width: 14px; height: 14px; flex: none; }
.idea-meta { display: block; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.idea-empty { padding: 40px 20px; border: 1px dashed var(--line-2); border-radius: 16px; text-align: center; color: var(--muted); }
@media (max-width: 600px) { .idea-card { padding: 14px; gap: 10px; } .idea-vote { width: 46px; height: 54px; } .idea-grid { grid-template-columns: 1fr; } .idea-form { padding: 6px 16px 20px; } }
/* "Tus ideas" en el perfil (site.js → loadIdeasCard) */
.pf-ideas-empty { margin: 0 0 14px; font-size: 14px; color: var(--fg-2); line-height: 1.55; }
.pf-idea { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.pf-idea > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pf-idea b { font-size: 14px; line-height: 1.35; }
.pf-idea small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.pf-ideas-more { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--accent-2); }
.pf-ideas-go { margin-top: 14px; }
/* /ideas: el tablón primero (por tipo) y el formulario solo al pulsar «¿Quieres proponer…?» */
.idea-head { margin-bottom: 26px; }
.idea-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.idea-cta-go { height: 52px; padding: 0 26px; font-size: 16px; }
.idea-cta .i { width: 19px; height: 19px; }
.idea-types { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.idea-type { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); color: var(--fg-2); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s; }
.idea-type:hover { border-color: #4a4a55; }
.idea-type .i { width: 17px; height: 17px; color: var(--muted); }
.idea-type i { font-style: normal; min-width: 22px; padding: 1px 7px; border-radius: 99px; background: var(--panel-2); color: var(--muted); font-size: 12px; text-align: center; }
.idea-type.on { border-color: var(--accent); background: var(--accent-wash); color: var(--fg); }
.idea-type.on .i { color: var(--accent-2); }
.idea-type.on i { background: rgba(249, 115, 22, .25); color: var(--accent-2); }
.idea-board { margin-top: 30px; }
.idea-propose { max-width: 1100px; margin: 10px auto 0; padding: 22px; border-radius: 20px; border: 1px solid rgba(249, 115, 22, .35); background: rgba(249, 115, 22, .04); scroll-margin-top: 80px; animation: ideaIn .3s var(--ease); }
.idea-propose-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.idea-propose-h h2 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.idea-empty .btn { margin-top: 14px; }
.idea-empty p { margin: 0; }
@keyframes ideaIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) { .idea-propose { padding: 14px; } .idea-type { height: 38px; padding: 0 11px; font-size: 13px; } }

/* ---------- /ideas v2: tarjetas limpias, me gusta / no me gusta, ficha con comentarios ---------- */
.k-effect { --kc: #f97316; } .k-sound { --kc: #ec4899; } .k-action { --kc: #3b82f6; } .k-improvement { --kc: #22c55e; } .k-other { --kc: #a1a1aa; } .k-all { --kc: var(--accent); }
.idea-type.on { border-color: var(--kc); background: color-mix(in srgb, var(--kc) 12%, transparent); }
.idea-type.on .i { color: var(--kc); }
.idea-type.on i { background: color-mix(in srgb, var(--kc) 25%, transparent); color: var(--fg); }
.idea-kind.on { border-color: var(--kc); background: color-mix(in srgb, var(--kc) 10%, transparent); }
.idea-kind.on .i { color: var(--kc); }
.idea-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 99px; background: color-mix(in srgb, var(--kc) 13%, transparent); color: color-mix(in srgb, var(--kc) 75%, #fff); font-size: 12px; font-weight: 750; white-space: nowrap; }
.idea-pill .i { width: 14px; height: 14px; }
.idea-board-h { align-items: center; margin-bottom: 16px; }
.idea-sort { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.idea-sort select { height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); color: var(--fg); font: inherit; font-size: 13px; font-weight: 650; }
.idea-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; align-items: stretch; }
.idea-card { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, #141418, #101013); cursor: pointer; transition: border-color .18s, transform .18s var(--ease), box-shadow .18s; }
.idea-card:hover, .idea-card:focus-visible { border-color: #3a3a44; transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, .9); outline: none; }
.idea-cover { aspect-ratio: 16 / 8; overflow: hidden; background: var(--panel); border-bottom: 1px solid var(--line); }
.idea-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s var(--ease); }
.idea-card:hover .idea-cover img { transform: scale(1.03); }
.idea-card-b { flex: 1; padding: 16px 18px 6px; }
.idea-card h3 { margin: 10px 0 6px; font-size: 17px; line-height: 1.3; letter-spacing: -.01em; }
.idea-text { -webkit-line-clamp: 3; font-size: 14px; color: var(--fg-2); }
.idea-card-f { display: flex; align-items: center; gap: 10px; padding: 12px 18px 14px; border-top: 1px solid var(--line); margin-top: 10px; }
.idea-votes { display: inline-flex; border: 1px solid var(--line-2); border-radius: 11px; overflow: hidden; }
.idea-v { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 0; background: var(--panel); color: var(--fg-2); font: inherit; font-size: 13px; cursor: pointer; transition: background .15s, color .15s; }
.idea-v + .idea-v { border-left: 1px solid var(--line-2); }
.idea-v .i { width: 15px; height: 15px; }
.idea-v b { font-weight: 800; min-width: 8px; }
.idea-v:hover { background: var(--panel-2); color: var(--fg); }
.idea-v.up.on { background: rgba(34, 197, 94, .14); color: #86efac; }
.idea-v.down.on { background: rgba(239, 68, 68, .13); color: #fca5a5; }
.idea-votes.big .idea-v { height: 40px; padding: 0 16px; font-size: 15px; }
.idea-votes.big .idea-v .i { width: 18px; height: 18px; }
.idea-cm { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--muted); }
.idea-cm .i { width: 15px; height: 15px; }
.idea-by { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.idea-by i, .idea-av { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, #f97316, #c2410c); color: #1c0a02; font-style: normal; font-size: 11px; font-weight: 900; }
.idea-note { display: flex; gap: 10px; align-items: flex-start; margin: 2px 0 0; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--panel); font-size: 13px; color: var(--fg-2); line-height: 1.5; }
.idea-note .i { flex: none; width: 17px; height: 17px; margin-top: 1px; color: var(--accent-2); }
.idea-file-wait.zip { background: var(--accent-wash); color: var(--accent-2); }
.idea-file-wait.zip .i { width: 20px; height: 20px; }
.idea-code-sent { display: flex; align-items: center; gap: 5px; margin-top: 4px; color: var(--accent-2) !important; }
.idea-code-sent .i, .idea-mine small .i { width: 13px; height: 13px; vertical-align: -2px; }
.idea-mine-a { display: flex; gap: 14px; }

/* Ficha de una idea (dialog nativo: Esc cierra, el fondo no se puede tocar). */
.idea-dlg { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line-2); border-radius: 22px; background: #111114; color: var(--fg); box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .95); }
.idea-dlg::backdrop { background: rgba(5, 5, 7, .72); backdrop-filter: blur(4px); }
.idea-dlg[open] { animation: ideaIn .22s var(--ease); }
.idea-dlg-in { position: relative; max-height: calc(100vh - 50px); overflow: auto; padding: 26px 28px 28px; }
.idea-dlg-x { position: absolute; top: 14px; right: 14px; }
.idea-dlg h2 { margin: 12px 40px 8px 0; font-size: 26px; line-height: 1.2; letter-spacing: -.02em; }
.idea-dlg .idea-by { margin: 0 0 16px; }
.idea-full { margin: 0 0 16px; font-size: 15.5px; line-height: 1.65; color: var(--fg-2); white-space: pre-line; }
.idea-dlg .idea-gal { margin: 0 0 14px; }
.idea-dlg .idea-gal img.idea-media, .idea-dlg .idea-gal video.idea-media { max-height: 300px; }
.idea-dlg .idea-note, .idea-dlg .idea-reply, .idea-dlg .idea-adopted { margin-top: 12px; }
.idea-dlg-bar { display: flex; align-items: center; gap: 14px; margin: 20px 0 6px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.idea-comments h3 { margin: 18px 0 12px; font-size: 16px; }
.idea-c { display: flex; gap: 11px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.idea-c:last-of-type { border-bottom: 0; }
.idea-c > div { flex: 1; min-width: 0; }
.idea-c-h { display: flex; align-items: center; gap: 8px; }
.idea-c-h b { font-size: 13.5px; }
.idea-c-h small { font-size: 12px; color: var(--muted); }
.idea-c p { margin: 4px 0 0; font-size: 14px; line-height: 1.55; color: var(--fg-2); white-space: pre-line; overflow-wrap: anywhere; }
.idea-c.team .idea-av { background: linear-gradient(135deg, #a855f7, #6d28d9); color: #fff; }
.idea-team { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; background: rgba(168, 85, 247, .15); color: #d8b4fe; font-size: 11px; font-weight: 800; }
.idea-team .i { width: 12px; height: 12px; }
.idea-c-del { margin-left: auto; display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: var(--muted); cursor: pointer; }
.idea-c-del:hover { background: rgba(239, 68, 68, .12); color: #fca5a5; }
.idea-c-del .i { width: 14px; height: 14px; }
.idea-cbox { display: flex; gap: 11px; margin-bottom: 8px; }
.idea-cbox > div { flex: 1; }
.idea-cbox textarea { width: 100%; min-height: 64px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); color: var(--fg); font: inherit; font-size: 14px; resize: vertical; }
.idea-cbox textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(249, 115, 22, .2); }
.idea-cbox-f { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.idea-cbox-f small { color: var(--muted); font-size: 12px; }
.idea-cbox-f .shop-msg { flex: 1; font-size: 13px; }
.idea-cbox-f .btn { margin-left: auto; }
.idea-cbox-login { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px; border-radius: 12px; border: 1px dashed var(--line-2); font-size: 14px; color: var(--fg-2); margin-bottom: 8px; }
@media (max-width: 600px) { .idea-dlg-in { padding: 20px 16px; } .idea-dlg h2 { font-size: 21px; } .idea-card-f { flex-wrap: wrap; } .idea-by { margin-left: 0; width: 100%; } }
.idea-dlg-in > .idea-card-h { padding-right: 44px; }
.idea-mine > small:not(.idea-code-sent) { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.idea-mine > small .i { display: inline-block; flex: none; }
/* Textos de las ideas: una palabra larga sin espacios («teeeeeest…», un enlace) se parte en vez de salirse de la tarjeta. */
.idea-mine-h b, .idea-card h3, .idea-dlg h2, .idea-text, .idea-full, .idea-reply, .idea-adopted, .idea-hint, .idea-c-h b, .pf-idea b, .pf-idea small { overflow-wrap: anywhere; word-break: break-word; min-width: 0; }
.idea-mine-h b, .pf-idea > div b { flex: 1; }
.idea-mine-h .idea-st, .pf-idea .idea-st { flex: none; }
.idea-card, .idea-card-b, .idea-mine, .idea-dlg-in { min-width: 0; }

/* ================= Rediseño 2026-10: menos "plantilla", más personalidad =================
   Para volver atrás basta con borrar este bloque (y el @import de Bricolage arriba). */
:root { --display: 'Bricolage Grotesque', Inter, system-ui, sans-serif; --spring: cubic-bezier(.34, 1.45, .64, 1); }
h1, h2, h3, .plan-price b { font-family: var(--display); }
h1 { font-weight: 800; letter-spacing: -.045em; }
.head h2, .cta-box h2 { letter-spacing: -.035em; }

/* Grano de película sobre todo: rompe el negro plano "digital". */
body::after { content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: .045;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* Hero: una sola luz cálida, sin la mancha morada. */
.hero::before { background: radial-gradient(ellipse 60% 50% at 20% 35%, rgba(249, 115, 22, .14), transparent 70%); }

/* Etiqueta tipo "REC" en vez de píldora. */
.eyebrow { padding: 0; border: 0; background: none; border-radius: 0; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow b { background: #ef4444; box-shadow: none; animation: recBlink 1.6s steps(1) infinite; }
@keyframes recBlink { 50% { opacity: .2; } }

/* Palabra destacada: color plano + subrayado a mano que se dibuja al cargar. */
h1 .grad { position: relative; display: inline-block; background: none; color: var(--accent); animation: none; }
h1 .grad::after { content: ""; position: absolute; left: -2%; right: -4%; bottom: -.12em; height: .28em; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'><path d='M3 14 C40 5 90 4 197 9 M20 17 C70 11 130 11 180 14' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round'/></svg>") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'><path d='M3 14 C40 5 90 4 197 9 M20 17 C70 11 130 11 180 14' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round'/></svg>") center / 100% 100% no-repeat;
  clip-path: inset(0 100% 0 0); animation: scribble .9s .7s cubic-bezier(.6, 0, .3, 1) forwards; }
@keyframes scribble { to { clip-path: inset(0 0 0 0); } }

/* Botones como teclas: se hunden al pulsar (es una app de inputs). */
.btn { box-shadow: 0 3px 0 #050506; transition: transform .12s, box-shadow .12s, background .2s, border-color .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 #050506; }
.btn:active, .nav .btn:active { transform: translateY(3px); box-shadow: 0 0 0 #050506; }
.btn.pri { background: var(--accent); box-shadow: 0 3px 0 var(--accent-deep); }
.btn.pri:hover { background: #fb8a3c; box-shadow: 0 4px 0 var(--accent-deep); }
.btn.pri:active { box-shadow: 0 0 0 var(--accent-deep); }
.btn.twitch { box-shadow: 0 3px 0 #5c2bb3; } .btn.twitch:hover { box-shadow: 0 4px 0 #5c2bb3; }
.btn.discord { box-shadow: 0 3px 0 #3a43a8; } .btn.discord:hover { box-shadow: 0 4px 0 #3a43a8; }
.btn.twitch:active, .btn.discord:active { box-shadow: none; }

/* Entradas variadas en vez del mismo fade-up para todo. */
.head.anim { opacity: 1; transform: none; }
.head.anim h2 { clip-path: inset(0 0 100% 0); transform: translateY(.4em); transition: clip-path .8s var(--ease), transform .8s var(--ease); }
.head.anim.visible h2 { clip-path: inset(0 0 -10% 0); transform: none; }
.head.anim p { opacity: 0; transition: opacity .8s .25s; }
.head.anim.visible p { opacity: 1; }
.card.anim, .plan-card.anim { transform: translateY(40px) rotate(1.5deg); transition: opacity .6s var(--ease), transform .8s var(--spring); }
.card.anim:nth-child(even) { transform: translateY(40px) rotate(-1.5deg); }
.card.anim.visible, .plan-card.anim.visible { transform: none; }
.faq details.anim { transform: translateX(-24px); }
.faq details.anim.visible { transform: none; }
/* Solo los números grandes de la portada; los círculos de .steps-4 (precios) tienen su propio estilo. */
#how .step.anim { transform: none; }
#how .step.anim::before { display: inline-block; transform: translateY(30px); opacity: 0; transition: transform .7s var(--spring), opacity .4s; transition-delay: inherit; }
#how .step.anim.visible::before { transform: none; opacity: 1; }
#how .step::before { font-family: var(--display); }

/* Tarjetas: la captura se endereza al pasar el ratón (sin tilt 3D). */
#features .card-shot { transition: transform .5s var(--spring); }
#features .card:hover .card-shot { transform: translateY(-50%) rotate(0) scale(1.04); }

@media (max-width: 900px) { #features .card:hover .card-shot { transform: none; } }

/* ---- Funciones: escaparate (lista a la izquierda, la app a la derecha) ---- */
#features { overflow-x: clip; }
#features .sc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 48px; align-items: start; opacity: 1; transform: none; }
#features .sc-list { display: flex; flex-direction: column; gap: 4px; grid-column: 1; grid-row: 1; }
#features .sc-list .sc-item { grid-column: auto; position: relative; display: grid; grid-template-columns: 38px 1fr; column-gap: 14px; align-items: center; padding: 14px 52px 14px 16px; min-height: 0; border: 1px solid transparent; border-radius: 12px; background: none; cursor: pointer; overflow: hidden; outline: none;
  transition: background .3s, border-color .3s, opacity .5s var(--ease), transform .6s var(--spring); transition-delay: 0s, 0s, calc(var(--n) * 60ms), calc(var(--n) * 60ms); }
#features .sc-item:hover { background: rgba(255, 255, 255, .025); border-color: transparent; }
#features .sc-item:focus-visible { border-color: var(--accent); }
#features .sc-item.on { background: var(--bg-2); border-color: var(--line-2); }
#features .sc-item .card-icon { grid-row: 1 / span 2; width: 38px; height: 38px; margin: 0; align-self: start; border-radius: 10px; color: var(--muted); transition: color .3s, background .3s, border-color .3s, transform .4s var(--spring); }
#features .sc-item.on .card-icon { color: #1c0a02; background: var(--accent); border-color: var(--accent); transform: rotate(-6deg); }
#features .sc-item .card-icon .i { width: 19px; height: 19px; }
#features .sc-item h3 { margin: 0; font-size: 16.5px; color: var(--fg-2); transition: color .3s; }
#features .sc-item.on h3 { color: var(--fg); }
#features .sc-item p { grid-column: 2; height: 0; overflow: hidden; opacity: 0; margin: 0; font-size: 14.5px; transition: height .45s var(--ease), opacity .3s, margin .45s var(--ease); }
#features .sc-item.on p { height: var(--ph, auto); opacity: 1; margin-top: 6px; transition-delay: 0s, .1s, 0s; }  /* alto sin retraso: el que cierra y el que abre suman siempre lo mismo */
.sc-num { position: absolute; top: 15px; right: 16px; font: 700 11px/1 ui-monospace, Consolas, monospace; color: var(--muted); letter-spacing: .05em; }
#features .sc-item.on .sc-num { color: var(--accent); }
/* Barra de progreso: cuando termina, site.js pasa a la siguiente. */
#features .sc-item::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0; }
#features .sc-item.on::after { animation: scProg 5s linear forwards; }
#features .sc:not(.visible) .sc-item.on::after { animation-play-state: paused; }
@keyframes scProg { to { transform: scaleX(1); } }

#features .sc-view { grid-column: 2; grid-row: 1; position: sticky; top: 96px; transition: opacity .8s var(--ease), transform 1s var(--spring); }
.sc-view::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1.5px dashed rgba(249, 115, 22, .4); border-radius: 16px; }
.sc-view::after { content: ""; position: absolute; inset: -40px; z-index: -1; background: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 18px 18px; mask-image: radial-gradient(ellipse at 60% 50%, #000 20%, transparent 70%); }
.sc-win { position: relative; border-radius: 14px; border: 1px solid var(--line-2); background: #0c0c0e; overflow: hidden; box-shadow: 0 40px 90px -30px #000, 0 0 0 6px rgba(255, 255, 255, .02); }
.sc-chrome { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--panel); }
.sc-chrome i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a42; }
.sc-chrome i:first-child { background: #ef4444; } .sc-chrome i:nth-child(2) { background: #f5c542; } .sc-chrome i:nth-child(3) { background: #22c55e; }
.sc-chrome span { margin-left: 10px; font-size: 12px; font-weight: 700; color: var(--muted); }
.sc-screen { position: relative; aspect-ratio: 1440 / 860; overflow: hidden; }
.sc-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
/* Cambio de captura: la nueva entra con un corte en diagonal tras una barra de luz; la vieja se hunde al fondo. */
/* Cambio de captura: la nueva aparece enfocándose encima; la vieja se aleja un poco por debajo. */
.sc-screen img.in { z-index: 1; animation: scIn .7s var(--ease) both; }
.sc-screen img.out { animation: scOut .7s var(--ease) both; }
@keyframes scIn { from { opacity: 0; transform: scale(1.05); filter: blur(8px); } }
@keyframes scOut { to { opacity: .4; transform: scale(.97); } }
.sc-label { margin-left: 4px; font-size: 12px; font-weight: 700; color: var(--fg-2); }
.sc-label::before { content: "— "; color: var(--muted); }
.sc-count { margin-left: auto; font: 700 11px/1 ui-monospace, Consolas, monospace; font-style: normal; color: var(--muted); letter-spacing: .05em; }
.sc-count span { color: var(--accent); }
.sc-label.roll, .sc-count.roll { animation: scRoll .5s var(--spring) both; }
@keyframes scRoll { from { opacity: 0; transform: translateY(8px); } }

/* Entrada al hacer scroll */
#features .sc.anim .sc-item { opacity: 0; transform: translateX(-20px); }
#features .sc.anim .sc-view { opacity: 0; transform: translateY(40px) rotate(2deg); }
#features .sc.anim.visible .sc-item, #features .sc.anim.visible .sc-view { opacity: 1; transform: none; }

@media (max-width: 900px) {
  #features .sc { grid-template-columns: 1fr; gap: 28px; }
  #features .sc-view { grid-column: 1; position: relative; top: 0; }
  #features .sc-list { grid-row: 2; }
  .sc-view::before { inset: 10px -8px -8px 10px; }
}

/* ---- Resto de la portada ---- */
/* Progreso de lectura bajo la barra de navegación (solo navegadores con scroll-timeline). */
@supports (animation-timeline: scroll()) {
  .nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform-origin: 0; transform: scaleX(0); animation: navProg linear both; animation-timeline: scroll(root); }
  @keyframes navProg { to { transform: scaleX(1); } }
}

/* Pasos: la línea superior se dibuja al llegar. */
#how .steps { position: relative; }
#how .steps::after { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0; transition: transform 1.4s cubic-bezier(.6, 0, .2, 1) .2s; }
#how .steps:has(.step.visible)::after { transform: scaleX(1); }

/* Catálogo: los efectos entran en cascada al cambiar de pestaña. */
.fx-grid li { animation: fxLi .5s var(--spring) both; animation-delay: calc(var(--i, 0) * 22ms); }
@keyframes fxLi { from { opacity: 0; transform: translateY(10px) scale(.96); } }
.fx-grid li:hover { border-color: var(--accent); }

/* Acciones de juego: mismo ancho que el catálogo y ejemplos "en directo" (site.js añade .hit y el @nick). */
.actions-box { max-width: 1100px; margin-top: 18px; grid-template-columns: 1.15fr 1fr; gap: 40px; padding: 36px; align-items: center; }
.ab-examples { position: relative; gap: 12px; }
.ab-ex { position: relative; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 10px; padding: 14px 16px; }
.ab-ex span { grid-column: 1; }
.ab-ex b { grid-column: 1; }
.ab-ex kbd { grid-column: 2; grid-row: 1 / span 2; font-size: 14px; padding: 8px 12px; min-width: 40px; text-align: center; }
.ab-ex.hit { animation: abHit .8s var(--ease); }
.ab-ex.hit kbd { animation: abKey .35s ease-out; }
@keyframes abHit { 0% { border-color: var(--accent); background: var(--accent-wash); } 100% { border-color: var(--line); background: var(--bg); } }
@keyframes abKey { 0% { transform: none; } 30% { transform: translateY(2px); box-shadow: 0 1px 0 var(--accent-deep); background: var(--accent); border-color: var(--accent-deep); color: #1c0a02; } 100% { transform: none; } }
.ab-pop { position: absolute; right: 12px; top: -10px; z-index: 1; font-style: normal; padding: 3px 8px; border-radius: 6px; background: var(--twitch); color: #fff; font-size: 11.5px; font-weight: 700; pointer-events: none; animation: abPop 1.3s var(--ease) both; }
@keyframes abPop { 0% { opacity: 0; transform: translateY(6px) scale(.9); } 15%, 70% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-10px); } }
@media (max-width: 860px) { .actions-box { grid-template-columns: 1fr; padding: 22px; } }

/* Teclas de verdad: se hunden al pasar el ratón por el ejemplo. */
/* Base visible bajo la tecla (antes el borde era casi negro y parecía cortada por abajo). */
kbd { border-bottom-width: 1px; border-color: #3a3a44; background: linear-gradient(#2a2a31, #222228); box-shadow: 0 3px 0 #44444f, 0 5px 10px -2px rgba(0, 0, 0, .6); margin-bottom: 3px; transition: transform .1s, box-shadow .1s; }
.ab-ex { transition: border-color .2s, background .2s; }
.ab-ex:hover { border-color: var(--line-2); background: var(--bg-2); }
.ab-ex:hover kbd { transform: translateY(2px); box-shadow: 0 1px 0 var(--accent-deep); background: var(--accent); color: #1c0a02; border-color: var(--accent-deep); }

/* Premium: brillo que cruza la tarjeta al pasar el ratón (sin overflow:hidden, que cortaba la cinta). */
.plan-card.pro::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(100deg, transparent 35%, rgba(255, 236, 170, .1) 50%, transparent 65%) 150% 0 / 250% 100% no-repeat; }
.plan-card.pro:hover::after { background-position: -50% 0; transition: background-position .9s var(--ease); }
.plan-card.pro .plan-ribbon { z-index: 1; }

/* FAQ: se abre y cierra con altura animada (Chrome/Edge recientes; el resto, al instante). */
.faq-list { interpolate-size: allow-keywords; }
.faq details::details-content { height: 0; overflow: hidden; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq details[open] { background: var(--panel); border-color: var(--line-2); }
.faq summary::after { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 18px; transition: transform .35s var(--spring), background .2s, color .2s; }
.faq details[open] summary::after { background: var(--accent); color: #1c0a02; border-color: var(--accent); }

/* CTA final: teclas flotando de fondo (las pone site.js). */
.cta-box::before { display: none; }
.cta-keys { position: absolute; inset: 0; pointer-events: none; }
.cta-keys kbd { position: absolute; left: var(--x); top: var(--y); font-size: 15px; padding: 9px 13px; opacity: .35; rotate: var(--r); animation: keyFloat var(--t) ease-in-out infinite alternate; }
@keyframes keyFloat { to { translate: 0 -14px; rotate: calc(var(--r) * -1); } }
@media (max-width: 700px) { .cta-keys kbd:nth-child(n+5) { display: none; } }


/* ---- 52 efectos: tele con zapeo a la izquierda, lista a la derecha ---- */
.fx-total { display: inline-block; min-width: 1.15em; color: var(--accent); font-variant-numeric: tabular-nums; }
#fx-cat { max-width: 1100px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; padding: 22px; }
#fx-cat .fx-tabs, #fx-cat .fx-more { grid-column: 1 / -1; margin-bottom: 0; }
#fx-cat .fx-stage { grid-column: 1; grid-row: 2; }
#fx-cat .fx-more { grid-row: 3; }
#fx-cat .fx-grid { grid-column: 2; grid-row: 2; grid-template-columns: 1fr 1fr; gap: 6px; align-content: start; }
#fx-cat .fx-grid li { position: relative; padding: 10px 12px 10px 26px; cursor: pointer; outline: none; }
#fx-cat .fx-grid li::before { content: ""; position: absolute; left: 11px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--line-2); transition: background .2s, box-shadow .2s; }
#fx-cat .fx-grid li span { display: none; }
#fx-cat .fx-grid li b { font-size: 13.5px; font-weight: 650; color: var(--fg-2); transition: color .2s; }
#fx-cat .fx-grid li.on { border-color: var(--accent); background: var(--accent-wash); transform: none; }
#fx-cat .fx-grid li.on b { color: var(--fg); }
#fx-cat .fx-grid li.on::before { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .25); }

/* La tele */
.fx-tv { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #050506; border: 1px solid var(--line-2);
  box-shadow: 0 0 0 5px #141418, 0 0 0 6px var(--line), 0 30px 70px -30px #000; }
.fx-tv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fx-tv::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px), radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55)); }
.fx-ch { position: absolute; z-index: 4; top: 12px; right: 14px; font: 700 15px/1 ui-monospace, Consolas, monospace; color: #8dff8d; text-shadow: 0 0 6px rgba(141, 255, 141, .7); letter-spacing: .06em; }
.fx-noise { position: absolute; inset: -50%; z-index: 2; opacity: 0; pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.fx-tv.zap .fx-noise { animation: zapNoise .38s steps(1) both; }
.fx-tv.zap img { animation: zapImg .45s steps(1) both; }
.fx-tv.zap .fx-ch { animation: zapCh .5s steps(1) both; }
@keyframes zapNoise { 0% { opacity: .95; transform: translate(0, 0); } 20% { transform: translate(-8%, 6%); } 40% { opacity: .9; transform: translate(6%, -10%); } 60% { opacity: .7; transform: translate(-4%, 12%); } 80% { opacity: .35; transform: translate(10%, 2%); } 100% { opacity: 0; } }
@keyframes zapImg { 0%, 30% { opacity: 0; } 45% { opacity: 1; transform: translateX(-6px) scaleY(1.04); filter: hue-rotate(90deg) saturate(2); clip-path: inset(10% 0 55% 0); }
  60% { transform: translateX(5px); filter: hue-rotate(-60deg); clip-path: inset(40% 0 20% 0); } 75% { transform: translateX(-2px); filter: none; clip-path: inset(0); } 100% { transform: none; } }
@keyframes zapCh { 0% { opacity: 0; } 35% { opacity: 1; } }
/* Efectos de voz: no hay captura, se ve una onda */
.fx-wave { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; gap: 7px; background: radial-gradient(circle, #1b1308, #050506 70%); }
.fx-wave i { width: 7px; height: 30%; border-radius: 4px; background: var(--accent); animation: wave 1s ease-in-out infinite alternate; }
.fx-wave i:nth-child(2n) { animation-delay: -.3s; height: 50%; } .fx-wave i:nth-child(3n) { animation-delay: -.6s; height: 65%; } .fx-wave i:nth-child(4n) { animation-delay: -.15s; }
@keyframes wave { to { transform: scaleY(.25); } }
.fx-tv.voice img { display: none; }
.fx-tv.voice .fx-wave { display: flex; }
.fx-cap { padding: 16px 4px 0; height: 92px; overflow: hidden; }
.fx-cap b { display: block; font-family: var(--display); font-size: 21px; letter-spacing: -.02em; }
.fx-cap span { display: block; margin-top: 2px; color: var(--fg-2); font-size: 14.5px; }
.fx-tv.zap ~ .fx-cap { animation: scRoll .5s .12s var(--spring) both; }

@media (max-width: 860px) {
  #fx-cat { grid-template-columns: 1fr; padding: 14px; }
  #fx-cat .fx-stage { position: relative; top: 0; }
  #fx-cat .fx-grid { grid-column: 1; grid-row: 3; }
}

/* ================= Página de precios ================= */
/* Premium: borde dorado que gira despacio. */
@property --ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.plan-card.pro::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ang), rgba(245, 197, 66, .15), #fde68a 10%, #f5c542 18%, rgba(245, 197, 66, .15) 30%, rgba(245, 197, 66, .15) 60%, #fb923c 72%, rgba(245, 197, 66, .15) 85%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: proSpin 6s linear infinite; }
@keyframes proSpin { to { --ang: 360deg; } }
.plan-ribbon { animation: ribbonBob 3s ease-in-out infinite; }
@keyframes ribbonBob { 50% { transform: translateY(-3px) rotate(-2deg); } }
.plan-price .price-n { display: inline-block; min-width: 1.1em; font: inherit; color: inherit; font-variant-numeric: tabular-nums; text-align: right; }

/* Las ventajas de cada plan entran en cascada cuando aparece la tarjeta. */
.plans-hero .plan-card.anim .plan-features li { opacity: 0; transform: translateX(-10px); transition: opacity .4s, transform .5s var(--spring); }
.plans-hero .plan-card.anim.visible .plan-features li { opacity: 1; transform: none; }
.plans-hero .plan-card.anim.visible .plan-features li:nth-child(1) { transition-delay: .35s; } .plans-hero .plan-card.anim.visible .plan-features li:nth-child(2) { transition-delay: .42s; }
.plans-hero .plan-card.anim.visible .plan-features li:nth-child(3) { transition-delay: .49s; } .plans-hero .plan-card.anim.visible .plan-features li:nth-child(4) { transition-delay: .56s; }
.plans-hero .plan-card.anim.visible .plan-features li:nth-child(5) { transition-delay: .63s; } .plans-hero .plan-card.anim.visible .plan-features li:nth-child(6) { transition-delay: .7s; }
.plans-hero .plan-card.anim.visible .plan-features li:nth-child(7) { transition-delay: .77s; } .plans-hero .plan-card.anim.visible .plan-features li:nth-child(8) { transition-delay: .84s; }

/* Lo que desbloquea Premium: iconos iguales (sin cuadros de colores) y demos vivas. */
.perk { position: relative; overflow: hidden; }
.perk::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, #f5c542, transparent); transform: scaleX(0); transition: transform .5s var(--ease); }
.perk:hover::before { transform: scaleX(1); }
.perk-ic.orange, .perk-ic.purple, .perk-ic.green, .perk-ic.blue { background: none; border: 1px solid var(--line-2); color: #f5c542; transition: transform .4s var(--spring), background .3s, color .3s; }
.perk:hover .perk-ic { transform: rotate(-8deg) scale(1.08); background: #f5c542; color: #231a02; border-color: #f5c542; }
.perk-demo { min-height: 34px; }
.perk-pill { position: relative; transition: background .3s, border-color .3s; }
.perk-pill.hit { animation: pillHit .9s var(--ease); }
@keyframes pillHit { 0% { background: rgba(245, 197, 66, .1); } 20% { background: rgba(245, 197, 66, .35); border-color: #f5c542; transform: scale(1.08); } 100% { transform: none; } }
.perk-pill.hit::after { content: "+"; position: absolute; right: -4px; top: -6px; font-size: 13px; font-weight: 900; color: #f5c542; animation: pillPlus .9s var(--ease) both; }
@keyframes pillPlus { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-14px); } }
.perk-demo kbd.hit { animation: abKey .35s ease-out; }

/* Comparativa: los ✓ aparecen en cascada y un brillo recorre la columna Premium. */
.cmp-wrap { position: relative; }
.cmp-wrap.anim i.y, .cmp-wrap.anim i.n { transform: scale(0); transition: transform .45s var(--spring); transition-delay: calc(var(--r, 0) * 25ms + .2s); }
.cmp-wrap.anim.visible i.y, .cmp-wrap.anim.visible i.n { transform: none; }
.cmp-wrap.anim .v { opacity: 0; transition: opacity .4s; transition-delay: calc(var(--r, 0) * 25ms + .2s); }
.cmp-wrap.anim.visible .v { opacity: 1; }
.cmp td.pro { position: relative; }
.cmp tbody tr:not(.grp):hover td.pro { background-color: rgba(245, 197, 66, .09); }
.cmp tbody tr:not(.grp) th { transition: padding-left .25s var(--ease), color .2s; }
.cmp tbody tr:not(.grp):hover th { padding-left: 26px; color: #fde68a; }

/* ================= Modo ligero (html.lite, lo pone site.js) =================
   Sin GPU todo se pinta por CPU: fuera lo que repinta mucho; las transiciones quedan en fundidos simples. */
html.lite body::after { display: none; }                                   /* grano a pantalla completa */
html.lite * { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
html.lite .nav { background: rgba(11, 11, 13, .97); }
html.lite .nav::after { display: none; }
html.lite .plan-card.pro::before { animation: none; }                      /* borde que gira */
html.lite .plan-ribbon, html.lite .cta-keys kbd, html.lite .fx-wave i, html.lite .eyebrow b, html.lite h1 .grad::after { animation: none; }
html.lite h1 .grad::after { clip-path: none; }
html.lite .fx-noise { display: none; }                                     /* estática de la tele */
html.lite .fx-tv.zap img { animation: liteFade .3s both; }
html.lite .sc-screen img.in { animation: liteFade .4s both; }
html.lite .sc-screen img.out { animation: none; }
html.lite .head.anim h2 { clip-path: none; }
html.lite .sc-view::after { display: none; }
@keyframes liteFade { from { opacity: 0; } }

/* Hero sin depender de site.js: antes empezaba con opacity 0 hasta que cargaba el JS (LCP lento en móvil). Solo sube, no se desvanece. */
@keyframes heroRise { from { transform: translateY(24px); } to { transform: none; } }
.hero .anim { opacity: 1; transform: none; transition: none; animation: heroRise .7s var(--ease) backwards; }
.hero .anim.d2 { animation-delay: .15s; }

/* Banner de cookies: sin brillos y con botones del mismo tamaño y peso (rechazar tan visible como aceptar). */
.cookie-banner.docked .cb-inner { box-shadow: 0 8px 28px -10px rgba(0, 0, 0, .55); }
.cb-actions { align-items: stretch; }
.cb-actions .btn { height: 42px; min-width: 150px; padding: 0 22px; border-radius: 10px; font-size: 14px; font-weight: 700; white-space: nowrap; flex: none; justify-content: center; box-shadow: none; transform: none; transition: background .2s, border-color .2s, color .2s; }
.cb-actions .btn:hover { transform: none; box-shadow: none; }
.cb-actions .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cb-actions #cb-essential { background: transparent; border: 1.5px solid var(--line-2); color: var(--fg); }
.cb-actions #cb-essential:hover { background: var(--panel); border-color: var(--fg-2); }
.cb-actions #cb-accept { background: var(--accent); border: 1.5px solid var(--accent); color: #1c0a02; }
.cb-actions #cb-accept:hover { background: #fb923c; border-color: #fb923c; }
@media (max-width: 500px) { .cb-actions .btn { width: 100%; } }
@media (max-width: 700px) {
  .cookie-banner.docked { padding: 0 10px 10px; }
  .cookie-banner.docked .cb-inner { padding: 14px; gap: 10px; }
  .cookie-banner.docked .cb-icon-wrap, .cookie-banner.docked .cb-title { display: none; }
  .cookie-banner.docked .cb-desc { font-size: 12.5px; line-height: 1.5; }
  .cb-actions .btn { height: 40px; }
}

/* Guías (tools/guides.py): artículo con la base de las páginas legales */
.guide .lead { font-size: 18px; line-height: 1.65; color: var(--fg-2); margin: 0 0 8px; }
.guide .crumbs { margin: 0 0 10px; font-size: 14px; } .guide .crumbs a { text-decoration: none; color: var(--muted); } .guide .crumbs a:hover { color: var(--accent); }
.guide ol { padding-left: 24px; } .guide li { margin: 8px 0; } .guide code { padding: 2px 6px; border-radius: 6px; background: var(--panel); border: 1px solid var(--line-2); font-size: .92em; }
.guide-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin: 40px 0 8px; padding: 22px 24px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--accent-wash); }
.guide-cta b { font-size: 18px; } .guide-cta p { margin: 4px 0 0; }
.guide-faq { display: grid; gap: 10px; margin-bottom: 8px; }
.guide-faq details { border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel); padding: 0 18px; }
.guide-faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 16px; }
.guide-faq .answer { padding: 0 0 16px; color: var(--fg-2); line-height: 1.65; }
.guide-cards { display: grid; gap: 14px; margin: 28px 0; }
.legal .guide-card { display: block; padding: 18px 20px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--panel); text-decoration: none; transition: border-color .2s, transform .15s var(--ease); }
.legal .guide-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.guide-card b { display: block; font-size: 18px; color: var(--fg); margin-bottom: 4px; } .guide-card span { color: var(--fg-2); font-size: 15px; line-height: 1.55; }
.legal.guide a.btn { text-decoration: none; color: #1c0a02; }
