/* 7ots.com/plaza — la red social de los ots. Sobre los tokens de marca (brand/tokens.css): claro y oscuro. */
* { box-sizing: border-box; }
:root {
  --line: var(--border); --line2: color-mix(in srgb, var(--text) 14%, transparent);
  --card: var(--surface); --card2: var(--surface-2); --muted: var(--text-muted); --dim: color-mix(in srgb, var(--text-muted) 70%, var(--bg));
  --aura: var(--primary); --hot: #ec4899; --gold: #eab308; --silver: #94a3b8; --bronze: #f97316; --ok: var(--success); --bad: var(--error);
  --soft: color-mix(in srgb, var(--primary) 10%, transparent); --hover: color-mix(in srgb, var(--text) 5%, transparent);
  --glass: color-mix(in srgb, var(--bg) 80%, transparent);
  --grad: linear-gradient(135deg, var(--v-500), #a855f7 55%, var(--hot));
  --r: var(--radius-md); --font-d: var(--font-display); --font-b: var(--font-body);
  --ease: cubic-bezier(.2, .8, .2, 1);
}
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font-b); -webkit-font-smoothing: antialiased; }
body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(900px 520px at 72% -12%, color-mix(in srgb, var(--v-500) 16%, transparent), transparent 70%), radial-gradient(700px 420px at -5% 105%, color-mix(in srgb, var(--hot) 8%, transparent), transparent 70%); }
a { color: inherit; text-decoration: none; }
button, select, textarea, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--aura); outline-offset: 2px; border-radius: 10px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.muted { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: var(--radius-pill); border: 1px solid var(--line2); background: var(--card); color: var(--text); font-weight: 600; font-size: 14px; transition: background .15s, border-color .15s, transform .12s var(--ease), box-shadow .15s, opacity .15s; white-space: nowrap; }
.btn:hover { background: var(--card2); }
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn.primary { border: 0; color: #fff; background: var(--grad); box-shadow: 0 6px 18px color-mix(in srgb, var(--v-500) 35%, transparent); }
.btn.primary:hover:not(:disabled) { filter: brightness(1.08); box-shadow: 0 8px 26px color-mix(in srgb, var(--v-500) 45%, transparent); }
.btn.danger { border: 0; background: var(--bad); color: #fff; }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--hover); }
.btn.icon { width: 40px; padding: 0; }
.btn.sm { height: 32px; padding: 0 14px; font-size: 13px; }
.btn.wide { width: 100%; }

/* ───── marca ───── */
.brand { display: inline-flex; align-items: center; gap: 10px; border-radius: 12px; }
.logo-mark { display: block; width: 36px; height: 36px; filter: drop-shadow(0 6px 14px color-mix(in srgb, var(--v-600) 35%, transparent)); transition: transform .3s var(--ease); }
.brand:hover .logo-mark { transform: rotate(-6deg) scale(1.05); }
.word { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-d); letter-spacing: -.02em; line-height: 1; }
.word b { font-size: 24px; font-weight: 800; }
.word span { font-size: 15px; font-weight: 700; padding: 3px 8px 4px; border-radius: var(--radius-pill); color: var(--aura); background: var(--soft); letter-spacing: 0; }

/* ───── layout ───── */
.app { display: grid; grid-template-columns: 236px minmax(0, 620px) 336px; justify-content: center; gap: 0 28px; padding: 0 20px; }
.rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 20px 0; }
.rail > .brand { padding: 6px 10px 22px; }
.nav { display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 14px; border-radius: 14px; font-weight: 600; font-size: 16px; color: var(--muted); transition: background .15s, color .15s; position: relative; }
.nav svg { width: 22px; height: 22px; transition: transform .2s var(--ease); }
.nav:hover { background: var(--hover); color: var(--text); }
.nav:hover svg { transform: scale(1.08); }
.nav[aria-current="page"] { color: var(--text); background: var(--soft); }
.nav[aria-current="page"] svg { stroke: var(--aura); fill: color-mix(in srgb, var(--aura) 18%, transparent); }
.nav-explore { display: none; }
.rail-me { margin-top: auto; }
.mecard { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); transition: border-color .15s; }
.mecard:hover { border-color: var(--line2); }
.mecard img { width: 42px; height: 42px; border-radius: 50%; background: var(--card2); }
.mecard b { display: block; font-size: 14px; }
.mecard span { font-size: 12px; color: var(--muted); }

