/* =========================================================
   GameQ — design tokens (paleta extraída del logo oficial)
   violeta #8002FA · magenta #E139FC · naranja #FF6703
   ámbar #FEAE02 · cian #01DEFE · azul #0D71FD · noche #130430
   ========================================================= */
:root, [data-theme="light"] {
  --bg-primary:    #FFFFFF;
  --bg-secondary:  #F6F4FC;
  --bg-tertiary:   #ECE7F8;
  --text-primary:  #0F0B1E;
  --text-secondary:#46405C;
  --text-muted:    #6B6583;
  --border:        #DDD6EE;
  --accent:        #7208E8;
  --accent-hover:  #5C05BF;
  --accent-text:   #FFFFFF;
  --accent-soft:   #F0E5FF;
  --orange:        #E85A00;
  --amber:         #FEAE02;
  --cyan:          #01DEFE;
  --blue:          #0D71FD;
  --magenta:       #E139FC;
  --night:         #130430;
  --night-2:       #0B0A14;
  --danger:        #C0262D;
  --success:       #13804C;
  --warning:       #B25B00;
  --surface:       #FFFFFF;
  --shadow:        rgba(35, 10, 80, 0.10);
  --grad-brand:    linear-gradient(120deg, #8002FA 0%, #E139FC 38%, #FF6703 70%, #FEAE02 100%);
  --grad-cool:     linear-gradient(135deg, #01DEFE 0%, #0D71FD 100%);
  --radius:        14px;
}
[data-theme="dark"] {
  --bg-primary:    #0B0A14;
  --bg-secondary:  #130F22;
  --bg-tertiary:   #1C1731;
  --text-primary:  #F3F0FF;
  --text-secondary:#B9B2D3;
  --text-muted:    #8E87AB;
  --border:        #2B2545;
  --accent:        #9A3BFF;
  --accent-hover:  #8322F5;
  --accent-text:   #FFFFFF;
  --accent-soft:   #231A3F;
  --orange:        #FF7A1F;
  --danger:        #F0585F;
  --success:       #3DCB85;
  --warning:       #F39B1C;
  --surface:       #130F22;
  --shadow:        rgba(0, 0, 0, 0.45);
}

*, *::before, *::after {
  box-sizing: border-box;
  -webkit-user-select: none; -moz-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
input, textarea, select, [contenteditable="true"] { -webkit-user-select: text; user-select: text; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  font-size: 15px; line-height: 1.6; background: var(--bg-primary); color: var(--text-primary);
  overscroll-behavior-y: none; transition: background .2s, color .2s;
}
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.01em; }
h1 { font-size: 28px; } h2 { font-size: 22px; } h3 { font-size: 18px; } h4 { font-size: 15px; }
a { color: var(--accent); }
button { cursor: pointer; font: inherit; }
.label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); font-weight: 600; }
.muted { color: var(--text-muted); }
[hidden] { display: none !important; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 900; display: flex; align-items: center; gap: 1rem;
  padding: .7rem 1.5rem; padding-top: calc(.7rem + env(safe-area-inset-top));
  background: color-mix(in srgb, var(--bg-primary) 92%, transparent);
  border-bottom: 1px solid var(--border);
}
@supports not (background: color-mix(in srgb, red 50%, blue)) { .topbar { background: var(--bg-primary); } }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text-primary); }
.brand-logo { border-radius: 10px; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.topnav { display: flex; gap: .25rem; margin-left: auto; }
.topnav a {
  color: var(--text-secondary); text-decoration: none; padding: .5rem .8rem; border-radius: 10px; font-weight: 500; font-size: 14px;
}
.topnav a:hover, .topnav a.active { background: var(--accent-soft); color: var(--accent); }
.topbar-tools { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg-secondary); color: var(--text-primary); display: inline-flex; align-items: center; justify-content: center;
}
.icon-btn svg { width: 20px; height: 20px; }
[data-theme="light"] .icon-dark, [data-theme="dark"] .icon-light { display: none; }
.lang-select {
  display: inline-flex; align-items: center; gap: .3rem; height: 44px; padding: 0 .6rem;
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg-secondary); color: var(--text-secondary);
}
.lang-select svg { width: 18px; height: 18px; }
.lang-select select { border: 0; background: transparent; color: var(--text-primary); font-weight: 600; font-size: 14px; outline: none; cursor: pointer; }
.lang-select select option { color: #0F0B1E; }

/* ---------- Layout ---------- */
.main-content { min-height: calc(100vh - 66px); }
.vista-container { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }
.vista { animation: slideIn .28s cubic-bezier(.4, 0, .2, 1); }
@keyframes slideIn { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .vista { animation: none; } * { transition: none !important; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 46px;
  padding: .7rem 1.25rem; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: 15px;
  text-decoration: none; transition: transform .1s, background .15s, opacity .1s;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--bg-secondary); color: var(--text-primary); border-color: var(--border); }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--border); }
