/* web/assets/ai.css — Bytgon AI · sistema de diseño del estudio (oscuro por defecto, claro opcional) */
:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --b-50: #f2f6ff; --b-100: #e3ecff; --b-200: #c2d4ff; --b-300: #94b3ff; --b-400: #5f8dff; --b-500: #1d5cff; --b-600: #1247d9; --b-700: #0c36ad;
  --cyan: #0bd5f5; --violet: #8b5cf6; --pink: #ec4899; --amber: #f59e0b;
  --ok: #22c55e; --warn: #f59e0b; --bad: #ef4444;
  --r: 14px; --r-sm: 9px; --r-lg: 22px; --r-pill: 999px;
  --side-w: 236px; --top-h: 60px;
  color-scheme: dark;
  --bg: #070b16; --bg-2: #0b1222; --bg-3: #111a2e; --surface: #0e1629; --surface-2: #131d34; --surface-3: #192441;
  --border: #1b2742; --border-2: #273553; --ink: #eef2ff; --ink-2: #c7d0e8; --muted: #8a97b8; --faint: #5e6a88;
  --shadow-1: 0 1px 2px rgba(0,0,0,.35); --shadow-2: 0 10px 30px -12px rgba(0,0,0,.6); --shadow-3: 0 30px 70px -20px rgba(29,92,255,.35);
  --grad: linear-gradient(135deg, var(--b-500), var(--cyan));
}
[data-theme="light"] { color-scheme: light; --bg: #f5f7fc; --bg-2: #ffffff; --bg-3: #eef2fb; --surface: #ffffff; --surface-2: #f6f8fd; --surface-3: #eef2fb; --border: #e2e8f5; --border-2: #cdd7ec; --ink: #0b1a3a; --ink-2: #33456b; --muted: #6b7a99; --faint: #9aa8c4; --shadow-1: 0 1px 2px rgba(11,26,58,.06); --shadow-2: 0 10px 30px -12px rgba(11,26,58,.18); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.5; font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: var(--b-400); text-decoration: none; } a:hover { text-decoration: underline; }
img, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.15; letter-spacing: -.01em; }
h1 { font-size: 30px; font-weight: 800; } h2 { font-size: 22px; font-weight: 800; } h3 { font-size: 16px; font-weight: 700; } h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); } .small { font-size: 13px; } .tiny { font-size: 12px; } .mono { font-family: var(--mono); } .center { text-align: center; } .hidden { display: none !important; } .nowrap { white-space: nowrap; }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; } .row.end { justify-content: flex-end; } .grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
svg.i { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: var(--r-sm); border: 1px solid var(--border-2); background: var(--surface-2); color: var(--ink); font-weight: 600; font-size: 14px; line-height: 1.2; transition: background .15s, border-color .15s, transform .05s, box-shadow .15s; white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--surface-3); border-color: var(--b-400); text-decoration: none; } .btn:active { transform: translateY(1px); }
.btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 8px 20px -10px rgba(29,92,255,.8); } .btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); } .btn.ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn.soft { background: color-mix(in srgb, var(--b-500) 14%, transparent); border-color: color-mix(in srgb, var(--b-500) 30%, transparent); color: var(--b-300); }
[data-theme="light"] .btn.soft { color: var(--b-700); }
.btn.danger { color: var(--bad); } .btn.danger:hover { background: color-mix(in srgb, var(--bad) 12%, transparent); border-color: var(--bad); }
.btn.sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; } .btn.xs { padding: 4px 8px; font-size: 12px; border-radius: 7px; } .btn.lg { padding: 14px 24px; font-size: 16px; border-radius: 12px; }
.btn.icon { padding: 8px; width: 36px; height: 36px; } .btn.icon.sm { width: 30px; height: 30px; padding: 5px; } .btn.icon svg.i { width: 18px; height: 18px; }
.btn.block { width: 100%; } .btn[disabled], .btn.disabled { opacity: .55; pointer-events: none; }
.btn.loading { position: relative; color: transparent !important; } .btn.loading::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.input, .select, .textarea { width: 100%; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--border-2); background: var(--bg-2); color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--b-400); box-shadow: 0 0 0 3px color-mix(in srgb, var(--b-500) 25%, transparent); }
.textarea { resize: vertical; min-height: 96px; line-height: 1.5; }
.select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
label.lbl { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: var(--r-pill); border: 1px solid var(--border-2); background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 13px; line-height: 1.1; cursor: pointer; transition: all .15s; user-select: none; }
.chip:hover { border-color: var(--b-400); color: var(--ink); } .chip.on { background: color-mix(in srgb, var(--b-500) 18%, transparent); border-color: var(--b-400); color: var(--b-300); }
[data-theme="light"] .chip.on { color: var(--b-700); }
.chip.sm { padding: 5px 9px; font-size: 12px; } .chip .x { opacity: .6; margin-left: 2px; } .chip .x:hover { opacity: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .02em; background: var(--bg-3); color: var(--ink-2); line-height: 1.5; white-space: nowrap; }
.badge.blue { background: color-mix(in srgb, var(--b-500) 18%, transparent); color: var(--b-300); } .badge.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); } .badge.warn { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); } .badge.bad { background: color-mix(in srgb, var(--bad) 15%, transparent); color: var(--bad); } .badge.new { background: var(--grad); color: #fff; }
[data-theme="light"] .badge.blue { color: var(--b-700); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow-1); }
.card.soft { background: var(--surface-2); } .card.pad-sm { padding: 12px; }
.callout { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--border); background: var(--surface-2); font-size: 14px; }
.callout.info { border-color: color-mix(in srgb, var(--b-500) 35%, transparent); background: color-mix(in srgb, var(--b-500) 10%, transparent); } .callout.warn { border-color: color-mix(in srgb, var(--warn) 40%, transparent); background: color-mix(in srgb, var(--warn) 10%, transparent); } .callout.bad { border-color: color-mix(in srgb, var(--bad) 40%, transparent); background: color-mix(in srgb, var(--bad) 10%, transparent); }
.callout svg.i { margin-top: 2px; }
.sk { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: var(--r-sm); }
@keyframes sk { to { background-position: -200% 0; } }
.toast-wrap { position: fixed; right: 16px; bottom: 16px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 32px)); }
.toast { padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-3); border: 1px solid var(--border-2); box-shadow: var(--shadow-2); font-size: 14px; display: flex; gap: 10px; align-items: flex-start; animation: up .2s ease-out; }
.toast.ok { border-color: var(--ok); } .toast.bad { border-color: var(--bad); } .toast.info { border-color: var(--b-400); } .toast a { font-weight: 600; }
@keyframes up { from { transform: translateY(8px); opacity: 0; } }
.modal-bg { position: fixed; inset: 0; background: rgba(2,6,16,.72); backdrop-filter: blur(6px); z-index: 900; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-lg); width: min(760px, 100%); max-height: min(90vh, 900px); display: flex; flex-direction: column; box-shadow: var(--shadow-3); overflow: hidden; }
.modal.wide { width: min(1100px, 100%); } .modal.narrow { width: min(460px, 100%); }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); } .modal-h h3 { margin: 0; flex: 1; }
.modal-b { padding: 18px; overflow: auto; } .modal-f { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 14px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 12px; color: var(--muted); font-weight: 700; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-bottom-color: var(--b-400); }
.prog { height: 6px; border-radius: 3px; background: var(--bg-3); overflow: hidden; } .prog > i { display: block; height: 100%; background: var(--grad); transition: width .4s; border-radius: 3px; }
.prog.indet > i { width: 40% !important; animation: indet 1.2s ease-in-out infinite; } @keyframes indet { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; display: inline-grid; place-items: center; font-weight: 800; font-size: 14px; overflow: hidden; flex: none; } .avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.lg { width: 72px; height: 72px; font-size: 26px; } .avatar.sm { width: 26px; height: 26px; font-size: 11px; }
.kbd { font-family: var(--mono); font-size: 11px; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--border-2); background: var(--bg-3); color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--muted); } .dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); }