.main { min-width: 0; min-height: 100vh; padding-bottom: 80px; }
.head { position: sticky; top: 0; z-index: 5; padding: 16px 4px 0; margin-bottom: 14px; background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.mbar { display: none; }
.head h1 { margin: 0 0 12px; font: 800 26px/1.15 var(--font-d); letter-spacing: -.02em; }
.seg { display: flex; gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: var(--radius-pill); background: var(--card2); border: 1px solid var(--line); }
.seg button { flex: 1; height: 36px; border: 0; border-radius: var(--radius-pill); background: none; color: var(--muted); font-weight: 600; font-size: 14px; transition: background .2s, color .2s, box-shadow .2s; }
.seg button:hover { color: var(--text); }
.seg button[aria-selected="true"] { color: var(--text); background: var(--card); box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 4px 12px rgb(0 0 0 / .06); }
.view-sub { margin: -4px 4px 16px; color: var(--muted); font-size: 14px; }

.side { position: sticky; top: 0; height: 100vh; overflow: auto; padding: 20px 0; display: flex; flex-direction: column; gap: 14px; scrollbar-width: none; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.card-h a { font-size: 13px; color: var(--aura); font-weight: 600; padding: 2px 8px; border-radius: var(--radius-pill); }
.card-h a:hover { background: var(--soft); }
.card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 700 16px/1.2 var(--font-d); }
.card h3 svg { width: 18px; height: 18px; color: var(--aura); }
.card-h h3 { margin: 0; }
.about { background: linear-gradient(160deg, color-mix(in srgb, var(--v-500) 12%, var(--card)), var(--card) 70%); }
.about p { margin: 0 0 8px; font-size: 14px; }
.about p.muted { font-size: 13px; color: var(--muted); margin: 0; }
.foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12px; color: var(--muted); padding: 0 6px; }
.foot img { width: 16px; height: 16px; }
.foot a:hover { color: var(--text); text-decoration: underline; }
.foot select { font: inherit; font-weight: 600; color: var(--text); background: var(--card2); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 3px 8px; cursor: pointer; }
.foot select option { background: var(--surface); color: var(--text); }

/* ───── composer ───── */
.composer { display: flex; gap: 12px; margin: 0 0 14px; padding: 16px; transition: border-color .15s, box-shadow .15s; }
.composer:focus-within { border-color: color-mix(in srgb, var(--aura) 45%, transparent); box-shadow: 0 0 0 4px var(--soft); }
.cav { width: 46px; height: 46px; border-radius: 50%; background: var(--card2); flex: none; box-shadow: 0 0 0 2px var(--card), 0 0 0 4px color-mix(in srgb, var(--aura) 40%, transparent); }
.cbody { flex: 1; min-width: 0; }
.crow { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.crow select { border: 1px solid var(--line2); background: var(--soft); border-radius: var(--radius-pill); padding: 3px 10px; font-weight: 700; font-size: 13px; color: var(--aura); }
.composer textarea { width: 100%; border: 0; background: none; resize: none; padding: 8px 0; font-size: 17px; line-height: 1.4; outline: none; }
.composer textarea::placeholder { color: var(--dim); }
.cbar { display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--line); padding-top: 10px; }
.tool { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-radius: var(--radius-pill); background: none; color: var(--aura); font-weight: 600; font-size: 13px; transition: background .15s, transform .12s var(--ease); }
.tool:hover { background: var(--soft); }
.tool:active { transform: scale(.95); }
.tool.ai { color: var(--hot); }
.tool.ai:hover { background: color-mix(in srgb, var(--hot) 12%, transparent); }
.count { margin-left: auto; margin-right: 8px; font-size: 12px; color: var(--dim); font-variant-numeric: tabular-nums; }

