@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,800&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #0b0d12;
  --bg2: #12151c;
  --card: #181c25;
  --line: #272d3a;
  --text: #f3f6fb;
  --muted: #9aa5b8;
  --brand: #2B63AF;
  --accent: #2B63AF;
  --accent2: #7fb0f5;
  --ok: #35d07f;
  --bad: #ff4d6d;
  --radius: 18px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font-family: Inter, system-ui, -apple-system, sans-serif; font-size: 17px; line-height: 1.4; min-height: 100vh; }
h1, h2, h3, .brand { font-family: 'Bricolage Grotesque', Inter, sans-serif; letter-spacing: -0.02em; margin: 0; }
a { color: var(--accent2); }
.wrap { max-width: 560px; margin: 0 auto; padding: 0 16px 120px; }
/* Icono en pantalla de inicio (iPhone): no meterse debajo de la hora ni de la barra de abajo */
.wrap { padding-top: env(safe-area-inset-top, 0px); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.wide { max-width: 980px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.row { display: flex; gap: 10px; align-items: center; }
.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.hidden { display: none !important; }
.stack > * + * { margin-top: 12px; }

.brand { font-weight: 800; font-size: 22px; }
.brand b { color: var(--accent); }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; }

.demo-banner { background: var(--accent2); color: #06152b; text-align: center; font-weight: 700; font-size: 13px; padding: 6px 10px; }

/* Artist hero */
.hero { text-align: center; padding: 28px 0 8px; }
.avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 3px solid var(--accent); background: var(--card); display: inline-flex; align-items: center; justify-content: center; font-size: 48px; font-weight: 800; font-family: 'Bricolage Grotesque', Inter, system-ui, sans-serif; color: var(--accent); }
.hero h1 { font-size: 34px; margin-top: 12px; }
.hero p { color: var(--muted); margin: 6px 0 0; }
.socials { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--text); text-decoration: none; font-weight: 700; font-size: 14px; }