/* ───────── armazón de la app ───────── */
.shell { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; background: var(--bg-2); border-right: 1px solid var(--border); display: flex; flex-direction: column; padding: 14px 12px; gap: 6px; overflow: auto; }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 14px; color: var(--ink); text-decoration: none; } .side .brand img { width: 34px; height: 34px; } .side .brand b { font-size: 17px; letter-spacing: -.01em; } .side .brand small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.side .sec { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 12px 10px 4px; }
.nav-i { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 14px; text-decoration: none; transition: background .12s; } .nav-i:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); } .nav-i.on { background: color-mix(in srgb, var(--b-500) 16%, transparent); color: var(--b-300); } [data-theme="light"] .nav-i.on { color: var(--b-700); }
.nav-i svg.i { width: 18px; height: 18px; } .nav-i .tag { margin-left: auto; }
.side .foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.balcard { padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); } .balcard .v { font-family: var(--mono); font-size: 18px; font-weight: 700; } .balcard .l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.main { min-width: 0; display: flex; flex-direction: column; }
.top { height: var(--top-h); display: flex; align-items: center; gap: 10px; padding: 0 20px; border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 50; }
.top .title { font-weight: 800; font-size: 17px; } .top .crumb { color: var(--muted); font-weight: 600; }
.content { padding: 20px; max-width: 1480px; width: 100%; margin: 0 auto; }
.mtabs { display: none; }
.pill-bal { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--border-2); font-family: var(--mono); font-size: 13px; font-weight: 700; }
.pill-bal.low { border-color: var(--warn); color: var(--warn); }
.api-btn { background: var(--surface-2); } .api-btn svg.i { color: var(--b-400); }

