/* ─────────────────────────────────────────────────────────────
   PubliScenes · sistema visual cinematográfico
   Oscuro, vidrio, luz volumétrica y fotografía hiperrealista.
   ───────────────────────────────────────────────────────────── */
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #060608;
  --ink: #f5f2ee;
  --ink-2: #b9b0a6;
  --ink-3: #7d756c;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --glass: rgba(18, 16, 20, .58);
  --glass-2: rgba(28, 25, 30, .72);
  --glass-hi: rgba(255, 255, 255, .045);
  --accent: #e11d48;
  --accent-2: #f59e0b;
  --accent-ink: #ffffff;
  --grad: linear-gradient(120deg, var(--accent) 0%, #f43f5e 45%, var(--accent-2) 100%);
  --ok: #4ade80; --ok-bg: rgba(74, 222, 128, .12);
  --warn: #fbbf24; --warn-bg: rgba(251, 191, 36, .13);
  --bad: #fb7185; --bad-bg: rgba(251, 113, 133, .13);
  --info: #7dd3fc; --info-bg: rgba(125, 211, 252, .12);
  --muted-bg: rgba(255, 255, 255, .06);
  --surface: var(--glass); --surface-2: rgba(255, 255, 255, .04);
  --radius: 18px; --radius-sm: 12px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 20px 60px -20px rgba(0, 0, 0, .7);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --scene: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: color-mix(in srgb, var(--accent) 55%, transparent); color: #fff; }
a { color: color-mix(in srgb, var(--accent) 55%, #fff); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); line-height: 1.02; letter-spacing: -.015em; }
h1 em, .serif em { font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
h2 { font-size: 1.02rem; font-weight: 650; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
h2::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--grad); box-shadow: 0 0 12px var(--accent); }
h3 { font-size: .9rem; font-weight: 650; margin-bottom: 8px; }
p { margin: 0 0 8px; }

/* ───────── Escena de fondo: foto + luz volumétrica + grano ───────── */
.scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.scene::before { content: ""; position: absolute; inset: -4%; background: var(--scene) center/cover no-repeat; filter: blur(28px) saturate(1.15) brightness(.42); transform: scale(1.08); transition: background-image .6s var(--ease); }
.scene::after { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60vw 50vh at 85% -10%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 70%),
    radial-gradient(50vw 40vh at 0% 100%, color-mix(in srgb, var(--accent-2) 16%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(6, 6, 8, .35), rgba(6, 6, 8, .92) 70%); }
.aurora { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .22; mix-blend-mode: screen; animation: drift 26s var(--ease) infinite alternate; }
.aurora.a1 { background: var(--accent); top: -25vmax; right: -15vmax; }
.aurora.a2 { background: var(--accent-2); bottom: -30vmax; left: -20vmax; animation-duration: 34s; opacity: .14; }
.grain { position: absolute; inset: -50%; opacity: .07; animation: grain 1.2s steps(6) infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift { to { transform: translate3d(-8vmax, 6vmax, 0) scale(1.15); } }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-1%, 3%); } 80% { transform: translate(3%, 1%); } 100% { transform: translate(0, 0); } }

/* ───────── Estructura ───────── */
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 22px 14px; background: linear-gradient(180deg, rgba(10, 9, 12, .78), rgba(10, 9, 12, .62)); border-right: 1px solid var(--line); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4); display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 22px; font-weight: 700; letter-spacing: -.01em; }
.brand .dot { width: 36px; height: 36px; border-radius: 11px; background: var(--grad); color: #fff; display: grid; place-items: center; font: 400 22px/1 var(--serif); box-shadow: 0 8px 26px -6px var(--accent), inset 0 1px 0 rgba(255, 255, 255, .35); }
.brand small { display: block; font-weight: 500; color: var(--ink-3); font-size: 12px; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 11px; color: var(--ink-2); font-size: 14px; font-weight: 500; position: relative; transition: background .25s, color .25s, transform .25s var(--ease); }
.nav a svg { width: 18px; height: 18px; flex: none; opacity: .75; transition: opacity .2s; }
.nav a:hover { background: var(--glass-hi); color: var(--ink); transform: translateX(2px); }
.nav a.on { color: #fff; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 24%, transparent), rgba(255, 255, 255, .03)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.nav a.on svg { opacity: 1; color: color-mix(in srgb, var(--accent) 50%, #fff); }
.nav a.on::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); box-shadow: 0 0 14px var(--accent); }
.nav .sep { font-size: 10.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-3); padding: 18px 12px 6px; font-weight: 600; }
.side-foot { margin-top: auto; padding: 14px 10px 4px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 13px; color: #fff; background: linear-gradient(135deg, #3b0a17, var(--accent)); box-shadow: 0 0 0 2px rgba(255, 255, 255, .08); flex: none; }
.main { padding: 26px clamp(16px, 3vw, 40px) 80px; max-width: 1320px; width: 100%; }

/* ───────── Cabecera de sección (hero fotográfico) ───────── */
.hero { position: relative; border-radius: 26px; overflow: hidden; min-height: 248px; margin-bottom: 22px; display: flex; align-items: flex-end; isolation: isolate; border: 1px solid var(--line); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9); }
.hero-img { position: absolute; inset: 0; z-index: -2; background: var(--hero) center/cover no-repeat; transform-origin: 70% 50%; animation: kenburns 22s var(--ease) infinite alternate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6, 6, 8, .96) 0%, rgba(6, 6, 8, .78) 34%, rgba(6, 6, 8, .18) 72%, rgba(6, 6, 8, .35) 100%), linear-gradient(0deg, rgba(6, 6, 8, .85), transparent 55%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px 220px at var(--mx, 75%) var(--my, 30%), rgba(255, 255, 255, .08), transparent 70%); transition: background .2s; }
.hero-body { padding: clamp(20px, 3vw, 34px); display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; width: 100%; flex-wrap: wrap; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 10px; padding: 5px 11px; border-radius: 99px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 2.4s infinite; }
.hero .sub { color: var(--ink-2); max-width: 56ch; margin-top: 10px; font-size: 15.5px; }
.hero .row { align-self: flex-end; }
@keyframes kenburns { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.sub { color: var(--ink-2); margin: 0; }

/* ───────── Superficies de vidrio ───────── */
.card, .stat { position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3); margin-bottom: 16px; isolation: isolate; }
.card::before, .stat::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 13%, transparent), transparent 60%); }
.card:hover::before, .stat:hover::before { opacity: 1; }
.card::after, .stat::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 70%, #fff), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card:hover::after, .stat:hover::after { opacity: .55; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid > .card, .grid > .stat { margin-bottom: 0; }
.stat { padding: 18px 18px 16px; overflow: hidden; transition: transform .35s var(--ease), border-color .3s; }
.stat:hover { transform: translateY(-3px); border-color: var(--line-2); }
.stat .k { font-size: 12.5px; color: var(--ink-2); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.stat .k svg { width: 18px; height: 18px; color: color-mix(in srgb, var(--accent) 55%, #fff); opacity: .9; }
.stat .v { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.15rem); font-weight: 680; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 6px; line-height: 1.1; }
.stat .v .unit { font-size: .5em; font-weight: 600; color: var(--ink-2); margin-left: 5px; letter-spacing: 0; }
.stat .glow { position: absolute; right: -40px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--accent); filter: blur(50px); opacity: .18; }
a.stat { color: inherit; display: block; }

/* ───────── Tablas (tarjetas en móvil) ───────── */
.tablewrap { overflow-x: auto; margin: 0 -6px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
th { text-align: left; font-weight: 600; color: var(--ink-3); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 13px 12px; vertical-align: top; border-bottom: 1px solid rgba(255, 255, 255, .05); transition: background .2s; }
tbody tr { transition: background .25s; }
tbody tr:hover td { background: rgba(255, 255, 255, .035); }
tbody tr:hover td:first-child { box-shadow: inset 2px 0 0 var(--accent); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td b { font-weight: 650; }

/* ───────── Distintivos, botones y formularios ───────── */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 10px 3px 8px; border-radius: 99px; background: var(--muted-bg); color: var(--ink-2); white-space: nowrap; border: 1px solid rgba(255, 255, 255, .06); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.b-ok { background: var(--ok-bg); color: var(--ok); } .b-warn { background: var(--warn-bg); color: var(--warn); }
.b-bad { background: var(--bad-bg); color: var(--bad); } .b-info { background: var(--info-bg); color: var(--info); }
button, .btn { font: 600 14px var(--font); border-radius: 12px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .05); color: var(--ink); padding: 9px 16px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; position: relative; overflow: hidden; transition: transform .2s var(--ease), background .25s, border-color .25s, box-shadow .3s; backdrop-filter: blur(10px); }
button:hover, .btn:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .26); color: #fff; transform: translateY(-1px); }
button:active, .btn:active { transform: translateY(0) scale(.98); }
button.primary, .btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 10px 30px -10px var(--accent), inset 0 1px 0 rgba(255, 255, 255, .3); }
button.primary::after, .btn.primary::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); transition: left .7s var(--ease); }
button.primary:hover::after, .btn.primary:hover::after { left: 130%; }
button.primary:hover, .btn.primary:hover { box-shadow: 0 14px 40px -10px var(--accent), inset 0 1px 0 rgba(255, 255, 255, .35); }
button.danger { color: var(--bad); }
button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 70%, #fff); outline-offset: 2px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
form.stack, .stack { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); letter-spacing: .01em; }
input, select, textarea { font: 14.5px var(--font); padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0, 0, 0, .32); color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .25s, background .2s; }
input::placeholder, textarea::placeholder { color: var(--ink-3); }
input:hover, select:hover, textarea:hover { border-color: rgba(255, 255, 255, .26); }
input:focus, select:focus, textarea:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 70%, #fff); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); background: rgba(0, 0, 0, .45); }
select option { background: #16131a; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
textarea { min-height: 90px; resize: vertical; }
.hint { font-size: 12px; color: var(--ink-3); font-weight: 400; }
.mono { font-family: var(--mono); font-size: 12px; }
.alert { border-radius: 14px; padding: 12px 16px; margin-bottom: 14px; font-size: 14px; border: 1px solid transparent; backdrop-filter: blur(12px); }
.a-bad { background: var(--bad-bg); color: var(--bad); border-color: rgba(251, 113, 133, .25); } .a-ok { background: var(--ok-bg); color: var(--ok); border-color: rgba(74, 222, 128, .25); }
.a-warn { background: var(--warn-bg); color: var(--warn); border-color: rgba(251, 191, 36, .25); } .a-info { background: var(--info-bg); color: var(--info); border-color: rgba(125, 211, 252, .25); }
.alert a { color: inherit; text-decoration: underline; }
details summary { cursor: pointer; font-weight: 600; color: var(--ink-2); list-style: none; display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; }
details summary::before { content: "+"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: rgba(255, 255, 255, .07); font-weight: 700; transition: transform .25s; }
details[open] > summary::before { content: "–"; }
details summary::-webkit-details-marker { display: none; }
details.card > summary { color: var(--ink); }

/* ───────── Progreso, anillo, leyenda ───────── */
.progress { height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; display: flex; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5); }
.progress span { display: block; height: 100%; position: relative; transition: width 1.2s var(--ease); }
.progress .p-done { background: linear-gradient(90deg, #16a34a, var(--ok)); box-shadow: 0 0 18px rgba(74, 222, 128, .6); }
.progress .p-prov { background: repeating-linear-gradient(-45deg, var(--warn) 0 8px, color-mix(in srgb, var(--warn) 70%, #000) 8px 16px); background-size: 200% 100%; animation: stripes 1.4s linear infinite; }
.progress .p-done::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); transform: translateX(-100%); animation: shine 2.8s var(--ease) infinite 1s; }
@keyframes stripes { to { background-position: -32px 0; } }
@keyframes shine { to { transform: translateX(100%); } }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); margin-top: 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: -1px; }
.ring-wrap { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.ring { position: relative; width: 150px; height: 150px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; stroke-linecap: round; }
.ring .track { stroke: rgba(255, 255, 255, .07); }
.ring .val { stroke: url(#ringGrad); transition: stroke-dashoffset 1.6s var(--ease); filter: drop-shadow(0 0 8px var(--accent)); }
.ring .lbl { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .lbl b { font: 400 2.1rem/1 var(--serif); display: block; }
.ring .lbl span { font-size: 11px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .12em; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 9px 20px; font-size: 14px; }
.kv dt { color: var(--ink-3); } .kv dd { margin: 0; }
.steps { margin: 8px 0 0; padding-left: 18px; font-size: 13px; color: var(--ink-2); }
.steps li { margin-bottom: 4px; }
.empty { text-align: center; color: var(--ink-2); padding: 34px 20px; font-size: 14px; }
.empty::before { content: ""; display: block; width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px dashed var(--line-2); }

/* Funnel del panel */
.funnel { display: grid; gap: 10px; }
.funnel .f-row { display: grid; grid-template-columns: 150px 1fr 48px; gap: 12px; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.funnel .f-bar { height: 30px; border-radius: 10px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.funnel .f-bar span { display: block; height: 100%; border-radius: 10px; background: var(--grad); opacity: .85; transition: width 1.2s var(--ease); box-shadow: 0 0 20px -4px var(--accent); }
.funnel b { text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.timeline li { display: grid; grid-template-columns: 14px 1fr auto; gap: 14px; padding: 10px 6px; border-radius: 12px; align-items: start; transition: background .2s; }
.timeline li:hover { background: rgba(255, 255, 255, .03); }
.timeline .tl-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent); }
.timeline .tl-time { font-size: 12px; color: var(--ink-3); white-space: nowrap; }

/* ───────── Acceso (pantalla dividida con foto) ───────── */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(380px, .9fr); }
.auth-visual { position: relative; overflow: hidden; display: flex; align-items: flex-end; padding: clamp(28px, 5vw, 64px); isolation: isolate; }
.auth-visual .hero-img { animation-duration: 30s; }
.auth-visual::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6, 6, 8, .95) 0%, rgba(6, 6, 8, .3) 55%, rgba(6, 6, 8, .55) 100%), linear-gradient(90deg, rgba(6, 6, 8, .5), transparent 60%); }
.auth-visual h1 { font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.6rem); max-width: 14ch; }
.auth-visual .sub { font-size: 17px; max-width: 48ch; margin-top: 16px; color: var(--ink-2); }
.features { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.features span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; font-size: 13px; font-weight: 550; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.features svg { width: 16px; height: 16px; color: color-mix(in srgb, var(--accent) 55%, #fff); }
.auth-panel { display: grid; place-items: center; padding: 28px 20px; background: linear-gradient(180deg, rgba(10, 9, 12, .9), rgba(10, 9, 12, .97)); border-left: 1px solid var(--line); position: relative; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .brand { padding: 0 0 26px; }
.auth-card h2 { font: 400 2rem/1.1 var(--serif); margin-bottom: 6px; }
.auth-card h2::before { display: none; }
.auth-card .sub { margin-bottom: 22px; }
.tabs { display: flex; padding: 4px; gap: 4px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); margin-bottom: 20px; }
.tabs button { flex: 1; justify-content: center; border: 0; background: transparent; padding: 9px 10px; border-radius: 10px; color: var(--ink-2); backdrop-filter: none; }
.tabs button.on { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset; }
.legal { font-size: 12px; color: var(--ink-3); margin-top: 22px; }
.boot { min-height: 100vh; display: grid; place-items: center; color: var(--ink-3); }

/* ───────── Movimiento: revelado escalonado ───────── */
.reveal > * { animation: rise .7s var(--ease) both; }
.reveal > *:nth-child(2) { animation-delay: .06s; } .reveal > *:nth-child(3) { animation-delay: .12s; }
.reveal > *:nth-child(4) { animation-delay: .18s; } .reveal > *:nth-child(5) { animation-delay: .24s; }
.reveal > *:nth-child(6) { animation-delay: .3s; } .reveal > *:nth-child(n+7) { animation-delay: .36s; }
.grid.reveal > * { animation-name: rise-sm; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 16px, 0); } to { opacity: 1; transform: none; } }
@keyframes rise-sm { from { opacity: 0; transform: translate3d(0, 10px, 0) scale(.985); } to { opacity: 1; transform: none; } }
.skeleton { height: 14px; border-radius: 8px; margin: 10px 0; background: linear-gradient(90deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .1), rgba(255, 255, 255, .04)); background-size: 200% 100%; animation: sk 1.3s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.toast { position: fixed; right: 18px; bottom: 18px; max-width: 380px; z-index: 50; animation: rise .45s var(--ease); }
.toast .alert { box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .7); background-color: rgba(16, 14, 18, .92); }
.demo { background: repeating-linear-gradient(45deg, var(--warn-bg), var(--warn-bg) 10px, transparent 10px, transparent 20px); color: var(--warn); font-size: 12px; font-weight: 700; padding: 4px 10px; text-align: center; }
.mobile-nav { display: none; }
.icon-btn { padding: 8px 10px; flex: none; }
button svg, .btn svg { width: 18px; height: 18px; flex: none; }

/* ───────── Responsive ───────── */
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth-visual { min-height: 46vh; }
  .auth-panel { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-content: start; }
  .backdrop { position: fixed; inset: 0; z-index: 35; background: rgba(0, 0, 0, .55); backdrop-filter: blur(4px); animation: rise .3s var(--ease); }
  .side { position: fixed; z-index: 40; inset: 0 22% 0 0; height: 100vh; transform: translateX(-104%); transition: transform .35s var(--ease); box-shadow: 30px 0 60px rgba(0, 0, 0, .6); }
  .side.open { transform: none; }
  .mobile-nav { display: flex; position: sticky; top: 0; z-index: 30; justify-content: space-between; align-items: center; padding: 12px 16px; background: rgba(8, 7, 10, .72); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
  .mobile-nav .brand { padding: 0; }
  .main { padding: 16px 14px 60px; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .hero { min-height: 210px; border-radius: 20px; }
  .hero::before { background: linear-gradient(0deg, rgba(6, 6, 8, .96) 10%, rgba(6, 6, 8, .55) 60%, rgba(6, 6, 8, .4) 100%); }
  .kv { grid-template-columns: 1fr; gap: 2px 0; } .kv dd { margin-bottom: 8px; }
  .funnel .f-row { grid-template-columns: 110px 1fr 36px; }
  /* Tablas → tarjetas */
  .tablewrap { margin: 0; overflow: visible; }
  table, tbody, tr, td { display: block; width: 100%; }
  thead { display: none; }
  tbody tr { padding: 12px 14px; margin-bottom: 10px; border-radius: 14px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
  td { border: 0; padding: 5px 0; display: grid; grid-template-columns: 38% 1fr; gap: 10px; text-align: left !important; }
  td::before { content: attr(data-label); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); padding-top: 2px; }
  td .cell { min-width: 0; overflow-wrap: anywhere; }
  td[data-label=""] { grid-template-columns: 1fr; } td[data-label=""]::before { display: none; }
  tbody tr:hover td, tbody tr:hover td:first-child { background: none; box-shadow: none; }
}
@media (max-width: 520px) { .g4 { grid-template-columns: 1fr 1fr; gap: 10px; } .stat { padding: 14px; } .ring { width: 120px; height: 120px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-img { animation: none; }
}
.main > .empty { background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(16px); }

/* Panel de visualizaciones */
.vm-head { display: flex; gap: 34px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 18px; }
.vm-big { font: 400 clamp(2.6rem, 2rem + 2vw, 3.6rem)/1 var(--serif); letter-spacing: -.01em; }
.vm-mid { font-size: 1.35rem; font-weight: 680; letter-spacing: -.02em; }
.vm-bars { display: grid; gap: 10px; }
.vm-bar { display: grid; grid-template-columns: 120px 1fr 70px; gap: 12px; align-items: center; font-size: 14px; }
.vm-bar b { text-align: right; font-variant-numeric: tabular-nums; }
.vm-track { height: 12px; border-radius: 99px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.vm-track span { display: block; height: 100%; border-radius: 99px; animation: grow 1.2s var(--ease) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.vm-net { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); }
.vm-net i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.vm-card { position: relative; padding: 18px; border-radius: 16px; background: linear-gradient(160deg, color-mix(in srgb, var(--net) 14%, transparent), rgba(255, 255, 255, .02) 55%); border: 1px solid color-mix(in srgb, var(--net) 30%, transparent); }
.vm-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.vm-views { font: 400 2.3rem/1 var(--serif); margin-bottom: 12px; }
.vm-views small { display: block; font: 500 11px var(--font); color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; margin-top: 6px; }
.vm-card { min-width: 0; overflow: hidden; }
.vm-card .kv { font-size: 13px; grid-template-columns: 1fr; gap: 1px; }
.vm-card .kv dt { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.vm-card .kv dd { margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.vm-timeline { position: relative; height: 26px; margin-top: 14px; border-radius: 8px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .06) 0 2px, transparent 2px 10%), rgba(255, 255, 255, .04); }
.vm-timeline span { position: absolute; top: 4px; bottom: 4px; border-radius: 5px; opacity: .9; }
.vm-timeline i { position: absolute; bottom: -18px; font-size: 10.5px; font-style: normal; color: var(--ink-3); }
.vm .vm-card .btn { padding: 7px 12px; font-size: 13px; }
@media (max-width: 860px) { .vm-bar { grid-template-columns: 90px 1fr 56px; } }
.demo-ribbon { position: relative; z-index: 60; text-align: center; font-size: 12.5px; font-weight: 600; padding: 7px 12px; color: #111; background: linear-gradient(90deg, #fbbf24, #f59e0b); }

/* ───────── Identidad de cada web ─────────
   Creadores (consola de productoras): rosa/naranja, fotos de rodaje.
   Marcas (portal de anunciantes): azul/turquesa, fotos de producto y escaparate.
   Cada index.html marca su web con <html data-app="creadores|marcas">. */
:root[data-app="marcas"] {
  --accent: #3b82f6;
  --accent-2: #2dd4bf;
  --grad: linear-gradient(120deg, var(--accent) 0%, #0ea5e9 45%, var(--accent-2) 100%);
  --avatar-from: #0b1d3f;
}
.avatar { background: linear-gradient(135deg, var(--avatar-from, #3b0a17), var(--accent)); }
/* Franja fija arriba con el color de la web: se ve siempre, también al hacer scroll. */
:root[data-app] body::before { content: ""; position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 70; background: var(--grad); pointer-events: none; }
.side { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, rgba(10, 9, 12, .8)), rgba(10, 9, 12, .64) 45%); }
.mobile-nav { border-bottom-color: color-mix(in srgb, var(--accent) 35%, transparent); }
/* Rótulo «PubliScenes · Creadores / Marcas» */
.brand .app-name { font-weight: 750; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.brand > div { min-width: 0; }
.brand .app-name .sep { color: var(--ink-3); -webkit-text-fill-color: var(--ink-3); font-weight: 500; }
/* En la barra lateral (estrecha) el nombre de la web va en su propia línea, más grande. */
.side .brand .app-name { display: block; font-size: 19px; line-height: 1.15; letter-spacing: -.01em; }
.side .brand .app-name .sep { display: none; }
.auth-card .brand { font-size: 17px; }
.app-kicker { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 6px 12px 6px 8px; border-radius: 99px; font-size: 12.5px; font-weight: 650; letter-spacing: .02em; color: #fff;
  background: color-mix(in srgb, var(--accent) 22%, rgba(0, 0, 0, .35)); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); backdrop-filter: blur(10px); }
.app-kicker i { width: 20px; height: 20px; border-radius: 6px; background: var(--grad); display: grid; place-items: center; font: 400 13px/1 var(--serif); font-style: normal; }
/* Enlace a la otra web */
.switch-app { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding: 11px 14px; border-radius: 12px; font-size: 13.5px; font-weight: 550; color: var(--ink-2);
  background: rgba(255, 255, 255, .03); border: 1px dashed var(--line-2); transition: border-color .2s, color .2s, background .2s; }
.switch-app:hover { color: #fff; background: rgba(255, 255, 255, .06); border-color: var(--other-accent, var(--line-2)); }
.switch-app b { font-weight: 650; color: var(--other-accent, var(--ink)); }
:root[data-app="creadores"] .switch-app { --other-accent: #60a5fa; }
:root[data-app="marcas"] .switch-app { --other-accent: #fb7185; }

/* ───────── Marcas: escena de ejemplo con producto, selector y visualizaciones ───────── */
.auth-visual.with-player { flex-direction: column; align-items: stretch; justify-content: center; gap: 26px; }
.auth-visual.with-player h1 { font-size: clamp(2.1rem, 1.2rem + 2.4vw, 3.5rem); max-width: 20ch; }
.auth-visual.with-player .sub { font-size: 16px; }
.pp-demo { position: relative; width: min(100%, 640px); margin-right: auto; }
.pp-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); box-shadow: 0 30px 80px -30px #000, 0 0 0 1px rgba(255, 255, 255, .04) inset; background: #0b0b10 var(--pp-img) center / cover no-repeat; }
.pp-frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .7), transparent 32%), linear-gradient(180deg, rgba(0, 0, 0, .55), transparent 30%); pointer-events: none; }
.pp-pick { position: absolute; z-index: 2; top: 10px; left: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 11.5px; }
.pp-pick > span { padding: 5px 10px; border-radius: 99px; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .14); color: var(--ink-2); backdrop-filter: blur(8px); font-weight: 550; }
.pp-pick > .on { color: #fff; background: color-mix(in srgb, var(--accent) 45%, rgba(0, 0, 0, .5)); border-color: color-mix(in srgb, var(--accent) 80%, #fff); }
.pp-pick > .lbl { background: none; border: 0; padding-left: 2px; color: #fff; text-transform: uppercase; letter-spacing: .1em; font-size: 10px; backdrop-filter: none; }
.pp-pick > .ex { margin-left: auto; background: rgba(251, 191, 36, .16); border-color: rgba(251, 191, 36, .45); color: var(--warn); }
/* Recuadro de seguimiento sobre la lata (posición en % de la foto 16:9) */
.pp-box { position: absolute; z-index: 1; left: 59.5%; top: 31%; width: 14%; height: 41%; border-radius: 8px; border: 1.5px solid color-mix(in srgb, var(--accent-2) 90%, #fff); box-shadow: 0 0 0 4000px rgba(0, 0, 0, .12), 0 0 22px -2px var(--accent-2); animation: pp-pulse 2.6s ease-in-out infinite; }
.pp-box b { position: absolute; left: -1px; bottom: calc(100% + 6px); white-space: nowrap; font-size: 11px; font-weight: 650; padding: 4px 8px; border-radius: 6px; color: #04131a; background: var(--accent-2); }
@keyframes pp-pulse { 50% { box-shadow: 0 0 0 4000px rgba(0, 0, 0, .12), 0 0 34px 2px var(--accent-2); } }
.pp-bar { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 10px; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.pp-bar .pp-track { position: relative; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .18); }
.pp-bar .pp-track i { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }
.pp-bar .pp-track u { position: absolute; top: -4px; width: 2px; height: 14px; border-radius: 2px; background: #fff; text-decoration: none; }
.pp-stats { position: absolute; z-index: 3; left: 14px; top: 48px; width: 41%; max-width: 236px; padding: 12px 14px; border-radius: 14px; background: rgba(10, 12, 20, .72); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); backdrop-filter: blur(16px); box-shadow: 0 24px 60px -20px #000; font-size: 12px; }
.pp-stats .k { color: var(--ink-3); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; font-weight: 600; }
.pp-stats .v { font: 400 2rem/1.05 var(--serif); margin: 2px 0 10px; }
.pp-stats .v small { font: 500 11px var(--font); color: var(--ink-3); margin-left: 6px; }
.pp-net { display: grid; grid-template-columns: 64px 1fr 34px; gap: 8px; align-items: center; margin-top: 6px; color: var(--ink-2); }
.pp-net span { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.pp-net span i { display: block; height: 100%; border-radius: 99px; }
.pp-net b { text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.pp-stats .foot { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--ink-2); }
@media (max-width: 1100px) and (min-width: 961px) { .pp-stats .v { font-size: 1.6rem; margin-bottom: 6px; } .pp-net { margin-top: 3px; } .pp-stats .foot { margin-top: 6px; padding-top: 6px; } }
@media (max-width: 960px) {
  .auth-visual.with-player { padding-top: 34px; }
  .pp-demo { width: 100%; }
  .pp-stats { position: relative; left: auto; top: auto; width: auto; max-width: none; margin: -14px 12px 0; background: rgba(10, 12, 20, .9); }
}
@media (max-width: 520px) {
  .pp-pick > .lbl, .pp-pick > span:nth-child(4) { display: none; }
  .pp-pick > span { padding: 4px 9px; font-size: 11px; }
  .pp-box b { font-size: 10px; bottom: auto; top: calc(100% + 5px); }
  .pp-stats { margin-top: 10px; }
}
.pp-demo { margin: 0; }
.pp-net em { font-style: normal; }

/* ───────── Catálogo de productos (tipo Fiverr): fichas, pestañas, público y ficha de detalle ───────── */
.ctabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 18px; padding: 5px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); width: fit-content; max-width: 100%; }
.ctabs .ctab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; color: var(--ink-2); font-size: 14px; font-weight: 550; }
.ctabs .ctab svg { width: 16px; height: 16px; }
.ctabs .ctab.on { color: #fff; background: color-mix(in srgb, var(--accent) 28%, rgba(255, 255, 255, .04)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.cfilters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.cfilters input { flex: 1 1 260px; } .cfilters select { flex: 0 1 240px; }
h2.csec { margin: 22px 0 12px; font-size: 1.15rem; } h2.csec .hint { font-weight: 500; }
.pcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.pcard-wrap { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pcard-wrap .pcard { flex: 1; }
.pcard { display: flex; flex-direction: column; min-width: 0; border-radius: 18px; overflow: hidden; color: var(--ink); background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(16px);
  transition: transform .35s var(--ease), border-color .25s, box-shadow .35s; }
.pcard:hover { color: var(--ink); transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--accent) 60%, #000); }
.pcard-img { position: relative; aspect-ratio: 4 / 3; background: rgba(255, 255, 255, .04) var(--pimg, none) center / cover no-repeat; display: grid; place-items: center; color: var(--ink-3); }
.pcard-badge { position: absolute; left: 10px; top: 10px; padding: 5px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--grad); box-shadow: 0 6px 18px -6px var(--accent); }
.pcard-state { position: absolute; right: 10px; top: 10px; padding: 4px 9px; border-radius: 99px; font-size: 11px; font-weight: 650; color: #fff; background: rgba(0, 0, 0, .62); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(6px); }
.pcard-body { padding: 14px 16px 6px; display: grid; gap: 8px; flex: 1; align-content: start; }
.pcard-body h3 { font-size: 16px; font-weight: 650; line-height: 1.3; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-body .hint { margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-seller { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); min-width: 0; }
.pcard-seller > span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-av { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--grad); }
.pcard-score { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: color-mix(in srgb, var(--accent-2) 70%, #fff); font-variant-numeric: tabular-nums; }
.pcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 14px; border-top: 1px solid var(--line); margin-top: 8px; }
.pcard-foot small { display: block; font-size: 11px; color: var(--ink-3); }
.pcard-foot b { font-size: 17px; font-variant-numeric: tabular-nums; }
.pcard-foot .btn { padding: 7px 14px; font-size: 13px; }
.pcard-edit { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 2px 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 550; color: var(--ink-2); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); }
button.chip { cursor: pointer; padding: 6px 12px; font-size: 13px; backdrop-filter: none; }
button.chip.on { color: #fff; background: color-mix(in srgb, var(--accent) 35%, rgba(255, 255, 255, .04)); border-color: color-mix(in srgb, var(--accent) 70%, transparent); }
.chipsel { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.chipsel legend { font-size: 13px; font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 8px; }
.imgpick { display: grid; gap: 8px; }
.imgpick input { display: none; }
.imgpick-box { aspect-ratio: 4 / 3; border-radius: 14px; border: 1px dashed var(--line-2); background: rgba(255, 255, 255, .03) var(--pimg, none) center / cover no-repeat; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); transition: border-color .2s; }
.imgpick-box:hover { border-color: var(--accent); }
.imgpick-box span { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; }
.rangebar { margin: 14px 0 6px; }
.rb-track { position: relative; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .07); }
.rb-track span { position: absolute; top: 0; bottom: 0; border-radius: 99px; background: var(--grad); box-shadow: 0 0 14px -2px var(--accent); }
.rb-track i { position: absolute; top: -5px; width: 4px; height: 20px; margin-left: -2px; border-radius: 3px; background: #fff; box-shadow: 0 0 0 2px rgba(0, 0, 0, .5); }
.rb-legend { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--ink-3); margin-top: 6px; }
.pdetail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.pdetail-media { display: grid; gap: 18px; min-width: 0; }
.pdetail-img { aspect-ratio: 16 / 10; border-radius: 22px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04) var(--pimg, none) center / cover no-repeat; box-shadow: 0 30px 70px -30px #000; }
.pdetail-side { position: sticky; top: 18px; display: grid; gap: 12px; }
.pbuy { display: grid; gap: 10px; }
.pbuy-title { font: 400 clamp(1.7rem, 1.2rem + 1.4vw, 2.3rem)/1.1 var(--serif); margin: 4px 0 0; }
.pbuy-price { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 12%, rgba(255, 255, 255, .03)); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.pbuy-price small { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 600; }
.pbuy-price b { font: 400 2.2rem/1.1 var(--serif); }
.pbuy-price span { font-size: 13px; color: var(--ink-2); }
.pbuy .big-btn { padding: 12px 22px; font-size: 15px; }
@media (max-width: 960px) { .pdetail { grid-template-columns: 1fr; } .pdetail-side { position: static; order: 1; } .pdetail-media { display: contents; } .pdetail-img { order: 0; } .pdetail-media > .card { order: 2; } }
@media (max-width: 520px) { .pcards { grid-template-columns: 1fr; } .ctabs { width: 100%; } .ctabs .ctab { flex: 1; justify-content: center; padding: 8px 8px; font-size: 13px; } }

/* Ayuda de cada página: para qué sirve y qué se puede hacer (dentro de la cabecera) */
.hero-help { margin-top: 14px; max-width: 72ch; padding: 12px 14px; border-radius: 14px; background: rgba(6, 6, 8, .55); border: 1px solid var(--line); backdrop-filter: blur(10px); font-size: 14px; color: var(--ink-2); }
.hero-help p { margin: 0; }
.hero-help b { color: var(--ink); font-weight: 650; }
.hero-help ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.hero-help li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.hero-help li svg { width: 14px; height: 14px; flex: none; color: color-mix(in srgb, var(--accent) 60%, #fff); }
@media (max-width: 520px) { .hero-help { font-size: 13.5px; } .hero-help ul { flex-direction: column; } }

/* Entrada de Creadores: el texto sube a la mitad de la foto (antes iba pegado abajo). */
.auth-visual:not(.with-player) { align-items: center; padding-top: clamp(90px, 16vh, 190px); }
.auth-card .one-account { margin: -6px 0 14px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.other-side { margin-top: 14px; display: grid; gap: 10px; }
.other-side p { margin: 0; }
.other-side .row { gap: 8px; flex-wrap: wrap; }
.pending-banner { border-left: 3px solid var(--warn); }