/* Big action buttons */
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 22px 0 8px; }
.big { border: 0; border-radius: var(--radius); padding: 22px 12px; font-size: 20px; font-weight: 800; font-family: 'Bricolage Grotesque', Inter, system-ui, sans-serif; color: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.big .ic { font-size: 34px; line-height: 1; }
.big.songs { background: linear-gradient(140deg, #3d7ad1, #1f4c8c); }
.big.tip { background: linear-gradient(140deg, #262d40, #161a26); box-shadow: inset 0 0 0 2px var(--accent); }

.btn { appearance: none; border: 0; border-radius: 14px; padding: 15px 18px; font-size: 17px; font-weight: 700; cursor: pointer; background: var(--accent); color: #fff; width: 100%; font-family: inherit; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn.dark { background: var(--card); color: var(--text); border: 1px solid var(--line); }
.btn.ok { background: var(--ok); color: #04210f; }
.btn.bad { background: transparent; color: var(--bad); border: 1px solid var(--bad); }
.btn.sm { width: auto; padding: 10px 14px; font-size: 15px; border-radius: 12px; }

.section-title { font-size: 22px; margin: 28px 0 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }

/* Song list */
.search { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg2); color: var(--text); font-size: 17px; margin-bottom: 10px; }
.song { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; cursor: pointer; width: 100%; color: inherit; text-align: left; font: inherit; }
.song:active { transform: scale(.99); border-color: var(--accent); }
.song .t { font-weight: 700; }
.song .o { color: var(--muted); font-size: 14px; }
.price { font-weight: 800; color: var(--accent2); white-space: nowrap; font-size: 18px; }

/* Products */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.product { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; cursor: pointer; text-align: left; color: inherit; font: inherit; padding: 0; }
.product img, .product .ph { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--bg2); }
.product .ph { display: flex; align-items: center; justify-content: center; font-size: 40px; }
.product .info { padding: 10px 12px; }
.product .t { font-weight: 700; font-size: 15px; }
.ticket { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent2); border-radius: 14px; padding: 14px; margin-bottom: 8px; cursor: pointer; color: inherit; font: inherit; width: 100%; text-align: left; }

/* Sheet (bottom modal) */
.sheet-bg { position: fixed; inset: 0; background: rgba(5, 3, 10, .72); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet { background: var(--bg2); width: 100%; max-width: 560px; border-radius: 22px 22px 0 0; padding: 20px 16px calc(24px + env(safe-area-inset-bottom)); max-height: 92vh; overflow: auto; border-top: 1px solid var(--line); }
.sheet h2 { font-size: 24px; }
.close { float: right; background: var(--card); border: 0; color: var(--text); width: 36px; height: 36px; border-radius: 50%; font-size: 20px; cursor: pointer; }

input, textarea, select { width: 100%; padding: 14px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font-size: 17px; font-family: inherit; }
textarea { resize: vertical; min-height: 70px; }
label { display: block; font-size: 14px; color: var(--muted); margin: 12px 0 6px; font-weight: 600; }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.chip { padding: 16px 0; border-radius: 14px; border: 2px solid var(--line); background: var(--card); color: var(--text); font-size: 20px; font-weight: 800; cursor: pointer; font-family: 'Bricolage Grotesque', Inter, system-ui, sans-serif; }
.chip.on { border-color: var(--accent); background: rgba(43, 99, 175, .15); }
.toggle-more { background: none; border: 0; color: var(--accent2); font-size: 15px; font-weight: 600; padding: 10px 0; cursor: pointer; }

.alert { padding: 12px 14px; border-radius: 12px; font-weight: 600; margin: 12px 0; }
.alert.bad { background: rgba(255, 77, 109, .14); color: #ffb3c1; border: 1px solid rgba(255, 77, 109, .4); }
.alert.ok { background: rgba(53, 208, 127, .14); color: #a8f0c8; border: 1px solid rgba(53, 208, 127, .4); }
.alert.info { background: rgba(127, 176, 245, .12); color: #d3e4fc; border: 1px solid rgba(127, 176, 245, .35); }

.big-status { text-align: center; padding: 50px 10px 20px; }
.big-status .emoji { font-size: 72px; }
.big-status h1 { font-size: 30px; margin-top: 10px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; font-weight: 700; z-index: 99; max-width: 90vw; }

/* Panel */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0 12px; position: sticky; top: 0; background: var(--bg); z-index: 5; }
.tab { padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-weight: 600; white-space: nowrap; cursor: pointer; font-size: 15px; }
.tab.on { background: var(--text); color: var(--bg); }
.badge { background: var(--accent); color: #fff; border-radius: 999px; padding: 1px 8px; font-size: 13px; margin-left: 4px; }
.req { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 10px; }
.req.new { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(43, 99, 175, .25); }
.req .song-t { font-size: 22px; font-weight: 800; font-family: 'Bricolage Grotesque', Inter, system-ui, sans-serif; }
.req .ded { background: var(--bg2); border-radius: 10px; padding: 10px 12px; margin-top: 10px; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; }
.timer.low { color: var(--bad); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.stat .n { font-size: 26px; font-weight: 800; font-family: 'Bricolage Grotesque', Inter, system-ui, sans-serif; }
.list-item { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.switch { display: flex; align-items: center; justify-content: space-between; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.switch input { width: 52px; height: 30px; accent-color: var(--ok); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }

.landing h1 { font-size: 46px; line-height: 1.02; margin: 30px 0 14px; }
.landing h1 span { color: var(--accent); }
.steps { counter-reset: s; }
.steps li { list-style: none; position: relative; padding-left: 44px; margin-bottom: 16px; }
.steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }

@media (prefers-reduced-motion: no-preference) {
  .req.new { animation: pulse 1.2s ease-in-out 3; }
  @keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(43, 99, 175, .15); } }
}

/* Setup guide */
.guide { margin-bottom: 14px; border-color: var(--accent); }
.guide .bar { height: 6px; background: var(--bg2); border-radius: 99px; margin: 10px 0 6px; overflow: hidden; }
.guide .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent2)); border-radius: 99px; }
.gstep { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.gstep:first-of-type { border-top: 0; }
.gstep .dot { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; color: var(--muted); }
.gstep.cur .dot { border-color: var(--accent); color: var(--accent); }
.gstep.done .dot { background: var(--ok); border-color: var(--ok); color: #04210f; }
.gstep .gt { font-weight: 700; padding-top: 3px; }
.gstep.done .gt { color: var(--muted); text-decoration: line-through; }
.gstep:not(.done):not(.cur) { cursor: pointer; }
.gstep:not(.done):not(.cur) .gt::after { content: ' ›'; color: var(--muted); }

/* Cargo por servicio y aviso de comisiones */
.fee-box { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-top: 12px; font-size: 15px; }
.fee-box .row { margin: 2px 0; }
.fee-box .total { font-weight: 800; font-size: 17px; border-top: 1px solid var(--line); padding-top: 6px; margin-top: 6px; }
.info-btn { background: none; border: 0; color: var(--accent2); font-size: 15px; padding: 0 2px; cursor: pointer; }
.chip small { display: block; font-size: 11px; font-weight: 600; color: var(--accent2); margin-top: 2px; font-family: Inter, system-ui, sans-serif; }
.fees-card { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-top: 10px; }
.fees-card .big-n { font-size: 22px; font-weight: 800; }
.fees-card table { width: 100%; font-size: 14px; margin-top: 8px; }
.fees-card td { padding: 3px 0; }
.fees-card td:last-child { text-align: right; }
.agree { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0 0; font-size: 15px; font-weight: 600; cursor: pointer; }
.agree input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--accent); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }

/* Marca registrada IMPI exp. 3448835 */
.logo { display: block; height: 26px; width: auto; }
a:has(> .logo) { display: inline-block; line-height: 0; }
.logo-sm { display: inline-block; height: 18px; width: auto; opacity: .85; vertical-align: middle; }
.avatar { color: var(--accent2); }
.landing h1 span { color: var(--accent2); }
.gstep.cur .dot { color: var(--accent2); }

/* ---------- Modo DJ: naranja. Músico en vivo: azul ---------- */
body.dj { --accent: #C2410C; --accent2: #FF8A3D; }
.kind-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; vertical-align: middle; }
.kind-tag.live { background: #2B63AF; color: #fff; }
.kind-tag.dj { background: #FF8A3D; color: #0b0d12; }
.list-item.kind-row.live { box-shadow: inset 4px 0 0 #2B63AF; }
.list-item.kind-row.dj { box-shadow: inset 4px 0 0 #FF8A3D; }
.seg { display: inline-flex; gap: 4px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; flex-wrap: wrap; }
.seg button { appearance: none; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 15px; font-weight: 700; padding: 8px 14px; border-radius: 9px; cursor: pointer; min-height: 40px; }
.seg button.on { background: var(--accent); color: #fff; }
.seg button[data-mode="dj"].on, .seg button[data-kind="dj"].on { background: #FF8A3D; color: #0b0d12; }
.seg button[data-mode="live"].on, .seg button[data-kind="live"].on { background: #2B63AF; color: #fff; }
.mode-card { margin-top: 12px; }
body.dj .mode-card { border-color: #FF8A3D; }
.kind-pick { border: 0; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.kind-pick legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.kind-opt { display: flex; gap: 10px; align-items: flex-start; background: var(--bg2); border: 2px solid var(--line); border-radius: 14px; padding: 12px; cursor: pointer; font-weight: 400; margin: 0; }
.kind-opt input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.kind-opt > span { display: grid; gap: 2px; }
.kind-opt.live:has(input:checked) { border-color: #2B63AF; }
.kind-opt.dj:has(input:checked) { border-color: #FF8A3D; }
.dj-ask { display: grid; gap: 8px; }