/* ───────── herramientas de creación ───────── */
.tool { display: grid; grid-template-columns: minmax(360px, 440px) 1fr; gap: 20px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: calc(var(--top-h) + 16px); max-height: calc(100vh - var(--top-h) - 32px); overflow: auto; }
.panel h3 { display: flex; align-items: center; gap: 8px; }
.prompt-box { position: relative; border: 1px solid var(--border-2); border-radius: 12px; background: var(--bg-2); transition: border-color .15s, box-shadow .15s; }
.prompt-box:focus-within { border-color: var(--b-400); box-shadow: 0 0 0 3px color-mix(in srgb, var(--b-500) 22%, transparent); }
.prompt-box textarea { width: 100%; border: 0; background: transparent; padding: 12px 12px 6px; min-height: 110px; resize: vertical; outline: none; line-height: 1.5; font-size: 15px; }
.prompt-bar { display: flex; align-items: center; gap: 6px; padding: 6px 8px 8px; flex-wrap: wrap; } .prompt-bar .spacer { flex: 1; }
.model-btn { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border-2); background: var(--bg-2); }
.model-btn:hover { border-color: var(--b-400); } .model-btn .n { font-weight: 700; } .model-btn .s { font-size: 12px; color: var(--muted); } .model-btn .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--grad); display: grid; place-items: center; color: #fff; flex: none; }
.opt { display: flex; flex-direction: column; gap: 6px; } .opt .lbl { display: flex; align-items: center; justify-content: space-between; }
.opts { display: flex; flex-direction: column; gap: 12px; }
.seg { display: inline-flex; border: 1px solid var(--border-2); border-radius: 9px; overflow: hidden; } .seg button { background: var(--bg-2); border: 0; padding: 7px 12px; font-weight: 600; font-size: 13px; color: var(--ink-2); } .seg button.on { background: color-mix(in srgb, var(--b-500) 22%, transparent); color: var(--b-300); } .seg button + button { border-left: 1px solid var(--border-2); }
.slider { width: 100%; accent-color: var(--b-500); }
.toggle { position: relative; width: 42px; height: 24px; border-radius: 12px; background: var(--bg-3); border: 1px solid var(--border-2); transition: background .15s; flex: none; } .toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .15s, background .15s; } .toggle.on { background: var(--b-500); border-color: var(--b-500); } .toggle.on::after { transform: translateX(18px); background: #fff; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot { position: relative; aspect-ratio: 1; border-radius: 10px; border: 1px dashed var(--border-2); background: var(--bg-2); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: 11px; font-weight: 700; text-align: center; padding: 6px; cursor: pointer; overflow: hidden; transition: border-color .15s, background .15s; }
.slot:hover, .slot.over { border-color: var(--b-400); background: color-mix(in srgb, var(--b-500) 8%, transparent); color: var(--ink); }
.slot.filled { border-style: solid; color: #fff; } .slot.filled img, .slot.filled video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; background: linear-gradient(transparent, rgba(0,0,0,.75)); font-size: 10px; text-align: left; } .slot .rm { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; border: 0; display: grid; place-items: center; } .slot .rm svg.i { width: 12px; height: 12px; }
.slot.audio.filled { background: var(--surface-3); color: var(--ink); } .slot.wide { aspect-ratio: 2.4; }
.presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.preset { padding: 9px 10px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--bg-2); cursor: pointer; font-size: 12px; font-weight: 700; line-height: 1.2; transition: all .15s; } .preset small { display: block; font-weight: 500; color: var(--muted); margin-top: 3px; font-size: 11px; } .preset:hover { border-color: var(--b-400); } .preset.on { border-color: var(--b-400); background: color-mix(in srgb, var(--b-500) 16%, transparent); }
.cost { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--bg-2); border: 1px solid var(--border); font-size: 13px; } .cost b { font-family: var(--mono); font-size: 15px; } .cost.bad { border-color: var(--bad); } .cost .rng { color: var(--muted); font-family: var(--mono); font-size: 12px; }
details.adv { border: 1px solid var(--border); border-radius: 10px; padding: 0 12px; } details.adv summary { cursor: pointer; padding: 10px 0; font-weight: 700; font-size: 13px; color: var(--muted); list-style: none; display: flex; align-items: center; gap: 6px; } details.adv[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 10px; } details.adv .opts { padding-bottom: 12px; }
.results { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.job { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 10px; animation: up .25s ease-out; }
.job.running { border-color: color-mix(in srgb, var(--b-500) 45%, transparent); } .job.failed { border-color: color-mix(in srgb, var(--bad) 50%, transparent); }
.job .h { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); } .job .h b { color: var(--ink); } .job .h .st { margin-left: auto; font-weight: 700; }
.job .prompt { font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.job .partial { border-radius: 10px; overflow: hidden; max-height: 420px; display: grid; place-items: center; background: var(--bg-2); } .job .partial img { max-height: 420px; width: auto; filter: blur(1.5px) saturate(1.1); animation: pulse 1.6s ease-in-out infinite; } @keyframes pulse { 50% { opacity: .75; } }
.outs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.mc { position: relative; border-radius: 12px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--border); cursor: pointer; aspect-ratio: 1; }
.mc img, .mc video { width: 100%; height: 100%; object-fit: cover; } .mc.vid::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(0,0,0,.0), rgba(0,0,0,.25)); pointer-events: none; }
.mc .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; pointer-events: none; }
.mc .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff; font-size: 12px; display: flex; gap: 6px; align-items: center; opacity: 0; transition: opacity .15s; } .mc:hover .meta { opacity: 1; } .mc .meta .sp { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc .acts { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; opacity: 0; transition: opacity .15s; } .mc:hover .acts, .mc.touch .acts { opacity: 1; } .mc .acts button { width: 30px; height: 30px; border-radius: 8px; border: 0; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; backdrop-filter: blur(4px); } .mc .acts button:hover { background: var(--b-500); } .mc .acts button.on { background: var(--pink); } .mc .acts svg.i { width: 15px; height: 15px; }
.mc.audio { aspect-ratio: 2; display: flex; flex-direction: column; align-items: stretch; justify-content: center; padding: 12px; gap: 8px; cursor: default; } .mc.audio audio { width: 100%; } .mc.audio .ttl { font-weight: 700; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc .kind { position: absolute; top: 8px; left: 8px; }
.lb .modal-b { padding: 0; display: grid; grid-template-columns: 1fr 340px; min-height: 420px; } .lb .view { background: #000; display: grid; place-items: center; min-height: 320px; max-height: 80vh; } .lb .view img, .lb .view video { max-height: 80vh; max-width: 100%; object-fit: contain; width: auto; } .lb .info { padding: 16px; overflow: auto; border-left: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.lb .info .prompt { background: var(--bg-2); padding: 10px; border-radius: 8px; white-space: pre-wrap; max-height: 160px; overflow: auto; font-size: 13px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 12px; } .kv b { color: var(--muted); font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; } .filters .input { max-width: 280px; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--border-2); border-radius: var(--r-lg); } .empty svg.i { width: 36px; height: 36px; margin-bottom: 8px; color: var(--faint); }
.model-row { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; } .model-row:hover { background: var(--surface-2); } .model-row.on { border-color: var(--b-400); background: color-mix(in srgb, var(--b-500) 10%, transparent); }
.model-row .n { font-weight: 700; } .model-row .d { font-size: 12px; color: var(--muted); } .model-row .p { margin-left: auto; text-align: right; font-family: var(--mono); font-size: 12px; white-space: nowrap; } .model-row .p b { font-size: 13px; }
.model-row .bd { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.feed { columns: 4 220px; column-gap: 12px; } .feed .post { break-inside: avoid; margin-bottom: 12px; border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); cursor: pointer; transition: transform .15s, border-color .15s; } .feed .post:hover { transform: translateY(-2px); border-color: var(--b-400); }
.feed .post img, .feed .post video { width: 100%; height: auto; display: block; } .feed .post .pb { padding: 8px 10px; display: flex; align-items: center; gap: 8px; font-size: 12px; } .feed .post .pb .t { font-weight: 700; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .feed .post .likes { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); } .feed .post .likes.on { color: var(--pink); }
.post-page { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; } .post-page .view { background: #000; border-radius: var(--r-lg); overflow: hidden; display: grid; place-items: center; min-height: 300px; } .post-page .view img, .post-page .view video { max-height: 78vh; width: auto; max-width: 100%; }
.comment { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--border); font-size: 13px; } .comment .who { font-weight: 700; }
.profile-h { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; } .profile-h .nums { display: flex; gap: 18px; font-size: 13px; color: var(--muted); } .profile-h .nums b { color: var(--ink); font-size: 16px; display: block; }
.hero-tool { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 20px; } .ht { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; color: var(--ink); transition: border-color .15s, transform .15s; } .ht:hover { border-color: var(--b-400); transform: translateY(-2px); text-decoration: none; } .ht .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--grad); color: #fff; display: grid; place-items: center; } .ht b { font-size: 15px; } .ht small { color: var(--muted); font-size: 12px; }
.shots { display: flex; flex-direction: column; gap: 10px; } .shot { display: grid; grid-template-columns: 56px 1fr 180px; gap: 12px; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); align-items: start; } .shot .n { font-size: 22px; font-weight: 800; color: var(--faint); font-family: var(--mono); } .shot .prm { font-size: 12px; color: var(--muted); } .shot .thumbs { display: flex; gap: 6px; } .shot .thumbs .th { width: 84px; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: var(--bg-2); border: 1px solid var(--border); display: grid; place-items: center; color: var(--faint); font-size: 10px; } .shot .thumbs .th img, .shot .thumbs .th video { width: 100%; height: 100%; object-fit: cover; }
.shot textarea { font-size: 13px; min-height: 56px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; } .stat { padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); } .stat .v { font-family: var(--mono); font-size: 22px; font-weight: 700; } .stat .l { font-size: 12px; color: var(--muted); font-weight: 600; }
.table { width: 100%; border-collapse: collapse; font-size: 13px; } .table th, .table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); } .table th { color: var(--muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.gate { display: grid; place-items: center; min-height: 60vh; } .gate .card { max-width: 440px; text-align: center; }
.drop { border: 2px dashed var(--border-2); border-radius: 14px; padding: 28px; text-align: center; color: var(--muted); cursor: pointer; } .drop.over { border-color: var(--b-400); background: color-mix(in srgb, var(--b-500) 8%, transparent); }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; } .pick-grid .mc { aspect-ratio: 1; }
.audio-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); } .audio-card audio { flex: 1; min-width: 0; height: 36px; }
.ql { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 1100px) { .tool { grid-template-columns: 1fr; } .panel { position: static; max-height: none; } .lb .modal-b { grid-template-columns: 1fr; } .lb .info { border-left: 0; border-top: 1px solid var(--border); } .post-page { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; } .side { display: none; } .content { padding: 14px 14px 90px; } .top { padding: 0 14px; }
  .mtabs { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--bg-2); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .mtabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; font-weight: 700; color: var(--muted); text-decoration: none; padding: 4px 8px; border-radius: 8px; min-width: 56px; } .mtabs a.on { color: var(--b-300); } .mtabs a svg.i { width: 20px; height: 20px; }
  .feed { columns: 2 150px; } .shot { grid-template-columns: 40px 1fr; } .shot .thumbs { grid-column: 1 / -1; } .hide-m { display: none !important; } h1 { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ───────── portada pública ───────── */
.lp { --max: 1180px; } .lp .wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.lp .topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); } .lp .topbar .wrap { height: 64px; display: flex; align-items: center; gap: 14px; }
.lp .brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 18px; text-decoration: none; } .lp .brand img { width: 34px; height: 34px; } .lp .brand small { display: block; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.lp nav { display: flex; gap: 4px; margin-left: 10px; } .lp nav a { padding: 8px 12px; border-radius: var(--r-pill); color: var(--ink-2); font-weight: 600; font-size: 14px; } .lp nav a:hover { background: var(--surface-2); text-decoration: none; }
.lp .spacer { flex: 1; }
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; } .hero::before { content: ''; position: absolute; inset: -40% -20% auto; height: 120%; background: radial-gradient(60% 50% at 30% 30%, rgba(29,92,255,.35), transparent 60%), radial-gradient(50% 40% at 75% 20%, rgba(11,213,245,.22), transparent 60%), radial-gradient(40% 40% at 60% 80%, rgba(139,92,246,.18), transparent 60%); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.04; letter-spacing: -.025em; margin-bottom: 18px; } .hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 18px; color: var(--ink-2); max-width: 560px; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--b-500) 14%, transparent); border: 1px solid color-mix(in srgb, var(--b-500) 30%, transparent); color: var(--b-300); font-weight: 700; font-size: 13px; margin-bottom: 18px; }
.hero .art { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border-2); background: var(--surface); box-shadow: var(--shadow-3); aspect-ratio: 4/3; } .hero .art img { width: 100%; height: 100%; object-fit: cover; } .hero .art .cap { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.hero .art .cap span { padding: 5px 10px; border-radius: var(--r-pill); background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 700; backdrop-filter: blur(6px); }
.sec { padding: 56px 0; } .sec h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -.02em; margin-bottom: 8px; } .sec .sub { color: var(--muted); font-size: 16px; max-width: 640px; margin-bottom: 26px; }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.tc { padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; transition: transform .15s, border-color .15s; text-decoration: none; color: var(--ink); } .tc:hover { transform: translateY(-3px); border-color: var(--b-400); text-decoration: none; } .tc .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; } .tc b { font-size: 17px; } .tc p { color: var(--muted); font-size: 14px; margin: 0; } .tc .n { font-size: 12px; color: var(--b-300); font-weight: 700; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; counter-reset: s; } .step { padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); } .step::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; margin-bottom: 10px; }
.price-table { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; } .pt { padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); } .pt .v { font-family: var(--mono); font-size: 22px; font-weight: 700; } .pt .l { color: var(--muted); font-size: 13px; }
.showcase { columns: 4 220px; column-gap: 12px; }
.cmp { width: 100%; border-collapse: collapse; font-size: 14px; } .cmp th, .cmp td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; } .cmp th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; } .cmp td.y { color: var(--ok); font-weight: 700; }
.band { margin: 40px 0 0; padding: 48px 0; background: linear-gradient(135deg, color-mix(in srgb, var(--b-500) 20%, transparent), color-mix(in srgb, var(--cyan) 12%, transparent)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); text-align: center; }
.foot { padding: 28px 0 40px; color: var(--muted); font-size: 13px; } .foot .wrap { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; } .foot a { color: var(--ink-2); }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding: 40px 0 24px; } .lp nav { display: none; } .showcase { columns: 2 150px; } }