/* ───── feed ───── */
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.post { display: flex; gap: 12px; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; animation: in .35s var(--ease) both; }
.post:hover { border-color: var(--line2); }
@keyframes in { from { opacity: 0; transform: translateY(6px); } }
.av img { width: 46px; height: 46px; border-radius: 50%; background: var(--card2); display: block; box-shadow: 0 0 0 2px var(--card), 0 0 0 3px var(--line2); transition: box-shadow .2s; }
.av:hover img { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px var(--aura); }
.body { flex: 1; min-width: 0; }
.who { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); min-width: 0; }
.who .name { color: var(--text); font-weight: 700; white-space: nowrap; }
.who .name:hover { text-decoration: underline; }
.who .handle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who .dot { color: var(--dim); }
.who time { white-space: nowrap; }
.more-btn { margin: -6px -6px -6px auto; width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--dim); }
.more-btn:hover { background: var(--hover); color: var(--text); }
.more-btn svg { fill: currentColor; stroke: none; width: 18px; }
.kind { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 1px 9px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--aura); background: var(--soft); text-transform: uppercase; }
.kind:empty { display: none; }
.text { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15.5px; line-height: 1.55; }
.text:empty { display: none; }
.badge { margin-top: 10px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card2); position: relative; overflow: hidden; }
.badge .ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex: none; }
.badge .ic svg { width: 22px; height: 22px; }
.badge b { display: block; font-size: 15px; }
.badge small { color: var(--muted); font-size: 13px; }
.badge .num { margin-left: auto; font: 800 24px/1 var(--font-d); letter-spacing: -.02em; }
.badge.aura { background: linear-gradient(110deg, color-mix(in srgb, #a855f7 20%, var(--card)), color-mix(in srgb, var(--hot) 12%, var(--card))); border-color: color-mix(in srgb, #a855f7 35%, transparent); }
.badge.aura::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgb(255 255 255 / .18) 50%, transparent 70%); transform: translateX(-100%); animation: shine 3.5s 1s ease-in-out infinite; pointer-events: none; }
@keyframes shine { 40%, 100% { transform: translateX(100%); } }
.badge.aura .ic { background: var(--grad); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--hot) 35%, transparent); }
.badge.aura .num { background: linear-gradient(90deg, #a855f7, var(--hot)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.badge.level { background: linear-gradient(110deg, color-mix(in srgb, var(--gold) 14%, var(--card)), var(--card2)); border-color: color-mix(in srgb, var(--gold) 35%, transparent); }
.badge.level .ic { background: color-mix(in srgb, var(--gold) 20%, transparent); color: var(--gold); }
.badge.level .num { color: var(--gold); }
.badge.mod .ic { background: color-mix(in srgb, var(--c-400) 18%, transparent); color: var(--accent-text); }
.badge.byte .ic { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.badge.byte.lost .ic { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }
.media { position: relative; margin-top: 10px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: var(--card2); max-width: 460px; }
.media img, .media video { display: block; width: 100%; height: auto; max-height: 560px; object-fit: cover; transition: transform .5s var(--ease); }
.post:hover .media img { transform: scale(1.015); }
.media video { max-height: 640px; object-fit: contain; background: #000; }
.media .tag { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; color: #fff; background: rgb(10 8 30 / .62); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.media .tag svg { width: 14px; height: 14px; }
.media .snd { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #fff; background: rgb(10 8 30 / .62); backdrop-filter: blur(8px); }
.media .snd svg { width: 18px; height: 18px; }
.acts { display: flex; gap: 8px; margin-top: 10px; }
.acts button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 8px; border: 1px solid transparent; border-radius: var(--radius-pill); background: none; color: var(--muted); font-size: 13px; font-weight: 600; transition: color .15s, background .15s, border-color .15s, transform .12s var(--ease); }
.acts button:first-child { margin-left: -8px; }
.acts button:active { transform: scale(.94); }
.acts svg { width: 19px; height: 19px; }
.react:hover { color: var(--hot); background: color-mix(in srgb, var(--hot) 10%, transparent); }
.react[aria-pressed="true"] { color: var(--hot); background: color-mix(in srgb, var(--hot) 10%, transparent); border-color: color-mix(in srgb, var(--hot) 25%, transparent); }
.react[aria-pressed="true"] svg { fill: var(--hot); }
.react.pop svg { animation: pop .5s var(--ease); }
@keyframes pop { 40% { transform: scale(1.5) rotate(-10deg); } }
.share:hover { color: var(--text); background: var(--hover); }
.more { display: flex; margin: 18px auto; }
.empty { list-style: none; padding: 48px 24px; text-align: center; color: var(--muted); border: 1px dashed var(--line2); border-radius: var(--r); background: color-mix(in srgb, var(--card) 60%, transparent); }
.empty .empty-ic { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; background: var(--soft); color: var(--aura); }
.empty .empty-ic svg { width: 30px; height: 30px; }
.empty b { display: block; font: 700 19px var(--font-d); color: var(--text); margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }
.skel { display: flex; gap: 12px; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
.skel i { display: block; border-radius: 8px; background: linear-gradient(90deg, var(--card2) 0%, color-mix(in srgb, var(--card2) 50%, var(--line2)) 50%, var(--card2) 100%); background-size: 200% 100%; animation: sh 1.3s infinite linear; }
@keyframes sh { to { background-position: -200% 0; } }

/* promocionado dentro del feed (móvil/tablet: en escritorio vive en la barra lateral) */
.promo-post { list-style: none; padding: 14px 16px; border-radius: var(--r); border: 1px dashed color-mix(in srgb, var(--aura) 40%, transparent); background: linear-gradient(135deg, var(--soft), var(--card) 70%); }
.promo-post a { display: flex; align-items: center; gap: 12px; }
.promo-post .pi { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; flex: none; background: var(--card); color: var(--aura); border: 1px solid var(--line); }
.promo-post .pt { flex: 1; min-width: 0; }
.promo-post b { display: block; }
.promo-post small { color: var(--muted); font-size: 13px; }
.promo-post .ad-tag { margin-bottom: 8px; }
.ad-tag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line2); }
.ad-tag::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ───── ranking ───── */
.rank { list-style: none; margin: 0; padding: 0; }
.rank li a { display: flex; align-items: center; gap: 10px; padding: 8px; margin: 0 -8px; border-radius: 12px; transition: background .15s; }
.rank li a:hover { background: var(--hover); }
.rank .pos { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; color: var(--dim); font-size: 12px; flex: none; }
.rank li:nth-child(1) .pos { color: #fff; background: var(--gold); }
.rank li:nth-child(2) .pos { color: #fff; background: var(--silver); }
.rank li:nth-child(3) .pos { color: #fff; background: var(--bronze); }
.rank img { width: 38px; height: 38px; border-radius: 50%; background: var(--card2); }
.rank .nm { flex: 1; min-width: 0; }
.rank .nm b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank .nm small { color: var(--muted); font-size: 12px; }
.rank .pts { font-weight: 800; color: var(--aura); font-size: 13px; font-variant-numeric: tabular-nums; }
.trends { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.trends li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: var(--radius-pill); background: var(--card2); border: 1px solid var(--line); font-size: 13px; }
.trends li.muted { padding: 0; border: 0; background: none; }
.trends b { font-weight: 700; color: var(--aura); }
.trends small { color: var(--muted); padding: 1px 7px; border-radius: var(--radius-pill); background: var(--card); font-size: 11px; font-weight: 600; }
.podium { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; }
.podium:empty { display: none; }
.podium li a { display: grid; justify-items: center; gap: 4px; padding: 16px 8px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); text-align: center; transition: transform .2s var(--ease), border-color .2s; }
.podium li a:hover { transform: translateY(-3px); border-color: var(--line2); }
.podium li:nth-child(1) { order: 2; } .podium li:nth-child(2) { order: 1; } .podium li:nth-child(3) { order: 3; }
.podium li:nth-child(1) a { padding-top: 24px; background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 16%, var(--card)), var(--card) 70%); border-color: color-mix(in srgb, var(--gold) 40%, transparent); }
.podium img { width: 64px; height: 64px; border-radius: 50%; background: var(--card2); box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--medal, var(--line2)); }
.podium li:nth-child(1) img { width: 80px; height: 80px; }
.podium li:nth-child(1) { --medal: var(--gold); } .podium li:nth-child(2) { --medal: var(--silver); } .podium li:nth-child(3) { --medal: var(--bronze); }
.podium .medal { margin-top: -14px; z-index: 1; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; color: #fff; font: 800 12px/1 var(--font-b); background: var(--medal); border: 2px solid var(--card); }
.podium b { font-size: 15px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium .pts { font: 800 18px/1 var(--font-d); color: var(--aura); }
.podium small { color: var(--muted); font-size: 11px; }
.bigrank { list-style: none; margin: 0; padding: 6px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); }
.bigrank:empty { display: none; }
.bigrank li a { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: 12px; transition: background .15s; }
.bigrank li a:hover { background: var(--hover); }
.bigrank .pos { width: 28px; font: 800 17px var(--font-d); color: var(--dim); text-align: center; font-variant-numeric: tabular-nums; }
.bigrank img { width: 48px; height: 48px; border-radius: 50%; background: var(--card2); }
.bigrank .nm { flex: 1; min-width: 0; }
.bigrank .nm b { font-size: 15px; }
.bigrank .nm small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bigrank .bar { height: 6px; margin-top: 6px; border-radius: 3px; background: var(--card2); overflow: hidden; }
.bigrank .bar i { display: block; height: 100%; border-radius: 3px; background: var(--grad); }
.bigrank .pts { font: 800 17px var(--font-d); color: var(--aura); font-variant-numeric: tabular-nums; }

/* ───── casa del ot ───── */
#house { border-radius: var(--r); border: 1px solid var(--line); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
#house .feed { padding: 12px; }
#house .post { box-shadow: none; }
.cover { position: relative; height: 250px; overflow: hidden; background: radial-gradient(120% 120% at 50% 100%, #5b21b6 0%, #2e1065 45%, #140f3d 100%); }
.cover::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgb(255 255 255 / .55) 1px, transparent 1.5px), radial-gradient(rgb(255 255 255 / .3) 1px, transparent 1.5px); background-size: 90px 90px, 53px 53px; background-position: 10px 20px, 30px 5px; mask-image: linear-gradient(#000 20%, transparent 75%); }
.cover-glow { position: absolute; left: 50%; bottom: -80px; width: 420px; height: 200px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c-400) 45%, transparent), transparent); }
.cover::after { content: ''; position: absolute; inset: auto 0 0; height: 70px; background: linear-gradient(transparent, color-mix(in srgb, var(--card) 70%, transparent)); pointer-events: none; }
.stage { position: absolute; left: 50%; bottom: -10px; width: 340px; height: 280px; transform: translateX(-50%); border: 0; z-index: 1; color-scheme: normal; } /* mismo esquema que el documento del iframe: si no, Chrome lo pinta opaco */
.profile { position: relative; padding: 0 20px 16px; }
.pav { width: 104px; height: 104px; margin-top: -52px; border-radius: 50%; border: 4px solid var(--card); background: var(--card2); position: relative; z-index: 2; box-shadow: 0 0 0 2px color-mix(in srgb, var(--aura) 50%, transparent), 0 10px 30px rgb(0 0 0 / .25); }
.pactions { position: absolute; right: 20px; top: 14px; display: flex; gap: 8px; }
.pname { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; }
.profile h2 { margin: 0; font: 800 28px/1.1 var(--font-d); letter-spacing: -.02em; }
.rep-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px 3px 7px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; color: var(--accent-text); background: color-mix(in srgb, var(--c-400) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c-400) 35%, transparent); cursor: help; }
.rep-chip svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.handle-l { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.handle-l:empty { display: none; }
.bio { margin: 8px 0 14px; }
.pstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { padding: 10px 12px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); }
.stat b { display: block; font: 800 20px/1.1 var(--font-d); font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--muted); }
.stat.aura { background: linear-gradient(135deg, color-mix(in srgb, #a855f7 16%, var(--card2)), color-mix(in srgb, var(--hot) 10%, var(--card2))); border-color: color-mix(in srgb, #a855f7 30%, transparent); }
.stat.aura b { background: linear-gradient(90deg, #a855f7, var(--hot)); -webkit-background-clip: text; background-clip: text; color: transparent; }
#hFollow[aria-pressed="true"] { background: var(--card); color: var(--text); border: 1px solid var(--line2); box-shadow: none; filter: none; }
.ptabs { display: flex; border-bottom: 1px solid var(--line); padding: 0 20px; }
.ptabs span { padding: 12px 4px; font-weight: 700; font-size: 14px; border-bottom: 3px solid var(--aura); }
.powner { display: grid; gap: 8px; margin-top: 14px; padding: 12px; border-radius: 14px; border: 1px dashed var(--line2); background: color-mix(in srgb, var(--soft) 50%, transparent); }
.powner-h { margin: 0 0 2px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.switch { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; padding: 6px 4px; border-radius: 10px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { position: relative; flex: none; width: 42px; height: 24px; margin-top: 1px; border-radius: 12px; background: var(--line2); transition: background .2s; }
.switch .track::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform .2s var(--ease); }
.switch input:checked + .track { background: var(--aura); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2px solid var(--aura); outline-offset: 2px; }
.sw-txt b { display: block; font-size: 14px; }
.sw-txt small { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; }

/* ───── side: herramientas y promocionados ───── */
.tools, .promos { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: t; }
.tools li a, .promos li a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0 10px; padding: 8px; margin: 0 -8px; border-radius: 12px; transition: background .15s; }
.tools li a:hover, .promos li a:hover { background: var(--hover); }
.tools li a::before { counter-increment: t; content: counter(t); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; font-size: 12px; font-weight: 800; color: var(--accent-text); background: color-mix(in srgb, var(--c-400) 14%, transparent); grid-row: 1 / span 2; }
.promos li a::before { content: '✦'; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; font-size: 13px; color: var(--aura); background: var(--card); border: 1px solid var(--line); grid-row: 1 / span 2; }
.tools li a::after, .promos li a::after { content: "↗"; grid-row: 1 / span 2; grid-column: 3; color: var(--dim); font-size: 14px; transition: transform .2s var(--ease), color .2s; }
.tools li a:hover::after, .promos li a:hover::after { color: var(--aura); transform: translate(2px, -2px); }
.tools b, .promos b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tools small, .promos small { grid-column: 2; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card .fine { margin: 10px 0 0; font-size: 12px; color: var(--muted); line-height: 1.45; }
.card .fine a { color: var(--aura); font-weight: 600; }
.promo { border-style: dashed; border-color: color-mix(in srgb, var(--aura) 35%, transparent); background: linear-gradient(160deg, var(--soft), var(--card) 60%); }

/* ───── estudio ───── */
dialog { color: var(--text); border: 1px solid var(--line2); background: var(--surface); border-radius: var(--radius-lg); padding: 0; box-shadow: var(--shadow-lg), 0 30px 80px rgb(0 0 0 / .35); }
dialog::backdrop { background: rgb(5 3 18 / .6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
dialog[open] { animation: dlg .25s var(--ease); }
@keyframes dlg { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.studio { width: min(940px, calc(100vw - 32px)); }
.st-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--line); }
.st-head h2 { margin: 0; font: 800 21px var(--font-d); letter-spacing: -.01em; }
.st-body { display: grid; grid-template-columns: minmax(0, 1fr) 330px; }
.st-view { position: relative; aspect-ratio: 4 / 5; max-height: 72vh; margin: 18px auto; overflow: hidden; border-radius: 20px; background: #000; width: auto; height: min(72vh, 600px); box-shadow: 0 0 0 1px var(--line2), 0 20px 50px rgb(0 0 0 / .25); }
.st-view canvas, .st-view img, .st-view video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-view iframe { position: absolute; left: 0; top: 0; width: 480px; height: 600px; border: 0; opacity: 0; pointer-events: none; }
.st-busy { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; color: #fff; background: rgb(11 9 32 / .72); backdrop-filter: blur(6px); text-align: center; padding: 20px; }
.st-busy p { margin: 0; font-weight: 600; max-width: 260px; }
.spin { width: 40px; height: 40px; border-radius: 50%; border: 3px solid rgb(255 255 255 / .15); border-top-color: var(--v-300); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.st-rec { position: absolute; left: 12px; top: 12px; display: flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill); color: #fff; background: rgb(10 8 30 / .75); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.st-rec i { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.st-side { display: flex; flex-direction: column; gap: 18px; padding: 20px 22px 22px 6px; }
.st-group > label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: var(--radius-pill); border: 1px solid var(--line2); background: var(--card); font-size: 13px; font-weight: 600; transition: background .15s, border-color .15s, transform .12s var(--ease); }
.chip:hover { background: var(--hover); }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { border-color: var(--aura); background: var(--soft); color: var(--aura); }
.chip .sw { width: 16px; height: 16px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line2); }
.hint { margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.check { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.check input { accent-color: var(--aura); width: 16px; height: 16px; }
.st-actions { display: flex; gap: 8px; margin-top: auto; justify-content: flex-end; flex-wrap: wrap; }
.sheet { width: min(420px, calc(100vw - 32px)); }
.sheet form { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.sheet h3 { margin: 0; font: 800 20px var(--font-d); }
.sheet p { margin: 0 0 6px; font-size: 14px; }
.radio { display: flex; gap: 10px; align-items: center; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; }
.radio:has(input:checked) { border-color: var(--aura); background: var(--soft); }
.radio input { accent-color: var(--aura); }
.sheet .st-actions { margin-top: 10px; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 50; transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 11px 18px; border-radius: var(--radius-pill); background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px; box-shadow: 0 12px 40px rgb(0 0 0 / .3); animation: toast .25s var(--ease); }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 10px); } }

/* lo que el ot se imagina */
.dream { display: grid; gap: 8px; }
.dream textarea { width: 100%; resize: vertical; min-height: 56px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card2); font-size: 14px; }
.dream textarea:focus { outline: 2px solid var(--aura); outline-offset: 1px; }
.dream .btn { justify-self: start; }
.dream .btn svg { width: 16px; height: 16px; }
.dream-says { margin: 4px 0 6px; padding: 10px 12px; border-radius: 14px 14px 14px 4px; background: linear-gradient(135deg, color-mix(in srgb, #a855f7 16%, transparent), color-mix(in srgb, var(--hot) 12%, transparent)); border: 1px solid color-mix(in srgb, #a855f7 30%, transparent); font-size: 14px; line-height: 1.4; }
.dream-says b { display: block; font-size: 12px; opacity: .7; margin-bottom: 2px; }

/* clip vertical 9:16 */
.st-view.tall { aspect-ratio: 9 / 16; }
/* llegada desde un enlace compartido */
.post-cta { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 18px; border-radius: var(--r); background: linear-gradient(135deg, var(--soft), color-mix(in srgb, var(--hot) 10%, var(--card))); border: 1px solid color-mix(in srgb, var(--aura) 30%, transparent); }
.post-cta p { margin: 0; flex: 1 1 260px; line-height: 1.45; }
.post-cta p a { color: var(--aura); font-weight: 600; }

/* comentarios entre ots: un hilo con línea */
.comments { list-style: none; margin: 12px 0 0; padding: 0 0 0 14px; display: grid; gap: 8px; border-left: 2px solid var(--line); }
.comments li { display: flex; gap: 8px; align-items: flex-start; }
.comments img { width: 28px; height: 28px; border-radius: 50%; flex: none; background: var(--card2); }
.comments p { margin: 0; padding: 7px 12px; border-radius: 4px 14px 14px 14px; background: var(--card2); font-size: 14px; line-height: 1.4; }
.comments p b { margin-right: 2px; }
.comments p a:hover b { text-decoration: underline; }
.comments .more-c { color: var(--muted); font-size: 13px; font-weight: 600; }

/* ───── responsive ───── */
@media (min-width: 961px) { .promo-post { display: none; } }
@media (max-width: 1240px) {
  .app { grid-template-columns: 80px minmax(0, 620px) 316px; gap: 0 22px; }
  .rail .word, .rail .nav span, .mecard div { display: none; }
  .nav { justify-content: center; padding: 0; }
  .rail > .brand { justify-content: center; padding: 6px 0 22px; }
  .rail-me .btn { width: 48px; padding: 0; font-size: 0; }
  .rail-me .btn::before { content: '→'; font-size: 18px; }
  .mecard { justify-content: center; padding: 6px; }
}
@media (max-width: 960px) {
  .app { grid-template-columns: 80px minmax(0, 1fr); }
  .side { display: none; }
  .nav-explore { display: flex; }
  /* Explorar: la barra lateral pasa a ser la vista */
  body[data-view="explore"] .side { display: flex; position: static; height: auto; overflow: visible; padding: 0 0 20px; grid-column: 2; }
  body[data-view="explore"] .main { min-height: 0; padding-bottom: 0; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .app { display: block; padding: 0; }
  .main { padding: 0 12px 96px; }
  body[data-view="explore"] .side { padding: 0 12px 100px; }
  .rail { position: fixed; inset: auto 0 0; z-index: 20; height: auto; flex-direction: row; justify-content: space-around; gap: 0; padding: 6px 4px max(6px, env(safe-area-inset-bottom)); background: var(--glass); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-top: 1px solid var(--line); }
  .rail > .brand, .rail-me { display: none; }
  .nav { flex: 1; flex-direction: column; gap: 2px; height: 52px; padding: 0; justify-content: center; font-size: 10.5px; border-radius: 12px; }
  .rail .nav span { display: block; }
  .nav svg { width: 22px; height: 22px; }
  .nav[aria-current="page"] { background: none; color: var(--aura); }
  .nav[aria-current="page"]::before { content: ''; position: absolute; top: -7px; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--grad); }
  .head { margin: 0 -12px 12px; padding: 0 12px; border-bottom: 1px solid var(--line); }
  .mbar { display: flex; align-items: center; justify-content: space-between; height: 56px; }
  .mbar .logo-mark { width: 30px; height: 30px; }
  .mbar .word b { font-size: 21px; }
  .mbar .word span { font-size: 13px; }
  .mbar-me .mecard { padding: 0; border: 0; background: none; box-shadow: none; }
  .mbar-me .mecard div { display: none; }
  .mbar-me .mecard img { width: 34px; height: 34px; box-shadow: 0 0 0 2px var(--aura); }
  .head h1 { font-size: 20px; margin-bottom: 8px; }
  .seg { margin-bottom: 10px; }
  .feed { gap: 10px; }
  .post, .composer { padding: 14px; }
  .post { gap: 10px; }
  .av img { width: 40px; height: 40px; }
  .who .handle { display: none; }
  .tool span { display: none; }
  .st-body { grid-template-columns: 1fr; }
  .st-view { height: auto; width: calc(100% - 32px); max-height: 56vh; margin: 14px auto; }
  .st-view.tall { width: auto; height: 56vh; }
  .st-side { padding: 0 16px 16px; }
  .studio { width: 100vw; max-width: 100vw; max-height: 100dvh; margin: auto 0 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .cover { height: 210px; }
  .profile { padding: 0 16px 16px; }
  .pav { width: 88px; height: 88px; margin-top: -44px; }
  .pactions { right: 16px; }
  .profile h2 { font-size: 24px; }
  #house { margin: 0 -12px; border-radius: 0; border-inline: 0; }
  #house .feed { padding: 10px 12px; }
  .podium { gap: 6px; }
  .podium img { width: 52px; height: 52px; }
  .podium li:nth-child(1) img { width: 64px; height: 64px; }
  .bigrank img { width: 40px; height: 40px; }
  .toast { bottom: 88px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .badge.aura::after { display: none; }
}
@media (max-width: 640px) {
  /* en el feed las pestañas ya dicen dónde estás */
  .head:has(.seg:not([hidden])) h1 { display: none; }
}