.btn-hot { background: var(--grad-brand); color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.25); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Formularios ---------- */
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.input, .field select {
  width: 100%; min-height: 48px; padding: .7rem .9rem; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg-secondary); color: var(--text-primary); font-size: 16px; outline: none; font-family: inherit;
}
.input:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field .error { color: var(--danger); font-size: 12px; min-height: 0; }
.password-field { position: relative; }
.password-field .input { padding-right: 3rem; }
.toggle-password {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px;
  background: none; border: none; color: var(--text-muted); display: flex; align-items: center; justify-content: center;
}
.divider { display: flex; align-items: center; gap: .75rem; color: var(--text-muted); font-size: 13px; margin: 1.25rem 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ---------- HOME ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--night-2); color: #F3F0FF;
  padding: 4.5rem 1.5rem 5rem;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 85% 20%, rgba(224,57,252,.28), transparent 60%),
              radial-gradient(500px 300px at 10% 90%, rgba(1,222,254,.18), transparent 60%);
}
.hero-inner { position: relative; max-width: 1200px; margin: 0 auto; display: flex; gap: 3rem; align-items: center; }
.hero-copy { flex: 1.3; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: .4rem; font-size: 12px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #FEAE02; border: 1px solid rgba(254,174,2,.4); padding: .3rem .7rem; border-radius: 999px;
}
.hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; letter-spacing: -.03em; margin: 1rem 0; }
.hero h1 .grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 18px; color: #C9C2E6; max-width: 560px; margin: 0 0 2rem; }
.hero-cta { display: flex; gap: .75rem; flex-wrap: wrap; }
.hero .btn-ghost { color: #F3F0FF; border-color: rgba(255,255,255,.25); }
.hero-art { flex: 1; position: relative; min-height: 320px; display: flex; align-items: center; justify-content: center; }
.hero-art img { width: min(340px, 80%); border-radius: 36px; box-shadow: 0 30px 80px rgba(128,2,250,.45); transform: rotate(-4deg); }
.hero-art .chip {
  position: absolute; background: rgba(19,4,48,.85); border: 1px solid rgba(255,255,255,.12); color: #fff;
  padding: .55rem .85rem; border-radius: 12px; font-size: 13px; font-weight: 600; display: flex; gap: .4rem; align-items: center;
}
.hero-art .chip svg { width: 16px; height: 16px; }
.chip-a { top: 8%; left: 0; color: #FEAE02 !important; } .chip-b { bottom: 12%; right: 0; } .chip-c { bottom: 0; left: 12%; }
.stats-strip {
  max-width: 1200px; margin: -2.5rem auto 0; position: relative; display: flex; gap: 0; padding: 0 1.5rem;
}
.stat {
  flex: 1; background: var(--surface); border: 1px solid var(--border); padding: 1.25rem 1.5rem;
  box-shadow: 0 10px 30px var(--shadow);
}
.stat:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.stat:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.stat b { display: block; font-size: 32px; font-weight: 800; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.features { max-width: 1200px; margin: 0 auto; padding: 4rem 1.5rem; display: flex; gap: 1.25rem; }
.feature {
  flex: 1; position: relative; padding: 1.75rem 1.5rem 1.5rem; background: var(--bg-secondary);
  border-radius: 4px 22px 4px 22px; border-left: 4px solid var(--accent);
}
.feature:nth-child(2) { border-left-color: var(--orange); transform: translateY(18px); }
.feature:nth-child(3) { border-left-color: var(--blue); }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 1rem; }
.feature p { color: var(--text-secondary); margin: 0; }

/* ---------- Auth ---------- */
.auth-wrap { max-width: 1100px; margin: 0 auto; padding: 2.5rem 1.5rem; display: flex; gap: 2.5rem; align-items: stretch; }
.auth-side {
  flex: 1; border-radius: 28px 6px 28px 6px; background: var(--night-2); color: #F3F0FF; padding: 2.5rem; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 460px;
}
.auth-side::before { content: ''; position: absolute; inset: 0; background: radial-gradient(400px 260px at 80% 10%, rgba(128,2,250,.5), transparent 60%), radial-gradient(360px 240px at 0% 100%, rgba(255,103,3,.35), transparent 60%); }
.auth-side > * { position: relative; }
.auth-side img { width: 88px; border-radius: 20px; margin-bottom: auto; }
.auth-side h2 { font-size: 26px; }
.auth-side p { color: #C9C2E6; }
.auth-card { flex: 1; max-width: 460px; padding: .5rem 0; }
.auth-card .foot { text-align: center; color: var(--text-secondary); font-size: 14px; margin-top: 1.25rem; }
.auth-card .legal { font-size: 12px; color: var(--text-muted); margin-top: .75rem; }

/* ---------- Dashboard ---------- */
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.biz-card {
  position: relative; overflow: hidden; border-radius: 22px 6px 22px 6px; padding: 1.5rem;
  background: var(--surface); border: 1px solid var(--border); box-shadow: 0 8px 24px var(--shadow); margin-bottom: 1rem;
}
.biz-card::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--grad-brand); }
.biz-top { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.biz-logo { width: 56px; height: 56px; border-radius: 14px; background: var(--bg-tertiary); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.biz-logo img { width: 100%; height: 100%; object-fit: cover; }
.biz-meta { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; }
.biz-meta > div { min-width: 140px; }
.pill { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent); }
.pill.warn { background: rgba(178,91,0,.12); color: var(--warning); }
.next-step { display: flex; gap: 1rem; align-items: center; padding: 1.25rem 1.5rem; border-radius: 16px; background: var(--accent-soft); margin-top: 1rem; flex-wrap: wrap; }
.next-step .ico { color: var(--accent); }
.next-step > div { flex: 1; min-width: 200px; }

/* ---------- Estados ---------- */
.empty-state, .error-state { text-align: center; padding: 3rem 1.5rem; max-width: 480px; margin: 0 auto; }
.empty-state .ico, .error-state .ico { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); }
.skeleton { border-radius: 12px; background: linear-gradient(90deg, var(--bg-secondary), var(--bg-tertiary), var(--bg-secondary)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Toast ---------- */
#toast-root { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 9999; display: flex; flex-direction: column; gap: .5rem; align-items: center; pointer-events: none; width: calc(100% - 2rem); max-width: 480px; }
.toast { padding: .8rem 1.2rem; border-radius: 12px; font-size: 14px; font-weight: 500; color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.25); animation: toastIn .2s ease; text-align: center; }
.toast-error { background: var(--danger); } .toast-success { background: var(--success); } .toast-warning { background: var(--warning); } .toast-info { background: #2A2440; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Modal ---------- */
.modal-wrapper { position: fixed; inset: 0; background: rgba(8,4,20,.55); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 1rem; }
.modal { background: var(--bg-primary); border-radius: 18px; width: 100%; max-width: 560px; max-height: 90vh; display: flex; flex-direction: column; }
.modal-head { padding: 1.1rem 1.5rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.modal-body { flex: 1; overflow-y: auto; padding: 1.5rem; -webkit-overflow-scrolling: touch; }
.modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; gap: .75rem; justify-content: flex-end; }
.more-grid { display: flex; flex-wrap: wrap; gap: .75rem; }
.more-grid a, .more-grid button {
  flex: 1 1 calc(33% - .75rem); min-width: 96px; min-height: 88px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--bg-secondary); color: var(--text-primary); text-decoration: none; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: .4rem; font-size: 13px; font-weight: 600;
}

/* ---------- Ripple ---------- */
.ripple { overflow: hidden; }
.ripple-wave { position: absolute; border-radius: 50%; background: rgba(255,255,255,.35); transform: scale(0); animation: ripple-anim .6s linear; pointer-events: none; }
.btn-secondary .ripple-wave, .btn-ghost .ripple-wave, .icon-btn .ripple-wave { background: rgba(114,8,232,.15); }
@keyframes ripple-anim { to { transform: scale(4); opacity: 0; } }

/* ---------- Footer nav mobile ---------- */
.app-footer-nav { display: none; }
#offline-banner { position: fixed; top: 0; left: 0; right: 0; z-index: 10000; background: var(--warning); color: #fff; text-align: center; padding: .45rem; font-size: 13px; }

@media (max-width: 1024px) {
  .hero-inner { gap: 1.5rem; }
}
@media (max-width: 768px) {
  .topbar { padding: .6rem 1rem; padding-top: calc(.6rem + env(safe-area-inset-top)); }
  .topnav { display: none; }
  .topbar-tools { margin-left: auto; }
  .brand-name { font-size: 16px; }
  .vista-container { padding: 1.25rem 1rem; }
  .hero { padding: 2.5rem 1rem 4rem; }
  .hero-inner { flex-direction: column; align-items: flex-start; }
  .hero-art { min-height: 220px; width: 100%; }
  .hero-art img { width: 200px; }
  .stats-strip { padding: 0 1rem; }
  .stat { padding: 1rem; } .stat b { font-size: 24px; } .stat .label { font-size: 12px; }
  .features { flex-direction: column; padding: 3rem 1rem; }
  .feature:nth-child(2) { transform: none; }
  .auth-wrap { flex-direction: column; padding: 1.25rem 1rem; gap: 1.5rem; }
  .auth-side { min-height: 0; padding: 1.5rem; }
  .auth-side img { width: 56px; margin-bottom: 1rem; }
  .auth-card { max-width: none; }
  .modal-wrapper { align-items: flex-end; padding: 0; }
  .modal { border-radius: 18px 18px 0 0; max-width: none; }
  .main-content { padding-bottom: 76px; }
  .app-footer-nav {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; height: calc(64px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom); background: var(--bg-primary); border-top: 1px solid var(--border); z-index: 999;
  }
  .app-footer-nav a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 44px;
    font-size: 12px; color: var(--text-muted); text-decoration: none; font-weight: 600; background: none; border: 0;
  }
  .app-footer-nav a svg { width: 22px; height: 22px; }
  .app-footer-nav a.active { color: var(--accent); }
}

/* =========================================================
   FASE 2 — Design system extendido (panel, wizard, preview, landing)
   ========================================================= */

/* ---------- Botones extra ---------- */
.btn-sm { min-height: 40px; padding: .45rem .85rem; font-size: 14px; border-radius: 10px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn.danger { color: var(--danger); }
.btn-install { background: var(--grad-cool); color: #04121F; font-weight: 700; border: 0; }
.btn-install svg { color: #04121F; }
.small { font-size: 13px; }
.inline { width: 14px; height: 14px; vertical-align: -2px; }
.check { display: flex; align-items: center; gap: .5rem; font-size: 14px; color: var(--text-secondary); margin: .5rem 0 1rem; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.field small { font-size: 12px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; overflow: hidden; font-weight: 800; flex-shrink: 0; font-size: 15px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; background: #fff; }
.pill.off { background: var(--bg-tertiary); color: var(--text-muted); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Switch ---------- */
.switch { position: relative; display: inline-flex; width: 48px; height: 28px; flex-shrink: 0; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--bg-tertiary); border: 1px solid var(--border); transition: background .15s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s; }
.switch input:checked + span { background: var(--accent); border-color: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---------- Shell: sitio vs panel ---------- */
.shell { display: flex; align-items: flex-start; }
.shell > .main-content { flex: 1; min-width: 0; }
.sidebar { display: none; }
body.mode-panel .sidebar {
  display: flex; flex-direction: column; gap: 1rem; width: 256px; flex-shrink: 0; position: sticky; top: 66px;
  height: calc(100vh - 66px); padding: 1.25rem 1rem; border-right: 1px solid var(--border); background: var(--bg-secondary); overflow-y: auto;
}
.side-biz { display: flex; gap: .75rem; align-items: center; padding: .5rem; }
.side-biz b { display: block; font-size: 14px; line-height: 1.3; }
.side-biz .muted { font-size: 12px; }
.biz-switch { width: 100%; min-height: 44px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-primary); color: var(--text-primary); padding: 0 .6rem; font: inherit; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: .7rem; padding: .7rem .8rem; border-radius: 12px; color: var(--text-secondary); text-decoration: none; font-weight: 600; font-size: 14px; min-height: 44px; }
.side-nav a svg { width: 19px; height: 19px; }
.side-nav a:hover { background: var(--bg-tertiary); color: var(--text-primary); }
.side-nav a.active { background: var(--accent); color: var(--accent-text); box-shadow: 0 6px 16px rgba(114,8,232,.28); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: .5rem; }
.side-logout { display: flex; align-items: center; gap: .6rem; color: var(--text-muted); text-decoration: none; font-size: 14px; padding: .6rem .8rem; min-height: 44px; }
.side-logout svg { width: 18px; height: 18px; }
.topnav a svg { display: none; }

/* ---------- Panel ---------- */
.panel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.panel-head h1 { margin: .15rem 0 .35rem; }
.ph-biz { display: flex; gap: 1rem; align-items: center; }
.panel-grid { display: flex; gap: 1.5rem; align-items: flex-start; }
.panel-col { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.panel-side { width: 320px; flex-shrink: 0; position: sticky; top: 90px; display: flex; flex-direction: column; gap: .5rem; align-items: center; }
.panel-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px 6px 20px 6px; padding: 1.25rem 1.35rem; box-shadow: 0 6px 20px var(--shadow); }
.panel-card h3 { margin: .15rem 0 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.progress { flex: 1; max-width: 220px; height: 8px; border-radius: 999px; background: var(--bg-tertiary); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--grad-brand); border-radius: 999px; }
.checklist ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.checklist a { display: flex; align-items: center; gap: .7rem; padding: .65rem .5rem; border-radius: 10px; color: var(--text-primary); text-decoration: none; min-height: 44px; }
.checklist a:hover { background: var(--bg-secondary); }
.checklist a span { flex: 1; font-weight: 500; }
.checklist a svg { width: 20px; height: 20px; color: var(--text-muted); }
.checklist li.ok a span { color: var(--text-muted); text-decoration: line-through; }
.checklist li.ok a svg:first-child { color: var(--success); }
.kpi-strip { display: flex; gap: 0; background: var(--night-2); border-radius: 18px; overflow: hidden; color: #F3F0FF; }
.kpi { flex: 1; padding: 1rem .9rem; border-right: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.kpi:last-child { border-right: 0; }
.kpi svg { width: 18px; height: 18px; color: #FEAE02; }
.kpi:nth-child(2) svg { color: #01DEFE; } .kpi:nth-child(3) svg { color: #E139FC; } .kpi:nth-child(4) svg { color: #3DCB85; }
.kpi b { font-size: 26px; font-weight: 800; line-height: 1.1; }
.kpi span { font-size: 12px; color: #B9B2D3; line-height: 1.3; }
.note { display: flex; gap: .6rem; align-items: flex-start; padding: .8rem 1rem; border-radius: 12px; background: var(--accent-soft); color: var(--text-secondary); font-size: 14px; }
.note svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.link-box { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; background: var(--bg-secondary); border: 1px dashed var(--border); border-radius: 12px; padding: .5rem .5rem .5rem .9rem; }
.link-box code { flex: 1; min-width: 180px; font-size: 13px; color: var(--accent); word-break: break-all; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; gap: .6rem; align-items: center; padding: .55rem 0; border-bottom: 1px solid var(--border); }
.mini-list li:last-child { border-bottom: 0; }
.mini-list li span { flex: 1; }
.mini-list svg { width: 18px; height: 18px; color: var(--orange); }
.empty-state.small { padding: 1.25rem; }
.empty-state.small .ico { width: 48px; height: 48px; }
.game-card { display: flex; gap: 1.25rem; align-items: flex-start; }
.game-card h2 { margin: .2rem 0 .4rem; }
.eico { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.eico.big { width: 72px; height: 72px; border-radius: 20px; }
.eico.big svg { width: 34px; height: 34px; }

/* ---------- Filtros / búsqueda / segmentado ---------- */
.filters { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.search-box { position: relative; flex: 1; min-width: 220px; }
.search-box svg { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--text-muted); pointer-events: none; }
.search-box .input { padding-left: 2.5rem; }
.seg { display: inline-flex; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; color: var(--text-secondary); font-weight: 600; font-size: 14px; padding: 0 .9rem; min-height: 42px; border-radius: 9px; }
.seg button.on { background: var(--bg-primary); color: var(--accent); box-shadow: 0 1px 4px var(--shadow); }

/* ---------- Cards de premios ---------- */
.card-list { display: flex; flex-direction: column; gap: .75rem; }
.prize-card { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--orange); border-radius: 6px 18px 18px 6px; padding: 1rem 1.1rem; display: flex; flex-direction: column; gap: .75rem; }
.prize-card.off { border-left-color: var(--border); opacity: .75; }
.pc-top { display: flex; gap: .8rem; align-items: center; }
.pc-ico { width: 40px; height: 40px; border-radius: 12px; background: rgba(232,90,0,.12); color: var(--orange); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.pc-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; align-items: flex-start; }
.pc-title b { font-size: 16px; line-height: 1.3; }
.pc-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: var(--text-secondary); font-size: 13px; }
.pc-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.pc-meta svg { width: 15px; height: 15px; color: var(--text-muted); }
.pc-actions { display: flex; gap: .5rem; justify-content: flex-end; }

/* ---------- Settings (cuenta) ---------- */
.settings { display: flex; flex-direction: column; gap: 1rem; max-width: 820px; }
.settings h3 { margin-bottom: .75rem; }
.set-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .8rem 0; border-top: 1px solid var(--border); flex-wrap: wrap; }
.set-row small { display: block; }
.biz-row { display: flex; gap: .8rem; align-items: center; padding: .7rem; border-radius: 12px; border: 1px solid var(--border); }
.biz-row > div { flex: 1; min-width: 0; }
.biz-row small { display: block; word-break: break-all; }
.biz-row.current { border-color: var(--accent); background: var(--accent-soft); }

/* ---------- Wizard ---------- */
.wiz { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; display: flex; gap: 2rem; align-items: flex-start; }
.wiz-main { flex: 1; min-width: 0; }
.wiz-main h1 { margin: .2rem 0 .3rem; }
.wiz-preview { width: 330px; flex-shrink: 0; position: sticky; top: 86px; display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; }
.stepper { list-style: none; display: flex; gap: .25rem; margin: 1.25rem 0 1.5rem; padding: 0; counter-reset: s; }
.stepper li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .3rem; position: relative; font-size: 12px; color: var(--text-muted); font-weight: 600; text-align: center; }
.stepper li::before { content: ''; position: absolute; top: 22px; left: -50%; right: 50%; height: 3px; background: var(--border); z-index: 0; }
.stepper li:first-child::before { display: none; }
.stepper li.done::before, .stepper li.current::before { background: var(--accent); }
.stepper button { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 14px; border: 2px solid var(--border); background: var(--bg-primary); color: var(--text-muted); display: flex; align-items: center; justify-content: center; }
.stepper button svg { width: 19px; height: 19px; }
.stepper button:disabled { cursor: not-allowed; opacity: .6; }
.stepper li.done button { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.stepper li.current button { background: var(--accent); border-color: var(--accent); color: #fff; transform: scale(1.08); box-shadow: 0 6px 18px rgba(114,8,232,.35); }
.stepper li.current { color: var(--text-primary); }
.wiz-form { background: var(--surface); border: 1px solid var(--border); border-radius: 22px 6px 22px 6px; padding: 1.5rem; }
.wiz-actions { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-top: 1.25rem; }
.pv-jump { display: none; font-size: 14px; font-weight: 600; }
.rubro-grid { display: flex; flex-wrap: wrap; gap: .5rem; max-height: 420px; overflow-y: auto; padding: 2px; }
.rubro-opt { flex: 1 1 calc(33.33% - .5rem); min-width: 150px; min-height: 56px; display: flex; align-items: center; gap: .55rem; text-align: left; padding: .6rem .75rem;
  border-radius: 12px; border: 1.5px solid var(--border); background: var(--bg-secondary); color: var(--text-primary); font-weight: 600; font-size: 14px; position: relative; }
.rubro-opt svg { width: 20px; height: 20px; color: var(--accent); flex-shrink: 0; }
.rubro-opt em { position: absolute; top: -8px; right: 8px; font-style: normal; font-size: 12px; background: var(--bg-primary); color: var(--success); border: 1px solid var(--border); padding: 0 .4rem; border-radius: 999px; }
.rubro-opt.sel { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
.logo-stage { display: flex; gap: 1.5rem; align-items: flex-start; }
.logo-box { width: 200px; height: 200px; flex-shrink: 0; border-radius: 28px; border: 2px dashed var(--border); background: repeating-conic-gradient(var(--bg-secondary) 0 25%, var(--bg-primary) 0 50%) 0 0 / 20px 20px;
  display: flex; flex-direction: column; gap: .6rem; align-items: center; justify-content: center; overflow: hidden; text-align: center; padding: .5rem; }
.logo-box img { width: 100%; height: 100%; object-fit: contain; }
.logo-box img.uploading { opacity: .5; }
.logo-empty { display: flex; flex-direction: column; align-items: center; gap: .4rem; color: var(--text-muted); font-size: 13px; }
.logo-empty svg { width: 36px; height: 36px; }
.logo-actions { flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.logo-actions .divider { margin: .5rem 0; }
.swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.swatch { width: 44px; height: 44px; border-radius: 12px; border: 2px solid var(--bg-primary); box-shadow: 0 0 0 1px var(--border); }
.swatch:hover { transform: scale(1.08); }
.color-rows { display: flex; flex-direction: column; gap: .5rem; margin: 1rem 0; }
.color-row { display: flex; align-items: center; gap: .9rem; padding: .6rem .75rem; border-radius: 14px; border: 1.5px solid var(--border); flex-wrap: wrap; }
.color-row.active { border-color: var(--accent); background: var(--accent-soft); }
.color-row > div { flex: 1; min-width: 140px; }
.color-row b, .color-row small { display: block; }
.color-row input[type=color] { width: 48px; height: 48px; border: 0; padding: 0; background: none; border-radius: 12px; cursor: pointer; }
.color-row input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.color-row input[type=color]::-webkit-color-swatch { border: 1px solid var(--border); border-radius: 12px; }
.color-row .hex { width: 112px; min-height: 44px; font-family: ui-monospace, monospace; text-transform: uppercase; }
.color-row .error { flex-basis: 100%; }
.contrast { display: flex; align-items: center; gap: .5rem; padding: .7rem .9rem; border-radius: 12px; font-size: 14px; margin-bottom: 1rem; }
.contrast svg { width: 18px; height: 18px; }
.contrast.ok { background: rgba(19,128,76,.12); color: var(--success); }
.contrast.warn { background: rgba(178,91,0,.12); color: var(--warning); }
.engine-grid { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.engine-opt { flex: 1 1 calc(50% - .75rem); min-width: 220px; text-align: left; display: flex; flex-direction: column; gap: .3rem; padding: 1rem; border-radius: 16px;
  border: 1.5px solid var(--border); background: var(--bg-secondary); color: var(--text-primary); }
.engine-opt small { color: var(--text-secondary); font-size: 13px; line-height: 1.45; }
.engine-opt .badges { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .25rem; }
.engine-opt .badges em { font-style: normal; }
.engine-opt.sel { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); }
.engine-opt:disabled { opacity: .5; cursor: not-allowed; }
.prize-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .75rem; flex-wrap: wrap; }
.prize-list { display: flex; flex-direction: column; gap: .6rem; margin-bottom: .75rem; }
.prize-row { border: 1.5px solid var(--border); border-radius: 14px; padding: .75rem; display: flex; flex-direction: column; gap: .5rem; }
.prize-row.off { opacity: .6; }
.prize-main { display: flex; gap: .5rem; align-items: center; }
.prize-main .input { flex: 1; }
.prize-meta { display: flex; gap: .5rem; flex-wrap: wrap; }
.prize-meta label { flex: 1; min-width: 110px; font-size: 12px; font-weight: 600; color: var(--text-muted); display: flex; flex-direction: column; gap: .2rem; position: relative; }
.prize-meta .input { min-height: 44px; }
.prize-meta em { position: absolute; right: .7rem; bottom: .75rem; font-style: normal; color: var(--accent); font-weight: 700; font-size: 13px; }
.wiz-done { display: flex; gap: 2rem; align-items: center; }
.done-copy { flex: 1; }
.done-copy h1 { font-size: 34px; }

/* ---------- Preview (mockup de celular) ---------- */
.phone { width: 280px; height: 560px; border-radius: 42px; padding: 10px; background: #111; box-shadow: 0 0 0 2px #2A2A2A, 0 30px 60px rgba(20,4,48,.35); position: relative; flex-shrink: 0; }
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 84px; height: 22px; border-radius: 12px; background: #000; z-index: 2; }
.phone-screen { height: 100%; border-radius: 33px; overflow: hidden; background: var(--pbg); color: var(--pfg); display: flex; flex-direction: column; align-items: center; padding: 46px 16px 14px; gap: 10px; text-align: center;
  background-image: radial-gradient(220px 160px at 90% 0%, color-mix(in srgb, var(--p1) 45%, transparent), transparent 70%), radial-gradient(200px 160px at 0% 100%, color-mix(in srgb, var(--p2) 35%, transparent), transparent 70%); }
.pv-head { display: flex; align-items: center; gap: 8px; font-size: 14px; max-width: 100%; }
.pv-head b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-logo { width: 34px; height: 34px; border-radius: 10px; background: var(--p1); color: var(--pon); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; overflow: hidden; flex-shrink: 0; }
.pv-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.pv-kicker { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--p2); }
.pv-title { font-size: 18px; font-weight: 800; line-height: 1.2; }
.pv-game { flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; min-height: 0; }
.pv-play { display: block; width: 100%; padding: 11px; border-radius: 14px; background: var(--p1); color: var(--pon); font-weight: 800; font-size: 15px; box-shadow: 0 8px 20px color-mix(in srgb, var(--p1) 45%, transparent); }
.pv-prizes { width: 100%; display: flex; flex-direction: column; gap: 4px; text-align: left; }
.pv-prizes small { font-size: 12px; opacity: .75; font-weight: 700; }
.pv-prizes span { display: flex; align-items: center; gap: 6px; font-size: 12px; padding: 5px 8px; border-radius: 9px; background: color-mix(in srgb, var(--pfg) 10%, transparent); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-prizes svg { width: 13px; height: 13px; color: var(--p2); flex-shrink: 0; }
.pv-powered { font-size: 12px; opacity: .55; }
.pv-spin { position: relative; width: 150px; height: 150px; }
.pv-wheel { position: absolute; inset: 0; border-radius: 50%; border: 5px solid var(--pfg); box-shadow: 0 0 0 3px var(--p1); animation: wheel 9s linear infinite; }
.pv-pointer { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); border: 10px solid transparent; border-top: 16px solid var(--pfg); z-index: 1; }
@keyframes wheel { to { transform: rotate(360deg); } }
.pv-memory { display: flex; flex-wrap: wrap; gap: 6px; width: 180px; }
.pv-card { width: calc(25% - 4.5px); aspect-ratio: 3 / 4; border-radius: 7px; background: var(--p1); display: flex; align-items: center; justify-content: center; color: var(--pon); font-size: 14px; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--pfg) 20%, transparent); }
.pv-card.up { transform: rotateY(0) scale(1.05); color: #fff; }
.pv-trivia { width: 100%; display: flex; flex-direction: column; gap: 6px; }
.pv-q { font-size: 13px; font-weight: 700; padding: 10px; border-radius: 12px; background: color-mix(in srgb, var(--pfg) 10%, transparent); }
.pv-a { font-size: 12px; padding: 8px; border-radius: 10px; border: 1.5px solid color-mix(in srgb, var(--pfg) 25%, transparent); }
.pv-a.ok { background: var(--p1); color: var(--pon); border-color: var(--p1); }
.pv-arcade { position: relative; width: 100%; height: 150px; border-radius: 14px; overflow: hidden; background: color-mix(in srgb, var(--pfg) 6%, transparent); }
.pv-drop { position: absolute; top: -20px; width: 16px; height: 16px; border-radius: 50%; animation: drop 1.8s linear infinite; }
.pv-basket { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); width: 56px; height: 14px; border-radius: 0 0 12px 12px; }
@keyframes drop { to { transform: translateY(190px); } }
.pv-puzzle { display: flex; flex-wrap: wrap; gap: 5px; width: 150px; }
.pv-tile { width: calc(33.33% - 3.4px); aspect-ratio: 1; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.pv-tile.empty { background: transparent; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--pfg) 25%, transparent); }
@supports not (background: color-mix(in srgb, red 50%, blue)) {
  .phone-screen { background-image: none; }
  .pv-prizes span, .pv-q, .pv-arcade { background: rgba(127,127,127,.15); }
}
.reduce-motion .pv-wheel, .reduce-motion .pv-drop { animation: none; }

/* ---------- Splash ---------- */
#splash { position: fixed; inset: 0; z-index: 20000; background: #130430; display: flex; align-items: center; justify-content: center; transition: opacity .45s; }
#splash[hidden] { display: none; }
#splash.out { opacity: 0; pointer-events: none; }
#splash picture, .splash-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.splash-inner { position: relative; text-align: center; color: #F3F0FF; padding: 1.5rem; }
.splash-logo { border-radius: 28px; box-shadow: 0 20px 60px rgba(128,2,250,.55); animation: pop 1s cubic-bezier(.2,1.4,.4,1) both; }
.splash-inner h1 { font-size: 34px; margin: 1.25rem 0 .25rem; letter-spacing: -.02em; }
.splash-inner p { color: #C9C2E6; margin: 0 0 2rem; }
.splash-track { width: 220px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.15); overflow: hidden; margin: 0 auto; }
#splash-bar { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #8002FA, #E139FC, #FF6703, #FEAE02); }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Instalar ---------- */
.install-head { display: flex; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.install-head img { border-radius: 16px; }
.install-head p { margin: 0; color: var(--text-secondary); }
.install-steps { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .6rem; counter-reset: st; }
.install-steps li { display: flex; align-items: center; gap: .75rem; padding: .75rem; border-radius: 12px; background: var(--bg-secondary); font-size: 14px; }
.install-steps li::before { counter-increment: st; content: counter(st); width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.install-steps svg { width: 20px; height: 20px; color: var(--accent); }

/* ---------- Pull to refresh ---------- */
.ptr { position: fixed; top: 60px; left: 50%; transform: translate(-50%, -60px); z-index: 950; width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .15s; box-shadow: 0 6px 16px rgba(0,0,0,.25); pointer-events: none; }
.ptr.on { opacity: 1; }
.ptr.spin svg { animation: spin .7s linear infinite; }
.ptr svg { width: 20px; height: 20px; }

/* ---------- Landing ---------- */
.hero-land .hero-inner { align-items: center; }
.hero-kicker svg { width: 14px; height: 14px; }
.hero-proof { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; color: #C9C2E6; font-size: 14px; }
.hero-proof li { display: flex; align-items: center; gap: .35rem; }
.hero-proof svg { width: 16px; height: 16px; color: #3DCB85; }
.hero-photo { flex: 1.1; position: relative; }
.hero-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 30px 8px 30px 8px; box-shadow: 0 30px 80px rgba(128,2,250,.35); display: block; }
.hero-photo .chip { position: absolute; background: rgba(19,4,48,.9); border: 1px solid rgba(255,255,255,.14); color: #fff; padding: .55rem .85rem; border-radius: 12px; font-size: 13px; font-weight: 600; display: flex; gap: .4rem; align-items: center; }
.hero-photo .chip svg { width: 16px; height: 16px; }
.hero-photo .chip-a { top: 8%; left: -18px; color: #FEAE02; }
.hero-photo .chip-b { bottom: 10%; right: -14px; }
.land-sec { max-width: 1200px; margin: 0 auto; padding: 4.5rem 1.5rem 1rem; }
.sec-head { max-width: 680px; margin-bottom: 2rem; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.02em; margin: .3rem 0 .6rem; }
.how-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; }
.how-steps li { flex: 1; position: relative; padding: 1.75rem 1.5rem; background: var(--bg-secondary); border-radius: 22px 6px 22px 6px; overflow: hidden; }
.how-steps li:nth-child(2) { margin-top: 2rem; }
.how-steps .num { position: absolute; right: 1rem; top: .5rem; font-size: 64px; font-weight: 800; color: var(--bg-tertiary); line-height: 1; }
.how-steps svg { width: 32px; height: 32px; color: var(--accent); position: relative; margin-bottom: .75rem; }
.how-steps li:nth-child(2) svg { color: var(--orange); } .how-steps li:nth-child(3) svg { color: var(--blue); }
.how-steps h3, .how-steps p { position: relative; }
.how-steps p { color: var(--text-secondary); margin: 0; }
.rubro-photos { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.rubro-photos figure { flex: 1; margin: 0; position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 3 / 4; }
.rubro-photos figure:nth-child(even) { transform: translateY(24px); }
.rubro-photos img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.rubro-photos figure:hover img { transform: scale(1.05); }
.rubro-photos figcaption { position: absolute; left: .75rem; right: .75rem; bottom: .75rem; background: rgba(11,10,20,.82); color: #fff; border-radius: 12px; padding: .5rem .7rem; font-weight: 600; font-size: 14px; display: flex; gap: .45rem; align-items: center; }
.rubro-photos figcaption svg { width: 18px; height: 18px; color: #FEAE02; }
.rubro-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.5rem; }
.rchip { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-primary); font-size: 14px; color: var(--text-secondary); }
.rchip svg { width: 16px; height: 16px; color: var(--accent); }
.demo { padding-bottom: 2rem; }
.demo-grid { display: flex; gap: 3rem; align-items: center; background: var(--night-2); color: #F3F0FF; border-radius: 32px 8px 32px 8px; padding: 3rem; position: relative; overflow: hidden; }
.demo-grid::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px 300px at 90% 10%, rgba(224,57,252,.25), transparent 60%); }
.demo-copy, .demo-phone { position: relative; }
.demo-copy { flex: 1; }
.demo-copy h2 { font-size: clamp(26px, 3.2vw, 36px); margin: .4rem 0 .6rem; }
.demo-copy .muted { color: #B9B2D3; }
.demo-picks { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0; }
.demo-pick { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .9rem; border-radius: 12px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.05); color: #F3F0FF; font-weight: 600; font-size: 14px; }
.demo-pick svg { width: 17px; height: 17px; }
.demo-pick.sel { background: #fff; color: #130430; border-color: #fff; }
.plans { display: flex; gap: 1rem; align-items: stretch; }
.plan { flex: 1; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 24px 6px 24px 6px; padding: 1.75rem 1.5rem; display: flex; flex-direction: column; gap: .6rem; }
.plan.hot { background: var(--night-2); color: #F3F0FF; border-color: transparent; box-shadow: 0 24px 60px rgba(128,2,250,.35); transform: translateY(-10px); }
.plan.hot .muted { color: #B9B2D3; }
.plan h3 { font-size: 20px; margin: 0; }
.plan-badge { position: absolute; top: -12px; right: 1.25rem; background: var(--grad-brand); color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; }
.price { display: flex; align-items: baseline; gap: .35rem; margin: .5rem 0 .25rem; }
.price b { font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.price span { color: var(--text-muted); font-size: 14px; }
.plan.hot .price span { color: #B9B2D3; }
.plan .pill { align-self: flex-start; }
.plan ul { list-style: none; padding: 0; margin: .75rem 0 1.25rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; font-size: 14px; }
.plan li { display: flex; gap: .5rem; align-items: flex-start; }
.plan li svg { width: 17px; height: 17px; color: var(--success); flex-shrink: 0; margin-top: 2px; }
.faq details { border-bottom: 1px solid var(--border); padding: .25rem 0; max-width: 820px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 600; font-size: 16px; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; color: var(--text-muted); transition: transform .2s; flex-shrink: 0; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { color: var(--text-secondary); margin: 0 0 1rem; }
.final-cta { max-width: 1200px; margin: 4rem auto 0; padding: 2.5rem; border-radius: 28px 8px 28px 8px; background: var(--grad-brand); color: #fff; display: flex; gap: 1.5rem; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.final-cta h2 { margin: 0 0 .3rem; font-size: 28px; text-shadow: 0 1px 2px rgba(0,0,0,.2); }
.final-cta p { margin: 0; opacity: .95; }
.final-cta .btn-hot { background: #130430; }
.site-foot { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem 2.5rem; display: flex; gap: .75rem; align-items: center; color: var(--text-muted); font-size: 13px; flex-wrap: wrap; }
.site-foot img { border-radius: 8px; }
.site-foot .btn { margin-left: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .panel-side, .wiz-preview { width: 290px; }
  .phone { transform: scale(.92); transform-origin: top center; }
  .plans { flex-direction: column; }
  .plan.hot { transform: none; }
}
@media (max-width: 900px) {
  body.mode-panel .sidebar { display: none; }
  .panel-grid, .wiz, .wiz-done, .demo-grid { flex-direction: column; align-items: stretch; }
  .panel-side, .wiz-preview { width: 100%; position: static; }
  .phone { transform: none; margin: 0 auto; }
  .pv-jump { display: inline-block; }
  .done-art { order: 2; }
}
@media (max-width: 768px) {
  .hide-m { display: none !important; }
  .wiz { padding: 1.25rem 1rem; }
  .wiz-form { padding: 1.1rem; }
  .wiz-actions { position: sticky; bottom: calc(68px + env(safe-area-inset-bottom)); background: var(--bg-primary); padding: .75rem 0; margin-top: .75rem; z-index: 5; border-top: 1px solid var(--border); }
  .stepper span { display: none; }
  .stepper li.current span { display: block; position: absolute; top: 50px; white-space: nowrap; }
  .stepper { margin-bottom: 2rem; }
  .logo-stage { flex-direction: column; align-items: center; }
  .logo-actions { width: 100%; }
  .rubro-opt { flex-basis: calc(50% - .5rem); min-width: 0; }
  .engine-opt { flex-basis: 100%; min-width: 0; }
  .kpi-strip { flex-wrap: wrap; }
  .kpi { flex: 1 1 33%; border-bottom: 1px solid rgba(255,255,255,.08); }
  .panel-head .btn { width: 100%; }
  .ph-biz h1 { font-size: 22px; }
  .how-steps, .rubro-photos { flex-direction: column; }
  .how-steps li:nth-child(2) { margin-top: 0; }
  .rubro-photos { flex-direction: row; flex-wrap: wrap; }
  .rubro-photos figure { flex: 1 1 calc(50% - .5rem); }
  .rubro-photos figure:nth-child(even) { transform: none; }
  .land-sec { padding: 3rem 1rem 1rem; }
  .demo-grid { padding: 1.75rem 1.25rem; border-radius: 24px 6px 24px 6px; }
  .hero-photo .chip-a { left: 8px; } .hero-photo .chip-b { right: 8px; }
  .final-cta { margin: 3rem 1rem 0; padding: 1.75rem; }
  .filters .seg { width: 100%; } .filters .seg button { flex: 1; }
  .pc-actions .btn { flex: 1; }
  .splash-inner h1 { font-size: 28px; }
}
@media (max-width: 768px) {
  .prize-main { flex-wrap: wrap; }
  .prize-main .input { flex: 1 1 100%; }
  .prize-main .switch { margin-left: auto; }
}
